:root{--blue:#2868c7;--blue-dark:#184d99;--nav:#18324b;--bg:#f3f6fa;--card:#fff;--text:#233142;--muted:#6c7a89;--line:#dfe6ee;--green:#16805d;--red:#b33b4a;--grey:#6b7280;--shadow:0 8px 28px rgba(34,55,83,.08);--radius:16px;--sidebar:250px}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--app-font);line-height:1.5}a{color:var(--blue);text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{min-height:44px}h1{font-size:clamp(1.55rem,2.5vw,2rem);line-height:1.2;margin:.1rem 0 .35rem}h2{font-size:1.2rem;margin:.2rem 0 1rem}h3{font-size:1.05rem;margin:.2rem 0}.container{width:min(1160px,calc(100% - 2rem));margin:auto}.card,.panel{background:var(--card);border:1px solid rgba(220,228,238,.8);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem;margin-bottom:1rem}.btn{border:0;border-radius:10px;padding:.7rem 1rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-weight:700;cursor:pointer;min-height:46px}.btn-primary{background:var(--blue);color:white}.btn-primary:hover{background:var(--blue-dark)}.btn-danger{background:#fff0f1;color:var(--red)}.btn-success{background:var(--green);color:white}.btn-quiet,.btn-secondary{background:#edf2f7;color:var(--text)}.btn-small{min-height:38px;padding:.45rem .7rem;font-size:.9rem}.btn:focus,a:focus,input:focus,select:focus,textarea:focus,summary:focus{outline:3px solid #ffc857;outline-offset:2px}.status-pill,.badge,.category-code{display:inline-flex;padding:.28rem .6rem;border-radius:999px;background:#edf2f7;color:#506071;font-size:.82rem;font-weight:700}.status-pill.open{background:#e3f5ed;color:var(--green)}.status-pill.closed,.status-pill.results_published{background:#eef1f4;color:#56616d}.status-pill.scheduled{background:#fff4d9;color:#8a6200}.status-pill.draft{background:#eef3ff;color:#355f9f}.flash{padding:.9rem 1rem;border-radius:12px;margin-bottom:1rem;font-weight:600}.flash.success{background:#e4f6ef;color:#12694e}.flash.error{background:#fdebed;color:#9d2d3b}.flash.warning{background:#fff4d8;color:#775700}
/* professor application shell */
.app-body{padding-left:var(--sidebar)}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--nav);color:#fff;padding:1rem;z-index:30;overflow:auto}.brand{font-size:1.18rem;font-weight:700;padding:.65rem .75rem 1.25rem}.brand small{display:block;font-size:.8rem;font-weight:500;color:#b9c9d9;margin-top:.15rem}.sidebar nav{display:grid;gap:.25rem}.sidebar nav>a,.sidebar details a,.sidebar summary{display:flex;align-items:center;gap:.75rem;padding:.72rem .8rem;border-radius:10px;color:#dce7f1;cursor:pointer}.sidebar nav>a span{width:24px;text-align:center;font-size:1.1rem}.sidebar nav>a:hover,.sidebar nav>a.active,.sidebar details a:hover{background:rgba(255,255,255,.12);color:#fff}.sidebar details{margin-top:.4rem}.sidebar details a{margin-left:1rem;font-size:.9rem}.app-topbar{height:64px;position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;z-index:20}.app-topbar form{margin:0}.drawer-button{display:none;align-items:center;cursor:pointer;font-weight:700}.drawer-toggle{display:none}.drawer-overlay{display:none}.app-main{max-width:1260px;margin:auto;padding:1.5rem}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.page-heading p{color:var(--muted);margin:0}.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.action-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem;min-height:145px;box-shadow:var(--shadow);display:flex;flex-direction:column;color:var(--text);transition:.15s}.action-card:hover{transform:translateY(-2px);border-color:#a8c3e7}.action-card strong{font-size:1.08rem;margin:.6rem 0 .15rem}.action-card small{color:var(--muted)}.action-icon{width:42px;height:42px;border-radius:12px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;font-size:1.3rem}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid label,.wizard label{display:flex;flex-direction:column;gap:.35rem;font-weight:600}.form-grid .span-2{grid-column:span 2}input,select,textarea{border:1px solid #bcc9d6;border-radius:9px;background:white;padding:.65rem .75rem;color:var(--text);width:100%}textarea{min-height:84px;resize:vertical}label small{font-weight:400;color:var(--muted)}.card-list,.exam-list{display:grid;gap:.75rem}.list-card,.exam-card{background:white;border:1px solid var(--line);border-radius:14px;padding:1rem 1.15rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;color:var(--text)}.list-card small,.exam-card small{display:block;color:var(--muted)}.exam-card h2{margin:.35rem 0}.exam-card p{margin:.2rem 0;color:var(--muted)}.card-actions,.inline-form,.bulk-actions,.publish-bar{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.category-card{background:white;border:1px solid var(--line);border-radius:14px;padding:1.1rem;display:flex;justify-content:space-between;gap:1rem}.category-card p{color:var(--muted);margin:.4rem 0}.filter-bar{display:flex;gap:.55rem;align-items:end;flex-wrap:wrap;background:white;border:1px solid var(--line);padding:1rem;border-radius:14px;margin-bottom:1rem}.filter-bar>*{width:auto;min-width:150px}.bulk-actions{position:sticky;top:76px;background:var(--bg);padding:.6rem 0;z-index:8}.question-select-list{display:grid;gap:.55rem}.question-select{background:white;border:1px solid var(--line);border-radius:12px;padding:.8rem;display:grid;grid-template-columns:auto 1fr auto;gap:.8rem;align-items:start;cursor:pointer}.question-select input{width:22px}.question-select span small{display:block;color:var(--muted)}.question-select b{color:var(--green);font-size:.82rem}.wizard{display:grid;gap:1rem}.wizard-step{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem;display:grid;grid-template-columns:42px 1fr;gap:1rem;box-shadow:var(--shadow)}.wizard-step>span{width:38px;height:38px;border-radius:50%;background:var(--blue);color:white;display:grid;place-items:center;font-weight:700}.choice{flex-direction:row!important;align-items:center;margin:.5rem 0}.choice input{width:auto}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.45rem;margin:.5rem 0 1rem}.check-grid label{font-weight:500;display:flex;flex-direction:row;align-items:center}.check-grid input{width:auto}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-bottom:1rem}.summary-grid>div{background:white;border:1px solid var(--line);border-radius:12px;padding:1rem}.summary-grid small,.summary-grid strong{display:block}.summary-grid small{color:var(--muted)}.preview-list,.detail-list{display:grid;gap:.75rem}.preview-list article,.detail-card{background:white;border:1px solid var(--line);border-radius:14px;padding:1rem;display:grid;grid-template-columns:36px 1fr;gap:.8rem}.preview-list article>span,.detail-card>span{width:32px;height:32px;border-radius:50%;background:#edf2f7;display:grid;place-items:center;font-weight:700}.preview-list img,.detail-card img,.question-read-list img{max-width:340px;max-height:260px;object-fit:contain;display:block;margin:.6rem 0}.publish-bar{position:sticky;bottom:0;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 -6px 22px rgba(30,50,70,.08);padding:1rem;margin-top:1rem;justify-content:flex-end}.responsive-table{overflow:auto;background:white;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.75rem;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.82rem;color:var(--muted);background:#f8fafc}td small{display:block;color:var(--muted)}.correct{color:var(--green)!important;font-weight:600}.incorrect{color:var(--red)!important;font-weight:600}.unanswered{color:var(--grey)!important;font-weight:600}.detail-card.correct{border-left:5px solid var(--green)}.detail-card.incorrect{border-left:5px solid var(--red)}.detail-card.unanswered{border-left:5px solid var(--grey)}dl{display:grid;grid-template-columns:auto 1fr;gap:.25rem .8rem}dt{font-weight:700}dd{margin:0}.analysis-card{background:white;border:1px solid var(--line);border-radius:14px;padding:1rem;margin-bottom:.75rem;display:grid;grid-template-columns:1fr auto;gap:1rem}.analysis-card details{grid-column:1/-1}.analysis-numbers{display:flex;gap:.75rem;align-items:center}.question-read-list{display:grid;gap:.7rem}.question-read-list article{background:white;border:1px solid var(--line);border-radius:12px;padding:1rem}.question-read-list p{margin:.35rem 0}
/* student shell and question experience */
.topbar{position:sticky;top:0;z-index:20;background:var(--nav);color:white}.topbar .container{min-height:62px;display:flex;align-items:center;gap:1rem}.topbar a{color:white;display:flex;align-items:center}.topbar nav{display:flex;gap:1rem}.topbar .spacer{flex:1}.notice{background:#fff6d9;border:1px solid #ffe09b;border-radius:12px;padding:.75rem 1rem;margin:1rem 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.module{min-height:112px;display:flex;flex-direction:column;justify-content:center;color:var(--text)}.progress{height:10px;background:#dce5ef;border-radius:999px;overflow:hidden}.progress span{height:100%;display:block;background:var(--green)}.question-shell{max-width:900px;margin:1rem auto}.question-head{position:sticky;top:62px;z-index:10;background:var(--bg);display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem 0}.question-card{padding:clamp(1rem,4vw,2.4rem)}.question-text{font-size:clamp(1.3rem,3vw,1.85rem);line-height:1.45}.question-image{display:block;max-width:min(100%,520px);max-height:380px;object-fit:contain;margin:1rem auto}.answers{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.25rem}.answer{border-radius:14px;padding:1rem;font-size:1.25rem;font-weight:700;background:white;border:3px solid;cursor:pointer}.answer.true{color:var(--green);border-color:var(--green)}.answer.false{color:var(--red);border-color:var(--red)}.answer.selected{background:var(--nav);color:white;border-color:var(--nav)}.question-actions{display:flex;justify-content:space-between;gap:.55rem;flex-wrap:wrap;margin-top:1rem}.translation{background:#eef5ff;border-radius:12px;padding:.8rem 1rem;margin:1rem 0}.translation-tabs{display:flex;gap:.4rem;flex-wrap:wrap}.translation-tabs button{border:0;border-radius:9px;padding:.55rem .8rem;background:#edf2f7;cursor:pointer}.translation-tabs button.active{background:var(--blue);color:white}.feedback{padding:.8rem;border-radius:10px;margin:.7rem 0}.auth{max-width:470px;margin:7vh auto}.field{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0}.footer{padding:2rem 0;color:var(--muted)}
@media(max-width:980px){:root{--sidebar:230px}.action-grid{grid-template-columns:repeat(2,1fr)}.check-grid{grid-template-columns:repeat(2,1fr)}.summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.app-body{padding-left:0}.sidebar{transform:translateX(-100%);transition:.2s;width:min(84vw,290px)}.drawer-toggle:checked~.sidebar{transform:translateX(0)}.drawer-toggle:checked~.drawer-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:25}.drawer-button{display:flex}.app-topbar{padding:0 .8rem}.app-main{padding:1rem}.page-heading{align-items:flex-start}.action-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.check-grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:1fr 1fr}.responsive-table{border:0;background:transparent;overflow:visible}.responsive-table table,.responsive-table thead,.responsive-table tbody,.responsive-table tr,.responsive-table th,.responsive-table td{display:block}.responsive-table thead{display:none}.responsive-table tr{background:white;border:1px solid var(--line);border-radius:14px;padding:.8rem;margin-bottom:.7rem}.responsive-table td{border:0;padding:.35rem 0;display:grid;grid-template-columns:120px 1fr;gap:.5rem}.responsive-table td:before{content:attr(data-label);font-size:.78rem;font-weight:700;color:var(--muted)}.inline-form{grid-column:1/-1}.analysis-card{grid-template-columns:1fr}.analysis-numbers{flex-wrap:wrap}.topbar nav{display:none}}
@media(max-width:480px){.container{width:calc(100% - 1rem)}.action-grid{grid-template-columns:1fr}.action-card{min-height:108px}.summary-grid{grid-template-columns:1fr}.wizard-step{grid-template-columns:1fr}.wizard-step>span{width:34px;height:34px}.page-heading{flex-direction:column}.filter-bar>*{width:100%}.question-head{top:62px}.answers{position:sticky;bottom:0;background:var(--bg);padding:.55rem 0;z-index:9}.answer{font-size:1.1rem;padding:.75rem .25rem}.question-card{padding:1rem}.question-actions .btn{flex:1}.hide-mobile{display:none}.preview-list article,.detail-card{grid-template-columns:30px 1fr}}
.language-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}.language-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.65rem 1rem;font-weight:700}.language-tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}.language-panel[hidden]{display:none}.answer-feedback{min-height:1.6rem;font-size:1.15rem;font-weight:700;text-align:center}.action-card button{display:contents;color:inherit;font:inherit}.translation-report{margin-top:.6rem}.translation-report textarea{display:block;margin:.5rem 0}
.saved-word{display:inline;min-height:0;padding:0 .06em;border:0;border-bottom:2px dotted var(--blue);background:transparent;color:inherit;font:inherit;cursor:pointer}.saved-word.has-meaning{border-bottom-style:solid}.saved-word:focus{border-radius:3px}.selection-save{position:fixed;z-index:70;min-height:44px;border:0;border-radius:999px;padding:.55rem .85rem;background:var(--nav);color:#fff;font-weight:600;box-shadow:var(--shadow)}.word-sheet[hidden]{display:none}.word-sheet{position:fixed;inset:0;z-index:80}.word-sheet-backdrop{position:absolute;inset:0;background:rgba(20,35,50,.45)}.word-sheet-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100% - 2rem));max-height:calc(100vh - 2rem);overflow:auto;background:#fff;border-radius:18px;padding:1.25rem;box-shadow:0 20px 60px rgba(0,0,0,.25)}.word-sheet-panel label{display:flex;flex-direction:column;gap:.3rem;margin:.65rem 0;font-weight:600}.word-sheet-close{position:absolute;right:.75rem;top:.65rem;width:44px;border:0;border-radius:50%;background:#edf2f7;font-size:1.4rem}.word-sheet-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.word-meaning-preview[hidden],#word-form[hidden]{display:none}.word-selected-term{display:block;padding-right:3rem;font-size:clamp(1.45rem,4vw,2rem);line-height:1.25;color:var(--nav);overflow-wrap:anywhere}.word-meaning-language{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.word-meaning-language span{display:block;margin-bottom:.35rem;color:var(--muted);font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.word-meaning-language p{margin:0;font-size:1.05rem;line-height:1.5;overflow-wrap:anywhere}.word-meaning-missing{margin:1rem 0;padding:1rem;border-radius:12px;background:#fff7e6;color:#754b00;font-weight:600}.word-meaning-preview .word-sheet-actions{margin-top:1rem}.word-meaning-preview .btn{min-height:44px}
@media(max-width:600px){.word-sheet-panel{left:0;right:0;bottom:0;top:auto;transform:none;width:100%;max-height:88vh;border-radius:18px 18px 0 0}.selection-save{max-width:calc(100vw - 1rem)}}
.question-browser-filters{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr)) auto;gap:.75rem;align-items:end;background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem;margin-bottom:1rem}.question-browser-filters label{display:flex;flex-direction:column;gap:.35rem;font-weight:700;font-size:.9rem}.student-question-list{display:grid;gap:.8rem}.student-question-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(34,55,83,.05);padding:1rem}.student-question-card>header{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;margin-bottom:.7rem}.question-reference{font-size:.85rem;color:var(--muted);font-weight:700}.status-pill.mastered{background:#e3f5ed;color:var(--green)}.student-question-main{display:block}.student-question-main.has-image{display:grid;grid-template-columns:minmax(0,4fr) minmax(150px,1fr);gap:1rem;align-items:center}.student-question-text p{font-size:1.02rem;line-height:1.5;margin:.2rem 0}.student-question-text small{color:var(--muted)}.question-browser-image{width:100%;min-height:100px;border:1px solid var(--line);border-radius:10px;background:#f8fafc;padding:.35rem;cursor:zoom-in}.question-browser-image img{display:block;width:100%;height:140px;object-fit:contain}.student-question-card>footer{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:.75rem;margin-top:.75rem}.student-question-card>footer form{margin-left:auto}.attempt-badge{display:inline-flex;align-items:center;min-height:36px;padding:.35rem .65rem;border-radius:999px;font-size:.85rem;font-weight:700}.attempt-badge.correct{background:#e3f5ed;color:#12694e!important}.attempt-badge.incorrect{background:#fdebed;color:#9d2d3b!important}.attempt-total,.last-attempt{font-size:.85rem;color:var(--muted)}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin:1.25rem 0}.question-image-dialog{width:min(760px,calc(100% - 2rem));border:0;border-radius:18px;padding:2.5rem 1rem 1rem;box-shadow:0 20px 60px rgba(0,0,0,.35)}.question-image-dialog::backdrop{background:rgba(20,35,50,.6)}.question-image-dialog img{display:block;max-width:100%;max-height:70vh;margin:auto;object-fit:contain}.question-image-dialog p{text-align:center;font-weight:700}
@media(max-width:1050px){.question-browser-filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.question-browser-filters{grid-template-columns:1fr 1fr}.question-browser-filters label:nth-child(2){grid-column:1/-1}.question-browser-filters .btn{grid-column:1/-1}.student-question-card{padding:.75rem}.student-question-main.has-image{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:.6rem;align-items:start}.student-question-text p{font-size:.94rem;line-height:1.38}.question-browser-image{min-height:92px;padding:.2rem}.question-browser-image img{height:auto;max-height:140px;object-fit:contain}.student-question-card>footer form{width:100%;margin-left:0}.student-question-card>footer form .btn{width:100%}.attempt-badge{font-size:.78rem;padding:.3rem .5rem}.pagination{justify-content:space-between;gap:.35rem}.pagination .btn{padding:.55rem}}
.practice-question-main,.practice-question-main.has-image{display:block;margin:.35rem 0}.practice-question-copy{width:100%;min-width:0}.practice-question-copy .language-panel{width:100%;height:auto!important;min-height:0!important;overflow:visible!important;margin:.2rem 0 .8rem!important;padding:0!important;font-size:clamp(27px,2.15vw,30px);line-height:1.45;font-weight:600}.practice-question-copy .translated-question p{font:inherit;line-height:inherit;margin:0}.practice-image-button{display:block;width:min(72%,520px);min-height:120px;margin:.45rem auto .7rem;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:.5rem;cursor:zoom-in}.practice-image-button .question-image{display:block;width:100%!important;height:auto!important;max-width:500px;max-height:min(42svh,380px)!important;margin:auto!important;object-fit:contain}.practice-answers{position:static!important;background:transparent!important;padding:0!important;margin-top:.65rem}.practice-answers .answer{min-height:58px}.practice-question-card #save-status{margin-bottom:0}
.question-actions.practice-question-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:900px;margin-top:12px;padding:0 6px;flex-wrap:nowrap}.practice-question-nav__button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:#2468a9;color:#fff;box-shadow:0 4px 10px rgba(21,67,109,.2);transition:background-color .15s ease,box-shadow .15s ease,transform .08s ease}.practice-question-nav__button svg{display:block;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.practice-question-nav__button:hover{background:#1c568d}.practice-question-nav__button:focus-visible{outline:3px solid #ffc857;outline-offset:3px}.practice-question-nav__button:active:not(:disabled){background:#174b7b;transform:translateY(1px);box-shadow:0 2px 6px rgba(21,67,109,.22)}.practice-question-nav__button:disabled{cursor:not-allowed;background:#d7e2eb;color:#8396a6;box-shadow:none}.practice-question-nav__previous{margin-right:auto}.practice-question-nav__next{margin-left:auto}@media(max-width:600px){.question-actions.practice-question-nav{padding:0 4px}.practice-question-nav__button{flex-basis:46px;width:46px;height:46px;min-width:46px;min-height:46px}.practice-question-nav__button svg{width:26px;height:26px}}
@media(max-width:900px){.practice-question-copy .language-panel{font-size:clamp(24px,3.1vw,26px)}.practice-image-button{width:min(80%,460px)}.practice-image-button .question-image{max-height:min(40svh,320px)!important}}
@media(max-width:600px){.practice-question-card{padding:.8rem}.practice-question-copy .language-panel{font-size:clamp(22px,6.2vw,24px);line-height:1.45;margin-bottom:.55rem!important}.practice-image-button{width:82%;min-height:120px;margin:.35rem auto .55rem;padding:.3rem}.practice-image-button .question-image{max-height:min(38svh,260px)!important}.practice-answers{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.practice-answers .answer{min-height:56px}.practice-question-card .language-tabs{margin-bottom:.5rem}}

/* Shared student/professor question browser. */
.questions-browser{width:min(1180px,100%);margin:0 auto}.question-browser-heading{margin-bottom:.85rem}.question-browser-filter-toggle{display:none}.question-browser-toolbar{display:grid;grid-template-columns:repeat(4,minmax(155px,1fr));gap:.75rem;align-items:end;margin-bottom:.8rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px rgba(34,55,83,.06)}.question-browser-toolbar label{display:flex;flex-direction:column;gap:.35rem;color:#34485f;font-size:.82rem;font-weight:600}.question-browser-toolbar input,.question-browser-toolbar select{width:100%;min-height:44px}.question-browser-filter-actions{display:flex;gap:.55rem;align-items:center}.question-browser-chips{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;margin:0 0 1rem}.question-browser-chips span{padding:.35rem .65rem;border-radius:999px;background:#e7f0ff;color:#174f94;font-size:.82rem}.question-browser-chips a{font-size:.85rem}.question-browser-list{display:grid;gap:1rem}.question-browser-card{overflow:hidden;background:#fff;border:1px solid #dbe4ee;border-radius:18px;box-shadow:0 7px 22px rgba(31,52,77,.08);transition:box-shadow .18s ease,border-color .18s ease}.question-browser-card:hover{border-color:#bfd1e4;box-shadow:0 10px 26px rgba(31,52,77,.11)}.question-card__header{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;padding:.7rem 1rem;background:#f7faff;border-bottom:1px solid #e2eaf2;color:#53677e;font-size:.82rem}.question-card__number{padding:.3rem .55rem;border-radius:8px;background:#dfeaff;color:#174f94;font-weight:600}.question-card__indicator{color:#7652a8}.question-card__translation-state{margin-left:auto;font-weight:700;color:#31706a}.question-card__content{display:block;padding:1rem}.question-browser-card.has-image .question-card__content{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);grid-template-areas:"text media" "answer media";gap:1rem 1.25rem;align-items:center}.question-card__text{grid-area:text;min-width:0}.question-language-tabs{display:flex;gap:.4rem;overflow-x:auto;margin-bottom:.8rem;padding-bottom:.1rem}.question-language-tabs button{min-height:44px;padding:.45rem .8rem;border:1px solid #d5e0eb;border-radius:999px;background:#fff;color:#425970;font-weight:600;white-space:nowrap}.question-language-tabs button[data-card-language=en].is-active{background:#147d8a;border-color:#147d8a;color:#fff}.question-language-tabs button[data-card-language=ml].is-active{background:#7553a6;border-color:#7553a6;color:#fff}.question-language-tabs button[data-card-language=it].is-active{background:#2867a7;border-color:#2867a7;color:#fff}.question-card__panel{min-height:3.3em;color:#1e3043;font-size:1.08rem;font-weight:450;line-height:1.55;overflow-wrap:anywhere;user-select:text}.question-card__panel[hidden]{display:none}.translation-unavailable{display:inline-block;padding:.65rem .8rem;border-radius:10px;background:#fff7e8;color:#77510c;font-size:.92rem}.question-card__media{grid-area:media;min-width:0}.question-browser-card .question-browser-image{display:block;width:100%;min-height:150px;padding:.5rem;border:1px solid #dce5ee;border-radius:14px;background:#f8fafc;cursor:zoom-in}.question-browser-card .question-browser-image img{display:block;width:100%;height:auto;max-height:260px;margin:auto;object-fit:contain}.question-answer{grid-area:answer;display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:1rem}.question-browser-card.has-image .question-answer{margin-top:0}.question-answer__choice{display:flex;align-items:center;justify-content:center;min-height:48px;border:2px solid #d7e0e9;border-radius:12px;background:#f7f9fb;color:#647588;font-weight:600}.question-answer__choice.is-vero.is-correct{border-color:#15845e;background:#e0f5ec;color:#0e6648}.question-answer__choice.is-falso.is-correct{border-color:#c83f50;background:#fde9ec;color:#9d2635}.question-card__footer{display:flex;align-items:center;gap:.75rem;justify-content:space-between;padding:.75rem 1rem;border-top:1px solid #e2eaf2;background:#fbfcfe}.question-stats{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;color:#607187;font-size:.83rem}.question-browser-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin:1.25rem 0}.question-browser-empty{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:3rem 1rem;border:1px dashed #bfd0df;border-radius:16px;background:#f8fafc;text-align:center}.question-browser-word-sheet .word-meaning-component{margin:.5rem 0;padding:.75rem;border:1px solid var(--line);border-radius:10px}.question-browser-word-sheet .word-meaning-component p{margin:.25rem 0}.question-browser-word-sheet .word-meaning-component.is-missing{background:#fff8ea}.question-browser-word-sheet[data-language-selection=en] [data-browser-word-save],.question-browser-word-sheet[data-language-selection=ml] [data-browser-word-save]{display:none}
@media(max-width:1024px){.question-browser-toolbar{grid-template-columns:repeat(3,minmax(145px,1fr))}}
@media(max-width:768px){.questions-browser{width:100%}.question-browser-filter-toggle{display:inline-flex;margin-bottom:.75rem}.question-browser-toolbar{display:none;grid-template-columns:1fr 1fr;padding:.8rem}.question-browser-toolbar.is-open{display:grid}.question-browser-filter-actions{grid-column:1/-1}.question-browser-card.has-image .question-card__content{display:grid;grid-template-columns:1fr;grid-template-areas:"text" "media" "answer";grid-template-rows:minmax(clamp(165px,27svh,240px),auto) minmax(clamp(110px,18svh,170px),auto) auto;gap:.65rem;align-items:stretch}.question-browser-card.has-image .question-card__text{min-height:clamp(165px,27svh,240px)}.question-card__media{width:100%;display:flex;align-items:center;justify-content:center}.question-browser-card .question-browser-image{width:82%;min-height:clamp(110px,18svh,170px);padding:.3rem}.question-browser-card .question-browser-image img{width:100%;height:auto;max-height:clamp(110px,18svh,170px);object-fit:contain}.question-card__panel{font-size:1rem;line-height:1.5}.question-browser-card.has-image .question-answer{margin-top:0}.question-card__footer{align-items:stretch;flex-direction:column}.question-card__footer form,.question-card__footer .btn{width:100%}.question-answer__choice{min-height:48px}.question-card__translation-state{margin-left:0}.question-browser-pagination{justify-content:space-between;gap:.35rem}.question-browser-pagination .btn{padding:.55rem}.question-language-tabs{scrollbar-width:thin}}
@media(max-width:430px){.question-browser-toolbar{grid-template-columns:1fr}.question-browser-filter-actions{grid-column:auto;flex-direction:column;align-items:stretch}.question-card__header{padding:.65rem .75rem}.question-card__content{padding:.8rem}.question-card__footer{padding:.7rem .8rem}.question-stats .attempt-badge{font-size:.76rem}.question-answer{gap:.5rem}.question-language-tabs button{padding:.45rem .7rem}}
.word-preview-components{display:grid;gap:.65rem;margin-top:.75rem}
.word-meaning-component{border:1px solid var(--border,#d8dee8);border-radius:.65rem;padding:.65rem .75rem}
.word-meaning-component p{margin:.25rem 0 0}
.word-meaning-component.is-missing{background:#f5f6f8;color:#596273}
.question-browser-image.is-unavailable{cursor:default;color:#6a4b10;background:#fff8e8;border-color:#e8cf98}.question-browser-image__unavailable{display:flex;align-items:center;justify-content:center;min-height:120px;font-weight:600}
.questions-browser .question-card__panel{font-size:1.8rem;line-height:1.45}

/* Professor-assigned exam question: content follows normal document flow. */
.exam-question__content{display:block;min-width:0}.exam-question__text{min-width:0}.exam-question__tabs{margin-bottom:.55rem}.exam-question__prompt{margin:.1rem 0 0;color:var(--text);font-size:1.8rem;font-weight:600;line-height:1.45;overflow-wrap:anywhere;word-break:normal;user-select:text}.exam-question__prompt[hidden]{display:none}.exam-question__media{display:flex;min-width:0;align-items:center;justify-content:center;margin:1rem 0 0;overflow:visible}.exam-question__media img{display:block;width:auto;height:auto;max-width:min(100%,520px);max-height:330px;object-fit:contain}.exam-question__answers{position:static;background:transparent;padding:0;margin-top:.8rem}.exam-question__answers .answer{min-height:56px}.exam-question__answers.is-locked .answer{opacity:.84}.exam-question__nav{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:12px;padding:0 6px;flex-wrap:nowrap}.exam-question__nav-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#2468a9;color:#fff;box-shadow:0 4px 10px rgba(21,67,109,.2)}.exam-question__nav-button svg{display:block;width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.exam-question__nav-button:hover{background:#1c568d}.exam-question__nav-button:focus-visible{outline:3px solid #ffc857;outline-offset:3px}.exam-question__nav-button.is-disabled{pointer-events:none;background:#d7e2eb;color:#8396a6;box-shadow:none}.exam-question__nav-button--previous{margin-right:auto}.exam-question__nav-button--next{margin-left:auto}.exam-question__submit{display:flex;justify-content:center;margin-top:.8rem}
@media(max-width:600px){.exam-question{padding:.8rem}.exam-question__prompt{font-size:clamp(20px,5.5vw,24px)}.exam-question__media{margin-top:.75rem}.exam-question__media img{width:100%;height:auto;max-width:100%;max-height:none}.exam-question__tabs{margin-bottom:.4rem}.exam-question__answers{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.exam-question__nav{padding:0 4px}.exam-question__nav-button{flex-basis:46px;width:46px;height:46px}.exam-question__nav-button svg{width:26px;height:26px}}

/* Professor exam management and result analysis. */
.app-main--exams{max-width:1500px}.sidebar-exams>summary{font-weight:600}.sidebar-exams>summary.active{background:rgba(255,255,255,.12);color:#fff}.exam-management,.exam-detail,.student-result-detail{display:grid;gap:1rem}.exam-management__header,.exam-detail__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem;border:1px solid #d9e4ef;border-radius:18px;background:linear-gradient(135deg,#edf6ff,#f4fbfa)}.exam-management__header h1,.exam-detail__header h1{margin:.15rem 0}.exam-management__header p,.exam-detail__header p{margin:.2rem 0;color:#607187}.exam-management__counts{display:flex;gap:.5rem;margin-top:.6rem}.exam-management__counts b{padding:.35rem .65rem;border-radius:999px;background:#fff;color:#35536f;font-size:.84rem}.active-exam-card{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(420px,2fr);gap:1rem;padding:1.25rem;border:1px solid #8bcfc8;border-left:7px solid #087f78;border-radius:18px;background:#effbf9;box-shadow:0 8px 24px rgba(20,90,88,.1)}.active-exam-card h2{margin:.55rem 0}.active-exam-card p{margin:.25rem 0;color:#526a70}.active-exam-card dl{display:grid;grid-template-columns:repeat(5,1fr);gap:.55rem;margin:0}.active-exam-card dl div{padding:.75rem;border:1px solid #cce9e5;border-radius:12px;background:#fff}.active-exam-card dt{color:#61777a;font-size:.76rem}.active-exam-card dd{margin:.2rem 0 0;font-size:1.25rem;font-weight:600}.active-exam-card__actions{grid-column:1/-1;display:flex;gap:.55rem;flex-wrap:wrap}.active-exam-card__actions form{margin:0}.exam-management__empty{padding:1rem;border:1px dashed #b9cadb;border-radius:14px;background:#f8fafc;color:#5d6e80}.exam-management__toolbar,.exam-students__filters,.exam-analysis__filters{display:grid;grid-template-columns:2fr repeat(4,minmax(125px,1fr)) auto auto;gap:.65rem;align-items:end;padding:1rem;border:1px solid #dce5ee;border-radius:16px;background:#fff}.exam-management__toolbar label,.exam-students__filters label,.exam-analysis__filters label{display:flex;flex-direction:column;gap:.3rem;color:#526579;font-size:.82rem;font-weight:700}.exam-management__table{overflow:visible}.exam-management__table table,.exam-students__table table{font-size:.86rem}.exam-management__table td,.exam-management__table th,.exam-students__table td,.exam-students__table th{padding:.7rem .55rem}.exam-management__table td strong,.exam-students__table td strong{display:block}.exam-management__table td small,.exam-students__table td small{display:block;color:#718096}.exam-status,.assignment-state{display:inline-flex;padding:.3rem .58rem;border-radius:999px;font-size:.78rem;font-weight:600;white-space:nowrap}.exam-status--open,.assignment-state--completed{background:#def5eb;color:#0e6b4d}.exam-status--scheduled{background:#e4efff;color:#245d9f}.exam-status--closed,.exam-status--results_published{background:#e9edf1;color:#52606d}.exam-status--under_review,.assignment-state--active{background:#fff0d5;color:#8b5a00}.exam-status--draft,.assignment-state--assigned{background:#eee9fb;color:#654499}.exam-warning{display:block;margin-top:.25rem;color:#9a5b00}.exam-row-actions{position:relative}.exam-row-actions summary{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;border:1px solid #cfdbe6;border-radius:10px;background:#fff;cursor:pointer;list-style:none}.exam-row-actions>div{position:absolute;right:0;z-index:12;display:grid;min-width:180px;padding:.4rem;border:1px solid #d5e0ea;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(31,52,77,.18)}.exam-row-actions a,.exam-row-actions button{display:flex;align-items:center;min-height:42px;width:100%;padding:.5rem .65rem;border:0;border-radius:8px;background:#fff;color:#2d445c;text-align:left}.exam-row-actions a:hover,.exam-row-actions button:hover{background:#edf4fb}.exam-detail__tabs{display:flex;gap:.4rem;overflow-x:auto;padding:.35rem;border:1px solid #dbe5ee;border-radius:14px;background:#fff}.exam-detail__tabs a{display:flex;align-items:center;min-height:44px;padding:.55rem .8rem;border-radius:10px;white-space:nowrap}.exam-detail__tabs a.is-active{background:#2868c7;color:#fff}.exam-detail__layout{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,66%);gap:1rem;align-items:start}.exam-detail__summary,.exam-detail__students{padding:1rem;border:1px solid #dce5ee;border-radius:16px;background:#fff}.exam-detail__summary{position:sticky;top:80px}.exam-detail__summary dl{display:grid;gap:.25rem}.exam-detail__summary dl div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid #edf1f5}.exam-detail__summary dt{color:#68798b}.exam-detail__summary dd{margin:0;text-align:right;font-weight:600}.exam-students__heading{display:flex;align-items:center;justify-content:space-between}.exam-students__heading p{color:#6a7988}.exam-students__filters{grid-template-columns:2fr 1fr auto;margin-bottom:.8rem}.student-result-detail>header{padding:1rem;border-radius:16px;background:#eef5ff}.student-result-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:.65rem}.student-result-summary>div{padding:.8rem;border:1px solid #dce5ee;border-radius:12px;background:#fff}.student-result-summary small{display:block;color:#6a7988}.student-result-summary strong{display:block;margin-top:.25rem}.student-result-questions{display:grid;gap:.8rem}.student-result-question{padding:1rem;border:1px solid #dce5ee;border-left:6px solid #9aa7b4;border-radius:14px;background:#fff}.student-result-question--correct{border-left-color:#16805d}.student-result-question--incorrect{border-left-color:#c84a59}.student-result-question>header{display:flex;justify-content:space-between;gap:.5rem;font-weight:600}.student-result-question>p{font-size:1.05rem;line-height:1.55}.student-result-question>img{display:block;max-width:min(100%,420px);max-height:260px;margin:.75rem auto;object-fit:contain}.student-result-question dl{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.student-result-question dl div{padding:.65rem;border-radius:10px;background:#f6f8fa}.student-result-question dd{margin:.15rem 0 0;font-weight:700}.exam-analysis{display:grid;gap:.8rem}.exam-analysis__filters{grid-template-columns:2fr 1fr 1fr auto}.exam-analysis__matrix{min-width:0;overflow-x:auto;border:1px solid #dbe4ed;border-radius:14px;background:#fff}.exam-analysis__head,.exam-analysis__row{display:grid;grid-template-columns:minmax(360px,1fr) minmax(max-content,2fr);min-width:max-content}.exam-analysis__head{position:sticky;top:0;z-index:2;background:#eef4fa;font-size:.76rem;font-weight:600}.exam-analysis__head>div:first-child{position:sticky;left:0;z-index:3;min-width:360px;background:#eef4fa}.exam-analysis__head>div:not(:first-child){display:inline-flex;width:70px;padding:.55rem;overflow:hidden}.exam-analysis__row{border-top:1px solid #e5ebf1}.exam-analysis__question{position:sticky;left:0;z-index:1;width:360px;padding:.7rem;background:#fff}.exam-analysis__question summary{cursor:pointer}.exam-analysis__question details p{white-space:normal}.exam-analysis__question img{display:block;max-width:240px;max-height:180px;margin:.5rem auto;object-fit:contain}.exam-analysis__question>div{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.45rem;font-size:.75rem}.exam-analysis__cells{display:flex}.exam-answer-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;width:70px;min-height:74px;border-left:1px solid #edf1f5;color:#405064;font-weight:700}.exam-answer-cell--correct{background:#e1f5ed;color:#0c6b4b}.exam-answer-cell--incorrect{background:#fde9ec;color:#9e2a3a}.exam-answer-cell--unanswered{background:#f1f3f5;color:#66717d}.exam-answer-cell small{font-size:.68rem}.is-disabled{pointer-events:none;opacity:.45}
@media(max-width:1180px){.exam-management__toolbar{grid-template-columns:repeat(3,1fr)}.active-exam-card{grid-template-columns:1fr}.active-exam-card__actions{grid-column:auto}.exam-detail__layout{grid-template-columns:38% minmax(0,62%)}.exam-management__table{max-width:100%;overflow-x:auto}.exam-management__table table{min-width:980px}}
@media(max-width:900px){.exam-detail__layout{grid-template-columns:1fr}.exam-detail__summary{position:static}.student-result-summary{grid-template-columns:repeat(2,1fr)}.exam-analysis__head{display:none}.exam-analysis__row{display:block;min-width:0}.exam-analysis__question{position:static;width:auto}.exam-analysis__cells{display:grid;grid-template-columns:repeat(2,1fr);padding:.5rem}.exam-answer-cell{width:auto;min-height:48px;border:1px solid #e1e7ed;border-radius:8px}.exam-analysis__matrix{overflow:visible}.exam-management__table{overflow:visible}.exam-management__table table,.exam-management__table tbody,.exam-management__table tr,.exam-management__table td,.exam-students__table table,.exam-students__table tbody,.exam-students__table tr,.exam-students__table td{display:block;min-width:0}.exam-management__table thead,.exam-students__table thead{display:none}.exam-management__table tbody,.exam-students__table tbody{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.exam-management__table tr,.exam-students__table tr{padding:.75rem;border:1px solid #dce5ee;border-radius:14px;background:#fff}.exam-management__table td,.exam-students__table td{display:grid;grid-template-columns:110px 1fr;gap:.5rem;padding:.3rem 0;border:0}.exam-management__table td:before,.exam-students__table td:before{content:attr(data-label);color:#708092;font-size:.76rem;font-weight:600}}
@media(max-width:760px){.exam-management__header,.exam-detail__header{align-items:stretch;flex-direction:column}.exam-management__header>.btn{width:100%}.active-exam-card dl{grid-template-columns:repeat(2,1fr)}.exam-management__toolbar,.exam-students__filters,.exam-analysis__filters{grid-template-columns:1fr 1fr}.exam-management__toolbar .btn,.exam-management__toolbar>a{width:100%}.exam-management__table tbody,.exam-students__table tbody{grid-template-columns:1fr}.exam-management__table details{margin-left:auto}.student-result-question dl{grid-template-columns:1fr}.exam-students__table td{grid-template-columns:115px 1fr}.exam-analysis__cells{grid-template-columns:1fr}.exam-answer-cell{flex-direction:row;gap:.35rem}.exam-answer-cell:after{content:attr(aria-label);font-weight:600}}
@media(max-width:430px){.exam-management__toolbar,.exam-students__filters,.exam-analysis__filters{grid-template-columns:1fr}.active-exam-card dl,.student-result-summary{grid-template-columns:1fr 1fr}.active-exam-card__actions .btn,.active-exam-card__actions form,.active-exam-card__actions form button{width:100%}.exam-management__header,.active-exam-card,.exam-detail__header,.exam-detail__summary,.exam-detail__students{padding:.8rem}.exam-detail__tabs a{font-size:.86rem}.student-result-question{padding:.75rem}}

/* Compact professor student-result review. */
.student-result-detail--compact{width:min(100%,980px);margin:0 auto;gap:10px}.student-result-detail__header{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:76px;align-items:center;gap:12px;padding:12px 16px;border:1px solid #dce5ee;border-radius:14px;background:#f5f9fd}.student-result-detail__identity{min-width:0}.student-result-detail__header h1{margin:0;font-size:clamp(22px,2.1vw,26px);line-height:1.18;overflow-wrap:anywhere}.student-result-detail__header p{margin:3px 0 0;color:#637487;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.student-result-detail__back{display:inline-flex;width:auto;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:1px solid #7fa6ce;border-radius:10px;background:#fff;color:#245d96;font-size:14px;font-weight:600;white-space:nowrap}.student-result-detail__back:hover,.student-result-detail__back:active{border-color:#245d96;background:#eaf3fc;color:#174c82}.student-result-detail__back:focus-visible{outline:3px solid #f4b942;outline-offset:2px}.student-result-summary--strip{display:grid;min-height:64px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;border:1px solid #dce5ee;border-radius:13px;background:#fff}.student-result-summary--strip>div{display:flex;min-width:0;align-items:center;justify-content:center;gap:7px;padding:6px;border:0;border-radius:9px;text-align:center}.student-result-summary--strip small{color:inherit;font-size:13px;font-weight:700}.student-result-summary--strip strong{margin:0;font-size:21px}.student-result-summary--strip .is-correct{background:#e6f5ed;color:#116b4b}.student-result-summary--strip .is-wrong{background:#fdecef;color:#a52d3e}.student-result-summary--strip .is-unanswered{background:#edf1f4;color:#4f5e6d}.student-result-details{overflow:hidden;border:1px solid #dce5ee;border-radius:12px;background:#fff}.student-result-details__toggle{display:flex;width:100%;min-height:46px;align-items:center;justify-content:space-between;padding:0 13px;border:0;background:#fff;color:#354d64;font-weight:600;cursor:pointer}.student-result-details__toggle svg{width:20px;fill:none;stroke:currentColor;stroke-width:2.2;transition:transform .16s}.student-result-details__toggle[aria-expanded=true] svg{transform:rotate(180deg)}.student-result-details__toggle:focus-visible{outline:3px solid #f4b942;outline-offset:-3px}.student-result-details__panel{border-top:1px solid #e2e9ef}.student-result-details__panel[hidden]{display:none}.student-result-details__panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0;padding:10px}.student-result-details__panel dl div{min-width:0;padding:7px 9px;border-radius:8px;background:#f5f7f9}.student-result-details__panel dt{color:#68798a;font-size:12px}.student-result-details__panel dd{margin:2px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}.student-result-review{display:grid;gap:8px;min-width:0;scroll-margin-top:120px}.student-result-review__nav{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;padding:3px 6px}.student-result-review__position{display:grid;place-items:center;gap:2px;min-width:0}.student-result-review__position strong{font-size:16px}.student-result-review__position span{font-size:13px;font-weight:700}.student-result-review__arrow{display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#68798a;color:#fff;box-shadow:0 4px 10px rgba(42,56,70,.18);cursor:pointer}.student-result-review__arrow svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.student-result-review__arrow:focus-visible{outline:3px solid #f4b942;outline-offset:3px}.student-result-review[data-current-state=correct] .student-result-review__arrow{background:#19805d}.student-result-review[data-current-state=incorrect] .student-result-review__arrow{background:#c53f50}.student-result-review[data-current-state=unanswered] .student-result-review__arrow{background:#68798a}.student-result-review__arrow:disabled{cursor:not-allowed;background:#d5dde4!important;color:#7b8996;box-shadow:none}.student-result-questions{display:block}.student-result-question{min-width:0;padding:14px 16px;border-left-width:6px}.student-result-question[hidden]{display:none}.student-result-question>header{justify-content:flex-end}.student-result-question__badge{padding:4px 8px;border-radius:999px;font-size:13px}.student-result-question--correct .student-result-question__badge{background:#e3f4eb;color:#126b4b}.student-result-question--incorrect .student-result-question__badge{background:#fde9ec;color:#a02c3c}.student-result-question--unanswered .student-result-question__badge{background:#edf1f4;color:#53616e}.student-result-question>p{margin:.65rem 0;font-size:clamp(19px,2.1vw,25px);line-height:1.45;overflow-wrap:anywhere}.student-result-question>img{width:auto;height:auto;max-width:min(100%,460px);max-height:310px}.student-result-question__answers{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px;margin:.7rem 0 0}.student-result-question__answers div{min-width:0;padding:8px 10px!important}.student-result-question__answers dt{font-size:12px;line-height:1.25}.student-result-question__answers dd{font-size:16px;overflow-wrap:anywhere}.student-result-question__answers .is-correct{background:#e6f5ed;color:#116b4b}.student-result-question__answers .is-wrong{background:#fdecef;color:#a52d3e}.student-result-question__answers .is-unanswered{background:#edf1f4;color:#4f5e6d}.student-result-question__explanation{display:flex;justify-content:flex-end;margin-top:9px}.student-result-question__explanation .btn{min-height:44px}.student-result-review__empty{padding:16px;border:1px dashed #bcc9d5;border-radius:12px;background:#f8fafb;text-align:center}.student-result-review__empty p{margin:.25rem 0 0;color:#667789}
@media(max-width:600px){.student-result-detail--compact{gap:8px}.student-result-detail__header{min-height:72px;padding:12px 14px}.student-result-detail__header h1{font-size:22px}.student-result-detail__header p{font-size:14px}.student-result-summary--strip{min-height:58px;gap:4px;padding:4px}.student-result-summary--strip>div{display:grid;gap:0;padding:4px 2px}.student-result-summary--strip small{font-size:11px;white-space:nowrap}.student-result-summary--strip strong{font-size:19px}.student-result-review__nav{grid-template-columns:46px minmax(0,1fr) 46px;padding:3px}.student-result-review__arrow{width:46px;height:46px}.student-result-question{padding:11px}.student-result-question>p{font-size:clamp(18px,5.2vw,22px)}.student-result-question__answers{gap:5px}.student-result-question__answers div{padding:7px!important}.student-result-question__answers dt{font-size:11px}.student-result-question__answers dd{font-size:14px}.student-result-details__panel dl{gap:5px;padding:7px}.student-result-details__panel dl div{padding:6px 7px}.student-result-question>img{max-height:260px}}
@media(max-width:390px){.student-result-detail__header{gap:8px}.student-result-detail__back{padding:0 10px}.student-result-detail__back-label{display:none}}
@media(prefers-reduced-motion:reduce){.student-result-details__toggle svg{transition:none}}

/* Compact scalable professor exam list */
.exam-management{display:grid;gap:14px}.exam-management__header{min-height:94px;padding:16px 20px;align-items:center;background:#fff;border:1px solid #dce5ee;border-radius:16px}.exam-management__header h1{margin:0;font-size:clamp(26px,2.4vw,34px)}.exam-management__header p{margin:3px 0 8px;color:#637487}.exam-management__counts{display:flex;gap:8px}.exam-management__counts b{padding:4px 9px;border-radius:999px;background:#edf3f8;color:#40576f;font-size:13px}.exam-management__filters{border:1px solid #dce5ee;border-radius:14px;background:#fff}.exam-management__filters>summary{display:none}.exam-management__toolbar{margin:0;padding:12px;grid-template-columns:minmax(190px,2fr) repeat(4,minmax(130px,1fr)) auto auto}.exam-management__toolbar label{font-size:13px}.exam-management__toolbar input,.exam-management__toolbar select{min-height:44px}.exam-management__range{margin:0;color:#627386;font-size:14px}.exam-management__table{overflow:visible}.exam-management__table table{width:100%;font-size:13px}.exam-management__table th,.exam-management__table td{padding:9px 8px}.exam-management__row--open{background:#eefaf3}.exam-management__row--open td:first-child{border-left:5px solid #279363}.exam-management__row--archived{background:#f4f5f6;color:#67727d}.exam-status--open{background:#dff4e8;color:#126b48}.exam-status--results_published{background:#e8f1ff;color:#245d9b}.exam-status--archived{background:#eceff2;color:#5c6670}.exam-row-actions>div{position:fixed;right:auto;z-index:100;max-width:min(290px,calc(100vw - 24px));max-height:min(520px,calc(100dvh - 24px));overflow:auto}.exam-row-actions form{margin:0}.exam-row-actions label{display:grid;gap:4px;padding:6px 10px;font-size:12px}.exam-row-actions input{min-height:42px}.exam-action-danger{color:#a32d3b!important}.exam-management__cards{display:none}
@media(max-width:1100px){.exam-management__toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.exam-management__table th:nth-child(4),.exam-management__table td:nth-child(4),.exam-management__table th:nth-child(5),.exam-management__table td:nth-child(5),.exam-management__table th:nth-child(7),.exam-management__table td:nth-child(7),.exam-management__table th:nth-child(8),.exam-management__table td:nth-child(8){display:none}}
@media(max-width:700px){.exam-management__header{min-height:0;padding:14px;align-items:stretch}.exam-management__header>.btn{width:100%;min-height:48px}.exam-management__filters>summary{display:flex;align-items:center;min-height:48px;padding:0 14px;font-weight:700;cursor:pointer}.exam-management__toolbar{grid-template-columns:1fr;padding-top:4px}.exam-management__toolbar input,.exam-management__toolbar select,.exam-management__toolbar .btn,.exam-management__toolbar>a{width:100%;min-height:48px;font-size:16px}.exam-management__table{display:none}.exam-management__cards{display:grid;gap:12px}.exam-management-card{display:grid;gap:14px;width:100%;padding:16px;border:1px solid #dce5ee;border-left:5px solid #b8c4cf;border-radius:14px;background:#fff}.exam-management-card--open{border-left-color:#279363;background:#eefaf3}.exam-management-card--archived{background:#f3f5f6;color:#66727e}.exam-management-card header{display:grid;gap:5px}.exam-management-card h2{margin:0;font-size:19px;line-height:1.3}.exam-management-card p{margin:0;font-size:15px;color:#617386}.exam-management-card__stats{display:grid;gap:7px;font-size:15px}.exam-management-card footer{display:grid;grid-template-columns:1fr 48px;gap:10px;align-items:center}.exam-management-card footer>.btn{min-height:48px}.exam-management-card .exam-row-actions summary{width:48px;min-height:48px}.exam-row-actions>div{left:12px!important;right:12px!important;bottom:12px!important;top:auto!important;min-width:0;max-width:none;border-radius:16px}.exam-row-actions a,.exam-row-actions button{min-height:48px;font-size:16px}.question-browser-pagination .btn{min-height:48px}}
.exam-management__header{min-height:88px;padding:6px 16px}.exam-management__header h1{font-size:clamp(26px,2.4vw,32px);line-height:1.05}.exam-management__header p{margin:2px 0 5px}
@media(max-width:700px){.exam-management__header{min-height:0;padding:14px}}

/* Compact professor Exams accordion on touch layouts. */
.exam-management__create{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;padding:0;border:1px solid #1f5fae;border-radius:12px;background:#2868c7;color:#fff;box-shadow:0 4px 12px rgba(40,104,199,.2);font-size:27px;font-weight:500;line-height:1;text-decoration:none}.exam-management__create:hover{background:#1f579e;color:#fff}.exam-management__create:focus-visible{outline:3px solid #f4b942;outline-offset:3px}
.exam-management-compact{display:none}
@media(max-width:1099px){
 .exam-management{gap:9px}.exam-management__header{display:flex;min-height:68px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-radius:13px;text-align:left}.exam-management__header>div{min-width:0}.exam-management__header h1{font-size:25px}.exam-management__header p{display:none}.exam-management__counts{margin-top:4px;gap:4px}.exam-management__counts b{padding:0;background:transparent;color:#65778a;font-size:13px;font-weight:600}.exam-management__counts b+b:before{margin-right:4px;content:"·"}.exam-management__create{flex-basis:46px}
 .exam-management__filters{border-radius:11px}.exam-management__filters>summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;padding:0 13px;color:#40566c;font-weight:600;cursor:pointer;list-style:none}.exam-management__filters>summary span{transition:transform .15s ease}.exam-management__filters[open]>summary{border-bottom:1px solid #dce5ee}.exam-management__filters[open]>summary span{transform:rotate(180deg)}.exam-management__toolbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.exam-management__toolbar label{font-size:14px}.exam-management__toolbar input,.exam-management__toolbar select,.exam-management__toolbar .btn,.exam-management__toolbar>a{width:100%;min-height:46px;font-size:16px}.exam-management__range{scroll-margin-top:125px;padding:2px 3px;font-size:13px}
 .exam-management__table{display:none}.exam-management__cards{display:grid;gap:7px;overflow:visible}.exam-management-compact{display:block;overflow:visible;border:1px solid #d8e2eb;border-left:5px solid #8c9aaa;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(31,52,77,.07)}.exam-management-compact--open{border-left-color:#279363;background:#f4fbf7}.exam-management-compact--results_published{border-left-color:#397fbd;background:#f6faff}.exam-management-compact--scheduled,.exam-management-compact--draft{border-left-color:#7562b3}.exam-management-compact--closed{border-left-color:#c18a2f}.exam-management-compact--archived{border-left-color:#7b8792;background:#f4f5f6}
 .exam-management-compact__row{display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:center;min-height:70px}.exam-management-compact__toggle{display:grid;width:100%;min-width:0;min-height:70px;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:9px;padding:10px 8px 10px 12px;border:0;background:transparent;color:#2b4054;text-align:left;cursor:pointer}.exam-management-compact__toggle:focus-visible{outline:3px solid #f4b942;outline-offset:-2px}.exam-management-compact__identity{min-width:0}.exam-management-compact__identity strong{display:block;overflow:hidden;font-size:17px;text-overflow:ellipsis;white-space:nowrap}.exam-management-compact__identity small{display:flex;gap:5px;margin-top:3px;color:#65778a;font-size:13px;white-space:nowrap}.exam-management-compact__identity i{font-style:normal}.exam-management-compact__toggle>.exam-status{font-size:12px;white-space:nowrap}.exam-management-compact__toggle>svg{width:20px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .16s}.exam-management-compact__toggle[aria-expanded=true]>svg{transform:rotate(180deg)}
 .exam-management-compact .exam-row-actions{justify-self:center}.exam-management-compact .exam-row-actions summary{width:44px;min-height:44px;border-radius:50%;font-size:0}.exam-management-compact .exam-row-actions summary:after{content:"⋮";font-size:24px;line-height:1}.exam-management-compact .exam-row-actions>div{min-width:220px}.exam-management-compact .exam-row-actions a,.exam-management-compact .exam-row-actions button{min-height:48px;font-size:16px}
 .exam-management-compact__details{padding:0 12px 12px;border-top:1px solid #e1e8ee}.exam-management-compact__details[hidden]{display:none}.exam-management-compact__details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}.exam-management-compact__details dl div{min-width:0;padding:7px 8px;border-radius:8px;background:rgba(242,246,249,.9)}.exam-management-compact__details dt{color:#68798b;font-size:12px}.exam-management-compact__details dd{margin:2px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere}.exam-management-compact__open{min-height:44px;padding:7px 12px}
}
@media(max-width:430px){.exam-management-compact__toggle{grid-template-columns:minmax(0,1fr) auto 18px;gap:6px}.exam-management-compact__identity small{gap:3px;font-size:12px}.exam-management-compact__toggle>.exam-status{max-width:82px;overflow:hidden;text-overflow:ellipsis}.exam-management__toolbar{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.exam-management__filters>summary span,.exam-management-compact__toggle>svg{transition:none}}

/* Published student exam presentation */
.student-exams__compact-header{display:flex;flex-direction:column;justify-content:center;min-height:68px;padding:8px 14px;border:1px solid #dce5ee;border-radius:14px;background:#fff}.student-exams__compact-header h1{margin:0;font-size:28px;line-height:1.1}.student-exams__compact-header p{margin:3px 0 0;color:#65778a}.student-exams__table tr.is-passed{background:#eefaf3}.student-exams__table tr.is-failed{background:#fff1f2}.student-exams__table tr.is-passed td:first-child{border-left:5px solid #249363}.student-exams__table tr.is-failed td:first-child{border-left:5px solid #ce4b5b}.student-exam-status--passed{background:#dff4e8;color:#126b48}.student-exam-status--failed{background:#fde5e8;color:#9f2939}.student-exam-result-counts{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.student-exam-result-counts small{flex-basis:100%;color:#667687}.student-result-count--true{color:#147452;font-weight:700}.student-result-count--false{color:#b63243;font-weight:700}.student-exam-card.is-passed{border-left:5px solid #249363;background:#eefaf3}.student-exam-card.is-failed{border-left:5px solid #ce4b5b;background:#fff1f2}
.published-result,.published-result *{box-sizing:border-box}.published-result{display:grid;gap:14px;width:min(100%,1160px);margin:0 auto}.published-result__header{min-height:76px;padding:12px 16px;border:1px solid #dce5ee;border-radius:14px;background:#fff}.published-result__header>a{display:inline-flex;min-height:36px;align-items:center;color:#2868c7}.published-result__header>div{display:flex;align-items:center;justify-content:space-between;gap:14px}.published-result__header h1{margin:0;font-size:clamp(24px,2.5vw,32px)}.published-result-status{padding:7px 11px;border-radius:999px;font-weight:700;white-space:nowrap}.published-result-status--passed{background:#dff4e8;color:#126b48}.published-result-status--failed{background:#fde5e8;color:#9f2939}.published-result__summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.published-result__summary>div{padding:14px;border:1px solid #dce5ee;border-radius:13px;background:#fff}.published-result__summary span{display:block;color:#607286}.published-result__summary strong{display:block;margin-top:4px;font-size:25px}.published-result__summary .is-true{background:#ebf8f2;color:#126b48}.published-result__summary .is-false{background:#fff0f2;color:#a42d3d}.published-result__summary .is-unanswered{background:#f3f5f7}.published-result__summary .is-percentage{background:#edf5ff;color:#245f9f}.published-result__tabs{display:flex;gap:6px;overflow-x:auto;padding:5px;border:1px solid #dce5ee;border-radius:13px;background:#fff}.published-result__tabs a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 15px;border-radius:9px;white-space:nowrap;font-weight:600}.published-result__tabs a.is-active{background:#2868c7;color:#fff}.published-result__tabs a span{margin-left:5px}.published-result__tabs .tab-short{display:none}.published-result__overview{padding:18px;border:1px solid #dce5ee;border-radius:14px;background:#fff}.published-result__overview h2{margin-top:0}.published-result__overview dl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.published-result__overview dl div{padding:12px;border-radius:10px;background:#f5f7f9}.published-result__overview dd{margin:4px 0 0;font-weight:600}.published-result__questions{display:grid;gap:12px}.published-question{padding:16px;border:1px solid #dce5ee;border-left:5px solid #9aa7b4;border-radius:14px;background:#fff;overflow:hidden}.published-question--correct{border-left-color:#249363}.published-question--incorrect{border-left-color:#ce4b5b}.published-question>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.published-question>header span{padding:5px 9px;border-radius:999px;background:#f0f2f4;font-weight:600}.published-question--correct>header span{background:#e3f5ec;color:#126b48}.published-question--incorrect>header span{background:#fde7ea;color:#a12c3c}.published-question__text{margin:12px 0 8px;font-size:18px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}.published-question__image{display:block;width:auto;max-width:100%;height:auto;max-height:360px;margin:8px auto;object-fit:contain}.published-question__answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}.published-question__answers>div{padding:13px;border-radius:11px;background:#f3f5f7}.published-question__answers .is-wrong{background:#fff0f2;color:#9e2c3c}.published-question__answers .is-correct{background:#eaf8f1;color:#126b48}.published-question__answers dd{margin:4px 0 0;font-size:20px;font-weight:700}.published-question__explanation{margin-top:12px;border-top:1px solid #e3e9ee}.published-question__explanation>summary{display:flex;align-items:center;min-height:48px;color:#2868c7;font-weight:600;cursor:pointer}.published-question__explanation .question-explanation{border:0;padding:8px 0 0}.published-result__empty{padding:24px;text-align:center;border:1px solid #dce5ee;border-radius:14px;background:#fff}
@media(max-width:700px){.student-exams__compact-header{min-height:62px;padding:7px 12px}.student-exams__compact-header h1{font-size:24px}.student-exams__compact-header p{font-size:15px}.student-exam-card{padding:16px}.student-exam-card h2{font-size:19px}.student-exam-card .btn{width:100%;min-height:48px}.published-result{width:100%;gap:12px}.published-result__header{min-height:68px;padding:10px 12px}.published-result__header>div{align-items:flex-start}.published-result__header h1{font-size:22px}.published-result__summary{grid-template-columns:1fr 1fr;gap:8px}.published-result__summary>div{padding:12px}.published-result__summary strong{font-size:22px}.published-result__tabs{max-width:100%}.published-result__tabs a{min-height:48px;padding:8px 13px}.published-result__tabs .tab-full{display:none}.published-result__tabs .tab-short{display:inline;margin:0}.published-result__overview{padding:14px}.published-result__overview dl{grid-template-columns:1fr}.published-question{width:100%;padding:14px 12px}.published-question>header{align-items:flex-start}.published-question__text{font-size:18px;line-height:1.45}.published-question__image{width:100%;max-height:none}.published-question__answers{grid-template-columns:1fr}.question-language-tabs{max-width:100%;overflow-x:auto}.question-language-tabs button{min-height:44px;font-size:15px}}
.published-question__explanation .question-explanation-answers{display:none}
.published-result__tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.published-result__tabs a{min-width:0;color:#2868c7}.published-result__tabs .published-result__tab--errors{color:#a52f3f}.published-result__tabs .published-result__tab--correct{color:#176d49}.published-result__tabs .published-result__tab--summary.is-active{background:#2868c7;color:#fff;box-shadow:0 2px 5px rgba(40,104,199,.2)}.published-result__tabs .published-result__tab--errors.is-active{background:#c83f51;color:#fff;box-shadow:0 2px 5px rgba(168,47,64,.2)}.published-result__tabs .published-result__tab--correct.is-active{background:#238a5d;color:#fff;box-shadow:0 2px 5px rgba(35,138,93,.2)}.published-result__tabs a:focus-visible{outline:3px solid #ffc857;outline-offset:1px}.published-result__overview--compact{display:grid;gap:12px;padding:14px 16px}.published-result__overview--compact>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:11px;border-bottom:1px solid #e0e7ec}.published-result__overview--compact h2{margin:6px 0 0;font-size:1.15rem;line-height:1.3}.published-result__overview-score{display:grid;justify-items:end;flex:0 0 auto}.published-result__overview-score strong{color:#245f9f;font-size:1.55rem}.published-result__overview-score span{color:#607286;font-weight:700}.published-result__overview--compact dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.published-result__overview--compact dl div{min-width:0;padding:9px 10px}.published-result__overview--compact dt{color:#647587;font-size:.82rem}.published-result__overview--compact dd{margin:3px 0 0;font-size:.96rem;overflow-wrap:anywhere}.published-result__overview--compact .is-period{grid-column:span 2}.published-result__correct-review{display:grid;gap:12px;min-width:0}.published-result__error-arrow.published-result__correct-arrow{border-color:#176d49;background:#238a5d}.published-result__error-arrow.published-result__correct-arrow:hover:not(:disabled),.published-result__error-arrow.published-result__correct-arrow:active:not(:disabled){background:#176d49}.published-result__error-arrow.published-result__correct-arrow:disabled{border-color:#abd1be;background:#c9dfd3}.published-result__correct-nav>strong{color:#176d49}.published-result__correct-review.is-enhanced [data-result-pager-card][hidden]{display:none}
.published-result__summary{width:min(100%,760px);grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:3px;border:1px solid #dce5ee;border-radius:13px;background:#fff;overflow:hidden}.published-result__summary>div{display:grid;min-width:0;min-height:54px;align-content:center;justify-items:center;padding:5px 4px;border:0;border-right:1px solid rgba(93,116,136,.16);border-radius:0;text-align:center}.published-result__summary>div:last-child{border-right:0}.published-result__summary span{max-width:100%;font-size:.78rem;font-weight:600;line-height:1.1;white-space:nowrap}.published-result__summary strong{margin:2px 0 0;font-size:1.4rem;line-height:1;font-weight:600;white-space:nowrap}.published-result__summary .summary-label-short{display:none}
.published-result__error-review{display:grid;gap:12px;min-width:0}.published-result__error-nav{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px;padding:0 4px}.published-result__error-nav>strong{text-align:center;color:#7f2734;font-size:1rem}.published-result__error-arrow{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid #a82f40;border-radius:50%;background:#c83f51;color:#fff;box-shadow:0 4px 10px rgba(153,38,54,.22);cursor:pointer}.published-result__error-arrow:last-child{justify-self:end}.published-result__error-arrow svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.published-result__error-arrow:hover:not(:disabled),.published-result__error-arrow:active:not(:disabled){background:#a92f40}.published-result__error-arrow:focus-visible{outline:3px solid #ffc857;outline-offset:3px}.published-result__error-arrow:disabled{border-color:#d9aeb4;background:#e4c8cc;color:#fff;box-shadow:none;cursor:not-allowed}.published-result__error-review.is-enhanced [data-error-card][hidden]{display:none}.published-question__answers>div{display:grid;align-content:center;min-width:0;min-height:78px}.published-question__answers dt{font-size:.88rem;font-weight:600}.published-question__explanation-action{display:flex;justify-content:center;margin-top:12px}.published-question__explanation-button{min-height:48px;padding:10px 20px;border:1px solid #176d49;border-radius:999px;background:#238a5d;color:#fff;font:inherit;font-weight:700;box-shadow:0 0 0 0 rgba(35,138,93,.35);cursor:pointer;animation:published-explanation-pulse 2.4s ease-in-out infinite}.published-question__explanation-button:hover,.published-question__explanation-button:active{background:#176d49}.published-question__explanation-button:focus-visible{outline:3px solid #ffc857;outline-offset:3px}@keyframes published-explanation-pulse{0%,100%{box-shadow:0 0 0 0 rgba(35,138,93,.28)}50%{box-shadow:0 0 0 7px rgba(35,138,93,0)}}@media(prefers-reduced-motion:reduce){.published-question__explanation-button{animation:none}}
.published-result__error-review .question-explanation-reader .question-explanation-tabs{margin:12px 0 8px}.published-result__error-review .question-explanation-reader [data-result-explanation-panel]{padding:12px 0 0;border-top:1px solid #dce5eb;line-height:1.55}.published-result__error-review .question-explanation-reader [data-result-explanation-panel] p{margin:0}
@media(max-width:700px){.published-result__error-nav{grid-template-columns:46px minmax(0,1fr) 46px;gap:9px}.published-result__error-arrow{width:46px;height:46px;min-width:46px;min-height:46px}.published-question__answers{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.published-question__answers>div{min-height:76px;padding:12px}.published-question__answers dt{font-size:13px;line-height:1.25}.published-question__answers dd{font-size:18px;line-height:1.2}}
@media(max-width:700px){.published-result__tabs a{min-height:48px;padding:8px 6px}.published-result__overview--compact{padding:12px}.published-result__overview--compact>header{align-items:flex-start}.published-result__overview--compact h2{font-size:1.05rem}.published-result__overview-score strong{font-size:1.35rem}.published-result__overview--compact dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.published-result__overview--compact .is-period{grid-column:1/-1}}
@media(max-width:700px){.published-result__summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.published-result__summary>div{min-height:54px;padding:4px 2px}.published-result__summary span{font-size:.7rem}.published-result__summary strong{font-size:1.28rem}}
@media(max-width:600px){.published-result__summary .summary-label-full{display:none}.published-result__summary .summary-label-short{display:block}}
@media(max-width:319px){.published-question__answers{grid-template-columns:1fr}}
.exam-analysis__student-results{display:contents}.exam-analysis__student-results>summary{display:none}
@media(max-width:900px){.exam-analysis__student-results{display:block;margin:.5rem}.exam-analysis__student-results>summary{display:flex;align-items:center;min-height:44px;padding:.55rem .7rem;border:1px solid #cad7e3;border-radius:9px;background:#f4f8fb;color:#35536f;font-weight:600;cursor:pointer}.exam-analysis__student-results:not([open]) .exam-analysis__cells{display:none}}

/* Focused professor exam detail and one-question analysis */
.exam-detail--focused{gap:.75rem}.exam-detail__header--compact{padding:1rem 1.15rem}.exam-detail__header--compact h1{font-size:1.55rem}.exam-detail__layout--results{grid-template-columns:minmax(270px,30%) minmax(0,70%)}.exam-info-card{position:static}.exam-info-card h2,.exam-students__heading h2{margin:0 0 .8rem;font-size:1.2rem;font-weight:600}.exam-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.exam-info-item{min-width:0;padding:.7rem;border:1px solid #e1e8ef;border-radius:11px;background:#f8fafc}.exam-info-item span{display:block;color:#68798b;font-size:.9rem}.exam-info-item strong{display:block;margin-top:.22rem;color:#263b50;font-size:1rem;font-weight:600}.exam-results-list table{min-width:940px}.result-count{display:inline-flex;align-items:center;min-height:34px;padding:.3rem .55rem;border-radius:9px;font-weight:700}.result-count--correct,.result-count--zero{background:#e2f5ed;color:#0d6d4d}.result-count--unanswered{background:#edf0f3;color:#596674}.wrong-count-button{min-height:40px;padding:.4rem .65rem;border:1px solid #dc6b78;border-radius:9px;background:#fbe4e8;color:#a42a3a;font:inherit;font-weight:700;cursor:pointer}.wrong-count-button:hover,.wrong-count-button:focus-visible{background:#d54b5c;color:#fff;outline:3px solid rgba(213,75,92,.22);outline-offset:2px}.wrong-questions-modal{width:min(920px,calc(100% - 2rem));max-height:88vh;padding:0;border:0;border-radius:18px;box-shadow:0 24px 70px rgba(20,35,55,.3);overflow:hidden}.wrong-questions-modal::backdrop{background:rgba(24,37,52,.55)}.wrong-modal__header,.wrong-questions-modal footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;background:#fff3f4}.wrong-modal__header h2{margin:0;font-size:1.3rem}.wrong-modal__header p{margin:.2rem 0 0}.wrong-modal__close{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d8c5c8;border-radius:50%;background:#fff;font-size:1.6rem;cursor:pointer}.wrong-modal__summary{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem;padding:1rem}.wrong-modal__summary span{padding:.65rem;border-radius:10px;background:#f5f7f9;color:#526274}.wrong-modal__summary b{display:block;margin-top:.2rem;color:#263b50}.wrong-modal__list{display:grid;gap:.75rem;max-height:58vh;padding:0 1rem 1rem;overflow-y:auto;overflow-x:hidden}.wrong-question{padding:1rem;border:1px solid #efd2d7;border-left:5px solid #d54b5c;border-radius:12px;background:#fff}.wrong-question header{display:flex;justify-content:space-between;color:#a52d3c}.wrong-question p{line-height:1.5}.wrong-question img{display:block;max-width:min(100%,380px);max-height:260px;margin:.7rem auto;object-fit:contain}.wrong-question dl{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.wrong-question dl div{padding:.6rem;border-radius:9px;background:#f7f8fa}.wrong-question dd{margin:.15rem 0 0;font-weight:600}.wrong-questions-modal footer{justify-content:flex-end;background:#f7f9fb}
.question-slide{display:grid;gap:.8rem}.question-slide__nav{display:grid;grid-template-columns:44px auto 44px minmax(180px,1fr);align-items:center;gap:.65rem;padding:.7rem;border:1px solid #dce5ee;border-radius:14px;background:#fff}.question-slide__nav>strong{text-align:center}.question-slide__nav form{justify-self:end}.question-slide__nav label{display:flex;align-items:center;gap:.5rem}.question-arrow{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#2868c7;color:#fff;font-size:1.35rem}.question-arrow.is-disabled{pointer-events:none;background:#d8dee5;color:#77828e}.question-slide__search{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:.65rem;padding:.75rem;border:1px solid #dce5ee;border-radius:14px;background:#fff}.question-slide__search label{display:grid;gap:.25rem;color:#526579;font-size:.85rem;font-weight:600}.question-slide__layout{display:grid;grid-template-columns:minmax(0,45%) minmax(0,55%);gap:1rem;align-items:start}.question-slide__question,.question-response-groups{padding:1rem;border:1px solid #dce5ee;border-radius:16px;background:#fff}.question-slide__question h2{font-size:1.35rem;line-height:1.48;font-weight:600}.question-slide__question>img{display:block;max-width:min(100%,440px);max-height:320px;margin:.8rem auto;object-fit:contain}.question-slide__meta{color:#66788a}.question-slide__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.question-slide__stats>div{padding:.65rem;border-radius:10px}.question-slide__stats span{display:block;font-size:.8rem}.question-slide__stats strong{display:block;margin-top:.2rem;font-size:1.1rem}.question-slide__stats .correct{background:#e2f5ed;color:#0d6d4d}.question-slide__stats .wrong{background:#fbe4e8;color:#a42a3a}.question-slide__stats .unanswered{background:#edf0f3;color:#596674}.question-slide__stats .rate{background:#fff0d9;color:#835700}.question-response-groups{display:grid;gap:.65rem}.response-group{border:1px solid #dce5ee;border-radius:12px;overflow:hidden}.response-group>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:.65rem .8rem;cursor:pointer;font-weight:600}.response-group--correct>summary{background:#e2f5ed;color:#0d6d4d}.response-group--wrong>summary{background:#fbe4e8;color:#a42a3a}.response-group--unanswered>summary{background:#edf0f3;color:#596674}.response-group__list{display:grid;gap:.4rem;max-height:390px;padding:.65rem;overflow-y:auto}.response-group__list>a,.response-group__more>a{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:44px;padding:.5rem .65rem;border:1px solid #e2e8ee;border-radius:9px;background:#fff}.response-group__list small{white-space:nowrap}.response-group__more>summary{min-height:44px;padding:.55rem;cursor:pointer;color:#2868c7;font-weight:600}.response-group__more[open]{display:grid;gap:.4rem}
body.has-exam-modal{overflow:hidden}
@media(max-width:1024px){.exam-detail__layout--results{grid-template-columns:minmax(250px,32%) minmax(0,68%)}.exam-info-grid{grid-template-columns:1fr}.question-slide__layout{grid-template-columns:1fr}.question-response-groups{grid-template-columns:repeat(3,1fr)}.response-group__list{max-height:330px}}
@media(max-width:900px){.exam-detail__layout--results{grid-template-columns:1fr}.exam-info-grid{grid-template-columns:repeat(2,1fr)}.exam-results-list table{min-width:0}.question-response-groups{grid-template-columns:1fr}.question-slide__stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.exam-results-list tr{display:grid!important;grid-template-columns:1fr 1fr;gap:.3rem}.exam-results-list td{display:block!important;padding:.45rem!important}.exam-results-list td:first-child,.exam-results-list td:nth-child(2),.exam-results-list td:last-child{grid-column:1/-1}.exam-results-list td:before{display:block;margin-bottom:.15rem}.exam-results-list .btn{width:100%}.question-slide__nav{grid-template-columns:44px 1fr 44px}.question-slide__nav form{grid-column:1/-1;justify-self:stretch}.question-slide__nav label{justify-content:center}.question-slide__search{grid-template-columns:1fr}.wrong-questions-modal{width:calc(100% - 1rem);max-height:96vh}.wrong-modal__summary{grid-template-columns:1fr 1fr}.wrong-question dl{grid-template-columns:1fr}}
@media(max-width:430px){.exam-info-grid{grid-template-columns:1fr}.exam-detail__header--compact h1{font-size:1.35rem}.question-slide__question,.question-response-groups{padding:.75rem}.question-slide__question h2{font-size:1.2rem}.question-slide__stats{grid-template-columns:1fr 1fr}.wrong-modal__header{padding:.75rem}.wrong-modal__summary{padding:.75rem}.wrong-modal__list{padding:0 .75rem .75rem}}
.wrong-count-button{min-height:44px}
.exam-detail__compact-nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:60px;padding:8px 16px;border:1px solid #d9e4ef;border-radius:14px;background:#f2f8fc;box-shadow:0 3px 12px rgba(38,61,84,.06)}.exam-detail__identity{display:flex;align-items:center;min-width:0;gap:.65rem}.exam-detail__back{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #cbd9e6;border-radius:10px;background:#fff;color:#2868c7;font-size:1.2rem}.exam-detail__identity h1{display:-webkit-box;min-width:0;max-width:520px;margin:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#263b50;font-size:1.12rem;font-weight:600;line-height:1.25}.exam-detail__compact-nav .exam-detail__tabs{flex:0 0 auto;padding:0;border:0;background:transparent}.exam-detail__compact-nav .exam-detail__tabs a{font-size:.97rem}.question-correct-answer{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.75rem 0 .45rem;padding:.65rem .75rem;border:1px solid #26a36b;border-radius:11px;background:#e3f6ec;color:#146c47}.question-correct-answer span{font-weight:600}.question-correct-answer strong{display:inline-flex;align-items:center;min-height:32px;padding:.3rem .65rem;border-radius:8px;background:#26a36b;color:#fff;font-size:1rem;letter-spacing:.02em}.question-slide__meta{margin:.35rem 0 .7rem;font-size:.9rem;font-weight:400;color:#68798b}
@media(max-width:900px){.exam-detail__compact-nav{align-items:stretch;flex-direction:column;gap:.35rem;padding:8px 12px}.exam-detail__compact-nav .exam-detail__tabs{width:100%;overflow-x:auto}.exam-detail__compact-nav .exam-detail__tabs a{flex:1 0 auto;justify-content:center}.exam-detail__identity h1{max-width:none}}
@media(max-width:430px){.exam-detail--focused{gap:.55rem}.exam-detail__compact-nav{padding:7px 8px}.exam-detail__identity{gap:.45rem}.exam-detail__identity h1{font-size:1.05rem}.exam-detail__identity .exam-status{font-size:.7rem}.exam-detail__compact-nav .exam-detail__tabs a{min-height:42px;padding:.45rem .65rem;font-size:.88rem}.question-correct-answer{align-items:flex-start;flex-direction:column;gap:.4rem}.question-correct-answer strong{width:100%;justify-content:center}}
.wrong-modal__navigator{display:grid;grid-template-columns:minmax(130px,1fr) minmax(220px,1.4fr) minmax(130px,1fr);align-items:center;gap:.75rem;padding:.8rem 1rem;border-top:1px solid #e6ebf0;border-bottom:1px solid #e6ebf0;background:#f8fafc}.wrong-modal__navigator>button{min-height:44px;border:1px solid #c6d5e2;border-radius:10px;background:#fff;color:#285678;font:inherit;font-weight:600;cursor:pointer}.wrong-modal__navigator>button:not(:disabled):hover,.wrong-modal__navigator>button:not(:disabled):focus-visible{border-color:#2868c7;background:#eaf2ff;outline:3px solid rgba(40,104,199,.18)}.wrong-modal__navigator>button:disabled{cursor:not-allowed;opacity:.45}.wrong-modal__navigator>div{display:grid;gap:.35rem;text-align:center}.wrong-modal__navigator label{display:flex;align-items:center;justify-content:center;gap:.45rem;color:#5a6c7f;font-size:.86rem}.wrong-modal__navigator select{min-height:40px}.wrong-modal__navigator--bottom{display:none}.wrong-modal__current{max-height:55vh;padding:1rem;overflow-y:auto;overflow-x:hidden}.wrong-question--single{margin:0}.wrong-question--single [data-wrong-number]:focus{outline:3px solid rgba(213,75,92,.2);outline-offset:3px}.wrong-question--single .wrong-answer-state{border:1px solid #e07a86;background:#fbe4e8;color:#9f2938}.wrong-question--single .correct-answer-state{border:1px solid #45ad7d;background:#e3f6ec;color:#146c47}.wrong-question--single dl dt{font-weight:600}.wrong-question--single dl dd{font-size:1rem}
@media(max-width:760px){.wrong-modal__navigator{grid-template-columns:1fr 1fr;padding:.7rem}.wrong-modal__navigator>div{grid-column:1/-1;grid-row:2}.wrong-modal__navigator>button{width:100%}.wrong-modal__current{max-height:56vh;padding:.75rem}.wrong-question--single p{font-size:1rem;line-height:1.5}}
@media(max-width:768px){
 .questions-browser .question-browser-filter-toggle{min-height:44px;border:2px solid var(--blue-dark);border-radius:10px;background:var(--blue);color:#fff;font-weight:600}
 .questions-browser .question-browser-filter-toggle:hover{background:var(--blue-dark)}
 .questions-browser .question-browser-filter-toggle:active{background:#123f7f}
 .questions-browser .question-browser-filter-toggle:focus-visible{outline:3px solid #ffc857;outline-offset:2px;box-shadow:0 0 0 2px #fff}
 .questions-browser .question-browser-filter-actions .btn-quiet,.questions-browser .question-browser-chips>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:2px solid #8f2635;border-radius:10px;background:var(--red);color:#fff;font-weight:600;text-align:center}
 .questions-browser .question-browser-filter-actions .btn-quiet:hover,.questions-browser .question-browser-chips>a:hover{background:#8f2635;color:#fff}
 .questions-browser .question-browser-filter-actions .btn-quiet:active,.questions-browser .question-browser-chips>a:active{background:#74202c;color:#fff}
 .questions-browser .question-browser-filter-actions .btn-quiet:focus-visible,.questions-browser .question-browser-chips>a:focus-visible{outline:3px solid #ffc857;outline-offset:2px;box-shadow:0 0 0 2px #fff}
}

/* Retired dashboard visual system (kept only as an inert rollback reference).
.dashboard-page{--dash-blue:#2868c7;--dash-teal:#087f78;--dash-violet:#7553a6;--dash-green:#16805d;--dash-amber:#b66b08;--dash-coral:#b33b4a;display:grid;gap:1.65rem;min-height:calc(100vh - 112px);margin:-1.5rem;padding:1.5rem;background:linear-gradient(135deg,rgba(239,246,255,.95),rgba(245,243,255,.95),rgba(240,253,250,.95));color:#203047}
.dashboard-page>section{min-width:0}.dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:clamp(1.4rem,3vw,2.25rem);border-radius:22px;color:#fff;box-shadow:0 14px 34px rgba(39,65,104,.18)}
.dashboard-hero:after{content:"";position:absolute;right:-55px;bottom:-95px;width:220px;height:220px;border:42px solid rgba(255,255,255,.09);border-radius:50%;pointer-events:none}.dashboard-hero--professor{background:linear-gradient(125deg,#235fa9,#6749a5)}.dashboard-hero--student{background:linear-gradient(125deg,#087f78,#2868c7)}.dashboard-hero>div{position:relative;z-index:1}.dashboard-hero h1{max-width:720px;margin:.45rem 0 .55rem;font-size:clamp(1.7rem,3vw,2.35rem)}.dashboard-hero p{max-width:680px;margin:0;color:rgba(255,255,255,.88);font-size:1.02rem}.dashboard-badge{display:inline-flex;align-items:center;min-height:30px;padding:.3rem .65rem;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.03em}.dashboard-badge--dark{border-color:#cbd8e6;background:#e9f1fa;color:#31516f}.dashboard-hero__actions{display:flex;align-items:stretch;justify-content:flex-end;gap:.7rem;flex-wrap:wrap;min-width:min(100%,310px)}.dashboard-hero__primary{background:#fff;color:#214c82;border:1px solid rgba(255,255,255,.85);box-shadow:0 7px 18px rgba(18,39,71,.18)}.dashboard-hero__primary:hover{background:#f5f9ff;color:#173b68;transform:translateY(-1px)}.dashboard-hero__secondary{background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.45)}.dashboard-hero__secondary:hover{background:rgba(255,255,255,.22);color:#fff}.dashboard-hero__progress{width:min(520px,100%);margin-top:1rem}.dashboard-hero__progress>span{display:flex;gap:.35rem;margin-bottom:.35rem;font-size:.86rem}.dashboard-progress{height:12px;overflow:hidden;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(10,42,63,.28)}.dashboard-progress i{display:block;height:100%;border-radius:inherit;background:#d8fff1;box-shadow:0 0 14px rgba(216,255,241,.45)}
.dashboard-section-title{display:flex;align-items:center;gap:.75rem;margin:0 0 .85rem}.dashboard-section-title>span{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dceaff;color:#245b9d;font-size:1.15rem;font-weight:600}.dashboard-section-title h2{margin:0;color:#233a55;font-size:1.3rem}.dashboard-section-title p{margin:.12rem 0 0;color:#667991;font-size:.9rem}.dashboard-section-title--compact{margin-bottom:1rem}
.dashboard-grid{display:grid;gap:1rem}.dashboard-grid--stats{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-page--professor .dashboard-grid--stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid--actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-stat-card,.dashboard-card,.dashboard-chart-card,.dashboard-action-card{border:1px solid rgba(184,202,222,.7);border-radius:18px;box-shadow:0 8px 22px rgba(38,67,101,.09)}.dashboard-stat-card{display:flex;align-items:center;gap:1rem;min-height:120px;padding:1.1rem 1.2rem}.dashboard-stat-card__icon,.dashboard-action-card__icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.76);box-shadow:inset 0 0 0 1px rgba(64,90,120,.08);font-size:1.35rem}.dashboard-stat-card strong,.dashboard-stat-card small{display:block}.dashboard-stat-card strong{font-size:clamp(1.65rem,2.8vw,2.1rem);line-height:1.1;color:#1e3550}.dashboard-stat-card small{margin-top:.3rem;color:#536a82;font-size:.88rem}.dashboard-tone--blue{background:#e8f1ff;border-color:#c7dcfa}.dashboard-tone--blue .dashboard-stat-card__icon,.dashboard-tone--blue .dashboard-action-card__icon{color:var(--dash-blue)}.dashboard-tone--teal{background:#e4f7f4;border-color:#bce5df}.dashboard-tone--teal .dashboard-stat-card__icon,.dashboard-tone--teal .dashboard-action-card__icon{color:var(--dash-teal)}.dashboard-tone--violet{background:#f0eafd;border-color:#d9caf4}.dashboard-tone--violet .dashboard-stat-card__icon,.dashboard-tone--violet .dashboard-action-card__icon{color:var(--dash-violet)}.dashboard-tone--green{background:#e6f6ef;border-color:#bfe6d5}.dashboard-tone--green .dashboard-stat-card__icon,.dashboard-tone--green .dashboard-action-card__icon{color:var(--dash-green)}.dashboard-tone--amber{background:#fff3dc;border-color:#f0d5a1}.dashboard-tone--amber .dashboard-stat-card__icon,.dashboard-tone--amber .dashboard-action-card__icon{color:var(--dash-amber)}.dashboard-tone--coral{background:#fdebed;border-color:#f2c8ce}.dashboard-tone--coral .dashboard-stat-card__icon,.dashboard-tone--coral .dashboard-action-card__icon{color:var(--dash-coral)}
.dashboard-action-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.9rem;min-height:112px;padding:1rem 1.1rem;color:#21364d;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dashboard-action-card:hover{transform:translateY(-3px);border-color:#9cb8d5;box-shadow:0 13px 27px rgba(38,67,101,.15);color:#172b40}.dashboard-action-card:focus-visible{outline:3px solid #f3b83f;outline-offset:3px}.dashboard-action-card strong,.dashboard-action-card small{display:block}.dashboard-action-card strong{font-size:1.03rem}.dashboard-action-card small{margin-top:.25rem;color:#5d7085;line-height:1.4}.dashboard-action-card>b{font-size:1.15rem;color:#607991}.dashboard-action-card>button{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.9rem;width:100%;min-height:108px;margin:-1rem -1.1rem;padding:1rem 1.1rem;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.dashboard-action-card:has(>button){padding:1rem 1.1rem}.dashboard-card,.dashboard-chart-card{padding:1.25rem;background:rgba(255,255,255,.84);backdrop-filter:blur(5px)}.dashboard-current{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(110deg,#edf8ff,#e9faf5)}.dashboard-current h2{margin:.55rem 0 .2rem}.dashboard-current p{margin:0;color:#5c7086}.dashboard-recent>p{padding:.7rem .8rem;border-radius:10px;background:#f4f8fc;color:#52677d}.dashboard-chart-card{background:linear-gradient(120deg,rgba(255,255,255,.9),rgba(232,246,242,.88));border-color:#c8e2da}.dashboard-chart-card .journey-track{background:#d8e8e2}.dashboard-chart-card .journey-fill{background:linear-gradient(90deg,#16805d,#21a786)}.dashboard-chart-card .journey-heading>strong{color:#137253}
@media(max-width:1100px){.dashboard-grid--stats,.dashboard-page--professor .dashboard-grid--stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid--actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-page{margin:-1rem;padding:1rem;gap:1.35rem}.dashboard-hero{align-items:stretch;flex-direction:column;gap:1.15rem;border-radius:18px}.dashboard-hero__actions{display:grid;grid-template-columns:1fr;min-width:0}.dashboard-hero__actions .btn{width:100%}.dashboard-grid--stats,.dashboard-page--professor .dashboard-grid--stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid--actions{grid-template-columns:1fr}.dashboard-action-card{min-height:104px}.dashboard-current{align-items:stretch;flex-direction:column}.dashboard-current .btn{width:100%}.dashboard-stat-card{min-height:108px;padding:.95rem}.dashboard-stat-card__icon{width:44px;height:44px}.dashboard-section-title h2{font-size:1.2rem}}
@media(max-width:380px){.dashboard-grid--stats,.dashboard-page--professor .dashboard-grid--stats{grid-template-columns:1fr}.dashboard-stat-card{min-height:96px}}
@media(prefers-reduced-motion:reduce){.dashboard-action-card,.dashboard-hero__primary{transition:none}.dashboard-action-card:hover,.dashboard-hero__primary:hover{transform:none}}
form.dashboard-action-card{display:block}.dashboard-action-card>button{width:calc(100% + 2.2rem)}
@media(max-width:760px){.dashboard-grid--stats,.dashboard-page--professor .dashboard-grid--stats{grid-template-columns:1fr}}

*/
/* Rejected neutral dashboard system retained only as an inert rollback reference.
.dashboard-accent--blue{--accent:var(--dm-blue)}.dashboard-accent--teal{--accent:var(--dm-teal)}.dashboard-accent--green{--accent:var(--dm-green)}.dashboard-accent--orange,.dashboard-accent--amber{--accent:var(--dm-orange)}.dashboard-accent--coral{--accent:var(--dm-coral)}.dashboard-accent--violet{--accent:var(--dm-violet)}

*/

/* Rich full-colour dashboard system. */

/* Light full-width canvas for the approved rich-colour dashboards. */

/* Scalable professor student management. */
.app-main--students{width:auto;max-width:none;margin:0;min-width:0;overflow-x:hidden;background:linear-gradient(135deg,#eef4f7,#f1f0f9 52%,#edf7f3)}.students-management{display:grid;width:100%;gap:1rem;min-width:0;padding-bottom:1rem}.students-management__header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:1rem;padding:1.35rem 1.5rem;border-radius:18px;background:linear-gradient(125deg,#315bb5,#7143b7 62%,#aa347c);box-shadow:0 10px 26px rgba(47,65,107,.18);color:#fff}.students-management__header h1{margin:.2rem 0;font-size:clamp(1.65rem,2.6vw,2rem)}.students-management__header p{margin:0;color:rgba(255,255,255,.88);font-weight:400}.students-management__eyebrow{font-size:.78rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase}.students-management__count{display:inline-flex;margin-top:.55rem;padding:.24rem .58rem;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(17,24,39,.18);font-size:.82rem;font-weight:500}.students-management__add{flex:0 0 auto;min-height:46px;border:1px solid rgba(255,255,255,.75);background:#fff;color:#2e3883;font-weight:600}.students-management__add:hover{background:#f3f5ff;color:#232b68}.students-filter-toggle{display:none}.students-filters{display:grid;grid-template-columns:minmax(190px,1.4fr) repeat(4,minmax(125px,.75fr)) auto;gap:.7rem;align-items:end;padding:1rem;border:1px solid #d5deea;border-radius:16px;background:rgba(255,255,255,.72);box-shadow:0 7px 20px rgba(42,60,89,.08)}.students-filters label{display:flex;min-width:0;flex-direction:column;gap:.3rem;color:#435268;font-size:.82rem;font-weight:500}.students-filters input,.students-filters select{min-width:0;height:44px}.students-filters__actions{display:flex;gap:.5rem;align-items:center}.students-filters__actions .btn{min-height:44px;white-space:nowrap}.students-filters__clear{border:1px solid #c23e4d;background:#c23e4d;color:#fff;font-weight:600}.students-filters__clear:hover{background:#9f2f3d;color:#fff}.students-table-wrap{min-width:0;overflow:auto;border:1px solid #d6dfeb;border-radius:16px;background:rgba(255,255,255,.8);box-shadow:0 8px 22px rgba(41,58,84,.09)}.students-table{min-width:920px}.students-table th{position:sticky;top:0;z-index:2;padding:.72rem .8rem;background:#e9eef7;color:#435268;font-weight:600;white-space:nowrap}.students-table th a{display:inline-flex;align-items:center;color:#354865}.students-table td{padding:.68rem .8rem;color:#354052;font-weight:400}.students-table tbody tr{transition:background .15s ease}.students-table tbody tr:hover{background:rgba(230,238,250,.68)}.student-identity{display:flex;align-items:center;gap:.65rem;min-width:170px}.student-identity strong{font-weight:600}.student-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#6d4bd1,#327cc4);color:#fff;font-weight:600}.student-email{max-width:250px;overflow-wrap:anywhere}.student-status{display:inline-flex;align-items:center;min-height:30px;padding:.28rem .62rem;border-radius:999px;font-size:.78rem;font-weight:600;white-space:nowrap}.student-status--active{background:#dff4e7;color:#17633a}.student-status--disabled{background:#edf0f4;color:#596371}.student-status--expired{background:#ffeadb;color:#9a3f18}.student-progress{display:flex;align-items:center;gap:.45rem}.student-progress>span{display:block;width:72px;height:7px;overflow:hidden;border-radius:999px;background:#dfe6ee}.student-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a34a,#0d9488)}.student-progress small{font-size:.76rem;color:#536176}.student-edit-button{border:1px solid #7f61c8;background:#7f61c8;color:#fff;font-weight:600}.student-edit-button:hover{background:#684aad;color:#fff}.students-card-grid{display:none}.students-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.75rem}.students-pagination>:first-child{justify-self:start}.students-pagination>:last-child{justify-self:end}.students-pagination>span{color:#536176;font-size:.88rem;text-align:center}.students-empty{padding:2rem 1.25rem;border:1px dashed #a9b9cd;border-radius:16px;background:rgba(255,255,255,.58);text-align:center}.students-empty h2{margin:0 0 .4rem;font-weight:600}.students-empty p{margin:.2rem 0 1rem;color:#526174}.student-dialog{width:min(840px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;overflow:hidden;border:0;border-radius:18px;background:#f8fafc;box-shadow:0 24px 70px rgba(24,38,62,.32)}.student-dialog::backdrop{background:rgba(20,31,49,.54);backdrop-filter:blur(2px)}.student-dialog__form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 32px)}.student-dialog__form>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:linear-gradient(125deg,#315bb5,#7143b7);color:#fff}.student-dialog__form>header span{font-size:.76rem;font-weight:500;text-transform:uppercase;letter-spacing:.04em}.student-dialog__form>header h2{margin:.1rem 0 0;font-weight:600}.student-dialog__close{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(15,23,42,.2);color:#fff;font-size:1.5rem;cursor:pointer}.student-dialog__body{overflow:auto;padding:1.2rem}.student-dialog__body label{font-weight:500}.student-dialog__form>footer{display:flex;justify-content:flex-end;gap:.65rem;padding:1rem 1.2rem;border-top:1px solid #d8e0e9;background:#eef2f7}.student-dialog-open{overflow:hidden}
@media(max-width:1180px){.students-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.students-filters__actions{grid-column:span 2;justify-content:flex-end}.students-table{min-width:820px}.students-table th:nth-child(2),.students-table td:nth-child(2){display:none}.student-identity{align-items:flex-start;flex-wrap:wrap}.student-identity strong:after{content:"";display:block}.student-identity strong{overflow-wrap:anywhere}}
@media(max-width:1099px){.students-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.students-filters__actions{grid-column:1/-1}.students-table-wrap{display:none}.students-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.student-card{min-width:0;padding:1rem;border:1px solid #d4deea;border-radius:15px;background:rgba(255,255,255,.8);box-shadow:0 6px 18px rgba(41,58,84,.08)}.student-card header{display:flex;align-items:flex-start;gap:.65rem}.student-card h2{margin:0 0 .3rem;font-size:1rem;font-weight:600;overflow-wrap:anywhere}.student-card dl{grid-template-columns:auto minmax(0,1fr);margin:.85rem 0;gap:.3rem .65rem}.student-card dt{color:#5c6879;font-size:.79rem;font-weight:500}.student-card dd{min-width:0;color:#354052;font-size:.88rem;overflow-wrap:anywhere}.student-card .student-edit-button{width:100%;min-height:44px}.students-pagination{grid-template-columns:1fr 1fr}.students-pagination>span{grid-column:1/-1;grid-row:1}.students-pagination>:first-child{grid-column:1;grid-row:2}.students-pagination>:last-child{grid-column:2;grid-row:2}}
@media(max-width:767px){.students-management__header{align-items:stretch;flex-direction:column;padding:1.15rem}.students-management__add{width:100%}.students-filter-toggle{display:flex;align-items:center;justify-content:center;min-height:46px;border:2px solid #315bb5;border-radius:11px;background:#315bb5;color:#fff;font-weight:600;cursor:pointer}.students-filters{display:none;grid-template-columns:1fr}.students-filters.is-open{display:grid}.students-filters__actions{grid-column:auto;display:grid;grid-template-columns:1fr}.students-filters__actions .btn{width:100%}.student-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.student-dialog__form{max-height:calc(100dvh - 24px)}.student-dialog__body{grid-template-columns:1fr;padding:1rem}.student-dialog__body .span-2{grid-column:auto}.student-dialog__form>footer{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;padding:.8rem}.student-dialog__form>footer .btn{width:100%;padding:.65rem}}
@media(max-width:599px){.students-card-grid{grid-template-columns:1fr}.students-pagination{gap:.45rem}.students-pagination .btn{width:100%;padding:.6rem .45rem}.students-pagination>span{font-size:.82rem}.students-management__header h1{font-size:1.65rem}.student-card{padding:.9rem}}

/* Professor student profile and read-only learning history */
.student-profile-link{color:inherit;text-decoration:none}.student-profile-link:hover strong,.student-card h2 .student-profile-link:hover{color:#315bb5}.student-row-actions,.student-card__actions{display:flex;gap:.45rem}.student-row-actions .btn{white-space:nowrap}.student-profile-button{border:1px solid #315bb5;background:#315bb5;color:#fff;font-weight:600}.student-profile-button:hover{background:#244995;color:#fff}.student-card__actions .btn{flex:1;min-height:44px}
.student-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;min-width:310px}.student-action-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid;border-radius:9px;background:#fff;font-size:.84rem;font-weight:600;line-height:1.15;white-space:nowrap;cursor:pointer}.student-action-button:focus-visible{outline:3px solid rgba(49,91,181,.3);outline-offset:2px}.student-action-button--profile{border-color:#315bb5;color:#315bb5}.student-action-button--profile:hover{background:#edf3ff;color:#244995}.student-action-button--disable{border-color:#d68318;color:#97560a}.student-action-button--disable:hover{background:#fff6e8}.student-action-button--reactivate{border-color:#168449;color:#116c3b}.student-action-button--reactivate:hover{background:#eaf8f0}.student-action-button--delete{border-color:#c94b59;color:#a32636}.student-action-button--delete:hover{background:#fff0f1}.student-card header>div:nth-child(2){min-width:0;flex:1}.student-account-dialog{width:min(560px,calc(100vw - 24px))}.student-account-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.45rem .8rem;padding:.8rem;border-radius:10px;background:#eef2f7}.student-account-summary dt{color:#657287}.student-account-summary dd{margin:0;overflow-wrap:anywhere;font-weight:600}.student-account-dialog label[data-delete-confirm]{display:grid;gap:.4rem;margin-top:1rem}.student-account-dialog input[name=delete_confirmation]{min-height:46px}.student-account-dialog [data-account-submit]{min-height:48px}.student-account-dialog [data-account-submit]:disabled{opacity:.48;cursor:not-allowed}
.student-profile-grid .student-history-card{grid-template-columns:1fr}.student-profile-grid .student-history-card>.btn{width:100%}
.student-profile,.student-attempt{display:grid;gap:1rem;min-width:0}.student-profile__hero,.student-attempt__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:1.35rem;border-radius:20px;background:linear-gradient(125deg,#315bb5,#7143b7 62%,#aa347c);color:#fff;box-shadow:0 12px 28px rgba(47,65,107,.18)}.student-profile__identity{display:flex;align-items:center;gap:1rem;min-width:0}.student-profile__avatar{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:2px solid rgba(255,255,255,.65);border-radius:50%;background:rgba(255,255,255,.16);font-size:1.5rem;font-weight:700}.student-profile__identity h1,.student-attempt__header h1{margin:.1rem 0;font-size:clamp(1.55rem,2.6vw,2.15rem)}.student-profile__identity p,.student-attempt__header p{margin:0;overflow-wrap:anywhere;color:rgba(255,255,255,.9)}.student-profile__eyebrow,.student-attempt__header span{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}.student-profile__actions{display:flex;gap:.55rem}.student-profile__actions .btn,.student-attempt__header .btn{min-height:44px}.student-profile__facts{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));width:100%;margin:.25rem 0 0;padding-top:1rem;border-top:1px solid rgba(255,255,255,.25);gap:.8rem}.student-profile__facts div{min-width:0}.student-profile__facts dt{font-size:.75rem;color:rgba(255,255,255,.78)}.student-profile__facts dd{margin:.2rem 0 0;overflow-wrap:anywhere;font-size:.91rem;font-weight:600}
.student-profile__tabs{display:flex;max-width:100%;overflow-x:auto;border:1px solid #d5deea;border-radius:14px;background:#fff;scrollbar-width:thin}.student-profile__tabs a{flex:0 0 auto;min-height:46px;padding:.78rem 1rem;color:#46566c;font-weight:600;white-space:nowrap}.student-profile__tabs a[aria-current=page]{background:#315bb5;color:#fff}.student-profile__tabs a:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}
.student-profile__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.student-profile-stat{display:grid;min-width:0;min-height:104px;padding:1rem;border-radius:16px;background:#fff;box-shadow:0 7px 19px rgba(37,53,79,.09);border-left:5px solid #315bb5}.student-profile-stat small{color:#5d697a}.student-profile-stat strong{align-self:end;overflow-wrap:anywhere;font-size:1.55rem}.student-profile-stat--green{border-color:#159447}.student-profile-stat--red{border-color:#d84d50}.student-profile-stat--violet{border-color:#7547b8}.student-profile-stat--teal{border-color:#0d9488}.student-profile-stat--orange{border-color:#e67e22}.student-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.student-profile-panel{min-width:0;padding:1rem;border:1px solid #d6dfeb;border-radius:16px;background:rgba(255,255,255,.86);box-shadow:0 7px 20px rgba(42,60,89,.07)}.student-profile-panel h2{margin:0 0 .8rem}.student-profile-panel__head{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:.9rem}.student-profile-panel__head h2,.student-profile-panel__head p{margin:0}.student-profile-kpis,.student-chapter-card dl,.student-error-card dl,.student-attempt-question dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:0}.student-profile-kpis div,.student-chapter-card dl div,.student-error-card dl div,.student-attempt-question dl div{padding:.65rem;border-radius:10px;background:#f2f5f9}.student-profile-kpis dt,.student-chapter-card dt,.student-error-card dt,.student-attempt-question dt{font-size:.76rem;color:#687487}.student-profile-kpis dd,.student-chapter-card dd,.student-error-card dd,.student-attempt-question dd{margin:.18rem 0 0;font-weight:600}.student-profile-ranked{padding-left:1.2rem}.student-profile-ranked li{display:flex;justify-content:space-between;gap:.8rem;padding:.55rem 0;border-bottom:1px solid #e3e8ef}.empty-note{padding:1rem;border-radius:12px;background:#f1f4f8;color:#5d6978}.student-history-list{display:grid;gap:.7rem}.student-history-card{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(280px,1fr) auto;align-items:center;gap:.9rem;padding:.85rem;border:1px solid #dce3ec;border-radius:13px;background:#fff}.student-history-card h3,.student-history-card p{margin:.12rem 0}.student-history-card__type{font-size:.72rem;text-transform:uppercase;color:#6250a0}.student-history-card dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;margin:0}.student-history-card dt{font-size:.7rem;color:#697589}.student-history-card dd{margin:.1rem 0;font-weight:600}.student-history-card .btn{min-height:44px}.student-chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.student-chapter-card,.student-error-card,.student-attempt-question{min-width:0;padding:1rem;border:1px solid #d9e1ea;border-radius:14px;background:#fff}.student-chapter-card>span{font-size:.75rem;color:#7047a8}.student-chapter-card h3{margin:.25rem 0 .8rem}.student-error-card{margin-bottom:.7rem}.student-error-card header,.student-attempt-question>header{display:flex;justify-content:space-between;gap:.8rem}.student-error-card p{font-size:1rem;line-height:1.5}.student-error-card dl{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:.7rem}.student-profile-pagination{display:flex;align-items:center;justify-content:center;gap:.8rem;margin-top:1rem}.student-profile-empty{padding:2rem;border-radius:16px;background:#fff;text-align:center}.student-attempt__questions{display:grid;gap:.8rem}.student-attempt-question{border-left:5px solid #98a2b2}.student-attempt-question--correct{border-left-color:#159447}.student-attempt-question--incorrect{border-left-color:#d84d50}.student-attempt-question__tabs{display:flex;gap:.35rem;margin:.8rem 0}.student-attempt-question__tabs button{min-height:42px;padding:.45rem .8rem;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#42526a;cursor:pointer}.student-attempt-question__tabs button.is-active{background:#315bb5;color:#fff}.student-attempt-question__text{font-size:1.2rem;line-height:1.5}.student-attempt-question img{display:block;width:auto;max-width:min(100%,420px);max-height:320px;margin:.8rem auto;object-fit:contain}.student-attempt-question dl{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1180px){.student-profile__facts{grid-template-columns:repeat(3,minmax(0,1fr))}.student-profile__stats{grid-template-columns:repeat(3,minmax(0,1fr))}.student-history-card{grid-template-columns:minmax(180px,1fr) minmax(250px,1fr)}.student-history-card>.btn{grid-column:1/-1;width:max-content}}
@media(max-width:900px){.student-profile__stats{grid-template-columns:repeat(2,minmax(0,1fr))}.student-profile-grid,.student-chapter-grid{grid-template-columns:1fr}.student-history-card{grid-template-columns:1fr}.student-history-card>.btn{width:100%}}
@media(max-width:599px){.student-card{width:100%;min-width:0;overflow:visible}.student-card dl{display:grid;grid-template-columns:minmax(82px,auto) minmax(0,1fr);width:100%;gap:.55rem .65rem}.student-card dt{font-size:.81rem}.student-card dd{font-size:.93rem;overflow-wrap:anywhere}.student-card__actions{display:grid;grid-template-columns:1fr 1fr}.student-profile__hero,.student-attempt__header{align-items:stretch;flex-direction:column;padding:1rem}.student-profile__identity{align-items:flex-start}.student-profile__actions{display:grid;grid-template-columns:1fr}.student-profile__facts{grid-template-columns:1fr 1fr}.student-profile__stats{grid-template-columns:1fr 1fr}.student-profile-stat{min-height:92px;padding:.8rem}.student-profile-stat strong{font-size:1.25rem}.student-profile-panel{padding:.8rem}.student-profile-panel__head{align-items:stretch;flex-direction:column}.student-profile-panel__head select{width:100%;min-height:44px}.student-history-card dl{grid-template-columns:1fr 1fr}.student-error-card dl,.student-attempt-question dl{grid-template-columns:1fr}.student-error-card header,.student-attempt-question>header{align-items:flex-start;flex-direction:column}.student-attempt-question__tabs{max-width:100%;overflow-x:auto}.student-attempt-question__tabs button{flex:0 0 auto}.student-attempt-question__text{font-size:1.08rem}.student-profile-pagination{justify-content:space-between;flex-wrap:wrap}}
@media(max-width:375px){.student-card dl{grid-template-columns:1fr;gap:.15rem}.student-card dt{margin-top:.45rem}.student-profile__facts,.student-profile__stats{grid-template-columns:1fr}}
.student-account-dialog label[data-delete-confirm][hidden]{display:none!important}
.students-management .student-actions{min-width:310px}
.students-table{min-width:1120px}.students-table th:last-child,.students-table td:last-child{width:330px}.students-card-grid .student-actions{display:grid;grid-template-columns:1fr 1fr;min-width:0;width:100%;margin-top:.75rem;gap:8px}.students-card-grid .student-action-button{min-height:48px;min-width:0;padding:8px 10px;font-size:.9rem;white-space:normal;text-align:center}.students-card-grid .student-action-button--profile{grid-column:1/-1}
@media(max-width:599px){.students-card-grid .student-actions{grid-template-columns:1fr 1fr}.students-card-grid .student-action-button--profile{grid-column:1/-1}}
@media(max-width:360px){.students-card-grid .student-actions{grid-template-columns:1fr}.students-card-grid .student-action-button--profile{grid-column:auto}}

/* Compact professor student datatable; the approved accordion remains unchanged below 1100px. */
@media(min-width:1100px){
 .students-table-wrap{overflow-x:auto;overflow-y:hidden}
 .students-table{width:100%;min-width:1018px;table-layout:fixed;font-size:.82rem}
 .students-table thead tr{height:48px}
 .students-table th{height:48px;padding:8px 9px;vertical-align:middle}
 .students-table tbody tr{height:68px;border-top:1px solid #e2e8f0}
 .students-table tbody tr:nth-child(even){background:rgba(244,247,251,.62)}
 .students-table tbody tr:hover{background:#eef5fc}
 .students-table td{height:68px;padding:10px 9px;vertical-align:middle}
 .students-table th:nth-child(1),.students-table td:nth-child(1){width:150px}
 .students-table th:nth-child(2),.students-table td:nth-child(2){display:table-cell;width:135px}
 .students-table th:nth-child(3),.students-table td:nth-child(3){width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .students-table th:nth-child(4),.students-table td:nth-child(4){width:78px;white-space:nowrap}
 .students-table th:nth-child(5),.students-table td:nth-child(5){width:76px}
 .students-table th:nth-child(6),.students-table td:nth-child(6){width:96px}
 .students-table th:nth-child(7),.students-table td:nth-child(7){width:388px}
 .students-table .student-identity{min-width:0;flex-wrap:nowrap;gap:8px;white-space:nowrap}
 .students-table .student-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .students-table .student-avatar{flex-basis:38px;width:38px;height:38px}
 .students-table .student-email{max-width:none;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;white-space:nowrap}
 .students-table .student-progress{gap:6px;white-space:nowrap}
 .students-table .student-progress>span{width:62px}
 .students-table .student-actions{display:flex;align-items:center;justify-content:flex-end;min-width:0;gap:6px;flex-wrap:nowrap;white-space:nowrap}
 .students-table .student-action-button{height:35px;min-height:35px;padding:0 8px;border-radius:8px;font-size:12px;font-weight:600;line-height:1;white-space:nowrap}
 .students-table .student-action-button--edit{border-color:#13877f;color:#096b65}
 .students-table .student-action-button--edit:hover{background:#e9f8f6;color:#075c57}
 .students-table .student-action-button--password{border-color:#6754b5;color:#55439f}
 .students-table .student-action-button--password:hover{background:#f1edff;color:#46358c}
}

/* Simple professor student dashboard */
.student-profile--simple{margin:-1.5rem;padding:1.25rem;background:#f3f6f8;color:#334155;font-weight:400}.student-profile--simple strong,.student-profile--simple b{font-weight:500}.student-profile--simple .student-profile__hero{display:grid;grid-template-columns:minmax(250px,1.3fr) minmax(320px,1fr) auto;align-items:center;min-height:0;padding:1rem 1.15rem;border-radius:12px;background:linear-gradient(120deg,#117c73,#198d84);box-shadow:0 4px 12px rgba(15,118,110,.14)}.student-profile--simple .student-profile__identity h1{font-weight:500}.student-profile--simple .student-profile__avatar{width:54px;height:54px;flex-basis:54px;font-weight:500}.student-profile--simple .student-profile__facts{grid-template-columns:repeat(2,minmax(120px,1fr));margin:0;padding:0;border:0}.student-profile--simple .student-profile__facts dt,.student-profile--simple .student-profile__facts dd{font-weight:400}.student-profile--simple .student-profile__actions{flex-direction:column}.student-profile--simple .btn{font-weight:500}
.profile-bank-progress{display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:.7rem 1rem;padding:1rem 1.1rem;border:1px solid #b8d9d5;border-left:4px solid #16877e;border-radius:10px;background:#fff}.profile-bank-progress h2{margin:.15rem 0;font-size:1.12rem;font-weight:500}.profile-bank-progress p,.profile-bank-progress>div>span{margin:0;color:#64748b;font-weight:400}.profile-bank-progress dl{display:flex;gap:1.2rem;margin:0}.profile-bank-progress dt{color:#64748b;font-size:.78rem;font-weight:400}.profile-bank-progress dd{margin:.1rem 0;font-size:1.1rem;font-weight:500}.profile-bank-progress__track{grid-column:1/-1;height:10px;overflow:hidden;border-radius:999px;background:#dfe8eb}.profile-bank-progress__track i{display:block;height:100%;min-width:0;border-radius:inherit;background:#16877e}
.student-profile--simple .student-profile__tabs{border-radius:9px;box-shadow:none}.student-profile--simple .student-profile__tabs a{font-weight:500}.student-profile--simple .student-profile__tabs a[aria-current=page]{background:#147f76}
.profile-summary-grid,.profile-error-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.profile-summary-grid article,.profile-error-summary article{display:grid;min-height:82px;padding:.8rem .9rem;border:1px solid #d8e2e8;border-left:3px solid #3b82f6;border-radius:9px;background:#fff;box-shadow:0 2px 7px rgba(51,65,85,.05)}.profile-summary-grid article:nth-child(3n+2){border-left-color:#14b8a6;background:#f3fbfa}.profile-summary-grid article:nth-child(3n){border-left-color:#f59e0b;background:#fffaf0}.profile-summary-grid article:nth-child(4n){border-left-color:#ef6464;background:#fff7f7}.profile-summary-grid small,.profile-error-summary small{color:#64748b;font-weight:400}.profile-summary-grid span,.profile-error-summary span{align-self:end;overflow-wrap:anywhere;font-size:1.15rem;font-weight:500}.profile-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.profile-overview-grid article{padding:1rem;border:1px solid #d8e2e8;border-radius:9px;background:#fff}.profile-overview-grid h2{margin:0;font-size:1rem;font-weight:500}.profile-overview-grid p{margin:.4rem 0;color:#64748b}.profile-overview-grid a{color:#117c73;font-weight:500}.student-profile--simple .student-profile-panel{border-radius:10px;box-shadow:0 2px 8px rgba(51,65,85,.05)}.student-profile--simple .student-profile-panel h2,.student-profile--simple .student-chapter-card h3{font-weight:500}
.profile-activity-list,.profile-error-list{display:grid;gap:.65rem}.profile-activity-card{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(280px,1fr) auto;align-items:center;gap:.8rem;padding:.75rem .85rem;border:1px solid #d8e2e8;border-left:3px solid #16877e;border-radius:9px;background:#fff}.profile-activity-card h3{margin:.1rem 0;font-size:1rem;font-weight:500}.profile-activity-card p{margin:0;color:#64748b}.profile-activity-card>div>span{font-size:.72rem;color:#117c73;text-transform:uppercase}.profile-activity-card dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;margin:0}.profile-activity-card dt{font-size:.7rem;color:#64748b;font-weight:400}.profile-activity-card dd{margin:.1rem 0;font-weight:500}.profile-activity-card .btn{min-height:44px}
.profile-error-summary article{border-left-color:#e35d5d;background:#fffafa}.profile-error-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1.4fr) minmax(150px,1fr) auto;gap:.65rem;align-items:end;margin-bottom:.8rem}.profile-error-filters label{display:grid;gap:.25rem;color:#64748b;font-size:.8rem;font-weight:400}.profile-error-filters input,.profile-error-filters select,.profile-error-filters .btn{min-height:44px}.profile-error-card{border:1px solid #e1d9d9;border-left:3px solid #dc5b5b;border-radius:9px;background:#fff}.profile-error-card header{display:flex;justify-content:space-between;gap:.8rem;padding:.7rem .85rem;border-bottom:1px solid #edf0f2}.profile-error-card header span{font-weight:500;overflow-wrap:anywhere}.profile-error-card header small{color:#64748b}.profile-error-card__body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:.8rem;padding:.85rem}.profile-error-card__body p{margin:0;line-height:1.5;font-weight:400}.profile-error-card__body img{display:block;max-width:240px;max-height:160px;margin:.6rem auto 0;object-fit:contain}.profile-error-card__body dl{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin:0}.profile-error-card__body dl div{padding:.5rem;border-radius:7px;background:#f5f7f9}.profile-error-card__body dt{font-size:.72rem;color:#64748b;font-weight:400}.profile-error-card__body dd{margin:.15rem 0;font-weight:400}.answer-badge{display:inline-flex;padding:.25rem .45rem;border-radius:6px}.answer-badge--wrong{background:#fee2e2;color:#991b1b}.answer-badge--correct{background:#dcfce7;color:#166534}.profile-error-card footer{display:flex;justify-content:flex-end;gap:.5rem;padding:.7rem .85rem;border-top:1px solid #edf0f2}
.student-profile--simple .student-chapter-card{border-radius:9px;box-shadow:none}.student-profile--simple .student-chapter-card dt,.student-profile--simple .student-chapter-card dd{font-weight:400}
@media(max-width:1180px){.student-profile--simple .student-profile__hero{grid-template-columns:1fr 1fr}.student-profile--simple .student-profile__actions{grid-column:1/-1;flex-direction:row}.profile-summary-grid,.profile-error-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-activity-card{grid-template-columns:1fr minmax(260px,1fr)}.profile-activity-card>.btn{grid-column:1/-1;width:max-content}}
@media(max-width:900px){.student-profile--simple .student-profile__hero{grid-template-columns:1fr}.student-profile--simple .student-profile__actions{grid-column:auto}.profile-summary-grid,.profile-error-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-error-filters{grid-template-columns:1fr 1fr}.profile-error-card__body{grid-template-columns:1fr}.profile-activity-card{grid-template-columns:1fr}.profile-activity-card>.btn{width:100%}}
@media(max-width:600px){.student-profile--simple{margin:-1rem;padding:.75rem}.student-profile--simple .student-profile__hero{padding:.85rem}.student-profile--simple .student-profile__facts{grid-template-columns:1fr 1fr}.student-profile--simple .student-profile__actions{display:grid;grid-template-columns:1fr 1fr}.profile-bank-progress{grid-template-columns:1fr}.profile-bank-progress dl{justify-content:space-between}.profile-summary-grid,.profile-error-summary{grid-template-columns:1fr 1fr}.profile-overview-grid{grid-template-columns:1fr}.profile-activity-card dl{grid-template-columns:1fr 1fr}.profile-error-filters{grid-template-columns:1fr}.profile-error-card__body dl{grid-template-columns:1fr}.profile-error-card footer{display:grid;grid-template-columns:1fr 1fr}.profile-error-card footer .btn{min-height:44px}.student-card dl{grid-template-columns:minmax(80px,auto) minmax(0,1fr)}}
@media(max-width:375px){.student-profile--simple .student-profile__facts,.profile-summary-grid,.profile-error-summary{grid-template-columns:1fr}.student-card dl{grid-template-columns:1fr}}

/* Deployment-ready authentication screen. */
.login-page{min-height:100vh;overflow-x:hidden;background:
 radial-gradient(circle at 12% 16%,rgba(45,212,191,.25) 0 8rem,transparent 8.1rem),
 radial-gradient(circle at 88% 82%,rgba(99,102,241,.22) 0 11rem,transparent 11.1rem),
 linear-gradient(145deg,#e5f5f5 0%,#e8eefc 48%,#dfe8fb 100%);color:#17243a}
.login-shell{display:grid;place-items:center;min-height:100vh;padding:32px 16px}
.login-card{width:min(100%,470px);padding:clamp(28px,5vw,44px);border:1px solid rgba(255,255,255,.82);border-radius:24px;background:rgba(249,252,255,.94);box-shadow:0 24px 65px rgba(30,58,95,.18);backdrop-filter:blur(8px)}
.login-brand{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:linear-gradient(145deg,#137c83,#4057c8);color:#fff;font-size:1.15rem;font-weight:700;letter-spacing:.04em;box-shadow:0 10px 24px rgba(37,83,147,.22)}
.login-product{margin:0;text-align:center;color:#14777d;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.login-card h1{margin:8px 0 10px;text-align:center;font-size:clamp(1.7rem,5vw,2.15rem);line-height:1.18}
.login-intro{max-width:36ch;margin:0 auto 26px;text-align:center;color:#5a687b;line-height:1.55}
.login-error{margin:0 0 18px;padding:12px 14px;border:1px solid #f0b8bd;border-radius:11px;background:#fff1f2;color:#8f2633;line-height:1.4}
.login-form{display:grid;gap:9px}.login-form label{margin-top:7px;color:#26374d;font-weight:600}
.login-form input{width:100%;height:52px;border:1px solid #b9c7d8;border-radius:12px;background:#fff;padding:0 14px;color:#17243a;font:inherit;font-size:16px;outline:none;transition:border-color .16s,box-shadow .16s}
.login-form input:focus{border-color:#277caa;box-shadow:0 0 0 4px rgba(39,124,170,.15)}
.login-password{position:relative}.login-password input{padding-right:82px}.login-password button{position:absolute;top:5px;right:5px;min-width:70px;height:42px;border:0;border-radius:9px;background:#e8f0f7;color:#25516f;font-weight:700;cursor:pointer}
.login-password button:focus-visible,.login-submit:focus-visible{outline:3px solid #f2b544;outline-offset:2px}
.login-submit{min-height:54px;margin-top:16px;border:0;border-radius:12px;background:linear-gradient(105deg,#137f83,#4058c9);color:#fff;font:inherit;font-weight:600;font-size:1.04rem;cursor:pointer;box-shadow:0 10px 23px rgba(42,86,154,.2)}
.login-submit:hover{filter:brightness(.96)}
@media(max-width:430px){.login-shell{padding:18px 16px}.login-card{padding:28px 20px;border-radius:20px}.login-intro{margin-bottom:20px}}
@media(max-height:560px) and (orientation:landscape){.login-shell{place-items:start center;padding-block:16px}.login-card{padding-block:22px}.login-brand{width:48px;height:48px;margin-bottom:8px}.login-intro{margin-bottom:14px}}

/* Final profile palette and five-tab overview */
.student-profile--simple{background:#f2f5f7;color:#182638}.student-profile--simple .student-profile__hero{background:linear-gradient(110deg,#147a72,#1b9589)}.student-profile--simple .student-profile__identity h1{font-weight:600}.profile-bank-progress{border-color:#8bc9c1;background:#dff4ef}.profile-summary-grid--mapped article{border-width:1px 1px 1px 4px}.profile-summary-card--blue,.profile-summary-card--cyan{border-color:#3974c8!important;background:#e5effc!important}.profile-summary-card--green{border-color:#26a36b!important;background:#e3f6ec!important}.profile-summary-card--coral{border-color:#df615d!important;background:#fde8e7!important}.profile-summary-card--violet{border-color:#8064c9!important;background:#eee9fb!important}.profile-summary-card--amber{border-color:#e49a27!important;background:#fff1d6!important}.profile-summary-grid--mapped span{font-weight:600}.profile-overview-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-overview-grid--three article{position:relative;padding-top:1rem;border-left-width:4px}.profile-overview-card--exam{border-color:#3974c8!important;background:#f5f9ff!important}.profile-overview-card--facsimile{border-color:#15877d!important;background:#f2fbf9!important}.profile-overview-card--chapters{border-color:#e49a27!important;background:#fffaf0!important}.profile-section-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:.55rem;border-radius:8px;background:#3974c8;color:#fff;font-weight:600}.profile-overview-card--facsimile .profile-section-icon{background:#15877d}.profile-overview-card--chapters .profile-section-icon{background:#e49a27}.profile-overview-grid--three dl{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin:.65rem 0}.profile-overview-grid--three dl div{padding:.45rem;border-radius:6px;background:rgba(255,255,255,.72)}.profile-overview-grid--three dt{font-size:.72rem;color:#64748b;font-weight:400}.profile-overview-grid--three dd{margin:.1rem 0;font-weight:500}.profile-overview-grid--three .btn{width:100%;min-height:44px}
@media(max-width:900px){.profile-overview-grid--three{grid-template-columns:1fr 1fr}.profile-overview-grid--three article:last-child{grid-column:1/-1}}
@media(max-width:600px){.profile-overview-grid--three{grid-template-columns:1fr}.profile-overview-grid--three article:last-child{grid-column:auto}}

/* Professor student profile/list responsive typography. */
.student-profile--simple{width:100%;min-width:0;font-size:1rem;line-height:1.45}
.student-profile--simple .student-profile-panel h2{font-size:1.2rem;font-weight:600}
.student-profile--simple .profile-overview-grid h2{font-weight:600}
.student-profile--simple .profile-summary-grid small,
.student-profile--simple .profile-error-summary small,
.student-profile--simple .profile-overview-grid dt,
.student-profile--simple .profile-error-card__body dt,
.student-profile--simple .profile-activity-card dt{font-weight:400}
.student-profile--simple .profile-summary-grid span,
.student-profile--simple .profile-error-summary span{font-weight:600}
.student-profile--simple .profile-overview-grid dd,
.student-profile--simple .profile-error-card__body dd,
.student-profile--simple .profile-activity-card dd{font-weight:500}

@media(min-width:768px) and (max-width:1024px){
  .student-profile--simple{font-size:1rem;line-height:1.45}
  .student-profile--simple .student-profile__identity h1{font-size:1.4rem}
  .student-profile--simple .student-profile-panel h2{font-size:1.2rem}
  .student-profile--simple .profile-overview-grid h2,
  .student-profile--simple .profile-activity-card h3,
  .student-profile--simple .student-chapter-card h3{font-size:1.05rem}
  .student-profile--simple .profile-summary-grid span,
  .student-profile--simple .profile-error-summary span{font-size:1.2rem}
  .student-profile--simple .student-profile__facts dt,
  .student-profile--simple .profile-summary-grid small,
  .student-profile--simple .profile-error-summary small,
  .student-profile--simple .profile-overview-grid dt,
  .student-profile--simple .profile-activity-card dt,
  .student-profile--simple .profile-error-card__body dt,
  .student-profile--simple .student-chapter-card dt,
  .students-management .student-card dt{font-size:.9rem;font-weight:400}
  .student-profile--simple .student-profile__facts dd,
  .student-profile--simple .profile-overview-grid dd,
  .student-profile--simple .profile-activity-card dd,
  .student-profile--simple .profile-error-card__body dd,
  .student-profile--simple .student-chapter-card dd,
  .students-management .student-card dd{font-size:1rem;font-weight:500}
  .student-profile--simple .student-profile__eyebrow,
  .student-profile--simple .profile-activity-card>div>span,
  .student-profile--simple .student-chapter-card>span,
  .student-profile--simple .profile-error-card header small{font-size:.9rem}
  .student-profile--simple .profile-overview-grid p,
  .student-profile--simple .profile-activity-card p,
  .student-profile--simple .profile-error-card__body p{font-size:1rem}
  .student-profile--simple .btn,
  .students-management .btn{min-height:44px;font-size:1rem;font-weight:500}
  .student-profile--simple .student-profile__tabs a{min-height:44px;font-size:.95rem}
  .student-profile--simple .profile-summary-grid article,
  .student-profile--simple .profile-error-summary article,
  .student-profile--simple .profile-overview-grid article,
  .student-profile--simple .student-profile-panel,
  .students-management .student-card{padding:15px}
  .student-profile--simple .profile-summary-grid,
  .student-profile--simple .profile-error-summary,
  .student-profile--simple .profile-overview-grid{gap:10px}
}

@media(max-width:767px){
  .students-management__header h1{font-size:1.55rem;line-height:1.4}
  .students-management__header p{font-size:.95rem;line-height:1.45}
  .students-management__eyebrow,
  .students-management__count,
  .students-management .student-status,
  .students-management .student-progress small,
  .students-management .students-pagination>span{font-size:.9rem}
  .students-management .student-card{width:100%;min-width:0;padding:15px;line-height:1.45}
  .students-management .student-card h2{font-size:1.25rem;line-height:1.4}
  .students-management .student-card dl{gap:10px}
  .students-management .student-card dt{font-size:.9rem;font-weight:400}
  .students-management .student-card dd{font-size:1rem;font-weight:500;line-height:1.45}
  .students-management .btn,
  .students-management .students-filter-toggle{min-height:44px;font-size:1rem;font-weight:500}

  .student-profile--simple{width:auto;min-width:0;margin:-1rem;padding:14px;font-size:1rem;line-height:1.45}
  .student-profile--simple .student-profile__hero{gap:12px;padding:15px}
  .student-profile--simple .student-profile__identity h1{font-size:1.35rem;line-height:1.4}
  .student-profile--simple .student-profile__identity p{font-size:.95rem;line-height:1.45}
  .student-profile--simple .student-profile__eyebrow{font-size:.9rem}
  .student-profile--simple .student-profile__facts{gap:10px}
  .student-profile--simple .student-profile__facts dt{font-size:.9rem;font-weight:400}
  .student-profile--simple .student-profile__facts dd{font-size:1rem;font-weight:500;line-height:1.45}
  .student-profile--simple .student-profile__tabs a{min-height:44px;padding:.72rem 1rem;font-size:.95rem;font-weight:500}
  .student-profile--simple .student-profile-panel{padding:15px}
  .student-profile--simple .student-profile-panel h2{font-size:1.2rem;line-height:1.4;font-weight:600}
  .student-profile--simple .profile-overview-grid h2,
  .student-profile--simple .profile-activity-card h3,
  .student-profile--simple .student-chapter-card h3{font-size:1.1rem;line-height:1.4;font-weight:600}
  .student-profile--simple .profile-summary-grid,
  .student-profile--simple .profile-error-summary,
  .student-profile--simple .profile-overview-grid,
  .student-profile--simple .profile-activity-list,
  .student-profile--simple .profile-error-list{gap:10px}
  .student-profile--simple .profile-summary-grid article,
  .student-profile--simple .profile-error-summary article,
  .student-profile--simple .profile-overview-grid article,
  .student-profile--simple .profile-activity-card,
  .student-profile--simple .student-chapter-card,
  .student-profile--simple .profile-error-card{padding:15px}
  .student-profile--simple .profile-summary-grid article,
  .student-profile--simple .profile-error-summary article{min-height:88px;align-content:space-between;gap:8px}
  .student-profile--simple .profile-summary-grid small,
  .student-profile--simple .profile-error-summary small{font-size:.9rem;line-height:1.4}
  .student-profile--simple .profile-summary-grid span,
  .student-profile--simple .profile-error-summary span{font-size:1.2rem;line-height:1.4;font-weight:600}
  .student-profile--simple .profile-overview-grid dt,
  .student-profile--simple .profile-activity-card dt,
  .student-profile--simple .profile-error-card__body dt,
  .student-profile--simple .student-chapter-card dt,
  .student-profile--simple .profile-error-filters label{font-size:.9rem;font-weight:400}
  .student-profile--simple .profile-overview-grid dd,
  .student-profile--simple .profile-activity-card dd,
  .student-profile--simple .profile-error-card__body dd,
  .student-profile--simple .student-chapter-card dd{font-size:1rem;line-height:1.45;font-weight:500}
  .student-profile--simple .profile-overview-grid p,
  .student-profile--simple .profile-activity-card p,
  .student-profile--simple .profile-error-card header small,
  .student-profile--simple .student-chapter-card>span,
  .student-profile--simple .profile-activity-card>div>span{font-size:.95rem;line-height:1.45}
  .student-profile--simple .profile-error-card__body{padding:15px;gap:10px}
  .student-profile--simple .profile-error-card__body p{font-size:1.1rem;line-height:1.45}
  .student-profile--simple .profile-error-card header,
  .student-profile--simple .profile-error-card footer{padding:14px 15px}
  .student-profile--simple .btn{min-height:44px;font-size:1rem;font-weight:500}
}

/* Scalable professor Batch management. */
.app-main--batches{width:auto;max-width:none;margin:0;min-width:0;overflow-x:hidden;background:#f2f5f7}
.batches-management,.batch-detail{display:grid;width:100%;min-width:0;gap:1rem;padding-bottom:1rem;color:#263548}
.batches-management__header,.batch-detail__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.4rem;border-radius:14px;background:linear-gradient(110deg,#147a72,#1b9589);color:#fff;box-shadow:0 5px 14px rgba(15,118,110,.16)}
.batches-management__header h1,.batch-detail__header h1{margin:.15rem 0;font-size:clamp(1.55rem,2.5vw,2rem);font-weight:600}
.batches-management__header p,.batch-detail__header p{margin:0;color:rgba(255,255,255,.9);font-weight:400}
.batches-management__eyebrow,.batch-detail__header>div>span{font-size:.88rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase}
.batches-management__count{display:inline-flex;margin-top:.55rem;padding:.25rem .6rem;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(15,60,70,.2);font-size:.9rem;font-weight:500}
.batches-management__current{display:block;margin-top:.55rem;font-size:1rem;font-weight:500}
.batches-management__add{flex:0 0 auto;min-height:46px;border:1px solid #fff;background:#fff;color:#11665f;font-size:1rem;font-weight:600}
.batch-add__compact{display:none}.batches-filter-toggle{display:none}.batches-filter-count{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;padding:0 6px;border-radius:999px;background:#fff;color:#147a72;font-size:.78rem}
.batches-filters{display:grid;grid-template-columns:minmax(180px,1.25fr) repeat(5,minmax(115px,.72fr)) auto;align-items:end;gap:.65rem;padding:1rem;border:1px solid #cedae2;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(51,65,85,.06)}
.batches-filters label{display:grid;min-width:0;gap:.3rem;color:#536176;font-size:.9rem;font-weight:400}
.batches-filters input,.batches-filters select{min-width:0;height:44px}
.batches-filters__actions{display:flex;gap:.45rem}.batches-filters__actions .btn{min-height:44px;white-space:nowrap}
.batches-filters__clear{border:1px solid #c9404e;background:#c9404e;color:#fff;font-weight:500}.batches-filters__clear:hover{background:#a8303d;color:#fff}
.batches-desktop-table{min-width:0;overflow:visible}.batches-table{width:100%;min-width:0;border-collapse:collapse;font-size:.92rem}.batches-table th{padding:.62rem .68rem;background:#e9eef7;color:#435268;font-weight:600;text-align:left;white-space:nowrap}.batches-table td{padding:.56rem .68rem;border-top:1px solid #e0e7ef;vertical-align:middle}.batches-table tbody tr:hover{background:rgba(230,238,250,.68)}.batch-table-identity{min-width:190px}.batch-table-identity strong,.batch-table-identity small{display:block}.batch-table-identity strong{color:#20334b;font-weight:600;overflow-wrap:anywhere}.batch-table-identity small{max-width:280px;margin-top:2px;color:#68778a;font-size:.8rem;line-height:1.25;overflow-wrap:anywhere}.batches-mobile-list{display:none}
.batch-status,.batch-current-mark{display:inline-flex;align-items:center;min-height:30px;padding:.3rem .62rem;border-radius:999px;font-size:.88rem;font-weight:500;white-space:nowrap}
.batch-status--current,.batch-current-mark{background:#d8f4e7;color:#12603f}.batch-status--active{background:#e0f3e7;color:#17633a}.batch-status--inactive{background:#e9edf1;color:#586370}.batch-status--expired{background:#ffe4d6;color:#963d17}.batch-status--future{background:#deebff;color:#285b9d}
.batch-row-actions,.batch-detail__actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:.32rem}.batch-row-actions form{margin:0}.batch-row-actions .btn{min-height:34px;padding:.38rem .58rem;border-radius:8px;font-size:.82rem;white-space:nowrap}.batch-action-open{border:1px solid #c7d3dc;background:#edf2f7;color:#263548}.batch-edit-button{border:1px solid #7359b5;background:#7359b5;color:#fff;font-weight:500}.batch-edit-button:hover{background:#604699;color:#fff}.batch-action-activate{border:1px solid #248452;background:#248452;color:#fff}.batch-action-activate:hover{background:#196d41}.batch-action-deactivate{border:1px solid #d78117;background:#e99427;color:#fff}.batch-action-deactivate:hover{background:#c97814}.batch-action-delete{border:1px solid #bd3343;background:#fff;color:#a72e3c}.batch-action-delete:hover{background:#bd3343;color:#fff}
.batches-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.7rem}.batches-pagination>:first-child{justify-self:start}.batches-pagination>:last-child{justify-self:end}.batches-pagination>span{font-size:.95rem;text-align:center}
.batches-empty{padding:2rem;border:1px dashed #9fb1c1;border-radius:12px;background:#fff;text-align:center}.batches-empty h2{margin:0 0 .4rem;font-weight:600}.batches-empty p{color:#5e6c7d}
.batch-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:0;border-radius:16px;background:#f8fafc;box-shadow:0 24px 70px rgba(24,38,62,.32)}.batch-dialog::backdrop{background:rgba(20,31,49,.54);backdrop-filter:blur(2px)}
.batch-dialog__form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 32px)}.batch-dialog__form>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;background:linear-gradient(110deg,#147a72,#1b9589);color:#fff}.batch-dialog__form>header span{font-size:.88rem;text-transform:uppercase}.batch-dialog__form>header h2{margin:.12rem 0 0;font-weight:600}.batch-dialog__close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(15,50,55,.22);color:#fff;font-size:1.5rem;cursor:pointer}.batch-dialog__body{overflow:auto;padding:1.2rem}.batch-dialog__body label{font-weight:400}.batch-dialog__form>footer{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.2rem;border-top:1px solid #d8e1e8;background:#eef3f6}.batch-dialog__form>footer .btn{min-height:44px;font-size:1rem}.batch-dialog-open{overflow:hidden}
.batch-detail__header{align-items:flex-start}.batch-detail__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:0}.batch-detail__stats div{padding:1rem;border:1px solid #d3dee5;border-left:4px solid #16877e;border-radius:10px;background:#fff}.batch-detail__stats dt{color:#64748b;font-size:.9rem;font-weight:400}.batch-detail__stats dd{margin:.25rem 0 0;font-size:1.2rem;font-weight:600}.batch-detail__actions{flex-wrap:wrap;padding:1rem;border:1px solid #d3dee5;border-radius:10px;background:#fff}.batch-detail__actions form{margin:0}.batch-detail__actions .btn{min-height:44px}.batch-detail__delete-note{margin:0;padding:1rem;border:1px solid #efb5aa;border-radius:10px;background:#fff1ed;color:#8f3827}
@media(max-width:1280px){.batches-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.batches-filters__actions{grid-column:span 3;justify-content:flex-end}}
@media(max-width:1099px){.batches-desktop-table{display:none}.batches-mobile-list.students-card-grid{display:grid;grid-template-columns:1fr;gap:6px}.batches-mobile-list .batch-compact-row{min-height:0;padding:0;overflow:hidden;border:1px solid #d4deea;border-radius:12px;background:rgba(255,255,255,.88);box-shadow:0 3px 10px rgba(41,58,84,.06)}.batch-compact-row__toggle{min-height:60px;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;padding:8px 8px 8px 13px}.batch-compact-row__toggle .student-compact-row__identity strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.batch-compact-row__toggle .batch-status{min-height:26px;padding:3px 8px;font-size:.76rem}.batch-compact-row__details>p{margin:0 0 9px;color:#526174;overflow-wrap:anywhere}.batch-compact-row__details dl{margin-bottom:10px}.batch-row-actions--mobile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.batch-row-actions--mobile form{display:block}.batch-row-actions--mobile .btn,.batch-row-actions--mobile form .btn{width:100%;min-width:0;min-height:44px;padding:7px 9px;font-size:.86rem}.batches-filter-toggle{display:flex;align-items:center;justify-content:center;min-height:44px;border:2px solid #147a72;border-radius:10px;background:#147a72;color:#fff;font-size:.95rem;font-weight:600}.batches-filters{display:none;grid-template-columns:repeat(2,minmax(0,1fr))}.batches-filters.is-open{display:grid}.batches-filters__actions{grid-column:1/-1;justify-content:flex-end}.batches-management__add{display:grid;place-items:center;width:46px;height:46px;min-width:46px;padding:0;border-radius:12px}.batch-add__full{display:none}.batch-add__compact{display:inline;font-size:1.6rem;line-height:1}.batch-detail__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@keyframes batch-accordion-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1099px) and (prefers-reduced-motion:no-preference){.batch-compact-row__details:not([hidden]){animation:batch-accordion-reveal .16s ease-out}}
@media(max-width:767px){.batches-management__header{padding:1rem}.batches-management__header>div{min-width:0}.batches-filters{grid-template-columns:1fr}.batches-filters__actions{grid-column:auto;display:grid;grid-template-columns:1fr}.batches-filters__actions .btn{width:100%;font-size:1rem}.batches-pagination{grid-template-columns:1fr 1fr}.batches-pagination>span{grid-column:1/-1;grid-row:1}.batches-pagination>:first-child{grid-column:1;grid-row:2}.batches-pagination>:last-child{grid-column:2;grid-row:2}.batch-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.batch-dialog__form{max-height:calc(100dvh - 24px)}.batch-dialog__body{grid-template-columns:1fr;padding:1rem}.batch-dialog__body .span-2{grid-column:auto}.batch-dialog__form>footer{display:grid;grid-template-columns:1fr 1fr;padding:.8rem}.batch-detail__header{align-items:stretch;flex-direction:column;padding:1rem}.batch-detail__stats{grid-template-columns:1fr 1fr}.batch-detail__actions{display:grid;grid-template-columns:1fr}.batch-detail__actions .btn{width:100%;font-size:1rem}.batch-detail__actions form .btn{width:100%}}
@media(max-width:390px){.batch-row-actions--mobile{grid-template-columns:1fr}.batch-compact-row__toggle{grid-template-columns:minmax(0,1fr) auto 40px;padding-left:9px}.batch-detail__stats{grid-template-columns:1fr}}
.batch-delete-dialog{width:min(560px,calc(100vw - 32px))}.batch-delete-dialog__body{display:grid;gap:1rem;overflow:auto;padding:1.2rem}.batch-delete-dialog__body dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:0}.batch-delete-dialog__body dl div{padding:.75rem;border-radius:9px;background:#edf2f7}.batch-delete-dialog__body dt{color:#64748b;font-size:.82rem}.batch-delete-dialog__body dd{margin:.2rem 0 0;font-weight:700}.batch-delete-dialog__warning,.batch-delete-dialog__blocked{margin:0;padding:.8rem;border-radius:9px}.batch-delete-dialog__warning{background:#fff0f1;color:#902735;font-weight:700}.batch-delete-dialog__blocked{background:#fff4d9;color:#75520b}.batch-delete-dialog__confirm{display:flex;min-height:44px;align-items:flex-start;gap:.65rem;font-weight:600}.batch-delete-dialog__confirm input{flex:0 0 20px;width:20px;min-height:20px;margin-top:.15rem}.batch-delete-dialog__form>footer .batch-action-delete{background:#bd3343;color:#fff}
@media(max-width:520px){.batch-delete-dialog__body dl{grid-template-columns:1fr}}

/* Scalable professor Category management. */
.app-main--categories{width:auto;max-width:none;margin:0;min-width:0;overflow-x:hidden;background:#f2f5f7}
.categories-management,.category-detail{display:grid;width:100%;min-width:0;gap:1rem;padding-bottom:1rem;color:#263548}
.categories-management__header,.category-detail__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.4rem;border-radius:14px;background:linear-gradient(110deg,#3974c8,#5b86d5);color:#fff;box-shadow:0 5px 14px rgba(57,116,200,.16)}
.categories-management__header h1,.category-detail__header h1{margin:.15rem 0;font-size:clamp(1.55rem,2.5vw,2rem);font-weight:600}.categories-management__header p,.category-detail__header p{margin:0;color:rgba(255,255,255,.92)}
.categories-management__eyebrow,.category-detail__header>div>span{font-size:.88rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase}.categories-management__count{display:inline-flex;margin-top:.55rem;padding:.25rem .6rem;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(24,55,105,.2);font-size:.9rem;font-weight:500}
.categories-management__add{flex:0 0 auto;min-height:46px;border:1px solid #fff;background:#fff;color:#285b9d;font-size:1rem;font-weight:600}.categories-filter-toggle{display:none}
.categories-filters{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(210px,1.2fr) repeat(3,minmax(125px,.72fr)) auto;align-items:end;gap:.65rem;padding:1rem;border:1px solid #cedae2;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(51,65,85,.06)}
.categories-filters label{display:grid;min-width:0;gap:.3rem;color:#536176;font-size:.9rem;font-weight:400}.categories-filters input,.categories-filters select{min-width:0;height:44px}.categories-filters__actions{display:flex;gap:.45rem}.categories-filters__actions .btn{min-height:44px;white-space:nowrap}.categories-filters__clear{border:1px solid #c9404e;background:#c9404e;color:#fff;font-weight:500}.categories-filters__clear:hover{background:#a8303d;color:#fff}
.categories-table-wrap{min-width:0;overflow:auto;border:1px solid #cedae2;border-radius:12px;background:#fff;box-shadow:0 4px 13px rgba(51,65,85,.07)}.categories-table{width:100%;min-width:860px;border-collapse:collapse;font-size:.96rem}.categories-table th{padding:.72rem .75rem;background:#e9f0f4;color:#405066;font-size:.92rem;font-weight:500;text-align:left;white-space:nowrap}.categories-table td{padding:.72rem .75rem;border-top:1px solid #e4eaee;vertical-align:middle;font-weight:400}.categories-table td:nth-child(1),.categories-table td:nth-child(3){min-width:210px}.categories-table td strong{display:block;color:#20334b;font-size:1rem;font-weight:600;overflow-wrap:anywhere}.categories-table td small{display:block;max-width:280px;margin-top:.2rem;color:#68778a;font-size:.88rem;font-weight:400;overflow-wrap:anywhere}.category-reference{display:inline-flex;padding:.3rem .55rem;border-radius:7px;background:#e5effc;color:#285b9d;font-weight:600}
.category-status{display:inline-flex;align-items:center;min-height:30px;padding:.3rem .62rem;border-radius:999px;font-size:.88rem;font-weight:500;white-space:nowrap}.category-status--active{background:#d8f4e7;color:#12603f}.category-status--inactive{background:#e9edf1;color:#586370}
.category-row-actions,.category-card-actions,.category-detail__actions{display:flex;align-items:center;gap:.45rem}.category-row-actions .btn,.category-card-actions .btn{min-height:44px;white-space:nowrap}.category-edit-button{border:1px solid #7359b5;background:#7359b5;color:#fff;font-weight:500}.category-edit-button:hover{background:#604699;color:#fff}
.category-more{position:relative}.category-more summary{display:flex;align-items:center;cursor:pointer;list-style:none}.category-more summary::-webkit-details-marker{display:none}.category-more[open]>div{position:absolute;z-index:12;top:calc(100% + 5px);right:0;display:grid;width:220px;padding:.4rem;border:1px solid #cbd5df;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(31,45,64,.2)}.category-more form{margin:0}.category-more button{width:100%;padding:.65rem;border:0;border-radius:7px;background:transparent;color:#334155;text-align:left;cursor:pointer}.category-more button:hover{background:#edf4f6}.category-more button.is-danger{color:#a72e3c}
.categories-card-grid{display:none}.categories-pagination{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:.7rem}.categories-pagination>span{font-size:.95rem}.categories-empty{padding:2rem;border:1px dashed #9fb1c1;border-radius:12px;background:#fff;text-align:center}.categories-empty h2{margin:0 0 .4rem;font-weight:600}.categories-empty p{color:#5e6c7d}
.category-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border:0;border-radius:16px;background:#f8fafc;box-shadow:0 24px 70px rgba(24,38,62,.32)}.category-dialog::backdrop{background:rgba(20,31,49,.54);backdrop-filter:blur(2px)}.category-dialog__form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 32px)}.category-dialog__form>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;background:linear-gradient(110deg,#3974c8,#5b86d5);color:#fff}.category-dialog__form>header span{font-size:.88rem;text-transform:uppercase}.category-dialog__form>header h2{margin:.12rem 0 0;font-weight:600}.category-dialog__close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.6);border-radius:50%;background:rgba(15,50,80,.22);color:#fff;font-size:1.5rem;cursor:pointer}.category-dialog__body{overflow:auto;padding:1.2rem}.category-dialog__body label{font-weight:400}.category-dialog__form>footer{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.2rem;border-top:1px solid #d8e1e8;background:#eef3f6}.category-dialog__form>footer .btn{min-height:44px;font-size:1rem}.category-dialog-open{overflow:hidden}
.category-detail__header{align-items:flex-start}.category-detail__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:0}.category-detail__stats div{min-width:0;padding:1rem;border:1px solid #d3dee5;border-left:4px solid #3974c8;border-radius:10px;background:#fff}.category-detail__stats dt{color:#64748b;font-size:.9rem;font-weight:400}.category-detail__stats dd{margin:.25rem 0 0;font-size:1.08rem;font-weight:600;overflow-wrap:anywhere}.category-detail__actions{flex-wrap:wrap;padding:1rem;border:1px solid #d3dee5;border-radius:10px;background:#fff}.category-detail__actions form{margin:0}.category-detail__actions .btn{min-height:44px}.category-detail__delete-note{margin:0;padding:1rem;border:1px solid #efb5aa;border-radius:10px;background:#fff1ed;color:#8f3827}
@media(max-width:1280px){.categories-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.categories-filters__actions{grid-column:span 3;justify-content:flex-end}.categories-table{min-width:820px}}
@media(max-width:1024px){.categories-table-wrap{display:none}.categories-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.category-manage-card{min-width:0;padding:1rem;border:1px solid #cedae2;border-left:4px solid #3974c8;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(51,65,85,.06)}.category-manage-card__chapter{margin:-1rem -1rem .85rem;padding:.7rem 1rem;border-bottom:1px solid #dce5ec;background:#eef4fb;color:#285b9d;font-size:.92rem;font-weight:500}.category-manage-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem}.category-manage-card header span:first-child{color:#64748b;font-size:.9rem}.category-manage-card h2{margin:.12rem 0 0;font-size:1.08rem;font-weight:600;overflow-wrap:anywhere}.category-manage-card>p{font-size:.95rem}.category-manage-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.45rem .7rem}.category-manage-card dt{color:#64748b;font-size:.9rem}.category-manage-card dd{margin:0;overflow-wrap:anywhere}.category-card-actions>.btn{flex:1}.category-detail__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.categories-management__header{align-items:stretch;flex-direction:column;padding:1rem}.categories-management__add{width:100%}.categories-filter-toggle{display:flex;align-items:center;justify-content:center;min-height:46px;border:2px solid #3974c8;border-radius:10px;background:#3974c8;color:#fff;font-size:1rem;font-weight:500}.categories-filters{display:none;grid-template-columns:1fr}.categories-filters.is-open{display:grid}.categories-filters__actions{grid-column:auto;display:grid;grid-template-columns:1fr}.categories-filters__actions .btn{width:100%;font-size:1rem}.categories-card-grid{grid-template-columns:1fr}.category-manage-card{width:100%;padding:15px}.category-manage-card h2{font-size:1.12rem}.category-manage-card>p{font-size:.95rem;line-height:1.45}.category-manage-card dt{font-size:.9rem}.category-manage-card dd{font-size:1rem}.category-card-actions{display:grid;grid-template-columns:1fr 1fr auto}.category-card-actions .btn{min-height:44px;font-size:1rem}.category-more[open]>div{right:0;max-width:calc(100vw - 32px)}.categories-pagination{grid-template-columns:1fr 1fr}.categories-pagination>span{grid-column:1/-1}.category-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.category-dialog__form{max-height:calc(100dvh - 24px)}.category-dialog__body{grid-template-columns:1fr;padding:1rem}.category-dialog__body .span-2{grid-column:auto}.category-dialog__form>footer{display:grid;grid-template-columns:1fr 1fr;padding:.8rem}.category-detail__header{align-items:stretch;flex-direction:column;padding:1rem}.category-detail__stats{grid-template-columns:1fr 1fr}.category-detail__actions{display:grid;grid-template-columns:1fr}.category-detail__actions .btn,.category-detail__actions form .btn{width:100%;font-size:1rem}}
@media(max-width:390px){.category-card-actions,.category-detail__stats{grid-template-columns:1fr}}

/* Chapter-scoped, repeated category entry workspace. */
.category-workspace__chapter{display:flex;align-items:end;padding:1rem 1.2rem;border:1px solid #cbd9e5;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(51,65,85,.05)}
.category-workspace__chapter label{display:grid;width:min(100%,580px);gap:.4rem;color:#34465a;font-weight:600}
.category-workspace__chapter select{min-height:46px;font-size:1rem}
.category-workspace__columns{display:grid;grid-template-columns:minmax(300px,2fr) minmax(0,3fr);gap:1rem;align-items:start;min-width:0}
.category-inline-panel,.category-workspace__list{min-width:0;border:1px solid #cbd9e5;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(51,65,85,.06)}
.category-inline-panel{position:sticky;top:80px;padding:1.2rem}
.category-inline-panel__eyebrow,.category-workspace__list>header span{color:#3974c8;font-size:.82rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.category-inline-panel h2,.category-workspace__list h2{margin:.2rem 0 .45rem;font-size:1.3rem}
.category-inline-panel>p{margin:.2rem 0 1rem;color:#64748b}.category-inline-panel>p strong{display:block;margin-top:.2rem;color:#263548}
.category-inline-form{display:grid;gap:.85rem}.category-inline-form label{display:grid;gap:.35rem;font-weight:600}.category-inline-form label small{line-height:1.35}
.category-inline-form textarea{min-height:76px}.category-inline-form .choice{min-height:44px;margin:0}.category-inline-form>.btn{min-height:46px;font-size:1rem}
.category-inline-error{margin:0 0 .85rem;padding:.75rem .85rem;border:1px solid #ef9a9a;border-radius:10px;background:#fff1f1;color:#9f2222;font-weight:600}
.category-workspace__list{overflow:hidden}.category-workspace__list>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid #dce5ec;background:#f5f8fb}.category-workspace__list>header strong{display:grid;place-items:center;min-width:38px;height:38px;border-radius:999px;background:#3974c8;color:#fff}
.category-workspace__items{display:grid}.category-workspace-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.9rem;padding:1rem 1.2rem;border-bottom:1px solid #e3eaf0}.category-workspace-item:last-child{border-bottom:0}
.category-workspace-item__code{min-width:54px;padding:.35rem .5rem;border-radius:8px;background:#eaf2fc;color:#285b9d;text-align:center;font-weight:700}
.category-workspace-item__content{min-width:0}.category-workspace-item__content>div{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.category-workspace-item h3{margin:0;font-size:1.05rem;overflow-wrap:anywhere}.category-workspace-item small{display:block;margin-top:.2rem;color:#64748b;overflow-wrap:anywhere}.category-workspace-item p{margin:.45rem 0 0;color:#526274;line-height:1.45}
.category-workspace-item__actions{display:flex;gap:.45rem;align-items:center}.category-workspace-item__actions form{margin:0}.category-workspace-item__actions .btn{min-height:44px}
.category-workspace .categories-empty{padding:2rem 1.2rem;text-align:center}.category-workspace .categories-empty h2{font-size:1.1rem}.category-workspace .categories-empty p{color:#64748b}
@media(max-width:900px){.category-workspace__columns{grid-template-columns:1fr}.category-inline-panel{position:static}.category-workspace__list{order:2}}
@media(max-width:560px){.category-workspace__chapter,.category-inline-panel{padding:1rem}.category-workspace-item{grid-template-columns:auto minmax(0,1fr);padding:1rem}.category-workspace-item__actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.category-workspace-item__actions .btn,.category-workspace-item__actions form,.category-workspace-item__actions form .btn{width:100%}}

/* Shared professor shell: desktop collapse and mobile drawer. */
.professor-shell{--professor-sidebar-expanded:250px;--professor-sidebar-collapsed:72px;min-width:0;padding-left:var(--professor-sidebar-expanded);transition:padding-left .22s ease}
.professor-sidebar{position:fixed;z-index:40;inset:0 auto 0 0;display:flex;width:var(--professor-sidebar-expanded);min-width:0;flex-direction:column;overflow:visible;background:#15233b;color:#fff;box-shadow:3px 0 14px rgba(20,34,57,.14);transition:width .22s ease,transform .22s ease}
.professor-sidebar-brand{display:grid;grid-template-columns:40px minmax(0,1fr) 44px;align-items:center;gap:.55rem;min-height:70px;padding:.7rem .75rem;border-bottom:1px solid rgba(255,255,255,.14)}
.professor-sidebar-brand__icon,.professor-sidebar-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#2d76c9;color:#fff;font-size:1.1rem;font-weight:700}
.professor-sidebar-brand__text,.professor-sidebar-user__text{display:grid;min-width:0;line-height:1.2}.professor-sidebar-brand__text strong,.professor-sidebar-user__text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.professor-sidebar-brand__text small,.professor-sidebar-user__text small{margin-top:.18rem;color:#b9c7d9;font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.professor-sidebar-toggle,.professor-sidebar-close,.professor-drawer-open{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid rgba(255,255,255,.32);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font:inherit;font-weight:600}.professor-sidebar-toggle:hover,.professor-sidebar-toggle:focus-visible,.professor-sidebar-close:hover,.professor-sidebar-close:focus-visible{background:rgba(255,255,255,.18);outline:2px solid #8fc5ff;outline-offset:2px}.professor-sidebar-close{display:none}
.professor-sidebar-nav{min-height:0;flex:1;overflow-y:auto;overflow-x:visible;padding:.35rem .55rem}.professor-sidebar-group{position:relative;margin:0;padding:.55rem 0;border-top:1px solid rgba(255,255,255,.13)}.professor-sidebar-group:first-child{border-top:0}.professor-sidebar-group h2{margin:0;padding:.25rem .65rem .42rem;color:#91a7c2;font-size:.68rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.professor-sidebar-link,.professor-sidebar-submenu>summary,.professor-sidebar-logout{position:relative;display:flex;align-items:center;width:100%;min-height:44px;gap:.68rem;padding:.55rem .7rem;border:0;border-radius:9px;background:transparent;color:#e8eef7;text-decoration:none;cursor:pointer;font:inherit;font-weight:500;text-align:left;list-style:none}.professor-sidebar-submenu>summary::-webkit-details-marker{display:none}.professor-sidebar-link:hover,.professor-sidebar-link:focus-visible,.professor-sidebar-submenu>summary:hover,.professor-sidebar-submenu>summary:focus-visible{background:rgba(255,255,255,.1);color:#fff;outline:2px solid #8fc5ff;outline-offset:-2px}.professor-sidebar-link.is-active,.professor-sidebar-submenu.is-active>summary{background:#286fb9;color:#fff;box-shadow:inset 3px 0 #9bd2ff}.professor-sidebar-icon{display:grid;width:30px;min-width:30px;place-items:center;font-size:1.08rem}.professor-sidebar-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.professor-sidebar-chevron{margin-left:auto;transition:transform .18s ease}.professor-sidebar-submenu[open]>summary .professor-sidebar-chevron{transform:rotate(180deg)}
.professor-sidebar-submenu__panel{display:grid;gap:.14rem;padding:.2rem 0 .2rem 2.7rem}.professor-sidebar-submenu__panel a{min-height:40px;padding:.55rem .65rem;border-radius:8px;color:#c8d6e8;text-decoration:none}.professor-sidebar-submenu__panel a:hover,.professor-sidebar-submenu__panel a:focus-visible{background:rgba(255,255,255,.1);color:#fff;outline:2px solid #8fc5ff}.professor-sidebar-submenu__panel a.is-active{background:rgba(81,161,235,.28);color:#fff;font-weight:600}
.professor-sidebar-submenu:not([open])>.professor-sidebar-submenu__panel{display:none}
.professor-sidebar-actions{flex:0 0 auto;padding:.65rem;border-top:1px solid rgba(255,255,255,.2);background:#111d31}.professor-sidebar-user{position:relative;display:flex;align-items:center;gap:.65rem;min-height:48px;padding:.28rem .35rem .65rem}.professor-sidebar-actions form{margin:0}.professor-sidebar-logout{margin-top:.25rem;color:#ffd7d2}.professor-sidebar-logout:hover,.professor-sidebar-logout:focus-visible{background:rgba(205,75,67,.2);color:#fff;outline:2px solid #ff9d94;outline-offset:-2px}
.professor-topbar{left:0;min-width:0}.professor-drawer-open{display:none;background:#233c61;color:#fff}.professor-main{min-width:0;transition:max-width .22s ease}
.professor-drawer-overlay{position:fixed;z-index:35;inset:0;display:none;border:0;background:rgba(10,18,30,.55)}
.professor-shell--collapsed{padding-left:var(--professor-sidebar-collapsed)}.professor-shell--collapsed .professor-sidebar{width:var(--professor-sidebar-collapsed)}.professor-shell--collapsed .professor-sidebar-brand{grid-template-columns:44px;padding:.7rem .85rem}.professor-shell--collapsed .professor-sidebar-brand__icon{display:none}.professor-shell--collapsed .professor-sidebar-brand__text,.professor-shell--collapsed .professor-sidebar-label,.professor-shell--collapsed .professor-sidebar-chevron,.professor-shell--collapsed .professor-sidebar-group h2,.professor-shell--collapsed .professor-sidebar-user__text{display:none}.professor-shell--collapsed .professor-sidebar-group{margin:.2rem .35rem;padding:.42rem 0}.professor-shell--collapsed .professor-sidebar-link,.professor-shell--collapsed .professor-sidebar-submenu>summary,.professor-shell--collapsed .professor-sidebar-logout{justify-content:center;padding:.55rem}.professor-shell--collapsed .professor-sidebar-icon{width:32px;min-width:32px}.professor-shell--collapsed .professor-sidebar-user{justify-content:center;padding:.3rem}.professor-shell--collapsed .professor-sidebar-avatar{width:38px;height:38px}.professor-shell--collapsed .professor-sidebar-submenu{position:relative}.professor-shell--collapsed .professor-sidebar-submenu__panel{position:absolute;z-index:60;top:0;left:calc(100% + 10px);width:210px;padding:.45rem;border:1px solid #36506f;border-radius:10px;background:#15233b;box-shadow:0 14px 28px rgba(0,0,0,.28)}.professor-shell--collapsed .professor-sidebar-submenu__panel a{padding:.65rem .75rem}
.professor-shell--collapsed .professor-sidebar-nav{overflow:visible}
.professor-shell--collapsed [data-tooltip]{position:relative}.professor-shell--collapsed [data-tooltip]:not(.professor-sidebar-submenu):hover::after,.professor-shell--collapsed [data-tooltip]:not(.professor-sidebar-submenu):focus-visible::after{content:attr(data-tooltip);position:absolute;z-index:80;left:calc(100% + 12px);top:50%;width:max-content;max-width:min(240px,calc(100vw - 100px));padding:.42rem .58rem;border-radius:6px;background:#0d1728;color:#fff;font-size:.82rem;font-weight:500;line-height:1.2;pointer-events:none;transform:translateY(-50%);box-shadow:0 5px 15px rgba(0,0,0,.25)}
@media(max-width:1099px){
 .professor-shell,.professor-shell--collapsed{padding-left:0}.professor-sidebar,.professor-shell--collapsed .professor-sidebar{width:min(86vw,320px);transform:translateX(-105%);transition:transform .22s ease}.professor-shell--drawer-open .professor-sidebar{transform:translateX(0)}.professor-sidebar-brand,.professor-shell--collapsed .professor-sidebar-brand{grid-template-columns:40px minmax(0,1fr) 44px;padding:.7rem .75rem}.professor-sidebar-brand__icon,.professor-shell--collapsed .professor-sidebar-brand__text,.professor-shell--collapsed .professor-sidebar-label,.professor-shell--collapsed .professor-sidebar-chevron,.professor-shell--collapsed .professor-sidebar-group h2,.professor-shell--collapsed .professor-sidebar-user__text{display:grid}.professor-sidebar-toggle{display:none}.professor-sidebar-close{display:inline-flex}.professor-shell--collapsed .professor-sidebar-group{margin:0;padding:.55rem 0}.professor-shell--collapsed .professor-sidebar-link,.professor-shell--collapsed .professor-sidebar-submenu>summary,.professor-shell--collapsed .professor-sidebar-logout{justify-content:flex-start;padding:.55rem .7rem}.professor-shell--collapsed .professor-sidebar-user{justify-content:flex-start;padding:.28rem .35rem .65rem}.professor-shell--collapsed .professor-sidebar-submenu__panel{position:static;width:auto;padding:.2rem 0 .2rem 2.7rem;border:0;background:transparent;box-shadow:none}.professor-shell--collapsed [data-tooltip]::after{display:none!important}.professor-topbar{padding-left:1rem}.professor-drawer-open{display:inline-flex;gap:.45rem}.professor-shell--drawer-open .professor-drawer-overlay{display:block}.professor-drawer-lock{overflow:hidden}.professor-main{width:100%;max-width:none}
}
@media(prefers-reduced-motion:reduce){.professor-shell,.professor-sidebar,.professor-main{transition:none}}

/* Shared offline question explanation panel. */
.question-explanation-panel{width:100%;margin:.9rem 0 0;padding:1rem;border:1px solid #36a79c;border-radius:14px;background:#e9f5f4;color:#263b50}.question-explanation-panel[hidden]{display:none}.question-explanation-panel>h2{margin:0 0 .75rem;font-size:1.12rem;font-weight:600}.question-explanation-answers{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.question-explanation-answer{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-width:0;padding:.65rem .75rem;border:1px solid;border-radius:10px}.question-explanation-answer span{font-weight:500}.question-explanation-answer strong{font-size:1rem}.question-explanation-answer--wrong{border-color:#df615d;background:#fde8e7;color:#8e2f2b}.question-explanation-answer--correct{border-color:#26a36b;background:#e3f6ec;color:#146c47}.question-explanation-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:.8rem 0}.question-explanation-tabs button{min-height:44px;padding:.5rem .75rem;border:1px solid #5faea8;border-radius:9px;background:#fff;color:#245a57;font-weight:500;cursor:pointer}.question-explanation-tabs button.is-active{background:#237f77;color:#fff}.question-explanation-tabs button:focus-visible{outline:3px solid #ffc857;outline-offset:2px}.question-explanation-content{font-size:1.03rem;line-height:1.5}.question-explanation-content[hidden]{display:none}.question-explanation-content section{padding:.65rem 0;border-top:1px solid rgba(54,167,156,.3)}.question-explanation-content h3{margin:0 0 .3rem;font-size:1.08rem;font-weight:600}.question-explanation-content p{margin:0;overflow-wrap:anywhere}.question-explanation-content aside{margin-top:.6rem;padding:.7rem .8rem;border:1px solid #e4a23a;border-radius:10px;background:#fff3d9}.question-explanation-content aside h3{color:#815814}
@media(max-width:600px){.question-explanation-panel{padding:.8rem}.question-explanation-answers{grid-template-columns:1fr}.question-explanation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.question-explanation-tabs button{min-width:0;padding:.45rem .25rem;font-size:.9rem}.question-explanation-content{font-size:1rem;line-height:1.5}}
.question-explanation-draft-notice{display:inline-flex;margin:0 0 .65rem!important;padding:.35rem .62rem;border:1px solid #c68521;border-radius:999px;background:#fff3d9;color:#754c0d;font-size:.9rem;font-weight:700;line-height:1.3}

/* Professor question-by-question explanation review. */
.explanation-review-list,.explanation-review-screen{display:grid;gap:1rem;min-width:0}.explanation-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.2rem;border-radius:16px;background:linear-gradient(115deg,#244f85,#3879bd);color:#fff}.explanation-review-heading h1{margin:.2rem 0;font-size:clamp(1.55rem,2.4vw,2.15rem)}.explanation-review-heading p{margin:0;color:#e7f1ff}.explanation-review-progress{display:grid;min-width:245px;gap:.28rem;padding:.85rem 1rem;border:1px solid rgba(255,255,255,.3);border-radius:12px;background:rgba(10,35,68,.24)}.explanation-review-progress strong{font-size:1.08rem}.explanation-review-progress small{color:#d8e9ff}.explanation-range-nav{display:flex;gap:.45rem;overflow-x:auto;padding:.15rem}.explanation-range-nav a{flex:0 0 auto;min-height:44px;padding:.65rem .8rem;border:1px solid #b9c9d8;border-radius:9px;background:#fff;color:#264666;text-decoration:none;font-weight:600}.explanation-range-nav a.is-active{border-color:#286fb9;background:#286fb9;color:#fff}.explanation-review-filters{display:flex;align-items:end;gap:.65rem;padding:.9rem;border:1px solid #d2dde7;border-radius:12px;background:#fff}.explanation-review-filters label{display:grid;gap:.3rem;min-width:230px}.explanation-review-filters select{min-height:44px}.explanation-review-cards{display:grid;gap:.7rem}.explanation-review-card{display:grid;grid-template-columns:minmax(0,1fr) 110px 160px;align-items:center;gap:1rem;min-width:0;padding:1rem;border:1px solid #d2dde7;border-left:4px solid #c58a2e;border-radius:12px;background:#fff}.explanation-review-card.is-priority{border-color:#d75b57;border-left-width:5px;background:#fff9f8}.explanation-review-card__question{min-width:0}.explanation-review-card__question p{margin:.45rem 0;font-size:1.04rem;line-height:1.45;overflow-wrap:anywhere}.explanation-review-card__question small{color:#657489}.explanation-review-card__meta{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.explanation-review-card__meta span,.explanation-review-card__meta strong{padding:.25rem .48rem;border-radius:6px;background:#edf3f8;font-size:.86rem}.explanation-review-card>img{display:block;width:110px;height:82px;object-fit:contain;border:1px solid #d2dde7;border-radius:8px;background:#fff}.explanation-review-card__action{display:grid;justify-items:stretch;gap:.5rem;text-align:center}.explanation-priority{display:block;margin-top:.5rem;color:#a6302d}.explanation-review-screen__nav{display:flex;align-items:center;justify-content:space-between;gap:1rem}.explanation-review-screen__nav form,.explanation-review-screen__nav label{display:flex;align-items:center;gap:.5rem}.explanation-review-screen__nav select{min-height:44px}.explanation-priority-banner{display:grid;gap:.2rem;padding:.85rem 1rem;border:1px solid #d75b57;border-radius:11px;background:#fff0ef;color:#8c2926}.explanation-review-form{display:grid;gap:1rem}.explanation-review-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(520px,1.35fr);align-items:start;gap:1rem}.explanation-review-source{position:sticky;top:76px;min-width:0;padding:1.1rem;border:1px solid #cbd9e5;border-radius:14px;background:#fff}.explanation-review-source h1{margin:.65rem 0;font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.45;overflow-wrap:anywhere}.explanation-review-source>img{display:block;width:min(100%,520px);max-height:390px;margin:.85rem auto;object-fit:contain}.explanation-review-source__answer{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.7rem .8rem;border-radius:9px;background:#e3f6ec;color:#146c47}.explanation-review-source__answer strong{padding:.28rem .55rem;border-radius:6px;background:#258b5c;color:#fff}.explanation-review-source dl{display:grid;gap:.45rem;margin:1rem 0 0}.explanation-review-source dl div{display:grid;grid-template-columns:90px 1fr;gap:.5rem}.explanation-review-source dt{color:#657489}.explanation-review-source dd{margin:0}.explanation-review-languages{display:grid;gap:.85rem;min-width:0}.explanation-review-languages fieldset,.explanation-review-checklist{min-width:0;margin:0;padding:1rem;border:1px solid #cbd9e5;border-radius:14px;background:#fff}.explanation-review-languages legend,.explanation-review-checklist legend{padding:0 .35rem;font-size:1.05rem;font-weight:700}.explanation-review-languages label{display:grid;gap:.32rem;margin:.65rem 0;font-weight:600}.explanation-review-languages textarea{width:100%;min-height:100px;resize:vertical;line-height:1.45}.explanation-review-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .9rem}.explanation-review-checklist label{display:flex;align-items:flex-start;gap:.5rem;min-width:0;padding:.55rem;border-radius:8px;background:#f4f7fa}.explanation-review-checklist input{flex:0 0 auto;width:20px;height:20px;margin-top:.1rem}.explanation-review-checklist p{grid-column:1/-1;margin:.3rem 0 0;color:#657489}.explanation-review-actions{position:sticky;z-index:5;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.8rem;border:1px solid #cbd9e5;border-radius:12px;background:rgba(255,255,255,.97);box-shadow:0 -5px 18px rgba(30,50,75,.1)}.explanation-review-actions>div{display:flex;gap:.5rem;flex-wrap:wrap}.explanation-review-actions .btn{min-height:44px}.explanation-review-actions [disabled]{opacity:.48;cursor:not-allowed}
@media(max-width:1024px){.explanation-review-layout{grid-template-columns:minmax(280px,.75fr) minmax(430px,1.25fr)}.explanation-review-card{grid-template-columns:minmax(0,1fr) 90px 150px}.explanation-review-card>img{width:90px}}
@media(max-width:820px){.explanation-review-heading{flex-direction:column}.explanation-review-progress{width:100%;min-width:0}.explanation-review-layout{grid-template-columns:1fr}.explanation-review-source{position:static}.explanation-review-card{grid-template-columns:minmax(0,1fr) 130px}.explanation-review-card>img{width:130px;grid-column:2;grid-row:1}.explanation-review-card__action{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center}.explanation-review-checklist{grid-template-columns:1fr}}
@media(max-width:600px){.explanation-review-heading{padding:1rem}.explanation-review-filters{align-items:stretch;flex-direction:column}.explanation-review-filters label{min-width:0}.explanation-review-filters .btn{width:100%;min-height:44px}.explanation-review-card{grid-template-columns:1fr;padding:.85rem}.explanation-review-card>img{grid-column:1;grid-row:auto;width:min(100%,280px);height:auto;max-height:220px;margin:auto}.explanation-review-card__action{grid-column:1;grid-template-columns:1fr}.explanation-review-screen__nav{align-items:stretch;flex-direction:column}.explanation-review-screen__nav form,.explanation-review-screen__nav label{display:grid}.explanation-review-source{padding:.9rem}.explanation-review-languages fieldset,.explanation-review-checklist{padding:.8rem}.explanation-review-actions{align-items:stretch;flex-direction:column}.explanation-review-actions>div{display:grid;grid-template-columns:1fr 1fr}.explanation-review-actions>div:last-child{grid-template-columns:1fr}.explanation-review-actions .btn{width:100%}}
.explanation-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:.5rem}.explanation-summary-grid span{display:grid;gap:.12rem;min-width:0;padding:.65rem;border:1px solid rgba(255,255,255,.28);border-radius:9px;background:rgba(9,35,68,.2);font-size:.78rem}.explanation-summary-grid strong{font-size:1.25rem}.explanation-management-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end;gap:.65rem;padding:1rem;border:1px solid #ccd9e4;border-radius:12px;background:#fff}.explanation-management-filters label{display:grid;min-width:0;gap:.3rem;color:#536176;font-size:.88rem}.explanation-management-filters input,.explanation-management-filters select{min-width:0;min-height:44px}.explanation-filter-search{grid-column:span 2}.explanation-management-filters .btn{min-height:44px}.explanation-list-context{display:flex;justify-content:space-between;gap:1rem;padding:.7rem .9rem;border-radius:9px;background:#eef4f9}.explanation-management-table-wrap{overflow:auto;border:1px solid #ccd9e4;border-radius:12px;background:#fff}.explanation-management-table{width:100%;min-width:1250px;border-collapse:collapse}.explanation-management-table th{padding:.65rem;background:#e9f0f6;color:#405066;font-size:.85rem;text-align:left;white-space:nowrap}.explanation-management-table td{padding:.65rem;border-top:1px solid #e0e7ee;vertical-align:top;font-size:.9rem}.explanation-management-table td:nth-child(4){min-width:320px}.explanation-management-table td p{margin:0;line-height:1.42}.explanation-language-status{display:inline-flex;padding:.28rem .45rem;border-radius:999px;background:#fff1d6;color:#7b5212;font-size:.78rem}.explanation-language-status--reviewed{background:#dff5e9;color:#146c47}.explanation-language-status--missing{background:#edf0f3;color:#5b6571}.explanation-row-actions{display:grid;gap:.35rem;min-width:145px}.explanation-row-actions .btn{min-height:40px;white-space:normal}.explanation-management-cards{display:none}.explanation-pagination{display:flex;align-items:center;justify-content:center;gap:.7rem}.explanation-pagination .btn{min-height:44px}
@media(max-width:1180px){.explanation-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.explanation-management-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.explanation-filter-search{grid-column:span 2}}
@media(max-width:900px){.explanation-management-table-wrap{display:none}.explanation-management-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.explanation-management-cards article{display:grid;align-content:start;min-width:0;padding:1rem;border:1px solid #ccd9e4;border-left:4px solid #c58a2e;border-radius:11px;background:#fff}.explanation-management-cards header,.explanation-card-statuses{display:flex;flex-wrap:wrap;gap:.4rem}.explanation-management-cards header span,.explanation-card-statuses span{padding:.25rem .42rem;border-radius:6px;background:#edf3f8;font-size:.8rem}.explanation-management-cards small{margin-top:.5rem;color:#657489}.explanation-management-cards p{line-height:1.45;overflow-wrap:anywhere}.explanation-management-cards footer{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-top:.7rem}.explanation-management-cards footer .btn{min-height:44px;white-space:normal}.explanation-management-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.explanation-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.explanation-management-filters{grid-template-columns:1fr}.explanation-filter-search{grid-column:auto}.explanation-management-filters .btn{width:100%}.explanation-list-context{align-items:flex-start;flex-direction:column}.explanation-management-cards{grid-template-columns:1fr}.explanation-management-cards footer{grid-template-columns:1fr}.explanation-pagination{display:grid;grid-template-columns:1fr auto 1fr}.explanation-pagination .btn{width:100%}}

/* Shared semantic VERO/FALSO controls: answer meaning stays visible in every state. */
:root{--answer-true:#137a4a;--answer-true-hover:#0f623b;--answer-true-active:#0b4e2f;--answer-false:#b42332;--answer-false-hover:#921c29;--answer-false-active:#741621;--answer-text:#fff;--answer-focus:#ffc857}
.answer{color:var(--answer-text);border-color:transparent;transition:background-color .15s,border-color .15s,box-shadow .15s,transform .08s}
.answer.true,.answer[data-answer="1"],.answer[name="answer"][value="1"]{background:var(--answer-true);border-color:var(--answer-true);color:var(--answer-text)}
.answer.false,.answer[data-answer="0"],.answer[name="answer"][value="0"]{background:var(--answer-false);border-color:var(--answer-false);color:var(--answer-text)}
.answer.true:hover,.answer.true:focus-visible,.answer[data-answer="1"]:hover,.answer[data-answer="1"]:focus-visible,.answer[name="answer"][value="1"]:hover,.answer[name="answer"][value="1"]:focus-visible{background:var(--answer-true-hover);border-color:var(--answer-true-hover);color:var(--answer-text)}
.answer.false:hover,.answer.false:focus-visible,.answer[data-answer="0"]:hover,.answer[data-answer="0"]:focus-visible,.answer[name="answer"][value="0"]:hover,.answer[name="answer"][value="0"]:focus-visible{background:var(--answer-false-hover);border-color:var(--answer-false-hover);color:var(--answer-text)}
.answer.true:active,.answer.true.selected,.answer[data-answer="1"]:active,.answer[data-answer="1"].selected,.answer[name="answer"][value="1"]:active,.answer[name="answer"][value="1"].selected{background:var(--answer-true-active);border-color:var(--answer-true-active);color:var(--answer-text)}
.answer.false:active,.answer.false.selected,.answer[data-answer="0"]:active,.answer[data-answer="0"].selected,.answer[name="answer"][value="0"]:active,.answer[name="answer"][value="0"].selected{background:var(--answer-false-active);border-color:var(--answer-false-active);color:var(--answer-text)}
.answer:focus-visible{outline:3px solid var(--answer-focus);outline-offset:3px}
.answer.selected{box-shadow:inset 0 0 0 2px rgba(255,255,255,.8),0 0 0 2px rgba(24,50,75,.18)}
.answer:disabled,.answer[aria-disabled="true"]{cursor:not-allowed;opacity:.7;-webkit-text-fill-color:var(--answer-text)}
.answer-choice--true{background:var(--answer-true)!important;border-color:var(--answer-true)!important;color:#fff!important}
.answer-choice--false{background:var(--answer-false)!important;border-color:var(--answer-false)!important;color:#fff!important}
.answer-choice--true.is-selected{background:var(--answer-true-active)!important;border-color:var(--answer-true-active)!important}
.answer-choice--false.is-selected{background:var(--answer-false-active)!important;border-color:var(--answer-false-active)!important}
.answer-choice.is-selected{box-shadow:inset 0 0 0 3px rgba(255,255,255,.9),0 0 0 2px rgba(24,50,75,.16)}
.answer-choice.is-locked{opacity:.82}
.answer-feedback{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:14px 0 4px;padding:10px 18px;border-radius:12px;font-size:1.1rem;font-weight:700}
.answer-feedback.is-correct{background:#dff5e9;color:#12623f;border:2px solid #63b78d}
.answer-feedback.is-incorrect{background:#fde6e8;color:#8f1825;border:2px solid #dc7380}
.answer-feedback[hidden]{display:none}
.facsimile-result{display:grid;gap:1rem;max-width:980px;margin:0 auto}.facsimile-result__tabs{display:flex;gap:.5rem;overflow:auto}.facsimile-result__tabs button{min-height:44px;padding:.65rem 1rem;border:1px solid #9db2c5;border-radius:999px;background:#fff;color:#27445f;font-weight:600;white-space:nowrap}.facsimile-result__tabs button.is-active{background:var(--blue);border-color:var(--blue);color:#fff}.facsimile-result__summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.facsimile-result__summary div{display:grid;gap:.15rem;padding:1rem;border:1px solid var(--line);border-radius:12px;background:#fff}.facsimile-result__summary strong{font-size:1.55rem}.facsimile-result__list{display:grid;gap:.7rem}.facsimile-result__question summary{display:flex;justify-content:space-between;gap:1rem;cursor:pointer;font-weight:600}.facsimile-result__question.is-incorrect{border-left:5px solid var(--red)}.facsimile-result__question.is-correct{border-left:5px solid var(--green)}.facsimile-result__question.is-unanswered{border-left:5px solid var(--grey)}.facsimile-result__text{font-size:1.15rem;line-height:1.5}.facsimile-result__question img{display:block;max-width:min(100%,420px);max-height:320px;object-fit:contain;margin:1rem auto}
@media(max-width:600px){.facsimile-result__summary{grid-template-columns:repeat(2,minmax(0,1fr))}.facsimile-result__tabs{margin-inline:-.25rem}.answer-feedback{width:100%}}

/* Student Study setup: dedicated responsive workspace. */
.study-setup{--study-blue:#246fae;--study-teal:#16847c;--study-correct:#2b8a57;--study-incorrect:#ca4a4a;--study-remaining:#dce7ef;width:min(100%,1220px);margin:0 auto;padding:8px 0 32px;color:#20364b;font-size:16px;line-height:1.5}
.study-setup__form{display:grid;gap:20px}
.study-setup__chapter{width:min(100%,650px);margin:0 auto;padding:20px 22px;border-radius:18px;background:#eaf5ff;box-shadow:0 5px 16px rgba(36,85,125,.07)}
.study-setup__chapter-field{display:grid;gap:9px;font-size:18px;font-weight:700}.study-setup__chapter-field select{width:100%;min-height:54px;padding:12px 44px 12px 14px;border:2px solid #91bce0;border-radius:14px;background:#fff;color:#20364b;font-size:16px}.study-setup__chapter-field select:focus-visible{outline:3px solid #ffc857;outline-offset:2px;border-color:var(--study-blue)}.study-setup__chapter p{margin:9px 0 0;color:#567187;font-size:15px}
.study-setup__workspace{display:grid;grid-template-columns:minmax(300px,350px) minmax(0,1fr);gap:24px;align-items:start}.study-setup__workspace[hidden]{display:none}.study-setup__side-panel{display:grid;gap:16px;position:sticky;top:80px;align-self:start}
.study-progress-panel,.study-count-panel,.study-categories-panel{background:#fff;border-radius:18px;box-shadow:0 6px 20px rgba(35,68,97,.08)}
.study-progress-panel{display:grid;gap:16px;padding:20px}.study-progress-panel header{display:grid;gap:3px}.study-progress-panel header>span{color:var(--study-blue);font-size:16px;font-weight:700}.study-progress-panel h1{margin:0;color:#172f45;font-size:21px;line-height:1.35}.study-progress-panel header strong{color:#5d7182;font-size:15px}
.study-progress-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.study-progress-stats div{padding:12px;border-radius:13px}.study-progress-stats .is-completed{background:#e8f3fd}.study-progress-stats .is-remaining{background:#f0f4f7}.study-progress-stats .is-correct{background:#e7f6ed}.study-progress-stats .is-incorrect{background:#fdebec}.study-progress-stats dt{color:#52677a;font-size:15px;font-weight:700}.study-progress-stats dd{margin:1px 0 0;color:#172f45;font-size:22px;font-weight:700}.study-progress-stats .is-correct dd{color:#217447}.study-progress-stats .is-incorrect dd{color:#a8323b}
.study-stacked-progress{display:flex;overflow:hidden;width:100%;height:14px;border-radius:999px;background:var(--study-remaining)}.study-stacked-progress>span{display:block;height:100%}.study-stacked-progress>.is-correct{background:var(--study-correct)}.study-stacked-progress>.is-incorrect{background:var(--study-incorrect)}.study-stacked-progress>.is-remaining{background:var(--study-remaining)}.study-progress-panel__bar{height:16px}.study-progress-panel__summary{margin:-7px 0 0;color:#51687b;font-size:15px}
.study-count-panel{display:grid;gap:12px;padding:18px 20px}.study-count-panel h2,.study-categories-panel h2{margin:0;font-size:21px}.study-count-options{display:flex;gap:9px;flex-wrap:wrap}.study-count-chip{position:relative;cursor:pointer}.study-count-chip input{position:absolute;width:1px;height:1px;opacity:0}.study-count-chip span{display:grid;place-items:center;min-width:58px;min-height:48px;padding:8px 12px;border:2px solid #a3bdd2;border-radius:13px;background:#fff;color:#315a79;font-size:16px;font-weight:700}.study-count-chip input:checked+span{border-color:var(--study-blue);background:var(--study-blue);color:#fff}.study-count-chip:focus-within{outline:3px solid #ffc857;outline-offset:2px;border-radius:13px}.study-category-status{margin:0;color:#315f5b;font-size:15px;font-weight:600}
.study-builder-start{width:100%;min-height:56px;border:0;border-radius:14px;background:var(--study-blue);color:#fff;font-size:18px;font-weight:700;box-shadow:0 5px 12px rgba(36,111,174,.18)}.study-builder-start--desktop{position:sticky;bottom:16px;z-index:2}.study-builder-start:hover:not(:disabled){background:#195e96}.study-builder-start:focus-visible{outline:3px solid #ffc857;outline-offset:3px}.study-builder-start:disabled{cursor:not-allowed;opacity:.46}.study-builder-error{margin:0;padding:12px 14px;border:1px solid #d46868;border-radius:12px;background:#fff0f0;color:#8e2929;font-size:15px}
.study-categories-panel{display:grid;gap:18px;min-width:0;padding:22px}.study-categories-panel__heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.study-categories-panel__heading p{margin:3px 0 0;color:#607486;font-size:15px}.study-progress-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:15px}.study-progress-legend span:before{display:inline-block;width:11px;height:11px;margin-right:5px;border-radius:50%;content:""}.study-progress-legend .is-correct:before{background:var(--study-correct)}.study-progress-legend .is-incorrect:before{background:var(--study-incorrect)}.study-progress-legend .is-remaining:before{background:var(--study-remaining);border:1px solid #c2d2de}
.study-category-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.study-category-toolbar label{flex:1 1 280px}.study-category-toolbar input{width:100%;min-height:50px;padding:11px 14px;border:1px solid #a9c1d4;border-radius:13px;background:#fafdff;color:#233b50;font-size:16px}.study-category-toolbar input:focus-visible{outline:3px solid #ffc857;outline-offset:2px;border-color:var(--study-blue)}.study-category-toolbar>div{display:flex;gap:9px}.study-category-toolbar button{min-height:48px;padding:9px 14px;border:1px solid #8dbdb9;border-radius:12px;background:#edf8f7;color:#176d67;font-size:16px;font-weight:600}.study-category-toolbar button:hover{background:#def2f0}.study-category-toolbar button:focus-visible{outline:3px solid #ffc857;outline-offset:2px}
.study-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.study-category-card{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:11px;min-width:0;min-height:164px;padding:16px;border:1px solid #dce6ed;border-radius:15px;background:#fff;cursor:pointer;box-shadow:0 3px 11px rgba(35,68,97,.045);transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}.study-category-card:hover{border-color:#7dbab5;box-shadow:0 7px 18px rgba(35,68,97,.09);transform:translateY(-1px)}.study-category-card:focus-within{outline:3px solid #ffc857;outline-offset:2px}.study-category-card.is-selected{border-color:var(--study-teal);background:#eaf8f6;box-shadow:0 5px 16px rgba(22,132,124,.14)}.study-category-card input{position:absolute;width:1px;height:1px;opacity:0}.study-category-card__check{display:grid;place-items:center;width:26px;height:26px;border:2px solid #79a8a4;border-radius:7px;color:transparent;font-size:16px;font-weight:700}.study-category-card.is-selected .study-category-card__check{border-color:var(--study-teal);background:var(--study-teal);color:#fff}.study-category-card__content{display:grid;align-content:start;gap:3px;min-width:0}.study-category-card strong{color:var(--study-teal);font-size:16px}.study-category-card b{overflow-wrap:anywhere;color:#22394e;font-size:17px;line-height:1.4}.study-category-card small{color:#607486;font-size:15px;line-height:1.45}.study-category-card__results i{color:#247a4c;font-style:normal}.study-category-card__results em{color:#ad343d;font-style:normal}.study-category-card .study-stacked-progress{height:12px;margin-top:8px}.study-category-empty{margin:0;padding:18px;text-align:center;color:#667386;font-size:16px}
.study-builder-loading{width:min(100%,650px);margin:0 auto;padding:15px;border-radius:14px;background:#fff;color:#315f7d;text-align:center;font-size:16px}.study-mobile-start{display:none}
.question-head__scope{display:grid;justify-items:center;line-height:1.25}.question-head__scope small{font-weight:600}.question-head__scope em{font-size:.75rem;font-style:normal;font-weight:500}
@media(max-width:1100px){.study-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){.study-setup__workspace{grid-template-columns:1fr}.study-setup__side-panel{position:static}.study-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Accessible phone layout for the student Study setup and active session. */
.practice-completion{display:grid;justify-items:center;gap:.35rem;margin:1rem 0;padding:1rem;border-radius:14px;background:#f1f8f5;text-align:center}.practice-completion p,.practice-completion small{margin:0}.practice-completion .btn{min-height:48px}
@media(max-width:600px){
 .student-app{background:#f4f8fb;font-size:16px}
 .student-app .app-main--study{width:calc(100% - 24px);margin:0 12px;padding:12px 0 24px}
 .student-app .app-topbar{min-height:54px;padding:5px 12px;font-size:16px}
 .student-app .app-topbar .drawer-button,.student-app .app-topbar .btn{display:inline-flex;align-items:center;min-height:44px;padding:8px 10px;font-size:16px}
 .app-main--study{width:100%;max-width:none;margin:0;padding:12px;background:#f3f8fc}
 .study-setup{width:100%;max-width:none;padding:0 0 112px;font-size:16px}
 .study-setup__form{gap:14px}
 .study-setup__chapter{width:100%;margin:0;padding:16px;border-radius:16px}
 .study-setup__chapter-field{font-size:20px}.study-setup__chapter-field select{min-height:52px;font-size:16px}.study-setup__chapter p{font-size:15px}
 .study-setup__workspace{display:grid;grid-template-columns:1fr;gap:14px}
 .study-setup__side-panel{display:contents}
 .study-progress-panel{order:1}.study-categories-panel{order:2}.study-count-panel{order:3}.study-builder-error{order:4}
 .study-progress-panel,.study-count-panel,.study-categories-panel{border-radius:15px;box-shadow:0 4px 14px rgba(35,68,97,.07)}
 .study-progress-panel{gap:14px;padding:16px}.study-progress-panel h1{font-size:19px}.study-progress-panel header>span{font-size:16px}.study-progress-panel header strong{font-size:15px}
 .study-progress-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.study-progress-stats div{padding:12px}.study-progress-stats dt{font-size:15px}.study-progress-stats dd{font-size:20px}
 .study-progress-panel__bar{height:14px}.study-progress-panel__summary{font-size:15px}
 .study-categories-panel{gap:15px;padding:16px}.study-categories-panel__heading{display:grid;gap:10px}.study-categories-panel h2,.study-count-panel h2{font-size:20px}.study-categories-panel__heading p,.study-progress-legend{font-size:15px}
 .study-category-toolbar{display:grid;gap:10px}.study-category-toolbar label{width:100%}.study-category-toolbar input{min-height:50px;font-size:16px}.study-category-toolbar>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.study-category-toolbar button{min-height:48px;padding:9px 7px;font-size:16px}
 .study-category-grid{grid-template-columns:1fr;gap:12px}.study-category-card{grid-template-columns:28px minmax(0,1fr);min-height:154px;padding:16px}.study-category-card strong{font-size:16px}.study-category-card b{font-size:17px}.study-category-card small{font-size:15px}.study-category-card .study-stacked-progress{height:12px}
 .study-count-panel{gap:12px;padding:16px}.study-count-chip span{min-width:58px;min-height:48px;font-size:16px}.study-category-status{font-size:15px}.study-builder-start{min-height:56px;font-size:18px}.study-builder-start--desktop{display:none!important}
 .study-mobile-start:not([hidden]){position:fixed;right:0;bottom:0;left:0;z-index:40;display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,34%);align-items:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #bdd0df;background:rgba(255,255,255,.98);box-shadow:0 -7px 22px rgba(30,62,90,.15)}
 .study-mobile-start p{display:grid;gap:1px;min-width:0;margin:0;color:#405d75;font-size:14px;line-height:1.25}.study-mobile-start p span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.study-mobile-start p strong{color:#18364f;font-size:16px}.study-builder-start--mobile{min-height:52px;margin:0;font-size:17px}
 .question-shell{width:calc(100% - 20px);margin:8px 10px}
 .question-head{top:54px;gap:8px;min-height:48px;padding:6px 0;font-size:15px}
 .question-head>a{display:flex;align-items:center;min-height:44px}
 .question-head__scope{font-size:16px}
 .question-head__scope small{font-size:14px}
 .practice-question-card{padding:14px}
 .practice-question-copy .language-panel{font-size:clamp(20px,5.8vw,22px);line-height:1.45}
 .practice-image-button{width:min(88%,460px)}
 .practice-answers .answer{min-height:56px;font-size:18px}
 .answer-feedback{font-size:16px}
 .question-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .question-actions .btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 7px;font-size:16px}
 .practice-completion{gap:8px;padding:14px;font-size:16px}
 .practice-completion .btn{min-height:48px;font-size:16px}
}
@media(max-width:370px){
 .study-category-toolbar>div{grid-template-columns:1fr}
}

/* Simplified student shell, account and progress */
.student-main{width:100%;max-width:1320px;min-width:0;margin:auto;padding:24px}.student-main--dashboard{max-width:none;padding:0}.student-main--study{max-width:none;padding:12px}.student-notice{margin:0 0 16px;padding:12px 14px;border:1px solid #b8d7f2;border-radius:12px;background:#eaf5ff;color:#245575}.student-page-header{padding:22px 24px;border-radius:18px;background:linear-gradient(125deg,#2867aa,#5445a7);color:#fff;box-shadow:0 10px 25px rgba(35,69,107,.16)}.student-page-header>span,.student-password-card>div>span{font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.student-page-header h1{margin:4px 0}.student-page-header p{margin:0;color:rgba(255,255,255,.86)}.student-profile-page,.student-progress-page{display:grid;gap:16px}.student-profile-card,.student-password-card,.student-progress-card{padding:20px;border:1px solid #d8e2eb;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(36,61,86,.07)}.student-profile-identity{display:flex;align-items:center;gap:14px}.student-profile-identity>span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e5effd;color:#225e9b;font-size:1.35rem;font-weight:600}.student-profile-identity h2,.student-profile-identity p{margin:2px 0}.student-profile-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.student-profile-card dl div{padding:12px;border-radius:11px;background:#f4f7fa}.student-profile-card dt{color:#66778a;font-size:.8rem}.student-password-card{display:grid;max-width:720px;gap:15px}.student-password-card h2,.student-password-card p{margin:4px 0}.student-password-form{display:grid;gap:14px}.student-password-form>label{display:grid;gap:6px;font-weight:600}.student-password-input{display:grid;grid-template-columns:1fr auto}.student-password-input input{border-radius:10px 0 0 10px}.student-password-input button{min-width:82px;border:1px solid #b9c8d6;border-left:0;border-radius:0 10px 10px 0;background:#eef3f7;color:#2e4a64;font-weight:600}.student-password-form>p{color:#66778a;font-size:.88rem}.student-password-form>.btn{justify-self:start;min-height:46px}.student-form-message{padding:11px 13px;border-radius:10px}.student-form-message.is-success{background:#dff4e9;color:#17603e}.student-form-message.is-error{background:#fde8eb;color:#912e3c}.student-progress-tabs{display:flex;gap:6px;overflow-x:auto;padding:5px;border:1px solid #d8e2eb;border-radius:14px;background:#fff}.student-progress-tabs a{display:flex;align-items:center;min-height:46px;padding:8px 15px;border-radius:10px;color:#475b6e;font-weight:600;white-space:nowrap}.student-progress-tabs a.is-active{background:#2768aa;color:#fff}.student-period-heading{display:flex;justify-content:space-between;margin:4px 0 12px}.student-period-heading span{color:#60758a;font-size:.84rem}.student-period-heading h2{margin:3px 0}.student-progress-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.student-progress-summary article{padding:15px;border:1px solid #d9e3eb;border-radius:14px;background:#fff}.student-progress-summary small,.student-progress-summary strong{display:block}.student-progress-summary small{min-height:34px;color:#68798c}.student-progress-summary strong{font-size:1.45rem}.student-composition{display:flex;height:12px;overflow:hidden;margin:14px 0;border-radius:999px;background:#e8edf1}.student-composition .is-correct,.student-week-stack .is-correct{background:#15915f}.student-composition .is-incorrect,.student-week-stack .is-incorrect{background:#cc4554}.student-activity-list,.student-chapter-ranking,.student-month-weeks{display:grid;gap:8px}.student-activity-list article,.student-chapter-ranking article,.student-month-weeks article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:11px;background:#f5f8fa}.student-activity-list strong,.student-activity-list span,.student-chapter-ranking strong,.student-chapter-ranking span{display:block}.student-activity-list span,.student-chapter-ranking span{color:#65778a;font-size:.86rem}.student-week-chart{min-height:240px}.student-week-bars{display:grid;height:220px;grid-template-columns:repeat(7,1fr);align-items:end;gap:10px;padding-top:12px}.student-week-day{display:grid;justify-items:center;gap:4px}.student-week-stack{display:flex;width:min(34px,70%);flex-direction:column-reverse;overflow:hidden;border-radius:7px 7px 2px 2px;background:#e8edf1}.student-week-stack span{display:block;width:100%}.student-week-day small{color:#68798b}.student-chapter-ranking article{display:grid;grid-template-columns:1fr auto;gap:8px}.student-rank-bar{grid-column:1/-1;height:7px;overflow:hidden;border-radius:999px;background:#e0e7ed}.student-rank-bar i{display:block;height:100%;background:#198c65}.student-month-weeks article span{color:#68798b}.student-month-weeks article b{font-size:.88rem}.student-exam-filters{display:flex;gap:7px;overflow-x:auto;margin-bottom:13px}.student-exam-filters a{display:flex;min-height:44px;align-items:center;padding:7px 13px;border:1px solid #cbd8e3;border-radius:999px;background:#fff;white-space:nowrap}.student-exam-filters a.is-active{border-color:#2768aa;background:#2768aa;color:#fff}.student-exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.student-exam-summary{display:grid;gap:12px;padding:17px;border:1px solid #d8e2eb;border-radius:15px;background:#fff}.student-exam-summary header span{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e9f0f7;color:#3d5a74;font-size:.78rem}.student-exam-summary h2,.student-exam-summary p{margin:5px 0}.student-exam-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}.student-exam-summary dl div{padding:8px;border-radius:9px;background:#f5f8fa}.student-exam-summary dt{font-size:.76rem;color:#677a8c}.student-exam-summary .btn{justify-self:start}.student-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:14px}
@media(max-width:1024px){.student-progress-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.student-main{padding:14px}.student-main--dashboard{padding:0}.student-main--study{padding:12px}.student-progress-summary{grid-template-columns:1fr 1fr}.student-progress-summary article{padding:12px}.student-progress-summary strong{font-size:1.25rem}.student-exam-grid{grid-template-columns:1fr}.student-week-bars{gap:4px}.student-week-stack{width:24px}.student-profile-card dl{grid-template-columns:1fr}.student-month-weeks article{align-items:flex-start;flex-direction:column}.student-page-header{padding:18px}.student-progress-tabs{margin-inline:-2px}.student-profile-card,.student-password-card,.student-progress-card{padding:15px}}
.student-profile-page,.student-progress-page{grid-template-columns:minmax(0,1fr)}
.app-study-footer{display:flex;min-height:34px;align-items:center;justify-content:center;gap:.35rem 1rem;margin-top:10px;padding:8px 16px;border-top:1px solid #e7edf3;background:rgba(248,250,252,.72);color:#8a98a8;font-size:.72rem;font-weight:400;line-height:1.35;text-align:center}.app-study-footer span{white-space:nowrap}@media(max-width:520px){.app-study-footer{min-height:38px;flex-wrap:wrap;gap:1px .65rem;padding:7px 10px;font-size:.68rem}.app-study-footer span{white-space:normal}}

/* Scalable student error review */
.student-errors{display:grid;width:min(100%,1460px);gap:14px;margin-inline:auto}.student-errors__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:16px 18px;border:1px solid #dbe4ed;border-radius:15px;background:linear-gradient(115deg,#fff4f5,#f7f9fc)}.student-errors__header span{color:#9b3442;font-size:.75rem;font-weight:600;text-transform:uppercase}.student-errors__header h1{margin:2px 0;font-size:1.75rem}.student-errors__header p{margin:0;color:#647588}.student-errors__header form{margin:0}.student-errors__empty{padding:28px;border:1px dashed #bdcad6;border-radius:15px;background:#fff;text-align:center}.student-errors__empty h2{margin:0 0 .35rem}.student-errors__empty p{margin:0;color:#65768a}.student-errors-mobile{display:none}.student-errors-desktop{display:grid;gap:12px}.student-errors-filters{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(180px,1fr) minmax(140px,.7fr) minmax(90px,.45fr) auto;align-items:end;gap:.65rem;padding:12px;border:1px solid #dae3ec;border-radius:13px;background:#fff}.student-errors-filters label{display:grid;gap:.3rem;color:#526579;font-size:.78rem;font-weight:700}.student-errors-filters input,.student-errors-filters select{height:44px;min-width:0}.student-errors-filters>div{display:flex;gap:.45rem}.student-errors-filters .btn{min-height:44px;white-space:nowrap}.student-errors-table-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.student-errors-table-heading h2{margin:0;font-size:1.08rem}.student-errors-table-heading span{color:#65778a;font-size:.82rem}.student-errors-table-wrap{overflow-x:auto;border:1px solid #d9e3ec;border-radius:13px;background:#fff}.student-errors-table{min-width:1050px;font-size:.82rem}.student-errors-table th{padding:.62rem .65rem;white-space:nowrap}.student-errors-table td{padding:.58rem .65rem;vertical-align:middle}.student-errors-table td:first-child{width:34%}.student-errors-table td:first-child strong,.student-errors-table td:first-child span{display:block}.student-errors-table td:first-child span{display:-webkit-box;overflow:hidden;color:#45586b;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}.student-error-answer{display:inline-flex;min-width:66px;justify-content:center;padding:.3rem .48rem;border-radius:8px;font-weight:700}.student-error-answer.is-wrong{background:#fff0f2;color:#9e2c3c}.student-error-answer.is-correct{background:#eaf8f1;color:#126b48}.student-errors-table .btn{min-height:38px;padding:.42rem .68rem}.student-errors-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.75rem}.student-errors-pagination>:first-child{justify-self:start}.student-errors-pagination>:last-child{justify-self:end}.student-errors-pagination>span{color:#607286;font-size:.82rem}.student-error-context{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;padding:8px 10px;border-radius:9px;background:#f4f7fa;color:#5f7184;font-size:.78rem}.student-error-actions{display:flex;justify-content:flex-end;margin-top:8px}.student-errors-filter-panel{margin-bottom:2px;border:1px solid #d7e1ea;border-radius:11px;background:#fff}.student-errors-filter-panel>summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;padding:8px 12px;color:#4c6074;font-weight:700;cursor:pointer}.student-errors-filter-panel[open]>summary{border-bottom:1px solid #dce4ec}.student-errors-filter-panel[open]>summary span{transform:rotate(180deg)}.student-errors-filters--mobile{grid-template-columns:1fr;padding:10px;border:0;border-radius:0;background:#f8fafc}.student-errors-filters--mobile>div{display:grid;grid-template-columns:1fr 1fr}.student-errors-mobile .published-question{padding:14px}.student-errors-mobile .published-question__answers{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.student-errors-mobile .published-result__error-arrow.is-disabled{pointer-events:none;border-color:#d9aeb4;background:#e4c8cc;box-shadow:none}.student-errors-mobile .published-result__error-arrow{text-decoration:none}.student-errors-mobile .published-question__text{font-size:clamp(1.15rem,3vw,1.35rem)}
@media(max-width:1099px){.student-errors__header{padding:14px}.student-errors__header h1{font-size:1.5rem}.student-errors__header p{font-size:.86rem}.student-errors-desktop{display:none}.student-errors-mobile{display:grid;gap:10px;scroll-margin-top:84px}.student-errors-mobile .published-result__error-review{gap:10px}.student-errors-mobile .published-result__error-nav{grid-template-columns:48px minmax(0,1fr) 48px}.student-errors-mobile .published-result__error-arrow{width:48px;height:48px;min-width:48px;min-height:48px}}
@media(max-width:700px){.student-errors__header{align-items:stretch;flex-direction:column}.student-errors__header form .btn{width:100%}.student-errors-mobile .published-result__error-nav{grid-template-columns:46px minmax(0,1fr) 46px}.student-errors-mobile .published-result__error-arrow{width:46px;height:46px;min-width:46px;min-height:46px}.student-error-context{align-items:flex-start;flex-direction:column}.student-error-actions .btn{width:100%}}
@media(max-width:340px){.student-errors-mobile .published-question__answers{grid-template-columns:1fr}}

/* Compact finalized-only student progress */
.student-progress-page{width:min(1040px,100%);margin-inline:auto;gap:12px}.student-progress-title{margin:0;color:#25364a;font-size:clamp(1.55rem,3vw,2rem)}.student-progress-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:60px;margin:0;overflow:hidden;border:1px solid #d5dfeb;border-radius:14px;background:#fff;box-shadow:0 7px 18px rgba(36,61,86,.07)}.student-progress-strip>div{display:flex;min-width:0;align-items:center;justify-content:center;gap:.42rem;padding:.48rem .62rem;border-right:1px solid #d9e2ec;text-align:center}.student-progress-strip>div:last-child{border-right:0}.student-progress-strip dt{min-width:0;color:#46596d;font-size:.78rem;font-weight:600}.student-progress-strip dd{margin:0;color:#24364a;font-size:1.12rem;font-weight:700}.student-progress-strip .is-completed{background:#eef1ff}.student-progress-strip .is-correct{background:#e9f7ef}.student-progress-strip .is-wrong{background:#fdeff1}.student-progress-strip .is-accuracy{background:#e9f7f7}.student-progress-strip__short{display:none}.student-progress-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:hidden;padding:0;border-radius:12px}.student-progress-tabs a{justify-content:center;min-width:0;min-height:46px;padding:.42rem .55rem;border-right:1px solid currentColor;border-radius:0;text-align:center}.student-progress-tabs a:last-child{border-right:0}.student-progress-tab--today{color:#2768aa;background:#f1f6fc}.student-progress-tab--week{color:#087f7a;background:#effafa}.student-progress-tab--month{color:#7042aa;background:#f6f1fb}.student-progress-tab--professor-exams{color:#b45b12;background:#fff6ed}.student-progress-tab--today.is-active{background:#2768aa}.student-progress-tab--week.is-active{background:#087f7a}.student-progress-tab--month.is-active{background:#7042aa}.student-progress-tab--professor-exams.is-active{background:#b45b12}.student-progress-tab__short{display:none}.student-progress-content{display:grid;min-width:0;gap:12px;scroll-margin-top:92px}.student-period-nav{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:10px;min-height:56px}.student-period-nav h2{min-width:0;margin:0;color:#30445a;font-size:clamp(1rem,2.5vw,1.25rem);text-align:center;overflow-wrap:anywhere}.student-progress-arrow{display:grid;width:48px;height:48px;place-items:center;padding:0;border:0;border-radius:50%;background:#2768aa;color:#fff;box-shadow:0 5px 12px rgba(31,72,116,.2)}.student-period-nav--week .student-progress-arrow{background:#087f7a}.student-period-nav--month .student-progress-arrow{background:#7042aa}.student-period-nav--professor-exams .student-progress-arrow{background:#b45b12}.student-progress-arrow svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.student-progress-arrow:hover{filter:brightness(.88);color:#fff}.student-progress-arrow:focus-visible{outline:3px solid #f4b942;outline-offset:3px}.student-progress-arrow.is-disabled{background:#d9e2ec;color:#8695a5;box-shadow:none;cursor:not-allowed}.student-period-nav>:last-child{justify-self:end}.student-period-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;overflow:hidden;border:1px solid #d8e2eb;border-radius:12px;background:#fff}.student-period-metrics>div{padding:.55rem;border-right:1px solid #e0e7ee;text-align:center}.student-period-metrics>div:last-child{border-right:0}.student-period-metrics dt{color:#65778a;font-size:.73rem}.student-period-metrics dd{margin:.12rem 0 0;color:#2c3f53;font-size:1rem;font-weight:600}.student-period-metrics>div:nth-child(5){grid-column:1/-1;border-top:1px solid #e0e7ee;border-right:0}.student-progress-card{padding:14px}.student-progress-card>h2,.student-week-chart header h2{margin:0 0 .65rem;font-size:1rem}.student-progress-empty{margin:0;padding:1rem;border:1px dashed #bdcbd8;border-radius:11px;background:#f8fafc;color:#607286;text-align:center}.student-progress-activity-list{display:grid;gap:6px}.student-progress-activity{overflow:hidden;border:1px solid #dbe4ec;border-radius:11px;background:#fff}.student-progress-activity>button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:.75rem;padding:.68rem .8rem;border:0;background:#f7f9fb;color:#31465a;text-align:left;cursor:pointer}.student-progress-activity>button>span:first-child{min-width:0}.student-progress-activity strong,.student-progress-activity small{display:block}.student-progress-activity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-progress-activity small{margin-top:.12rem;color:#718195;font-size:.75rem}.student-progress-activity__score{font-size:.82rem;white-space:nowrap}.student-progress-activity button svg{width:20px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}.student-progress-activity button[aria-expanded=true] svg{transform:rotate(180deg)}.student-progress-activity__details{padding:.75rem .8rem;border-top:1px solid #dce4ec}.student-progress-activity__details dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:0}.student-progress-activity__details dl div{padding:.45rem;border-radius:8px;background:#f3f6f9}.student-progress-activity__details dt{color:#68798b;font-size:.72rem}.student-progress-activity__details dd{margin:0;font-weight:700}.student-progress-activity__details .btn{margin-top:.65rem}.student-week-chart{min-height:0}.student-week-chart header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.student-week-chart header p{display:flex;gap:.7rem;margin:0;color:#576a7e;font-size:.76rem}.student-week-chart header p span:before{display:inline-block;width:.55rem;height:.55rem;margin-right:.25rem;border-radius:2px;content:""}.student-week-chart header p .is-correct:before{background:#15915f}.student-week-chart header p .is-incorrect:before{background:#cc4554}.student-week-bars{height:164px;padding-top:4px}.student-month-weeks{gap:5px}.student-month-weeks>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.58rem .7rem;border-radius:8px;background:#f5f7fa}.student-month-weeks span{color:#596d81;font-size:.78rem}.student-month-weeks strong{font-size:.8rem}.student-progress-exam{display:grid;gap:12px;padding:16px;border:1px solid;border-radius:15px}.student-progress-exam--passed{border-color:#a9d9bd;background:#eef9f2}.student-progress-exam--failed{border-color:#edb5bc;background:#fff1f2}.student-progress-exam header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.student-progress-exam header span{color:#62758a;font-size:.78rem}.student-progress-exam h2{margin:.2rem 0 0;font-size:1.18rem}.student-progress-exam--passed header>strong{color:#167247}.student-progress-exam--failed header>strong{color:#b53042}.student-progress-exam__mark{display:flex;align-items:baseline;gap:.65rem}.student-progress-exam__mark b{font-size:1.8rem}.student-progress-exam__mark span{font-weight:700}.student-progress-exam dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem;margin:0}.student-progress-exam dl div{padding:.55rem;border-radius:8px;background:rgba(255,255,255,.72)}.student-progress-exam dt{color:#65778a;font-size:.72rem}.student-progress-exam dd{margin:.1rem 0 0;font-weight:600}.student-progress-exam .btn{justify-self:start}.student-progress-exam>p{margin:0;color:#64768a}
@media(max-width:760px){.student-progress-page{gap:10px}.student-progress-strip{min-height:58px}.student-progress-strip>div{display:grid;gap:.08rem;padding:.35rem .2rem}.student-progress-strip dt{font-size:.69rem}.student-progress-strip dd{font-size:1rem}.student-progress-strip__full,.student-progress-tab__full{display:none}.student-progress-strip__short,.student-progress-tab__short{display:inline}.student-progress-tabs a{min-height:46px;padding:.35rem .18rem;font-size:.79rem}.student-period-nav{grid-template-columns:46px minmax(0,1fr) 46px}.student-progress-arrow{width:46px;height:46px}.student-period-metrics>div{padding:.42rem .18rem}.student-progress-activity>button{grid-template-columns:minmax(0,1fr) 20px}.student-progress-activity__score{grid-column:1/-1;grid-row:2;white-space:normal}.student-progress-activity button svg{grid-column:2;grid-row:1/3}.student-progress-activity__details dl{grid-template-columns:1fr 1fr}.student-week-chart header{align-items:flex-start;flex-direction:column;gap:.25rem}.student-week-bars{gap:4px}.student-month-weeks>div{align-items:flex-start;flex-direction:column;gap:.15rem}.student-progress-exam header{align-items:flex-start;flex-direction:column;gap:.45rem}.student-progress-exam dl{grid-template-columns:1fr 1fr}.student-progress-exam dl div:last-child{grid-column:1/-1}}
@media(max-width:380px){.student-progress-tabs a{font-size:.73rem}.student-progress-strip dt{font-size:.64rem}.student-progress-strip dd{font-size:.94rem}.student-period-nav h2{font-size:.94rem}}

/* Student dashboard: compact AdminLTE-inspired content area */
.app-main--dashboard{width:100%;max-width:none;margin:0;padding:0;background:#edf3f7}
.student-dashboard{--sd-navy:#17324d;--sd-blue:#2878b9;--sd-indigo:#6557b9;--sd-teal:#168f91;--sd-green:#289160;--sd-orange:#e0832f;display:grid;align-content:start;gap:18px;min-height:calc(100vh - 64px);padding:24px;background:#edf3f7;color:#25384a}.student-dashboard__welcome{border-radius:14px;background:linear-gradient(112deg,#183852 0%,#216481 64%,#198b86 100%);box-shadow:0 8px 22px rgba(29,64,88,.18);color:#fff}.student-dashboard__welcome h1{color:#fff;font-size:clamp(1.55rem,2.4vw,2rem);line-height:1.18}
.student-dashboard__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.student-dashboard__info-box{--box-accent:var(--sd-blue);display:grid;grid-template-columns:48px minmax(0,1fr);min-width:0;min-height:70px;overflow:hidden;border:1px solid #d7e1e8;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(35,62,81,.07);transition:transform .15s ease,box-shadow .15s ease}.student-dashboard__info-box:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(35,62,81,.1)}.student-dashboard__info-box--indigo{--box-accent:var(--sd-indigo)}.student-dashboard__info-box--teal{--box-accent:var(--sd-teal)}.student-dashboard__info-box--green{--box-accent:var(--sd-green)}.student-dashboard__info-box--orange{--box-accent:var(--sd-orange)}.student-dashboard__info-icon{display:grid;place-items:center;background:var(--box-accent);color:#fff;font-size:1rem;font-weight:700}.student-dashboard__info-box>div{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:9px 11px}.student-dashboard__info-box>div>span{color:#687b8b;font-size:.75rem;font-weight:600}.student-dashboard__info-box strong{margin-top:3px;color:#20384d;font-size:1.05rem;line-height:1.15;overflow-wrap:anywhere}.student-dashboard__info-box .student-dashboard__date{font-size:1rem;white-space:nowrap}
.student-dashboard__card{min-width:0;overflow:hidden;border:1px solid #d7e1e8;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(35,62,81,.09)}.student-dashboard__card>header{display:flex;align-items:center;gap:12px;padding:17px 19px;border-bottom:1px solid #e1e8ed}.student-dashboard__card>header>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:10px;background:#e7f2f7;color:#216584;font-size:1.2rem;font-weight:700}.student-dashboard__card h2{margin:0;color:#20384d;font-size:1.18rem}.student-dashboard__card header p{margin:2px 0 0;color:#718291;font-size:.86rem}
@media(max-width:1100px){.student-dashboard__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.student-dashboard{padding:18px}}
@media(max-width:760px){.student-dashboard{gap:14px;min-height:calc(100vh - 56px);padding:12px}.student-dashboard__welcome{min-height:0;padding:18px;border-radius:12px}.student-dashboard__stats{gap:10px}.student-dashboard__card>header{padding:15px}}
@media(prefers-reduced-motion:reduce){.student-dashboard__info-box{transition:none}.student-dashboard__info-box:hover{transform:none}}

/* Student dashboard recovery: study-first order */
.student-dashboard__welcome{display:block;min-height:0;padding:19px 26px}.student-dashboard__welcome h1{margin:0}.student-dashboard__welcome-progress{margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.24)}.student-dashboard__welcome-progress>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:12px;margin-bottom:7px}.student-dashboard__welcome-progress strong{font-size:.88rem}.student-dashboard__welcome-progress span{color:rgba(255,255,255,.82);font-size:.82rem}.student-dashboard__welcome-progress b{font-size:.92rem}.student-dashboard__progress-track{height:13px;overflow:hidden;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.24)}.student-dashboard__progress-track>span{display:block;height:100%;border-radius:inherit;background:#54d5c2;box-shadow:0 0 10px rgba(84,213,194,.42)}
.student-dashboard__exam-card{--exam-state:#9a744d;display:grid;min-width:0;min-height:88px;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;padding:10px 15px 10px 12px;border:1px solid #e4d7c9;border-left:5px solid var(--sd-orange);border-radius:12px;background:#fffaf5;color:#263f53;box-shadow:0 5px 15px rgba(35,62,81,.09);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.student-dashboard__exam-card:hover{transform:translateY(-2px);border-color:var(--sd-orange);color:#1c374b;box-shadow:0 9px 20px rgba(35,62,81,.13)}.student-dashboard__exam-card:focus-visible{outline:3px solid #e5a72d;outline-offset:3px}.student-dashboard__exam-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:11px;background:var(--sd-orange);color:#fff;font-size:1.25rem;font-weight:700}.student-dashboard__exam-card>div{display:grid;min-width:0;grid-template-columns:auto 1fr;align-items:center;gap:2px 12px}.student-dashboard__exam-card strong{font-size:1.08rem}.student-dashboard__exam-status{display:inline-flex;align-items:center;gap:7px;color:#4f6170;font-size:.82rem;font-weight:600}.student-dashboard__exam-status i{display:block;flex:0 0 11px;width:11px;height:11px;border-radius:50%;background:var(--exam-state)}.student-dashboard__exam-card small{grid-column:1/-1;color:#6b7d8c;font-size:.85rem}.student-dashboard__exam-card>b{color:var(--sd-orange);font-size:1.45rem}.student-dashboard__exam-card--action{--exam-state:#c93445}.student-dashboard__exam-card--action .student-dashboard__exam-status i{animation:student-dashboard-exam-pulse 1.7s ease-in-out infinite}.student-dashboard__exam-card--completed{--exam-state:#218458}.student-dashboard__exam-card--neutral{--exam-state:#9a744d}@keyframes student-dashboard-exam-pulse{0%,100%{box-shadow:0 0 0 0 rgba(201,52,69,.38)}50%{box-shadow:0 0 0 6px rgba(201,52,69,0)}}
.student-dashboard__menu,.student-dashboard__numbers{display:grid;gap:11px}.student-dashboard__menu>h2,.student-dashboard__numbers>h2{margin:0;color:#20384d;font-size:1.22rem}.student-dashboard__menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.student-dashboard__menu-card{--menu-accent:#2878b9;display:grid;min-width:0;min-height:104px;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;overflow:hidden;border:1px solid #d5e0e7;border-left:5px solid var(--menu-accent);border-radius:12px;background:#fff;color:#263f53;box-shadow:0 5px 15px rgba(35,62,81,.09);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.student-dashboard__menu-card>span,.student-dashboard__menu-card>button>span{display:grid;place-items:center;width:48px;height:48px;margin-left:12px;border-radius:11px;background:var(--menu-accent);color:#fff;font-size:1.25rem;font-weight:700}.student-dashboard__menu-card>div,.student-dashboard__menu-card>button>div{min-width:0}.student-dashboard__menu-card strong,.student-dashboard__menu-card small{display:block}.student-dashboard__menu-card strong{font-size:1.08rem}.student-dashboard__menu-card small{margin-top:4px;color:#6b7d8c;font-size:.85rem;line-height:1.3}.student-dashboard__menu-card>b,.student-dashboard__menu-card>button>b{margin-right:13px;color:var(--menu-accent);font-size:1.45rem}.student-dashboard__menu-card>button{display:grid;width:100%;min-height:102px;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:13px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.student-dashboard__menu-card:hover{transform:translateY(-3px);border-color:var(--menu-accent);color:#1c374b;box-shadow:0 10px 22px rgba(35,62,81,.14)}.student-dashboard__menu-card:focus-visible,.student-dashboard__menu-card>button:focus-visible{outline:3px solid #e5a72d;outline-offset:3px}.student-dashboard__menu-card--blue{--menu-accent:#2c75b5}.student-dashboard__menu-card--teal{--menu-accent:#168f91}.student-dashboard__menu-card--coral{--menu-accent:#c94d5b}.student-dashboard__menu-card--green{--menu-accent:#289160}.student-dashboard__menu-card--orange{--menu-accent:#dc812f}.student-dashboard__menu-card--indigo{--menu-accent:#6557b9}
form.student-dashboard__menu-card{display:block}
@media(max-width:1100px){.student-dashboard__menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.student-dashboard__welcome{padding:16px 18px}.student-dashboard__welcome-progress>div:first-child{grid-template-columns:1fr auto;gap:3px 10px}.student-dashboard__welcome-progress span{grid-column:1/-1;grid-row:2}.student-dashboard__exam-card{min-height:82px;grid-template-columns:48px minmax(0,1fr) auto;padding:8px 10px 8px 8px}.student-dashboard__exam-icon{width:42px;height:42px}.student-dashboard__menu-card{min-height:82px;grid-template-columns:48px minmax(0,1fr) auto}.student-dashboard__menu-card>button{min-height:80px;grid-template-columns:48px minmax(0,1fr) auto}.student-dashboard__menu-card>span,.student-dashboard__menu-card>button>span{width:42px;height:42px;margin-left:8px}.student-dashboard__menu-card>b,.student-dashboard__menu-card>button>b{margin-right:9px}.student-dashboard__menu-card strong{font-size:1.06rem}.student-dashboard__stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.student-dashboard__menu-grid{grid-template-columns:1fr}.student-dashboard__info-box{grid-template-columns:44px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.student-dashboard__menu-card,.student-dashboard__exam-card{transition:none}.student-dashboard__menu-card:hover,.student-dashboard__exam-card:hover{transform:none}.student-dashboard__exam-card--action .student-dashboard__exam-status i{animation:none}}

/* Professor exam builder */
body:has(.exam-builder){overflow-x:hidden}
.app-main--exams:has(.exam-builder){width:100%;max-width:none;padding:0;background:#edf3f7}.exam-builder{--eb-blue:#2878b9;--eb-teal:#168f91;--eb-navy:#193653;display:grid;gap:18px;min-height:calc(100vh - 64px);padding:24px;background:#edf3f7;color:#25384a}.exam-builder__header{padding:22px 26px;border-radius:14px;background:linear-gradient(112deg,#193653,#315783 58%,#168f91);box-shadow:0 8px 22px rgba(29,64,88,.18);color:#fff}.exam-builder__header>span{font-size:.8rem;font-weight:600;text-transform:uppercase}.exam-builder__header h1{margin:4px 0;color:#fff}.exam-builder__header p{margin:0;color:rgba(255,255,255,.86)}.exam-builder__stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0 0;padding:0;list-style:none}.exam-builder__stepper li{display:flex;min-height:44px;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(255,255,255,.24);border-radius:10px;background:rgba(10,39,58,.24);font-weight:700}.exam-builder__stepper b,.exam-builder__section>header>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#fff;color:#205779}.exam-builder__layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:18px}.exam-builder__main{display:grid;gap:16px}.exam-builder__section{min-width:0;padding:20px;border:1px solid #d5e0e7;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(35,62,81,.08)}.exam-builder__section>header{display:flex;align-items:center;gap:11px;margin-bottom:17px}.exam-builder__section>header>span{background:#e5f1f7;color:#216584;font-weight:700}.exam-builder__section h2,.exam-builder__section p{margin:2px 0}.exam-builder__section header p{color:#6d7f8e;font-size:.88rem}.exam-builder__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.exam-builder__fields label,.exam-builder__count label,.exam-builder__search{display:grid;gap:6px;font-weight:700}.exam-builder input,.exam-builder select,.exam-builder textarea{min-height:48px;font-size:1rem}.exam-builder__fields textarea{min-height:84px}.exam-builder__check{display:flex!important;grid-column:1/-1;min-height:48px;align-items:center;gap:9px!important}.exam-builder__check input{width:20px;min-height:20px}.exam-builder__mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.exam-builder__mode{position:relative;display:grid;min-height:90px;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:14px;border:2px solid #d5e0e7;border-radius:13px;background:#f8fafc;cursor:pointer}.exam-builder__mode:has(input:checked){border-color:var(--eb-blue);background:#eaf4fc;box-shadow:0 5px 14px rgba(40,120,185,.14)}.exam-builder__mode input{width:21px;min-height:21px}.exam-builder__mode strong,.exam-builder__mode small{display:block}.exam-builder__mode strong{font-size:1.05rem}.exam-builder__mode small{margin-top:4px;color:#667a8b}.exam-builder__toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}.exam-builder__toolbar>span{display:flex;gap:7px;flex-wrap:wrap}.exam-builder__toolbar button{min-height:40px;padding:7px 10px;border:1px solid #bdccd7;border-radius:9px;background:#fff;color:#2a5876;font-weight:700;cursor:pointer}.exam-builder__chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.exam-builder__chapter-card,.exam-builder__category-card,.exam-builder__batch-card{position:relative;display:grid;min-width:0;grid-template-columns:25px minmax(0,1fr);gap:9px;padding:13px;border:1px solid #d5e0e7;border-radius:11px;background:#fff;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.exam-builder__chapter-card{min-height:112px}.exam-builder__chapter-card:has(input:checked),.exam-builder__category-card:has(input:checked),.exam-builder__batch-card:has(input:checked){border-color:var(--eb-teal);background:#effaf8;box-shadow:0 5px 14px rgba(22,143,145,.13)}.exam-builder__chapter-card:hover,.exam-builder__category-card:hover,.exam-builder__batch-card:hover{transform:translateY(-2px);border-color:var(--eb-blue)}.exam-builder__chapter-card input,.exam-builder__category-card input,.exam-builder__batch-card input{position:absolute;opacity:0;pointer-events:none}.exam-builder__card-check{display:grid;place-items:center;width:24px;height:24px;border:2px solid #a9bac7;border-radius:7px;color:transparent;font-weight:700}.exam-builder input:focus-visible+.exam-builder__card-check{outline:3px solid #e5a72d;outline-offset:2px}.exam-builder input:checked+.exam-builder__card-check{border-color:var(--eb-teal);background:var(--eb-teal);color:#fff}.exam-builder__chapter-card small,.exam-builder__chapter-card strong,.exam-builder__chapter-card b,.exam-builder__category-card small,.exam-builder__category-card strong,.exam-builder__category-card b,.exam-builder__batch-card small,.exam-builder__batch-card strong,.exam-builder__batch-card b{display:block}.exam-builder__chapter-card small,.exam-builder__category-card small,.exam-builder__batch-card small{color:#667a8b}.exam-builder__chapter-card strong,.exam-builder__category-card strong{margin:3px 0;font-size:.92rem;line-height:1.25}.exam-builder__chapter-card b,.exam-builder__category-card b,.exam-builder__batch-card b{color:#267059;font-size:.78rem}.exam-builder__search{max-width:460px;margin:8px 0 13px}.exam-builder__accordions{display:grid;gap:9px}.exam-builder__accordion{overflow:hidden;border:1px solid #d5e0e7;border-radius:12px}.exam-builder__accordion-toggle{display:flex;width:100%;min-height:76px;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:0;background:#f8fafc;color:#263f53;text-align:left;cursor:pointer}.exam-builder__accordion-toggle>span:first-child small,.exam-builder__accordion-toggle>span:first-child strong,.exam-builder__accordion-toggle>span:first-child b{display:block}.exam-builder__accordion-toggle small,.exam-builder__accordion-toggle b{color:#667a8b;font-size:.78rem}.exam-builder__accordion-toggle>span:last-child{display:flex;align-items:center;gap:10px}.exam-builder__accordion-toggle em{color:#267059;font-size:.8rem;font-style:normal;font-weight:700}.exam-builder__accordion-toggle[aria-expanded=true] i{transform:rotate(180deg)}.exam-builder__accordion-panel{padding:10px 14px 14px;border-top:1px solid #dce5eb}.exam-builder__category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.exam-builder__category-card{min-height:92px}.exam-builder__pool{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;margin-top:15px;padding:13px 15px;border-radius:11px;background:#e7f3f7}.exam-builder__pool strong{color:#17677a;font-size:1.45rem}.exam-builder__pool small{grid-column:1/-1;color:#657988}.exam-builder__count{display:grid;grid-template-columns:minmax(180px,260px) minmax(180px,260px) 1fr;align-items:end;gap:12px;margin-top:13px}.exam-builder__count p{align-self:center;color:#526b7e}.exam-builder__batch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exam-builder__batch-card{min-height:88px}.exam-builder__review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.exam-builder__review dl div{padding:10px;border-radius:9px;background:#f4f7fa}.exam-builder__review dt{color:#687b8b;font-size:.76rem}.exam-builder__review dd{margin:3px 0 0;font-weight:700}.exam-builder__summary{position:sticky;top:82px;padding:18px;border:1px solid #d5e0e7;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(35,62,81,.1)}.exam-builder__summary>span{color:#667a8b;font-size:.78rem;font-weight:600;text-transform:uppercase}.exam-builder__summary>strong{display:block;margin:5px 0}.exam-builder__summary>p{min-height:40px;color:#526b7e}.exam-builder__summary dl{display:grid;gap:7px;margin:14px 0}.exam-builder__summary dl div{display:flex;justify-content:space-between;padding:8px;border-radius:8px;background:#f4f7fa}.exam-builder__summary .btn{width:100%;min-height:50px}.exam-builder__summary>small{display:block;margin-top:8px;color:#687b8b}.exam-builder__mobile-bar{display:none}.exam-builder__empty{padding:18px;border-radius:10px;background:#fff5dd;color:#765817}
@media(max-width:1150px){.exam-builder__chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.exam-builder__category-grid,.exam-builder__batch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.app-main--exams:has(.exam-builder){padding:0}.exam-builder{padding:18px}.exam-builder__layout{grid-template-columns:1fr}.exam-builder__summary{position:static}.exam-builder__chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:900px){
 body:has(.exam-builder){overflow-x:hidden}.professor-shell:has(.exam-builder),.professor-shell--collapsed:has(.exam-builder){padding-left:0}
 .professor-shell:has(.exam-builder) .professor-sidebar,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar{width:min(86vw,320px);transform:translateX(-105%)}
 .professor-shell--drawer-open:has(.exam-builder) .professor-sidebar{transform:translateX(0)}
 .professor-shell:has(.exam-builder) .professor-sidebar-brand,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-brand{grid-template-columns:40px minmax(0,1fr) 44px;padding:.7rem .75rem}
 .professor-shell:has(.exam-builder) .professor-sidebar-brand__icon,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-brand__text,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-label,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-chevron,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-group h2,.professor-shell--collapsed:has(.exam-builder) .professor-sidebar-user__text{display:grid}
 .professor-shell:has(.exam-builder) .professor-sidebar-toggle{display:none}.professor-shell:has(.exam-builder) .professor-sidebar-close,.professor-shell:has(.exam-builder) .professor-drawer-open{display:inline-flex}.professor-shell:has(.exam-builder) .professor-main{width:100%;max-width:none}
 .professor-shell:has(.exam-builder) .professor-sidebar-submenu__panel{position:static;width:auto;padding:.2rem 0 .2rem 2.7rem;border:0;background:transparent;box-shadow:none}
 .professor-shell--drawer-open:has(.exam-builder) .professor-drawer-overlay{display:block}
}
@media(max-width:760px){.exam-builder{gap:13px;padding:12px 12px 94px}.exam-builder__header,.exam-builder__section{padding:17px}.exam-builder__stepper{grid-template-columns:repeat(2,1fr)}.exam-builder__fields,.exam-builder__mode-grid,.exam-builder__chapter-grid,.exam-builder__category-grid,.exam-builder__batch-grid,.exam-builder__review dl{grid-template-columns:1fr}.exam-builder__count{grid-template-columns:1fr}.exam-builder__accordion-toggle{align-items:flex-start;flex-direction:column}.exam-builder__accordion-toggle>span:last-child{width:100%;justify-content:space-between}.exam-builder__toolbar{align-items:flex-start;flex-direction:column}.exam-builder__summary{display:none}.exam-builder__mobile-bar{position:fixed;z-index:18;right:0;bottom:0;left:0;display:flex;min-height:76px;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;border-top:1px solid #cbd8e2;background:rgba(255,255,255,.97);box-shadow:0 -7px 20px rgba(32,54,72,.13)}.exam-builder__mobile-bar span strong,.exam-builder__mobile-bar span small{display:block}.exam-builder__mobile-bar span small{color:#687b8b}.exam-builder__mobile-bar .btn{min-height:50px}.exam-builder input,.exam-builder select,.exam-builder textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.exam-builder__chapter-card,.exam-builder__category-card,.exam-builder__batch-card{transition:none}.exam-builder__chapter-card:hover,.exam-builder__category-card:hover,.exam-builder__batch-card:hover{transform:none}}

/* Focused Exam Create details/recipients and fixed-rules correction. */
.exam-builder__stepper--three{grid-template-columns:repeat(3,1fr)}
.exam-builder__details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.exam-builder__details-column{display:grid;align-content:start;gap:13px;min-width:0}
.exam-builder__details-column>label{display:grid;gap:6px;font-weight:700}
.exam-builder__details textarea{min-height:132px}
.exam-builder__recipient-summary{display:block;margin-top:-6px;color:#526b7e;font-size:.86rem}
.exam-builder__review-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.exam-builder__review-groups>section{min-width:0;padding:13px;border:1px solid #dce5eb;border-radius:11px;background:#f8fafc}
.exam-builder__review-groups h3{margin:0 0 9px;color:#245a76;font-size:.92rem;text-transform:uppercase}
.exam-builder__review-groups dl{display:grid;gap:7px;margin:0}
.exam-builder__review-groups dl div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e5ebef;background:transparent}
.exam-builder__review-groups dl div:last-child{border-bottom:0}
.exam-builder__review-groups dt{color:#687b8b;font-size:.8rem}
.exam-builder__review-groups dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.exam-builder__rules p{margin:7px 0;color:#526b7e}.exam-builder__rules strong{color:#203e55}
@media(max-width:760px){.exam-builder__stepper--three{grid-template-columns:1fr}.exam-builder__details,.exam-builder__review-groups{grid-template-columns:1fr}.exam-builder__details textarea{min-height:104px}}

/* Compact Create Exam heading. */
.exam-builder__header{display:flex;min-height:70px;align-items:center;gap:14px;padding:12px 26px;background:#193653;box-shadow:0 5px 15px rgba(29,64,88,.14)}
.exam-builder__header h1{margin:0;color:#fff;font-size:1.45rem;font-weight:750;line-height:1.2}
.exam-builder__header>.exam-builder__header-separator{color:rgba(255,255,255,.42);font-size:1.35rem;font-weight:400;line-height:1;text-transform:none}
.exam-builder__header>strong{color:rgba(255,255,255,.92);font-size:1.05rem;font-weight:600;line-height:1.3}
@media(max-width:760px){.exam-builder__header{min-height:64px;flex-wrap:wrap;gap:5px 10px;padding:12px 16px}.exam-builder__header h1{font-size:1.3rem}.exam-builder__header>strong{font-size:.98rem}}

/* Scalable student exam list: desktop table and mobile cards. */
.student-exams{display:grid;gap:15px;min-width:0}.student-exams__toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 180px 120px auto auto;align-items:end;gap:10px;padding:14px;border:1px solid #d5e0e7;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(35,62,81,.07)}.student-exams__toolbar label{display:grid;gap:5px;min-width:0;color:#465b6d;font-size:.82rem;font-weight:700}.student-exams__toolbar input,.student-exams__toolbar select{width:100%;min-width:0;min-height:46px;font-size:1rem}.student-exams__toolbar .btn{min-height:46px}.student-exams__range{margin:0;color:#607488;font-size:.9rem}.student-exams__table-wrap{min-width:0;overflow:hidden;border:1px solid #d5e0e7;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(35,62,81,.08)}.student-exams__table{width:100%;border-collapse:collapse;font-size:.9rem}.student-exams__table th{padding:12px 11px;background:#edf3f7;color:#35536b;text-align:left;white-space:nowrap}.student-exams__table th a{color:inherit;text-decoration:none}.student-exams__table td{padding:13px 11px;border-top:1px solid #e2e9ee;vertical-align:middle}.student-exams__table td:nth-child(2){min-width:190px}.student-exams__table td:nth-child(3){min-width:180px}.student-exams__table td:last-child{width:150px}.student-exams__table td strong,.student-exams__table td small,.student-exams__table td time{display:block}.student-exams__table td small{margin-top:4px;color:#6a7d8d}.student-exams__table tr.is-current{background:#effaf3}.student-exams__table tr.is-current td:first-child{border-left:5px solid #239260;padding-left:6px}.student-exam-status{display:inline-flex;align-items:center;min-height:30px;padding:4px 9px;border-radius:999px;background:#edf1f4;color:#526474;font-size:.78rem;font-weight:700;white-space:nowrap}.student-exam-status--active{background:#dff5e8;color:#17663f}.student-exam-status--in_progress{background:#dff3f4;color:#17656b}.student-exam-status--completed{background:#e4eef9;color:#285c8e}.student-exam-status--expired{background:#f8e6e8;color:#963847}.student-exam-status--upcoming{background:#edf0f3;color:#5d6874}.student-exam-status--pending{background:#fff0d4;color:#805a11}.student-exams__waiting,.student-exams__no-action{color:#66798a;font-size:.86rem}.student-exams__cards{display:none}.student-exams__pagination{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}.student-exams__pagination>a{display:grid;place-items:center;min-width:44px;min-height:44px;padding:7px 11px;border:1px solid #c8d6e1;border-radius:9px;background:#fff;color:#285779;text-decoration:none}.student-exams__pagination>a[aria-current=page]{border-color:#2674b5;background:#2674b5;color:#fff;font-weight:700}.student-exams__empty{display:grid;justify-items:center;gap:12px;padding:36px 18px;border:1px dashed #bccbd6;border-radius:14px;background:#f8fafc;text-align:center}.student-exams__empty h2{margin:0;font-size:1.15rem}
@media(max-width:1024px){.student-exams__toolbar{grid-template-columns:minmax(220px,1fr) 160px 110px auto}.student-exams__toolbar>a{grid-column:4}.student-exams__table{font-size:.84rem}.student-exams__table th,.student-exams__table td{padding-right:8px;padding-left:8px}}
@media(max-width:760px){.student-exams{gap:12px}.student-exams__toolbar{grid-template-columns:1fr 1fr;padding:12px}.student-exams__search{grid-column:1/-1}.student-exams__toolbar .btn{width:100%}.student-exams__toolbar>a{grid-column:auto}.student-exams__table-wrap{display:none}.student-exams__cards{display:grid;grid-template-columns:1fr;gap:12px}.student-exam-card{display:grid;gap:10px;width:100%;min-width:0;padding:16px;border:1px solid #d5e0e7;border-left:5px solid #b6c2cc;border-radius:13px;background:#fff;box-shadow:0 5px 15px rgba(35,62,81,.08)}.student-exam-card.is-current{border-left-color:#239260;background:#effaf3}.student-exam-card h2{margin:0;color:#203b51;font-size:1.12rem;line-height:1.3;overflow-wrap:anywhere}.student-exam-card p{margin:0;color:#536b7e;font-size:.94rem}.student-exam-card>strong{font-size:.94rem}.student-exam-card>div .btn{width:100%;min-height:48px}.student-exams__pagination{justify-content:space-between}.student-exams__pagination>a{min-height:48px}.student-exams__range{font-size:.92rem}}
@media(max-width:390px){.student-exams__toolbar{grid-template-columns:1fr}.student-exams__search{grid-column:auto}.student-exams__pagination{justify-content:center}}

/* Focused student exam-list visual correction. */
.student-exams{gap:10px}.student-exams__intro{margin:0 0 1px;color:#687b8d;font-size:.86rem}.student-exams__toolbar{grid-template-columns:minmax(280px,1fr) 160px 110px auto auto;gap:10px;padding:10px 12px;border-radius:11px;box-shadow:0 3px 12px rgba(35,62,81,.06)}.student-exams__toolbar label{gap:4px}.student-exams__toolbar input,.student-exams__toolbar select,.student-exams__toolbar .btn{height:48px;min-height:48px}.student-exams__range{margin:1px 0 2px;color:#718294;font-size:.86rem}.student-exams__table-wrap{overflow-x:auto;border-radius:11px;box-shadow:0 4px 14px rgba(35,62,81,.06)}.student-exams__table{width:100%;min-width:1140px;table-layout:fixed;font-size:.88rem}.student-exams__table th{height:48px;padding:9px 14px;background:#edf3f7;color:#263f56;font-size:.875rem;font-weight:600;vertical-align:middle}.student-exams__table td{height:86px;padding:11px 14px;vertical-align:middle}.student-exams__table th:nth-child(1){width:130px}.student-exams__table th:nth-child(2){width:210px}.student-exams__table th:nth-child(3){width:190px}.student-exams__table th:nth-child(4){width:80px}.student-exams__table th:nth-child(5){width:80px}.student-exams__table th:nth-child(6){width:290px}.student-exams__table th:nth-child(7){width:160px}.student-exams__table td:nth-child(2){min-width:0}.student-exams__table td:nth-child(2)>strong{color:#1d3449;font-size:1.02rem;line-height:1.25}.student-exams__table td:nth-child(2)>small{font-size:.83rem;line-height:1.3}.student-exams__table td:nth-child(3){min-width:0}.student-exam-availability time{color:#2a4156;font-weight:600;white-space:nowrap}.student-exam-availability small{font-size:.82rem;white-space:nowrap}.student-exams__table tr.is-passed,.student-exams__table tr.is-failed{background:#fff}.student-exams__table tr.is-passed{background:linear-gradient(90deg,rgba(35,146,96,.045),rgba(35,146,96,.012) 45%,#fff)}.student-exams__table tr.is-failed{background:linear-gradient(90deg,rgba(190,52,66,.045),rgba(190,52,66,.012) 45%,#fff)}.student-exams__table tr.is-passed td:first-child{border-left:4px solid #238a5d;padding-left:10px}.student-exams__table tr.is-failed td:first-child{border-left:4px solid #c23f50;padding-left:10px}.student-exam-status--passed,.student-exam-status--failed{gap:6px}.student-exam-status--passed{background:#dff4e8;color:#125f3c}.student-exam-status--failed{background:#f9dfe3;color:#8e2634}.student-exam-status--passed::before,.student-exam-status--failed::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.student-exam-result-counts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.student-result-count{display:inline-flex;align-items:center;min-height:29px;padding:4px 8px;border-radius:999px;font-size:.78rem;font-weight:600;line-height:1;white-space:nowrap}.student-result-count--true{background:#e0f4e8;color:#12633e}.student-result-count--false{background:#f9e2e5;color:#962d3b}.student-result-count--unanswered{background:#edf1f4;color:#536575}.student-exam-result-action{display:inline-flex;width:auto;min-height:43px!important;height:43px;padding:0 8px;border-radius:10px;font-size:.82rem;white-space:nowrap}.student-exam-card.is-passed{border-left-color:#238a5d;background:linear-gradient(90deg,rgba(35,146,96,.045),#fff 60%)}.student-exam-card.is-failed{border-left-color:#c23f50;background:linear-gradient(90deg,rgba(190,52,66,.045),#fff 60%)}
@media(max-width:1180px) and (min-width:761px){.student-exams__table-wrap{overflow-x:auto}.student-exams__table{min-width:1080px}.student-exams__toolbar{grid-template-columns:minmax(220px,1fr) 150px 105px auto}.student-exams__toolbar>a{grid-column:4}.student-exams__table th,.student-exams__table td{padding-right:10px;padding-left:10px}}
@media(max-width:700px){.student-exams{gap:10px}.student-exams__intro{margin-bottom:0}.student-exams__toolbar{grid-template-columns:1fr 1fr;padding:11px}.student-exams__search{grid-column:1/-1}.student-exams__toolbar .btn{width:100%}.student-exams__toolbar>a{grid-column:auto}.student-exams__table-wrap{display:none}.student-exams__cards{display:grid}.student-exam-card{gap:11px;padding:16px;border-radius:12px;box-shadow:0 4px 14px rgba(35,62,81,.07)}.student-exam-card h2{font-size:1.125rem}.student-exam-card__meta{margin-top:-5px!important;font-size:.87rem!important}.student-exam-card .student-exam-result-counts{display:grid;grid-template-columns:max-content max-content;justify-content:start}.student-exam-card .student-result-count--unanswered{grid-column:1/-1;justify-self:start}.student-exam-card__action .student-exam-result-action,.student-exam-card__action .btn{width:100%;min-height:48px!important;height:48px}.student-exams__pagination{justify-content:space-between}}
@media(max-width:390px){.student-exams__toolbar{grid-template-columns:1fr}.student-exams__search{grid-column:auto}.student-exam-card .student-exam-result-counts{grid-template-columns:1fr}.student-exam-card .student-result-count--unanswered{grid-column:auto}.student-result-count{justify-self:start}.student-exams__pagination{justify-content:center}}

/* Searchable, paginated professor results route. */
.prof-results{display:grid;gap:11px;min-width:0}.prof-results__header{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border:1px solid #d8e3ec;border-radius:13px;background:#fff}.prof-results__header h1{margin:0;color:#203b51;font-size:1.55rem}.prof-results__header p{margin:3px 0 0;color:#65788a}.prof-results__selection{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}.prof-results__selection::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.prof-results__selection.is-current{background:#ddf3e6;color:#156744}.prof-results__selection.is-previous{background:#edf1f5;color:#55697b}.prof-results__filters{display:grid;grid-template-columns:minmax(230px,1.3fr) minmax(210px,1fr) 145px 175px 95px auto auto;gap:9px;align-items:end;padding:11px;border:1px solid #d6e1ea;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(31,56,78,.06)}.prof-results__filters label{display:grid;gap:4px;min-width:0;color:#496073;font-size:.8rem;font-weight:700}.prof-results__filters input,.prof-results__filters select,.prof-results__filters .btn{min-width:0;height:48px;min-height:48px;font-size:.92rem}.prof-results__range{margin:0;color:#6b7d8e;font-size:.86rem}.prof-results__table-wrap{min-width:0;overflow-x:auto;border:1px solid #d6e1ea;border-radius:12px;background:#fff;box-shadow:0 4px 15px rgba(31,56,78,.06)}.prof-results__table{width:100%;min-width:1120px;border-collapse:collapse;table-layout:fixed;font-size:.84rem}.prof-results__table th{height:48px;padding:9px 10px;background:#edf3f7;color:#2b445a;font-size:.8rem;font-weight:700;vertical-align:middle}.prof-results__table td{height:76px;padding:10px;border-top:1px solid #e2e9ee;vertical-align:middle}.prof-results__table th:nth-child(1){width:185px}.prof-results__table th:nth-child(2){width:120px}.prof-results__table th:nth-child(3){width:125px}.prof-results__table th:nth-child(4),.prof-results__table th:nth-child(5){width:70px}.prof-results__table th:nth-child(6){width:96px}.prof-results__table th:nth-child(7){width:90px}.prof-results__table th:nth-child(8){width:105px}.prof-results__table th:nth-child(9){width:80px}.prof-results__table th:nth-child(10){width:135px}.prof-results__table td strong,.prof-results__table td small{display:block}.prof-results__table td small{margin-top:3px;color:#6a7d8d;overflow-wrap:anywhere}.prof-results__row--passed{background:linear-gradient(90deg,rgba(35,146,96,.05),rgba(35,146,96,.012) 45%,#fff)}.prof-results__row--failed{background:linear-gradient(90deg,rgba(190,52,66,.05),rgba(190,52,66,.012) 45%,#fff)}.prof-results__row--passed td:first-child{border-left:4px solid #238a5d;padding-left:7px}.prof-results__row--failed td:first-child{border-left:4px solid #c23f50;padding-left:7px}.prof-results__row--in-progress{background:#f1f9fa}.prof-results__row--not-submitted{background:#fffaf0}.prof-result-status{display:inline-flex;align-items:center;gap:6px;min-height:29px;padding:4px 9px;border-radius:999px;font-size:.76rem;font-weight:700;white-space:nowrap}.prof-result-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.prof-result-status--passed{background:#dff4e8;color:#125f3c}.prof-result-status--failed{background:#f9dfe3;color:#8e2634}.prof-result-status--in-progress{background:#dff2f4;color:#17656b}.prof-result-status--not-started{background:#eeeafb;color:#624791}.prof-result-status--not-submitted{background:#fff0d5;color:#825700}.prof-result-value{display:inline-flex;align-items:center;min-height:29px;padding:4px 8px;border-radius:999px;font-weight:600;white-space:nowrap}.prof-result-value.is-correct{background:#e0f4e8;color:#12633e}.prof-result-value.is-wrong{background:#f9e2e5;color:#962d3b}.prof-result-value.is-unanswered{background:#edf1f4;color:#536575}.prof-results__action{min-height:42px;padding:7px 10px;border-radius:9px;font-size:.8rem;white-space:nowrap}.prof-results__cards{display:none}.prof-results__pagination{display:flex;align-items:center;justify-content:center;gap:10px}.prof-results__pagination .btn{min-height:44px}.prof-results__pagination .is-disabled{pointer-events:none;opacity:.5}.prof-results__empty{display:grid;justify-items:center;gap:12px;padding:30px 16px;border:1px dashed #b8c8d4;border-radius:12px;background:#f8fafc;text-align:center}.prof-results__empty h1,.prof-results__empty p{margin:0}
.prof-results__filter-disclosure>summary{display:none}.prof-results__filter-disclosure:not([open])>.prof-results__filters{display:grid}.prof-results__compact-list{display:none}
.prof-result-compact{overflow:hidden;border:1px solid #d7e1e8;border-left:4px solid #aab8c4;border-radius:10px;background:#fff}.prof-result-compact--passed{border-left-color:#238a5d;background:#f5fbf7}.prof-result-compact--failed{border-left-color:#c23f50;background:#fff7f8}.prof-result-compact--in-progress{border-left-color:#31858c;background:#f5fbfc}.prof-result-compact--not-started,.prof-result-compact--not-submitted{border-left-color:#8a7db3;background:#faf9fd}.prof-result-compact__trigger{display:grid;width:100%;min-height:52px;grid-template-columns:minmax(0,1fr) auto auto 44px;align-items:center;gap:10px;padding:4px 8px 4px 12px;border:0;background:transparent;color:#263f53;font:inherit;text-align:left;cursor:pointer}.prof-result-compact__trigger:focus-visible{outline:3px solid #2b70ad;outline-offset:-3px}.prof-result-compact__trigger>strong{overflow:hidden;font-size:.98rem;text-overflow:ellipsis;white-space:nowrap}.prof-result-compact__mark{font-size:.9rem;font-weight:600;white-space:nowrap}.prof-result-compact__arrow{display:grid;place-items:center;width:44px;height:44px;font-size:1.25rem;transition:transform .15s ease}.prof-result-compact__trigger[aria-expanded=true] .prof-result-compact__arrow{transform:rotate(180deg)}.prof-result-compact__panel{padding:8px 12px 12px;border-top:1px solid #dce5eb;background:rgba(255,255,255,.72)}.prof-result-compact__email{margin:0 0 8px;color:#65798a;font-size:.86rem;overflow-wrap:anywhere}.prof-result-compact__panel dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.prof-result-compact__panel dl div{padding:7px 8px;border-radius:7px;background:#f2f6f8}.prof-result-compact__panel dt{color:#647887;font-size:.75rem}.prof-result-compact__panel dd{margin:2px 0 0;font-size:.9rem;font-weight:600}.prof-result-compact__panel .is-correct{color:#12633e;background:#e7f6ed}.prof-result-compact__panel .is-wrong{color:#962d3b;background:#fbe9eb}.prof-result-compact__panel .is-unanswered{color:#536575;background:#edf1f4}.prof-result-compact__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.prof-result-compact__actions .btn{min-height:44px}
.prof-result-value--wrong-button{border:1px solid transparent;font:inherit;cursor:pointer}.prof-result-value--wrong-button:hover,.prof-result-value--wrong-button:focus-visible{border-color:#c74455;background:#f5cfd5;color:#7e1f2d;outline:3px solid rgba(199,68,85,.18);outline-offset:2px}.prof-result-card__wrong-button{display:flex;width:100%;min-height:42px;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid transparent;border-radius:9px;background:#fbe9eb;color:#962d3b;font:inherit;cursor:pointer}.prof-result-card__wrong-button:hover,.prof-result-card__wrong-button:focus-visible{border-color:#c74455;background:#f5cfd5;outline:3px solid rgba(199,68,85,.18);outline-offset:2px}
@media(max-width:1180px){.prof-results__filters{grid-template-columns:repeat(3,minmax(0,1fr))}.prof-results__exam,.prof-results__search{grid-column:span 2}.prof-results__filters .btn{width:100%}.prof-results__table th:nth-child(2),.prof-results__table td:nth-child(2),.prof-results__table th:nth-child(6),.prof-results__table td:nth-child(6),.prof-results__table th:nth-child(9),.prof-results__table td:nth-child(9){display:none}.prof-results__table{min-width:820px}}
@media(max-width:700px){.prof-results{gap:10px}.prof-results__header{min-height:0;align-items:flex-start;flex-direction:column;padding:13px}.prof-results__header h1{font-size:1.35rem}.prof-results__filters{grid-template-columns:1fr 1fr;padding:12px}.prof-results__exam,.prof-results__search{grid-column:1/-1}.prof-results__filters input,.prof-results__filters select,.prof-results__filters .btn{font-size:16px}.prof-results__table-wrap{display:none}.prof-results__cards{display:grid;gap:12px}.prof-result-card{display:grid;gap:10px;min-width:0;padding:16px;border:1px solid #d5e0e7;border-left:5px solid #a9b7c3;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(35,62,81,.07)}.prof-result-card--passed{border-left-color:#238a5d;background:linear-gradient(90deg,rgba(35,146,96,.05),#fff 65%)}.prof-result-card--failed{border-left-color:#c23f50;background:linear-gradient(90deg,rgba(190,52,66,.05),#fff 65%)}.prof-result-card--in-progress{border-left-color:#31858c;background:#f3fbfb}.prof-result-card--not-submitted{border-left-color:#c38b25;background:#fffaf1}.prof-result-card h2{margin:0;color:#203b51;font-size:1.125rem}.prof-result-card>p{margin:-6px 0 0;color:#637789;font-size:.94rem;overflow-wrap:anywhere}.prof-result-card__stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prof-result-card__stats>span{display:flex;justify-content:space-between;gap:8px;min-height:42px;padding:10px;border-radius:9px;background:#f4f7f9;color:#40586b}.prof-result-card__stats .is-correct{background:#e7f6ed;color:#12633e}.prof-result-card__stats .is-wrong{background:#fbe9eb;color:#962d3b}.prof-result-card__stats .is-unanswered{grid-column:1/-1}.prof-result-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.prof-result-card dl div{padding:9px;border:1px solid #e0e7ec;border-radius:9px}.prof-result-card dt{color:#6b7d8d;font-size:.78rem}.prof-result-card dd{margin:3px 0 0;font-weight:700}.prof-result-card>.btn{width:100%;min-height:48px}.prof-results__pagination{justify-content:space-between}.prof-results__pagination .btn{min-height:48px}}
@media(max-width:1024px){.prof-results__filter-disclosure>summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid #cbd9e3;border-radius:10px;background:#fff;color:#29465d;font-weight:600;cursor:pointer;list-style:none}.prof-results__filter-disclosure>summary::-webkit-details-marker{display:none}.prof-results__filter-disclosure:not([open])>.prof-results__filters{display:none}.prof-results__filter-disclosure[open]>.prof-results__filters{display:grid;margin-top:6px;grid-template-columns:1fr 1fr}.prof-results__search{grid-column:1/-1}.prof-results__table-wrap{display:none}.prof-results__compact-list{display:grid;gap:5px}.prof-results__pagination{justify-content:space-between}.prof-results__pagination .btn{min-height:48px}}
@media(max-width:600px){.prof-results__filter-disclosure[open]>.prof-results__filters{grid-template-columns:1fr;padding:10px}.prof-results__filters label,.prof-results__filters .btn{grid-column:1}.prof-result-compact__trigger{min-height:52px;grid-template-columns:minmax(0,1fr) 44px;gap:1px 8px;padding:4px 6px 4px 12px}.prof-result-compact__trigger>strong{grid-column:1;grid-row:1;font-size:.95rem}.prof-result-compact__arrow{grid-column:2;grid-row:1/3}.prof-result-compact__mark{grid-column:1;grid-row:2;font-size:.84rem}.prof-result-compact__trigger>.prof-result-status{grid-column:1;grid-row:2;justify-self:end;min-height:24px;padding:2px 7px;font-size:.76rem}.prof-result-compact__panel dl{grid-template-columns:1fr 1fr}.prof-result-compact__actions{display:grid;grid-template-columns:1fr}.prof-result-compact__actions .btn{width:100%;min-height:48px}}

/* Focused professor exam-detail tabs, modal action and question navigation. */
.exam-detail--focused .exam-detail__tabs{gap:0;padding:2px!important;border:1px solid #b9cad8!important;border-radius:10px;background:#eef4f8!important;overflow:hidden}
.exam-detail--focused .exam-detail__tabs .exam-detail__tab{min-height:44px;border:1px solid transparent;border-radius:8px;background:#fff;box-shadow:none;font-weight:700}
.exam-detail--focused .exam-detail__tab--students{color:#2868c7}
.exam-detail--focused .exam-detail__tab--questions{color:#187b74}
.exam-detail--focused .exam-detail__tab--students.is-active{border-color:#2868c7;background:#2868c7;color:#fff;box-shadow:inset 0 -3px 0 #174f9c}
.exam-detail--focused .exam-detail__tab--questions.is-active{border-color:#187b74;background:#187b74;color:#fff;box-shadow:inset 0 -3px 0 #0d5b56}
.exam-detail--focused .exam-detail__tab[aria-selected="true"]::before{content:"✓";margin-right:.35rem;font-size:.78em}
.exam-detail--focused .exam-detail__tab:focus-visible{position:relative;z-index:1;outline:3px solid rgba(40,104,199,.28);outline-offset:2px}
.exam-information-modal>footer{align-items:center;gap:10px}.exam-information-modal__add-students{margin-right:auto;min-height:44px}
#professor-question-analysis{scroll-margin-top:130px}
#professor-question-analysis .question-slide__nav{grid-template-columns:48px minmax(120px,auto) 48px minmax(180px,1fr)}
#professor-question-analysis .question-arrow{display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border:0;border-radius:50%;background:#2868c7;color:#fff;box-shadow:0 3px 9px rgba(26,72,132,.22)}
#professor-question-analysis .question-arrow svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
#professor-question-analysis a.question-arrow:hover,#professor-question-analysis a.question-arrow:focus-visible{background:#1d56a7;outline:3px solid rgba(40,104,199,.28);outline-offset:3px}
#professor-question-analysis .question-arrow:active:not(:disabled){background:#174887;transform:translateY(1px)}
#professor-question-analysis .question-arrow:disabled{cursor:not-allowed;background:#d9e2ea;color:#7d8b98;box-shadow:none}
#professor-question-analysis .question-slide__nav form{min-width:0}
#professor-question-analysis .question-slide__nav select{min-height:44px}
@media(max-width:760px){
 #professor-question-analysis{scroll-margin-top:125px}
 #professor-question-analysis .question-slide__nav{grid-template-columns:46px minmax(0,1fr) 46px}
 #professor-question-analysis .question-arrow{width:46px;height:46px;min-width:46px}
 #professor-question-analysis .question-slide__nav form{grid-column:1/-1}
}
@media(max-width:430px){
 .exam-information-modal>footer{display:grid;grid-template-columns:1fr 1fr}.exam-information-modal__add-students{width:100%;margin:0}
}
.exam-result-compact--passed{border-left:4px solid #238a5d!important;background:#f5fbf7!important}
.exam-result-compact--failed{border-left:4px solid #c23f50!important;background:#fff7f8!important}
.exam-result-compact--in-progress{border-left:4px solid #31858c!important;background:#f5fbfc!important}
.exam-result-compact--not-started,.exam-result-compact--not-submitted{border-left:4px solid #8a7db3!important;background:#faf9fd!important}
@media(max-width:1099px){
 .prof-results__table-wrap{display:none}
 .prof-results__compact-list.students-card-grid{display:grid}
 .prof-results__filter-disclosure>summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid #cbd9e3;border-radius:10px;background:#fff;color:#29465d;font-weight:600;cursor:pointer;list-style:none}
 .prof-results__filter-disclosure>summary::-webkit-details-marker{display:none}
 .prof-results__filter-disclosure:not([open])>.prof-results__filters{display:none}
 .prof-results__filter-disclosure[open]>.prof-results__filters{display:grid;margin-top:6px;grid-template-columns:1fr 1fr}
 .prof-results__search{grid-column:1/-1}
 .exam-result-compact .student-compact-row__details dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
 .exam-result-compact .student-compact-row__details dl div{padding:7px 8px;border-radius:7px;background:#f2f6f8}
}
@media(max-width:600px){
 .exam-result-compact .student-compact-row__details dl{grid-template-columns:1fr 1fr}
 .prof-results__filter-disclosure[open]>.prof-results__filters{grid-template-columns:1fr;padding:10px}
}
@media(max-width:390px){.prof-results__filters{grid-template-columns:1fr}.prof-results__exam,.prof-results__search{grid-column:auto}.prof-result-card__stats,.prof-result-card dl{grid-template-columns:1fr}.prof-result-card__stats .is-unanswered{grid-column:auto}.prof-results__pagination{flex-wrap:wrap;justify-content:center}}

/* Student Exams: scalable desktop table and shared compact disclosure rows. */
.student-exams__filter-disclosure>summary{display:none}
.student-exams__filter-disclosure:not([open])>.student-exams__toolbar{display:grid}
.student-exams__toolbar{grid-template-columns:180px 130px auto auto;justify-content:start}
.student-exams__table{min-width:940px;table-layout:auto}
.student-exams__table th:nth-child(n){width:auto}
.student-exams__table td{height:72px}
.student-exam-row--waiting{background:#fff8df}
.student-exam-row--waiting td:first-child{border-left:4px solid #d59a21;padding-left:10px}
.student-exam-row--passed{background:#eaf8f0}
.student-exam-row--passed td:first-child{border-left:4px solid #238a5d;padding-left:10px}
.student-exam-row--failed{background:#fff0f2}
.student-exam-row--failed td:first-child{border-left:4px solid #c23f50;padding-left:10px}
.student-exam-row--in-progress{background:#f0f8fa}
.student-exam-row--not-started,.student-exam-row--upcoming{background:#f7f5fc}
.student-exam-status--waiting{background:#ffedb8;color:#76510b}
.student-exam-status--passed{background:#d7f0e2;color:#125f3c}
.student-exam-status--failed{background:#f9dce1;color:#8e2634}
.student-exam-status--in-progress{background:#dff2f4;color:#17656b}
.student-exam-status--not-started,.student-exam-status--upcoming{background:#ece8f8;color:#60488b}
.student-exam-row__actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.student-exam-row__actions .btn{min-height:42px;padding:7px 9px;font-size:.8rem;white-space:nowrap}
.student-exams__compact-list{display:none}
.student-exams__zero-errors{display:inline-flex;align-items:center;color:#17663f;font-size:.84rem;font-weight:600}
@media(max-width:1024px){
 .student-exams__filter-disclosure>summary{display:flex;min-height:46px;align-items:center;justify-content:space-between;padding:8px 12px;border:1px solid #cbd9e3;border-radius:10px;background:#fff;color:#29465d;font-weight:600;cursor:pointer;list-style:none}
 .student-exams__filter-disclosure>summary::-webkit-details-marker{display:none}
 .student-exams__filter-disclosure:not([open])>.student-exams__toolbar{display:none}
 .student-exams__filter-disclosure[open]>.student-exams__toolbar{display:grid;grid-template-columns:1fr 1fr auto auto;margin-top:6px;padding:10px}
 .student-exams__table-wrap{display:none}
 .student-exams__compact-list{display:grid;gap:7px}
 .student-exam-compact{overflow:hidden;border:1px solid #d7e1e8;border-left:4px solid #aab8c4;border-radius:10px;background:#fff;box-shadow:0 3px 10px rgba(41,58,84,.06)}
 .student-exam-compact--waiting{border-left-color:#d59a21;background:#fff8df}
 .student-exam-compact--passed{border-left-color:#238a5d;background:#eaf8f0}
 .student-exam-compact--failed{border-left-color:#c23f50;background:#fff0f2}
 .student-exam-compact--in-progress{border-left-color:#31858c;background:#f0f8fa}
 .student-exam-compact--not-started,.student-exam-compact--upcoming{border-left-color:#8170ad;background:#f7f5fc}
 .student-exam-compact__toggle{display:grid;width:100%;min-height:62px;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:8px;padding:8px 7px 8px 11px;border:0;background:transparent;color:#263f53;font:inherit;text-align:left;cursor:pointer}
 .student-exam-compact__toggle:focus-visible{outline:3px solid rgba(43,112,173,.4);outline-offset:-3px}
 .student-exam-compact__identity{display:grid;min-width:0;gap:2px}
 .student-exam-compact__identity strong{overflow:hidden;font-size:1rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
 .student-exam-compact__identity small{color:#65798a;font-size:.84rem}
 .student-exam-compact__summary{font-size:.86rem;white-space:nowrap}
 .student-exam-compact__summary b{font-weight:700}
 .student-exam-compact__toggle[aria-expanded=true] .student-compact-row__arrow svg{transform:rotate(180deg)}
 .student-exam-compact__panel{padding:9px 11px 11px;border-top:1px solid rgba(102,122,139,.24);background:rgba(255,255,255,.7)}
 .student-exam-compact__panel[hidden]{display:none}
 .student-exam-compact__details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
 .student-exam-compact__details-grid div{padding:7px 8px;border-radius:7px;background:rgba(242,246,248,.9)}
 .student-exam-compact__details-grid dt{color:#647887;font-size:.75rem}
 .student-exam-compact__details-grid dd{margin:2px 0 0;font-size:.88rem;font-weight:600;overflow-wrap:anywhere}
 .student-exam-compact__details-grid .is-correct{color:#12633e;background:#e7f6ed}
 .student-exam-compact__details-grid .is-wrong{color:#962d3b;background:#fbe9eb}
 .student-exam-compact__details-grid .is-unanswered{color:#536575;background:#edf1f4}
 .student-exam-compact__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}
 .student-exam-compact__actions .btn{min-height:44px}
}
@media(max-width:600px){
 .student-exams__filter-disclosure[open]>.student-exams__toolbar{grid-template-columns:1fr;padding:10px}
 .student-exams__toolbar label,.student-exams__toolbar .btn{grid-column:1}
 .student-exam-compact__toggle{grid-template-columns:minmax(0,1fr) 44px;gap:2px 7px}
 .student-exam-compact__identity{grid-column:1;grid-row:1}
 .student-exam-compact__summary{grid-column:1;grid-row:2;white-space:normal}
 .student-exam-compact__toggle>.student-compact-row__arrow{grid-column:2;grid-row:1/3}
 .student-exam-compact__details-grid{grid-template-columns:1fr 1fr}
 .student-exam-compact__actions{display:grid;grid-template-columns:1fr}
 .student-exam-compact__actions .btn{width:100%;min-height:48px}
}

/* Professor result wrong-answer review: one wide controlled modal surface. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.wrong-questions-modal{width:min(1120px,calc(100vw - 48px));height:min(90vh,900px);max-width:calc(100vw - 48px);max-height:90vh;margin:auto;padding:0;border:0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(20,35,55,.3);overflow:hidden}
.wrong-questions-modal[open]{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto}
.wrong-modal__header{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-bottom:1px solid #eadfe1;background:#fff}
.wrong-modal__header h2{margin:0;color:#263b50;font-size:1.35rem;line-height:1.2}.wrong-modal__header p{margin:3px 0 0;color:#6b7c8c;font-size:.9rem}.wrong-modal__close{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px}
.wrong-modal__summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 18px;background:#f8fafc}
.wrong-modal__stat{display:flex;min-width:0;min-height:42px;align-items:center;justify-content:space-between;gap:8px;padding:7px 11px;border-radius:9px;font-size:.82rem;font-weight:600}.wrong-modal__stat b{margin:0;font-size:1rem}.wrong-modal__stat--wrong{background:#fbe8eb;color:#922c3a}.wrong-modal__stat--correct{background:#e2f4eb;color:#126744}.wrong-modal__stat--unanswered{background:#edf1f4;color:#52616e}.wrong-modal__stat--percentage{background:#e5effa;color:#285d91}
.wrong-modal__navigator{position:relative;z-index:2;display:grid;grid-template-columns:48px minmax(220px,460px) 48px;align-items:center;justify-content:space-between;gap:16px;padding:9px 18px;border-top:0;border-bottom:1px solid #dbe4eb;background:#fff;box-shadow:0 4px 10px rgba(32,54,72,.06)}
.wrong-modal__navigator .wrong-modal__arrow{width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0}.wrong-modal__navigator .wrong-modal__arrow:disabled{cursor:not-allowed;background:#d7e2eb;color:#8396a6;box-shadow:none;opacity:1}.wrong-modal__jump{display:grid;min-width:0;gap:4px;text-align:center}.wrong-modal__jump strong{color:#40586d;font-size:.85rem}.wrong-modal__jump label,.wrong-modal__jump select{width:100%;min-width:0}.wrong-modal__jump select{min-height:40px;padding:6px 34px 6px 10px;border:1px solid #bdccd8;border-radius:9px;background:#fff;color:#263b50;font-size:.9rem}
.wrong-modal__current{min-width:0;min-height:0;max-height:none;padding:18px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.wrong-question.wrong-question--single{max-width:none;margin:0;padding:0 0 6px 14px;border:0;border-left:4px solid #d54b5c;border-radius:0;background:#fff}.wrong-question--single header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:0;color:#31495d}.wrong-question--single [data-wrong-number]{font-size:1rem}.wrong-question__status{display:inline-flex;min-height:30px;align-items:center;padding:4px 9px;border-radius:999px;background:#fbe5e8;color:#a12838;font-size:.8rem;font-weight:600}
.wrong-question .wrong-question__text{margin:0;color:#24394c;font-size:clamp(18px,1.45vw,20px);font-weight:550;line-height:1.55}.wrong-question .wrong-question__image{display:block;width:auto;height:auto;max-width:min(100%,520px);max-height:360px;margin:16px auto 0;object-fit:contain}
.wrong-question__meta{display:grid;gap:3px;margin:15px 0 0;padding-top:11px;border-top:1px solid #e5ebef;color:#647789;font-size:.88rem}.wrong-question__meta span+span:before{content:"Sottocategoria: ";font-weight:700}.wrong-question__meta span:first-child:before{content:"Capitolo: ";font-weight:700}
.wrong-question .wrong-question__answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 0}.wrong-question--single .wrong-question__answers>div{padding:13px 15px;border:0;border-radius:11px}.wrong-question--single .wrong-answer-state{background:#fbe7ea;color:#922b3a}.wrong-question--single .correct-answer-state{background:#e2f4eb;color:#126744}.wrong-question--single dl dt{font-size:.88rem;font-weight:700}.wrong-question--single dl dd{margin-top:5px;font-size:1.3rem;font-weight:700}
.wrong-questions-modal .question-explanation-panel{margin:18px 0 0;padding:16px 0 0;border:0;border-top:1px solid #d8e3e7;border-radius:0;background:#fff;color:#263b50}.wrong-questions-modal .question-explanation-panel>h2{font-size:1.15rem}.wrong-questions-modal .question-explanation-tabs{margin:10px 0 6px}.wrong-questions-modal .question-explanation-content section{padding:12px 0;border-top:1px solid #e3eaee}.wrong-questions-modal .question-explanation-content aside{margin-top:8px;border:0;border-left:4px solid #e4a23a;border-radius:7px}.wrong-explanation__unavailable{margin:12px 0;padding:12px;border-radius:8px;background:#f1f4f6;color:#607181}
.wrong-questions-modal footer{display:flex;justify-content:flex-end;gap:9px;padding:10px 18px;border-top:1px solid #dbe4eb;background:#f8fafc}
@media(max-width:900px){.wrong-questions-modal{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}
@media(max-width:600px){.wrong-questions-modal{width:100%;height:100dvh;max-width:100%;max-height:100dvh;border-radius:0}.wrong-modal__header{padding:9px 12px}.wrong-modal__header h2{font-size:1.15rem}.wrong-modal__summary{grid-template-columns:1fr 1fr;padding:8px 12px}.wrong-modal__stat{min-height:40px;padding:6px 9px}.wrong-modal__navigator{grid-template-columns:46px minmax(0,1fr) 46px;gap:9px;padding:8px 12px}.wrong-modal__navigator>.wrong-modal__jump{grid-column:2;grid-row:1}.wrong-modal__navigator>[data-wrong-next]{grid-column:3;grid-row:1}.wrong-modal__navigator .wrong-modal__arrow{width:46px;height:46px;min-width:46px;min-height:46px}.wrong-modal__jump strong{font-size:.8rem}.wrong-modal__jump select{font-size:.82rem}.wrong-modal__current{padding:14px 12px}.wrong-question.wrong-question--single{padding-left:10px}.wrong-question .wrong-question__text{font-size:18px}.wrong-question .wrong-question__image{width:100%;max-width:100%;max-height:none}.wrong-question .wrong-question__answers{grid-template-columns:1fr}.wrong-questions-modal .question-explanation-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.wrong-questions-modal .question-explanation-tabs button{flex:0 0 auto;min-width:110px}.wrong-questions-modal footer{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:8px 12px}.wrong-questions-modal footer .btn{min-height:44px}.wrong-questions-modal footer .btn-primary{white-space:nowrap}}
@media(max-width:390px){.wrong-modal__header p{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wrong-modal__summary{gap:6px}.wrong-modal__stat{font-size:.75rem}.wrong-modal__navigator{gap:7px}.wrong-modal__jump select{padding-left:7px}.wrong-questions-modal footer .btn-primary{font-size:.86rem}.wrong-questions-modal footer .btn-quiet{padding-inline:10px}}

/* Professor exam results: dedicated phone layout, desktop table remains canonical. */
.exam-info-mobile,.exam-result-cards,.pagination-short{display:none}
@media(max-width:600px){
 .app-main--exams{min-width:0;padding:12px;overflow-x:hidden}
 .exam-detail--focused{gap:12px;min-width:0}
 .exam-detail__compact-nav{display:grid;gap:10px;min-width:0;padding:12px;border-radius:12px}
 .exam-detail__identity{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0}
 .exam-detail__back{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:1px solid #cbd8e2;border-radius:10px;background:#fff;font-size:1.2rem}
 .exam-detail__identity h1{min-width:0;margin:0;font-size:clamp(20px,5.4vw,22px);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .exam-detail__identity .exam-status{font-size:.8rem}
 .exam-detail__tabs{display:flex;width:100%;min-width:0;overflow-x:auto;scrollbar-width:thin}
 .exam-detail__tabs a{flex:1 0 auto;min-height:44px;justify-content:center;font-size:.92rem}
 .exam-detail__layout--results{display:block;min-width:0}
 .exam-info-card{display:none}
 .exam-info-mobile{display:block;margin-bottom:12px;border:1px solid #d5e0e7;border-radius:12px;background:#fff;box-shadow:0 4px 13px rgba(35,62,81,.07);overflow:hidden}
 .exam-info-mobile summary{display:grid;gap:10px;padding:14px;list-style:none;cursor:pointer}.exam-info-mobile summary::-webkit-details-marker{display:none}
 .exam-info-mobile__heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-info-mobile__heading>strong{color:#263f53;font-size:18px}.exam-info-mobile__toggle{display:flex;align-items:center;gap:5px;color:#2868a3;font-size:14px;font-weight:700}.exam-info-mobile[open] .exam-info-mobile__toggle{color:#5c6f80}.exam-info-mobile[open] .exam-info-mobile__toggle:last-child{transform:none}.when-open{display:none}.exam-info-mobile[open] .when-open{display:inline}.exam-info-mobile[open] .when-closed{display:none}
 .exam-info-mobile__brief{display:grid;grid-template-columns:1fr 1fr;gap:8px}.exam-info-mobile__brief>span{display:grid;gap:3px;padding:9px;border-radius:8px;background:#f4f7f9;color:#657788;font-size:14px}.exam-info-mobile__brief b{color:#263f53;font-size:16px}.exam-info-mobile[open] .exam-info-mobile__brief{display:none}
 .exam-info-mobile__details{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 14px;border-top:1px solid #e2e9ee}.exam-info-mobile__details>div{display:grid;gap:3px;padding:10px 9px;border-bottom:1px solid #e8edf1}.exam-info-mobile__details span{color:#657788;font-size:14px}.exam-info-mobile__details strong{color:#263f53;font-size:16px}
 .exam-detail__students{min-width:0;padding:0;border:0;background:transparent}
 .exam-students__heading{padding:2px}.exam-students__heading h2{font-size:18px}.exam-students__heading p{margin:3px 0;color:#657788;font-size:15px}
 .exam-students__filters{display:grid;grid-template-columns:1fr;gap:11px;margin:0 0 12px;padding:14px;border-radius:12px}
 .exam-students__filters label{gap:6px;font-size:15px}.exam-students__filters input,.exam-students__filters select{width:100%;min-width:0;min-height:48px;font-size:16px}.exam-students__filters .btn{width:100%;min-height:48px;font-size:16px}
 .exam-results-list{display:block!important;min-width:0;overflow:visible;border:0;background:transparent;box-shadow:none}
 .exam-results-list>table{display:none!important}
 .exam-result-cards{display:grid;grid-template-columns:1fr;gap:12px;min-width:0}
 .exam-result-card{display:grid;gap:14px;min-width:0;padding:15px;border:1px solid #d5e0e7;border-left:4px solid #aab8c4;border-radius:12px;background:#fff;box-shadow:0 5px 15px rgba(35,62,81,.08)}
 .exam-result-card--completed{border-left-color:#278770}.exam-result-card--active{border-left-color:#2788a0}.exam-result-card--assigned{border-left-color:#8170ad}
 .exam-result-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.exam-result-card h3{margin:0;color:#263f53;font-size:18px;line-height:1.3;overflow-wrap:anywhere}.exam-result-card header p{margin:3px 0 0;color:#66798a;font-size:15px;overflow-wrap:anywhere}.exam-result-card .assignment-state{flex:0 0 auto;min-height:30px;align-items:center}
 .exam-result-card__stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}.exam-result-card__stats>div{display:grid;gap:4px;min-height:68px;padding:10px 11px;border-radius:9px}.exam-result-card__stats span{font-size:14px;font-weight:700}.exam-result-card__stats strong,.exam-result-card__stats button{font-size:20px;font-weight:700}.exam-result-card__stats button{justify-self:start;padding:0;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer}.exam-result-card__stats .is-correct{background:#e4f4ec;color:#126744}.exam-result-card__stats .is-wrong{background:#fbe8eb;color:#922c3a}.exam-result-card__stats .is-unanswered{background:#edf1f4;color:#52616e}.exam-result-card__stats .is-percentage{background:#e6eff9;color:#285d91}
 .exam-result-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.exam-result-card dl div{min-width:0}.exam-result-card dt{color:#687a8a;font-size:14px}.exam-result-card dd{margin:3px 0 0;color:#2c4356;font-size:16px;font-weight:700}
 .exam-result-card__action{display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;font-size:16px;text-align:center}.exam-result-card__action.is-disabled{background:#edf1f4;color:#6a7885;opacity:1}
 .exam-results-pagination{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:9px;margin:14px 0 2px}.exam-results-pagination .btn{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0}.exam-results-pagination>span{text-align:center;font-size:15px}.pagination-long{display:none}.pagination-short{display:inline;font-size:1.25rem}
}
@media(max-width:370px){.app-main--exams{padding-inline:10px}.exam-detail__identity{grid-template-columns:44px minmax(0,1fr)}.exam-detail__identity .exam-status{grid-column:2;justify-self:start}.exam-info-mobile__brief,.exam-info-mobile__details{grid-template-columns:1fr}.exam-result-card>header{display:grid}.exam-result-card .assignment-state{justify-self:start}.exam-result-card dl{grid-template-columns:1fr}}
@media(max-width:600px) and (orientation:landscape){.wrong-modal__header{padding-block:6px}.wrong-modal__summary{grid-template-columns:repeat(4,1fr);padding-block:5px}.wrong-modal__navigator{padding-block:5px}.wrong-questions-modal footer{padding-block:5px}.wrong-modal__current{padding-block:10px}}

/* Shared professor student-result viewer modal. */
body.has-student-result-modal{overflow:hidden}
.student-result-modal{width:min(1180px,calc(100vw - 48px));height:min(94vh,940px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(16,31,49,.38);overflow:hidden}
.student-result-modal::backdrop{background:rgba(17,29,43,.68)}
.student-result-modal[open]{display:block}
.student-result-modal__content{width:100%;height:100%;overflow:hidden}
.student-result-detail--modal{display:grid;width:100%;height:100%;grid-template-rows:auto minmax(0,1fr);gap:0}
.student-result-detail--modal .student-result-detail__header{position:relative;z-index:4;min-height:76px;border:0;border-bottom:1px solid #dce5ee;border-radius:0;padding:12px 18px;background:#f5f9fd}
.student-result-detail__mode-label{display:block;margin-bottom:2px;color:#a52d3e;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.student-result-detail__close{display:grid;width:46px;height:46px;min-width:46px;min-height:46px;place-items:center;padding:0;border:1px solid #b9c9d7;border-radius:50%;background:#fff;color:#29475f;font-size:27px;line-height:1;cursor:pointer}
.student-result-detail__close:hover,.student-result-detail__close:active{border-color:#2868c7;background:#eaf2fc;color:#194f88}.student-result-detail__close:focus-visible{outline:3px solid #f4b942;outline-offset:2px}
.student-result-detail--modal .student-result-detail__content{display:grid;align-content:start;gap:9px;min-width:0;min-height:0;padding:12px 18px 18px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.student-result-mode-switch{display:flex;width:max-content;max-width:100%;gap:4px;padding:3px;border:1px solid #d5e0e9;border-radius:10px;background:#f5f8fa}
.student-result-mode-switch button{min-height:40px;padding:5px 13px;border:0;border-radius:7px;background:transparent;color:#4e6275;font:inherit;font-weight:600;cursor:pointer}
.student-result-mode-switch button.is-active{background:#2868c7;color:#fff;box-shadow:0 2px 5px rgba(40,104,199,.2)}
.student-result-mode-switch button:focus-visible{outline:3px solid #f4b942;outline-offset:2px}
.student-result-detail--modal .student-result-review{scroll-margin-top:12px}
.student-result-detail--modal .question-explanation-dialog{z-index:10002}
.student-result-modal__loading,.student-result-modal__error{display:grid;height:100%;place-items:center;align-content:center;gap:16px;padding:24px;color:#40566a;text-align:center}
.student-result-modal__error div{display:flex;gap:10px}
@media(max-width:1024px){
 .student-result-modal{inset:0;width:100%;height:100vh;height:100dvh;max-width:100%;max-height:none;margin:0;border-radius:0}
 .student-result-detail--modal .student-result-detail__header{min-height:72px;padding:10px 14px}
 .student-result-detail--modal .student-result-detail__content{padding:9px 12px 14px}
}
@media(max-width:430px){
 .student-result-detail--modal .student-result-detail__header h1{font-size:22px}
 .student-result-detail--modal .student-result-detail__header p{font-size:14px}
 .student-result-detail__close{width:44px;height:44px;min-width:44px;min-height:44px}
 .student-result-mode-switch{width:100%}.student-result-mode-switch button{flex:1}
}

/* Merged exam-detail results layout. */
.exam-detail__layout--results{grid-template-columns:280px minmax(0,1fr)}
.prof-results__filters{grid-template-columns:minmax(210px,1.5fr) 145px 175px 95px auto auto}
@media(max-width:1024px){.exam-detail__layout--results{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}.exam-detail__layout--results>.exam-info-card,.exam-detail__layout--results>.exam-detail__students{width:100%;min-width:0}.exam-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.prof-results__filters{grid-template-columns:1fr 1fr}.prof-results__search{grid-column:1/-1}}
@media(max-width:900px){.prof-results__filters{width:100%;min-width:0;grid-template-columns:1fr 1fr}.prof-results__search{grid-column:1/-1}.prof-results__filters .btn{width:100%}}
@media(max-width:390px){.prof-results__filters{grid-template-columns:1fr}.prof-results__search{grid-column:auto}}
.prof-results__table{min-width:1000px}
.prof-results__table th:nth-child(1){width:185px}.prof-results__table th:nth-child(2){width:125px}.prof-results__table th:nth-child(3),.prof-results__table th:nth-child(4){width:70px}.prof-results__table th:nth-child(5){width:96px}.prof-results__table th:nth-child(6){width:90px}.prof-results__table th:nth-child(7){width:105px}.prof-results__table th:nth-child(8){width:80px}.prof-results__table th:nth-child(9){width:135px}
@media(max-width:1180px){.prof-results__table th:nth-child(2),.prof-results__table td:nth-child(2),.prof-results__table th:nth-child(6),.prof-results__table td:nth-child(6),.prof-results__table th:nth-child(9),.prof-results__table td:nth-child(9){display:table-cell}.prof-results__table th:nth-child(5),.prof-results__table td:nth-child(5),.prof-results__table th:nth-child(7),.prof-results__table td:nth-child(7),.prof-results__table th:nth-child(8),.prof-results__table td:nth-child(8){display:none}.prof-results__table{min-width:720px}}
.professor-shell .professor-main{max-width:calc(100vw - var(--professor-sidebar-expanded))}
.professor-shell--collapsed .professor-main{max-width:calc(100vw - var(--professor-sidebar-collapsed))}
@media(max-width:900px){.professor-shell .professor-main,.professor-shell--collapsed .professor-main{max-width:none}}

/* Full-width exam results and compact shared exam metadata. */
.exam-detail__layout--results{display:block;width:100%;min-width:0}.exam-detail__layout--results>.exam-detail__students{width:100%;min-width:0}
.exam-detail__heading{display:grid;min-width:0;gap:5px}.exam-detail__metadata{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-left:50px}
.exam-detail__batch{max-width:280px;overflow:hidden;color:#526a7d;font-size:.84rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.exam-detail__result-chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;font-size:.78rem;font-weight:600;white-space:nowrap}
.exam-detail__result-chip--passed{background:#e2f5eb;color:#146943}.exam-detail__result-chip--failed{background:#f9e4e7;color:#972f3e}
.exam-detail__result-chip--non-participated{background:#fff0bd;color:#795600}
.prof-results__row--non-participated{background:#fff9e8}.prof-results__row--non-participated td:first-child{border-left:4px solid #d5a21d;padding-left:7px}
.prof-result-status--non-participated{background:#ffedb8;color:#76510b}
.prof-result-compact--non-participated,.exam-result-compact--non-participated{border-left-color:#d5a21d!important;background:#fff9e8!important}
.exam-detail__info-button{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid #b9cddd;border-radius:8px;background:#fff;color:#245f92;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
.exam-detail__info-button:hover,.exam-detail__info-button:focus-visible,.prof-results__student-link:hover,.prof-results__student-link:focus-visible{color:#174f80;text-decoration:underline;outline:3px solid rgba(40,104,199,.18);outline-offset:2px}
.prof-results__student-link{color:#245f92;font-weight:600;text-decoration:underline;text-decoration-color:#9bbbd5;text-underline-offset:3px}.prof-results__table td:first-child small{display:block;margin-top:3px}
.exam-information-modal{width:min(820px,calc(100% - 32px));max-height:88vh;padding:0;border:0;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(20,35,55,.3);overflow:auto}
.exam-information-modal::backdrop{background:rgba(24,37,52,.55)}.exam-information-modal>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #dce5eb;background:#f5f9fc}
.exam-information-modal>header span{color:#63798b;font-size:.8rem;font-weight:700;text-transform:uppercase}.exam-information-modal h2{margin:2px 0 0;color:#263f53;font-size:1.35rem}
.exam-information-modal>header button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #cbd8e2;border-radius:50%;background:#fff;color:#334f65;font-size:1.5rem;cursor:pointer}
.exam-information-modal__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px 20px}.exam-information-modal__grid>div{min-width:0;padding:11px 12px;border:1px solid #e0e8ee;border-radius:10px;background:#f9fbfc}
.exam-information-modal__grid span{display:block;color:#65798a;font-size:.85rem}.exam-information-modal__grid strong{display:block;margin-top:4px;color:#263f53;font-size:1rem;overflow-wrap:anywhere}
.exam-information-groups{display:grid;gap:10px;margin:0 20px 18px;padding-top:16px;border-top:1px solid #dce5eb}.exam-information-groups h3{margin:0;color:#263f53;font-size:1.05rem}.exam-information-groups__list{display:grid;gap:7px}.exam-information-group{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dfe7ed;border-radius:10px;background:#fbfcfd}.exam-information-group__summary{display:grid;gap:3px;min-width:0}.exam-information-group__summary strong,.exam-information-group__summary span{display:block;overflow-wrap:anywhere}.exam-information-group__summary strong{color:#263f53;font-size:1rem}.exam-information-group__summary span{color:#617586;font-size:.9rem}.exam-information-group__state{font-weight:700}.exam-information-group__state--open{color:#9a6508}.exam-information-group__state--closed{color:#466677}.exam-information-group__state--published{color:#147052}.exam-information-group__action{flex:0 0 auto}.exam-information-group__action form{margin:0}.exam-information-group__action .btn{min-height:44px}
.exam-information-modal>footer{display:flex;justify-content:flex-end;padding:12px 20px;border-top:1px solid #dce5eb;background:#f8fafb}
@media(max-width:900px){.exam-detail__compact-nav{align-items:stretch}.exam-detail__metadata{padding-left:50px}.exam-information-modal__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.exam-detail__heading{gap:8px}.exam-detail__metadata{padding-left:0}.exam-detail__batch{flex-basis:100%;max-width:100%;padding-left:53px}.exam-detail__info-button{flex-basis:100%;justify-content:center;min-height:44px}.exam-information-modal{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:13px}.exam-information-modal__grid{grid-template-columns:1fr;padding:12px}.exam-information-modal>header,.exam-information-modal>footer{padding:12px}.exam-information-modal__grid span{font-size:.88rem}.exam-information-modal__grid strong{font-size:1rem}.exam-information-groups{margin:0 12px 12px}.exam-information-group{align-items:stretch;flex-direction:column}.exam-information-group__action,.exam-information-group__action .btn{width:100%}}

/* Compact professor dashboard heading and account menu. */
.professor-topbar:has(.professor-dashboard-top-actions){display:flex;min-height:64px;gap:12px;padding-right:16px;border-bottom:1px solid #d7e1e8;background:#fff}.professor-topbar:has(.professor-dashboard-top-actions)>strong{margin-right:auto;color:#263f53;font-size:1.25rem}
.professor-dashboard-top-actions{display:flex;align-items:center;gap:7px}.professor-dashboard-top-actions .btn{display:inline-flex;min-height:44px;align-items:center;padding:7px 12px;white-space:nowrap}
.professor-dashboard__active-exam{border:1px solid #9bcdb5;background:#e5f5ed;color:#176744}.professor-dashboard__active-exam>span{width:8px;height:8px;margin-right:7px;border-radius:50%;background:#22905f}.professor-dashboard__active-exam.is-disabled{border-color:#d3dce3;background:#edf1f4;color:#71808c;cursor:not-allowed}
.professor-profile-menu{position:relative;flex:0 0 auto}.professor-profile-trigger{display:flex;min-width:0;min-height:44px;align-items:center;gap:8px;padding:5px 9px;border:1px solid #cad7e1;border-radius:10px;background:#fff;color:#2d465a;font:inherit;font-weight:700;cursor:pointer}.professor-profile-trigger:hover,.professor-profile-trigger:focus-visible{border-color:#3977aa;outline:3px solid rgba(40,104,199,.18);outline-offset:2px}
.professor-profile-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#2b70ad;color:#fff}.professor-profile-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.professor-profile-dropdown{position:absolute;top:calc(100% + 7px);right:0;z-index:120;width:210px;padding:7px;border:1px solid #d1dce5;border-radius:11px;background:#fff;box-shadow:0 14px 32px rgba(28,52,73,.2)}.professor-profile-dropdown[hidden]{display:none}.professor-profile-dropdown a,.professor-profile-dropdown button{display:flex;width:100%;min-height:44px;align-items:center;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#2d465a;font:inherit;font-weight:600;text-align:left;cursor:pointer}.professor-profile-dropdown a:hover,.professor-profile-dropdown a:focus-visible,.professor-profile-dropdown button:hover,.professor-profile-dropdown button:focus-visible{background:#eaf3fa;color:#205f93;outline:2px solid #4d86b4;outline-offset:-2px}.professor-profile-dropdown form{margin:0;border-top:1px solid #e1e8ed;padding-top:4px}
.professor-mobile-actions{display:none}
.professor-dashboard{min-height:calc(100vh - 64px);gap:16px;padding-top:20px}.professor-dashboard .student-dashboard__menu,.professor-dashboard .student-dashboard__numbers{margin:0}
.professor-account-page{display:grid;max-width:900px;gap:16px;margin:0 auto}.professor-account-heading,.professor-account-card,.professor-password-card{padding:20px;border:1px solid #d7e2ea;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(36,61,86,.07)}.professor-account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.professor-account-heading span,.professor-password-card>div>span{color:#557086;font-size:.78rem;font-weight:600;text-transform:uppercase}.professor-account-heading h1,.professor-account-heading p,.professor-password-card h2,.professor-password-card p{margin:4px 0}.professor-account-identity{display:flex;align-items:center;gap:14px}.professor-account-identity>span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#e4f0fb;color:#245f92;font-size:1.3rem;font-weight:700}.professor-account-identity h2,.professor-account-identity p{margin:2px 0}.professor-account-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 0}.professor-account-card dl div{padding:11px;border-radius:10px;background:#f3f7fa}.professor-account-card dt{color:#667b8b;font-size:.8rem}.professor-account-card dd{margin:3px 0 0;font-weight:700}.professor-password-card{display:grid;gap:14px}
@media(max-width:1099px){
 .professor-topbar:has(.professor-dashboard-top-actions){display:grid;height:auto;min-height:112px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:8px 12px}
 .professor-topbar:has(.professor-dashboard-top-actions)>strong{min-width:0;margin:0;overflow:hidden;color:#263f53;font-size:1.12rem;text-overflow:ellipsis;white-space:nowrap}
 .professor-dashboard-top-actions{display:none}
 .professor-mobile-actions{position:relative;display:block;grid-column:1/-1;grid-row:2;min-width:0}
 .professor-mobile-actions__trigger{display:grid;width:100%;min-height:54px;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:10px;padding:8px 16px;border:1px solid #1f5eaf;border-radius:12px;background:linear-gradient(135deg,#3279d5,#205eaf);color:#fff;box-shadow:0 5px 14px rgba(32,94,175,.22);font:inherit;font-size:1rem;font-weight:600;text-align:left;cursor:pointer;transition:background .15s ease,box-shadow .15s ease,transform .15s ease}
 .professor-mobile-actions__trigger:hover{background:linear-gradient(135deg,#286dc9,#194f99);box-shadow:0 7px 17px rgba(32,94,175,.28)}.professor-mobile-actions__trigger:active{transform:translateY(1px);background:#194f99}.professor-mobile-actions__trigger:focus-visible{outline:3px solid #ffc857;outline-offset:2px}
 .professor-mobile-actions__icon,.professor-mobile-actions__chevron{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.professor-mobile-actions__icon{fill:rgba(255,255,255,.15)}.professor-mobile-actions__chevron{justify-self:end;transition:transform .15s ease}.professor-mobile-actions__trigger[aria-expanded="true"] .professor-mobile-actions__chevron{transform:rotate(180deg)}
 .professor-mobile-actions__dropdown{position:absolute;z-index:140;top:calc(100% + 6px);left:0;width:100%;max-width:calc(100vw - 24px);padding:6px;border:1px solid #cbd8e3;border-radius:11px;background:#fff;box-shadow:0 14px 30px rgba(28,52,73,.22)}
 .professor-mobile-actions__dropdown[hidden]{display:none}
 .professor-mobile-actions__dropdown a,.professor-mobile-actions__dropdown button{display:flex;width:100%;min-height:48px;align-items:center;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#29465d;font:inherit;font-size:1rem;font-weight:600;text-align:left;cursor:pointer}
 .professor-mobile-actions__dropdown a:hover,.professor-mobile-actions__dropdown a:focus-visible,.professor-mobile-actions__dropdown button:focus-visible{background:#eaf3fa;color:#205f93;outline:2px solid #4d86b4;outline-offset:-2px}
 .professor-mobile-actions__dropdown button:disabled{background:#f0f3f5;color:#7b8791;cursor:not-allowed}
 .professor-profile-name{display:none}
 .professor-profile-dropdown{position:fixed;top:58px;right:10px;left:auto;width:min(260px,calc(100vw - 20px))}
 .professor-dashboard{gap:0;padding:16px 12px}
 .professor-dashboard .student-dashboard__menu{gap:13px}
 .professor-dashboard .student-dashboard__menu-grid{grid-template-columns:1fr;gap:12px}
 .professor-dashboard .student-dashboard__menu-card{min-height:94px;grid-template-columns:56px minmax(0,1fr) auto;gap:14px;padding:14px 0}
 .professor-dashboard .student-dashboard__menu-card>span{width:50px;height:50px;margin-left:12px}
 .professor-dashboard .student-dashboard__menu-card>b{margin-right:14px}
 .professor-dashboard .student-dashboard__menu-card strong{font-size:1.12rem}
 .professor-dashboard .student-dashboard__menu-card small{font-size:.94rem;line-height:1.4}
 .professor-dashboard .student-dashboard__numbers{gap:13px;margin-top:25px}
 .professor-dashboard .student-dashboard__stats{gap:15px 13px}
 .professor-dashboard .student-dashboard__info-box{min-height:82px;grid-template-columns:46px minmax(0,1fr)}
 .professor-dashboard .student-dashboard__info-box>div{padding:14px 10px}
 .professor-dashboard .student-dashboard__info-box>div>span{font-size:.84rem;line-height:1.35}
 .professor-dashboard .student-dashboard__info-box strong{font-size:1.2rem}
}
@media(max-width:600px){.professor-account-heading{align-items:flex-start;flex-direction:column}.professor-account-card dl{grid-template-columns:1fr}}
@media(max-width:374px){.professor-dashboard .student-dashboard__menu-card{grid-template-columns:50px minmax(0,1fr) auto;gap:10px}.professor-dashboard .student-dashboard__menu-card>span{width:46px;height:46px;margin-left:8px}.professor-dashboard .student-dashboard__menu-card>b{margin-right:9px}}
@media(prefers-reduced-motion:reduce){.professor-mobile-actions__trigger,.professor-mobile-actions__chevron{transition:none}}

/* Completed-only professor-visible student result history. */
.profile-results{display:grid;gap:14px}.profile-results>header h2,.profile-results>header p{margin:0}.profile-results>header p{color:#64778a}
.profile-result-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;align-items:end;gap:9px;padding:12px;border:1px solid #d9e3ea;border-radius:12px;background:#f7fafc}.profile-result-filters label{display:grid;gap:4px;color:#53687b;font-size:.85rem;font-weight:600}.profile-result-filters input,.profile-result-filters select,.profile-result-filters .btn{min-height:44px}
.profile-results__table-wrap{overflow:auto;border:1px solid #d8e2e9;border-radius:12px}.profile-results__table{min-width:1050px;background:#fff}.profile-results__table td{vertical-align:middle}.profile-results__table td:first-child{border-left:5px solid transparent}.profile-result-row--passed{background:#eef9f3}.profile-result-row--passed td:first-child{border-left-color:#249363}.profile-result-row--failed{background:#fff1f2}.profile-result-row--failed td:first-child{border-left-color:#ce4b5b}.profile-results .is-correct{color:#147452;font-weight:700}.profile-results .is-wrong{color:#b63243;font-weight:700}.profile-results .is-unanswered{color:#667687;font-weight:700}.profile-result-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-weight:700;white-space:nowrap}.profile-result-status--passed{background:#dff4e8;color:#126b48}.profile-result-status--failed{background:#fde5e8;color:#9f2939}.profile-results__cards{display:none}
@media(max-width:900px){.profile-result-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-result-filters .btn{width:100%}}
@media(max-width:700px){.student-profile__tabs{display:flex;max-width:100%;overflow-x:auto}.student-profile__tabs a{flex:0 0 auto;min-height:48px;white-space:nowrap}.profile-results{padding:12px}.profile-result-filters{grid-template-columns:1fr}.profile-results__table-wrap{display:none}.profile-results__cards{display:grid;gap:12px}.profile-result-card{display:grid;width:100%;min-width:0;gap:9px;padding:16px;border:1px solid #d8e2e9;border-left:5px solid;border-radius:13px}.profile-result-card--passed{border-left-color:#249363;background:#eef9f3}.profile-result-card--failed{border-left-color:#ce4b5b;background:#fff1f2}.profile-result-card h3,.profile-result-card p{margin:0}.profile-result-card>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.profile-result-card>div span{padding:8px;border-radius:9px;background:rgba(255,255,255,.8);font-size:15px}.profile-result-card>div span:last-child{grid-column:1/-1}.profile-result-card .btn{width:100%;min-height:48px;font-size:1rem}}
/* Manual assignment of eligible students to an active exam. */
.exam-assignment-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0}
.exam-assignment-closed{margin:0;color:#64748b;font-weight:600}
.exam-assignment-modal{position:fixed;inset:50% auto auto 50%;z-index:1001;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px));max-height:min(88vh,760px);padding:0;border:0;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden}
.exam-assignment-modal[open]{display:flex;flex-direction:column}
.exam-assignment-modal::backdrop{background:rgba(15,23,42,.5)}
body:has(.exam-assignment-modal[open])::before{content:"";position:fixed;inset:0;z-index:1000;background:rgba(15,23,42,.5)}
.exam-assignment-modal>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px;border-bottom:1px solid #e2e8f0}
.exam-assignment-modal>header span{display:block;color:#64748b;font-size:.86rem;font-weight:700}
.exam-assignment-modal>header h2{margin:4px 0 0;font-size:1.35rem}
.exam-assignment-modal>header>a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#334155;text-decoration:none;font-size:1.6rem;background:#f1f5f9}
.exam-assignment-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px 22px;border-bottom:1px solid #e2e8f0}
.exam-assignment-search label{display:grid;gap:6px;font-weight:700}
.exam-assignment-search input{min-height:48px;width:100%}
.exam-assignment-form{display:flex;min-height:0;flex:1;flex-direction:column}
.exam-assignment-list{display:grid;gap:8px;min-height:0;overflow-y:auto;padding:16px 22px}
.exam-assignment-student{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:12px;padding:12px;border:1px solid #dbe3ed;border-radius:12px;cursor:pointer}
.exam-assignment-student:has(input:checked){border-color:#2563eb;background:#eff6ff}
.exam-assignment-student input{width:20px;height:20px}
.exam-assignment-student span{display:grid;min-width:0;gap:2px}
.exam-assignment-student strong,.exam-assignment-student small,.exam-assignment-student em{overflow-wrap:anywhere}
.exam-assignment-student small{color:#475569}
.exam-assignment-student em{color:#64748b;font-size:.82rem;font-style:normal}
.exam-assignment-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid #e2e8f0}
.exam-assignment-pages span{text-align:center;color:#64748b;font-size:.9rem}
.exam-assignment-form>footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px;border-top:1px solid #e2e8f0;background:#f8fafc}
.exam-assignment-form>footer .btn,.exam-assignment-search .btn{min-height:48px}
.exam-assignment-empty{padding:28px 22px;color:#475569;text-align:center}
@media(max-width:600px){
 .exam-assignment-toolbar{justify-content:stretch;margin:12px 0}.exam-assignment-open{width:100%;min-height:48px}
 .exam-assignment-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
 .exam-assignment-modal>header,.exam-assignment-search,.exam-assignment-list,.exam-assignment-pages,.exam-assignment-form>footer{padding-left:14px;padding-right:14px}
 .exam-assignment-search{grid-template-columns:1fr}.exam-assignment-search .btn{width:100%}
 .exam-assignment-pages{flex-wrap:wrap}.exam-assignment-pages span{order:-1;width:100%}.exam-assignment-pages .btn{flex:1;min-width:0}
 .exam-assignment-form>footer{display:grid;grid-template-columns:1fr 1fr}.exam-assignment-form>footer .btn{width:100%;white-space:normal}
}
.questions-browser .question-browser-toolbar,
.questions-browser .question-browser-toolbar input,
.questions-browser .question-browser-toolbar select,
.questions-browser .question-browser-toolbar button{font-family:var(--app-font)}
.questions-browser .question-browser-toolbar input[type="search"]{background:#fff8cf;border-color:#d7c56d}
.questions-browser[data-professor="1"] .question-browser-toolbar{grid-template-columns:repeat(12,minmax(0,1fr))}
.questions-browser[data-professor="1"] .question-browser-filter-chapter,
.questions-browser[data-professor="1"] .question-browser-filter-category{grid-column:span 3}
.questions-browser[data-professor="1"] .question-browser-filter-search{grid-column:span 6}
.questions-browser[data-professor="1"] .question-browser-filter-answer,
.questions-browser[data-professor="1"] .question-browser-filter-sort,
.questions-browser[data-professor="1"] .question-browser-filter-per-page{grid-column:span 2}
.questions-browser[data-professor="1"] .question-browser-filter-actions{grid-column:span 6}
.questions-browser[data-professor="1"] .question-browser-filter-search input[type="search"]{background:#fff8d8;border-color:#d7ad42;color:#2f2a1f}
.questions-browser[data-professor="1"] .question-browser-filter-search input[type="search"]:focus{border-color:#bd8619;box-shadow:0 0 0 3px rgba(215,173,66,.22);outline:0}
@media(max-width:768px){
 .questions-browser[data-professor="1"] .question-browser-toolbar{grid-template-columns:1fr 1fr}
 .questions-browser[data-professor="1"] .question-browser-filter-chapter,
 .questions-browser[data-professor="1"] .question-browser-filter-category,
 .questions-browser[data-professor="1"] .question-browser-filter-answer,
 .questions-browser[data-professor="1"] .question-browser-filter-sort,
 .questions-browser[data-professor="1"] .question-browser-filter-per-page{grid-column:span 1}
 .questions-browser[data-professor="1"] .question-browser-filter-search,
 .questions-browser[data-professor="1"] .question-browser-filter-actions{grid-column:1/-1}
}
@media(max-width:430px){
 .questions-browser[data-professor="1"] .question-browser-toolbar{grid-template-columns:1fr}
 .questions-browser[data-professor="1"] .question-browser-filter-chapter,
 .questions-browser[data-professor="1"] .question-browser-filter-category,
 .questions-browser[data-professor="1"] .question-browser-filter-answer,
 .questions-browser[data-professor="1"] .question-browser-filter-sort,
 .questions-browser[data-professor="1"] .question-browser-filter-per-page{grid-column:1}
}
.questions-browser .attempt-badge.correct,
.questions-browser .attempt-badge.incorrect{font-weight:500;opacity:.82}
.questions-browser .question-explanation-open{margin-inline-start:auto}
.question-explanation-dialog{width:min(760px,calc(100% - 24px));max-height:90vh;border:0;border-radius:18px;padding:24px;box-shadow:0 22px 70px rgba(15,23,42,.3)}
.question-explanation-dialog::backdrop{background:rgba(15,23,42,.58)}
.question-explanation-dialog header{padding-right:40px}
.question-explanation-dialog header p{font-size:1.15rem;line-height:1.5}
.question-explanation-dialog [data-explanation-image] img{display:block;max-width:min(320px,80%);max-height:240px;margin:12px auto;object-fit:contain}
.question-explanation-editor{display:grid;gap:14px}.question-explanation-editor label{display:grid;gap:6px;font-weight:600}
.question-explanation-editor textarea{width:100%;resize:vertical;line-height:1.5}
.question-explanation-editor small{text-align:right;font-weight:400}
.question-explanation-actions{display:flex;flex-wrap:wrap;gap:10px}
.question-explanation-reader section{padding:12px 0;border-top:1px solid #e2e8f0}
.question-explanation-reader p{white-space:pre-wrap;line-height:1.55}
@media(max-width:600px){.question-explanation-dialog{padding:18px}.question-explanation-actions .btn{flex:1 1 100%;min-height:44px}}

/* Professor Students: desktop table plus compact tablet/mobile disclosure rows. */
.students-management__title-row{display:flex;align-items:center;gap:.75rem}
.students-management__add-compact{display:grid;place-items:center;width:46px;height:46px;min-width:46px;padding:0;border:1px solid rgba(255,255,255,.78);border-radius:12px;background:#fff;color:#315bb5;font-size:1.75rem;font-weight:500;line-height:1;cursor:pointer;box-shadow:0 5px 14px rgba(31,45,90,.18)}
.students-management__add-compact:hover{background:#eef4ff;color:#244995}
.students-management__add-compact:focus-visible{outline:3px solid rgba(255,255,255,.72);outline-offset:3px}
@media(max-width:1099px){
 .students-card-grid{display:grid;grid-template-columns:1fr;gap:6px}
 .students-card-grid .student-card.student-compact-row{min-height:0;padding:0;overflow:hidden;border:1px solid #d4deea;border-radius:12px;background:rgba(255,255,255,.88);box-shadow:0 3px 10px rgba(41,58,84,.06)}
 .student-compact-row__toggle{display:grid;width:100%;min-height:60px;grid-template-columns:38px minmax(0,1fr) auto auto 44px;align-items:center;gap:10px;padding:8px 8px 8px 12px;border:0;background:transparent;color:#273449;text-align:left;cursor:pointer}
 .student-compact-row__toggle:focus-visible{outline:3px solid rgba(49,91,181,.35);outline-offset:-3px}
 .student-compact-row__toggle .student-avatar{width:36px;height:36px;flex-basis:36px;font-size:.88rem}
 .student-compact-row__identity{display:grid;min-width:0;gap:2px}
 .student-compact-row__identity strong{overflow:hidden;font-size:1rem;font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
 .student-compact-row__identity small{overflow:hidden;color:#657287;font-size:.84rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
 .student-compact-row__progress{font-size:.92rem;font-weight:600;color:#315b83}
 .student-compact-row__toggle .student-status{min-height:26px;padding:3px 8px;font-size:.78rem}
 .student-compact-row__arrow{display:grid;place-items:center;width:44px;height:44px}
 .student-compact-row__arrow svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
 .student-compact-row__toggle[aria-expanded=true] .student-compact-row__arrow svg{transform:rotate(180deg)}
 .student-compact-row__details{padding:10px 12px 12px;border-top:1px solid #dce4ee;background:#f8fafc}
 .student-compact-row__details[hidden]{display:none}
 .student-compact-row__details dl{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr);gap:5px 12px;margin:0 0 10px}
 .student-compact-row__details dt{color:#657287;font-size:.8rem;font-weight:500}
 .student-compact-row__details dd{min-width:0;margin:0;color:#273449;font-size:.9rem;overflow-wrap:anywhere}
 .students-card-grid .student-compact-row__details .student-actions{display:flex;min-width:0;width:100%;margin:0;gap:8px}
 .students-card-grid .student-compact-row__details .student-action-button{min-height:44px;flex:1 1 0;padding:7px 9px;font-size:.84rem}
 .students-card-grid .student-compact-row__details .student-action-button--profile{grid-column:auto}
}
@media(max-width:767px){
 .students-management__header{padding:14px 16px 13px}
 .students-management__header>div{width:100%}
 .students-management__title-row{justify-content:space-between}
 .students-management__header h1{margin:.1rem 0}
 .students-management__count{margin-top:.4rem}
}
@media(max-width:430px){
 .student-compact-row__toggle{min-height:60px;grid-template-columns:34px minmax(72px,1fr) auto auto 44px;gap:6px;padding-left:9px}
 .student-compact-row__progress{font-size:.86rem}
 .student-compact-row__toggle .student-status{padding-inline:6px;font-size:.73rem}
 .students-card-grid .student-compact-row__details .student-actions{display:grid;grid-template-columns:1fr 1fr}
 .students-card-grid .student-compact-row__details .student-action-button--profile{grid-column:1/-1}
}

.student-result-review .student-result-questions{min-height:100vh}
/* Portable PWA installation controls. */
.pwa-install-action[hidden],.pwa-install-banner[hidden],.pwa-install-dialog[hidden]{display:none!important}
.professor-sidebar-install{display:flex;width:100%;min-height:44px;align-items:center;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#dceafb;font:inherit;font-weight:700;text-align:left;cursor:pointer}.professor-sidebar-install:hover,.professor-sidebar-install:focus-visible{background:rgba(255,255,255,.12);outline:2px solid #fff;outline-offset:-2px}
.professor-profile-install{display:flex;width:100%;min-height:44px;align-items:center;padding:9px 11px;border:0;border-radius:8px;background:transparent;color:#2d465a;font:inherit;font-weight:600;text-align:left;cursor:pointer}.professor-profile-install:hover,.professor-profile-install:focus-visible{background:#eaf3fa;color:#205f93;outline:2px solid #4d86b4;outline-offset:-2px}
.login-pwa-install{display:block;min-height:44px;margin:12px auto 0;padding:8px;border:0;background:transparent;color:#2868c7;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.login-pwa-install:focus-visible{outline:3px solid #efb33a;outline-offset:2px}
.pwa-install-banner{display:grid;min-height:72px;grid-template-columns:48px minmax(0,1fr) auto 44px;align-items:center;gap:12px;padding:10px 12px;border:1px solid #d5e1ea;border-radius:13px;background:#fff;color:#263f53;box-shadow:0 6px 18px rgba(35,62,81,.1)}.pwa-install-banner img{display:block;border-radius:11px}.pwa-install-banner>div{display:grid;gap:2px;min-width:0}.pwa-install-banner strong{font-size:1rem}.pwa-install-banner span{color:#687b8b;font-size:.86rem}.pwa-install-banner__install{min-height:44px;padding:8px 14px;border:1px solid #205da9;border-radius:9px;background:#2868c7;color:#fff;font:inherit;font-weight:600;cursor:pointer}.pwa-install-banner__install:hover,.pwa-install-banner__install:focus-visible{background:#205aa9;outline:3px solid rgba(40,104,199,.22);outline-offset:2px}.pwa-install-banner__dismiss{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#617486;font-size:1.35rem;cursor:pointer}.pwa-install-banner__dismiss:hover,.pwa-install-banner__dismiss:focus-visible{background:#edf3f7;outline:2px solid #4d86b4}
.pwa-dialog-open{overflow:hidden}.pwa-install-dialog{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px}.pwa-install-dialog__backdrop{position:absolute;inset:0;background:rgba(20,38,54,.65)}.pwa-install-dialog>section{position:relative;z-index:1;width:min(100%,520px);max-height:calc(100dvh - 32px);overflow:auto;padding:26px;border-radius:16px;background:#fff;color:#263f53;box-shadow:0 24px 60px rgba(0,0,0,.3)}.pwa-install-dialog>section:focus{outline:none}.pwa-install-dialog__close{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:50%;background:#eef3f7;color:#41596c;font-size:1.4rem;cursor:pointer}.pwa-install-dialog__share{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:#e8f1fb;color:#2868c7}.pwa-install-dialog__share svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pwa-install-dialog h2{margin:16px 45px 12px 0;font-size:1.35rem}.pwa-install-dialog ol{display:grid;gap:12px;margin:0;padding-left:24px;line-height:1.45}.pwa-install-dialog__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.pwa-install-dialog__actions .btn{min-height:46px}.pwa-install-dialog button:focus-visible{outline:3px solid #efb33a;outline-offset:3px}
@media(max-width:600px){.pwa-install-banner{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;min-height:74px;padding:8px}.pwa-install-banner img{width:44px;height:44px}.pwa-install-banner__install{grid-column:2;padding:7px 10px}.pwa-install-banner__dismiss{grid-column:3;grid-row:1/3}.pwa-install-dialog{padding:10px}.pwa-install-dialog>section{max-height:calc(100dvh - 20px);padding:22px 18px}.pwa-install-dialog__actions{display:grid}.pwa-install-dialog__actions .btn{width:100%}}
/* Currently open, unresolved student exam identity. */
.student-exam-row--active{background:#fff7d6;box-shadow:inset 0 1px 0 rgba(190,132,15,.08),inset 0 -1px 0 rgba(190,132,15,.08)}
.student-exam-row--active td:first-child{border-left:4px solid #d69a16;padding-left:10px}
.student-exam-status--active{gap:6px;background:#ffecaa;color:#714a00}
.student-exam-status--active strong{font-weight:700}.student-exam-status--active small{font-size:inherit;font-weight:700;color:#805b13}
.student-exam-active-dot{display:block;flex:0 0 11px;width:11px;height:11px;border-radius:50%;background:#df6d16;box-shadow:0 0 0 0 rgba(223,109,22,.42);animation:student-exam-active-pulse 1.8s ease-in-out infinite}
@keyframes student-exam-active-pulse{0%,100%{box-shadow:0 0 0 0 rgba(223,109,22,.4)}50%{box-shadow:0 0 0 6px rgba(223,109,22,0)}}
.student-exam-compact--active{border-left-color:#d69a16;background:#fff7d6;box-shadow:0 5px 15px rgba(143,99,13,.13)}
@media(max-width:1024px){.student-exam-compact__summary{min-width:0}.student-exam-compact__summary .student-exam-status{min-height:28px;white-space:normal}}
@media(prefers-reduced-motion:reduce){.student-exam-active-dot{animation:none;box-shadow:none}}
.professor-management{display:grid;gap:18px;max-width:1180px;margin:0 auto}.professor-management__intro,.professor-management__create,.professor-management__list-panel,.professor-management__card{border:1px solid #d7e2ea;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(36,61,86,.07)}.professor-management__intro{padding:20px}.professor-management__intro h2,.professor-management__intro p,.professor-management__create h3,.professor-management__create p,.professor-management__list-heading h3,.professor-management__list-heading p{margin:4px 0}.professor-management__workspace{display:grid;grid-template-columns:minmax(280px,38fr) minmax(0,62fr);gap:18px;align-items:start}.professor-management__create{position:sticky;top:76px;padding:20px}.professor-management__list-panel{min-width:0;padding:20px}.professor-management__list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.professor-management__form{display:grid;grid-template-columns:1fr;gap:12px;margin-top:16px}.professor-management__form.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.professor-management__form label{display:grid;gap:6px;color:#31485b;font-weight:700}.professor-management__form input,.professor-management__form select,.professor-management__delete-dialog input{width:100%;min-height:44px;padding:9px 11px;border:1px solid #b9c9d5;border-radius:9px;background:#fff;color:#172b3a}.professor-management__form .btn{justify-self:start}.professor-management__list{display:grid;grid-template-columns:1fr;gap:14px}.professor-management__card{display:grid;align-content:start;gap:13px;padding:18px;box-shadow:none}.professor-management__card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.professor-management__card h3,.professor-management__card p{margin:2px 0}.professor-management__card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.professor-management__card dl div{padding:10px;border-radius:9px;background:#f3f7fa}.professor-management__card dt{color:#667b8b;font-size:.78rem}.professor-management__card dd{margin:3px 0 0;font-weight:700}.professor-management__status,.professor-management__role{display:inline-flex;flex:0 0 auto;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:700}.professor-management__status.is-active{background:#daf5e5;color:#17633a}.professor-management__status.is-disabled{background:#e9eef2;color:#526777}.professor-management__role{margin-top:7px;background:#ede7ff;color:#50359a}.professor-management .muted{color:#667b8b;font-size:.9rem}.professor-management__actions>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:9px 12px;border-radius:9px;background:#edf2f7;font-weight:700}.professor-management__action-panel{display:grid;gap:10px;padding-top:10px}.professor-management__action-panel details>summary{cursor:pointer;font-weight:600}.professor-management__delete-open,.professor-management__delete-dialog .btn-danger{background:#b42331;color:#fff}.professor-management__delete-open:hover,.professor-management__delete-dialog .btn-danger:hover{background:#8f1724}.professor-management__delete-dialog{width:min(520px,calc(100% - 32px));padding:22px;border:0;border-radius:16px;box-shadow:0 24px 70px rgba(19,35,50,.3)}.professor-management__delete-dialog::backdrop{background:rgba(14,29,42,.58)}.professor-management__delete-dialog form{display:grid;gap:14px}.professor-management__delete-dialog h3,.professor-management__delete-dialog p{margin:0}.professor-management__delete-dialog label{display:grid;gap:7px;font-weight:700}.professor-management__warning{padding:12px;border-radius:10px;background:#fff0f1;color:#89212c}.professor-management__dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.professor-management__empty{margin:0;padding:18px;border:1px dashed #b9c9d5;border-radius:11px;color:#667b8b;text-align:center}
@media(max-width:850px){.professor-management__workspace{grid-template-columns:1fr}.professor-management__create{position:static}.professor-management__form.compact{grid-template-columns:1fr}}
@media(max-width:520px){.professor-management__intro,.professor-management__create,.professor-management__list-panel{padding:16px}.professor-management__card dl{grid-template-columns:1fr}.professor-management__dialog-actions{display:grid;grid-template-columns:1fr}.professor-management__dialog-actions .btn{width:100%}}
.professor-management__deletion-plan{display:grid;gap:7px;padding:12px;border:1px solid #d7e2ea;border-radius:10px;background:#f7fafc}.professor-management__deletion-plan h4,.professor-management__deletion-plan p,.professor-management__deletion-plan ul{margin:0}.professor-management__deletion-plan ul{padding-left:20px}.professor-management__plan-blocked{color:#9d2d3b}.professor-management__delete-dialog .btn-danger:disabled{cursor:not-allowed;background:#d7dde2;color:#6c7882}

/* Exam builder: compact, clearly separated chapter accordion headers. */
.exam-builder__accordions{gap:12px}
.exam-builder__accordion{overflow:hidden;border:1px solid #c6d4e2;border-radius:12px;background:#fff;box-shadow:0 4px 10px rgba(36,67,99,.11)}
.exam-builder__accordion-toggle{display:grid;width:100%;min-height:58px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 13px;border:0;background:#edf3f8;color:#263f53;text-align:left;cursor:pointer;transition:background-color .18s ease,box-shadow .18s ease}
.exam-builder__accordion-toggle:hover{background:#e4eef8}
.exam-builder__accordion-toggle:focus-visible{position:relative;z-index:1;outline:3px solid rgba(48,105,187,.38);outline-offset:-3px}
.exam-builder__accordion-toggle[aria-expanded=true]{background:#dceafa;box-shadow:inset 0 -1px 0 #a9c3df}
.exam-builder__accordion-number{display:grid;place-items:center;min-width:40px;height:34px;padding:0 8px;border-radius:10px;background:#526bb8;color:#fff;font-size:.98rem;font-weight:700;line-height:1}
.exam-builder__accordion-identity{min-width:0}
.exam-builder__accordion-identity strong,.exam-builder__accordion-identity b{display:block}
.exam-builder__accordion-identity strong{color:#263f53;font-size:.96rem;line-height:1.3;overflow-wrap:anywhere}
.exam-builder__accordion-identity b{margin-top:2px;color:#667a8b;font-size:.78rem;font-weight:600}
.exam-builder__accordion-identity em{display:inline-flex;margin-top:5px;padding:2px 7px;border-radius:999px;background:#d8f2e7;color:#176646;font-size:.75rem;font-style:normal;font-weight:700}
.exam-builder__accordion-identity em[hidden]{display:none}
.exam-builder__accordion-chevron{width:22px;height:22px;fill:none;stroke:#3c5e83;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transition:transform .19s ease}
.exam-builder__accordion-toggle[aria-expanded=true] .exam-builder__accordion-chevron{transform:rotate(90deg)}
.exam-builder__accordion-panel{padding:10px 14px 14px;border-top:1px solid #b8cce0;background:#fcfdff}
@media(max-width:760px){.exam-builder__accordion-toggle{display:grid;min-height:58px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px}.exam-builder__accordion-number{min-width:38px;height:34px;padding-inline:6px}.exam-builder__accordion-chevron{width:21px;height:21px}.exam-builder__accordion-panel{padding:9px 10px 11px}}
@media(prefers-reduced-motion:reduce){.exam-builder__accordion-toggle,.exam-builder__accordion-chevron{transition:none}}

/* Complete-chapter selection reuses the approved chapter-block geometry with a teal identity. */
.exam-builder__chapter-grid{gap:12px}
.exam-builder__chapter-card--complete{min-height:58px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 13px;border:1px solid #a9d1cb;border-radius:12px;background:#edf8f6;box-shadow:0 4px 10px rgba(31,103,94,.1);transform:none}
.exam-builder__chapter-card--complete:hover{border-color:#55a99c;background:#e4f5f1;box-shadow:0 5px 12px rgba(31,103,94,.13);transform:none}
.exam-builder__chapter-card--complete:has(input:checked){border-color:#278f80;background:#d9f0eb;box-shadow:0 5px 13px rgba(31,103,94,.16)}
.exam-builder__complete-number{display:grid;place-items:center;min-width:40px;height:34px;padding:0 8px;border-radius:10px;background:#23887b;color:#fff;font-size:.98rem;font-weight:700;line-height:1}
.exam-builder__complete-identity{min-width:0}
.exam-builder__complete-identity strong,.exam-builder__complete-identity b{display:block}
.exam-builder__complete-identity strong{margin:0;color:#253f4b;font-size:.96rem;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.exam-builder__complete-identity b{margin-top:2px;color:#57736f;font-size:.78rem;font-weight:400}
.exam-builder__chapter-card--complete .exam-builder__card-check{grid-column:3;width:28px;height:28px;border-color:#75a9a1}
.exam-builder__chapter-card--complete input:focus-visible~.exam-builder__card-check{outline:3px solid rgba(32,132,117,.34);outline-offset:2px}
.exam-builder__chapter-card--complete input:checked~.exam-builder__card-check{border-color:#23887b;background:#23887b;color:#fff}
@media(max-width:760px){.exam-builder__chapter-card--complete{min-height:58px;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:9px 10px}.exam-builder__complete-number{min-width:38px;height:34px;padding-inline:6px}}

/* Shared restrained typography hierarchy. */
:root{--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700}
body{font-weight:var(--font-weight-regular)}
h1,h2,h3,h4,h5,h6{font-weight:var(--font-weight-semibold)}
p,small,time,dd,td,input,select,textarea,option{font-weight:var(--font-weight-regular)}
strong,b{font-weight:var(--font-weight-semibold)}
label,legend{font-weight:var(--font-weight-medium)}
button,.btn,[role=button],input[type=button],input[type=submit],input[type=reset]{font-weight:var(--font-weight-medium)}
.btn-primary,.btn-danger,.answer{font-weight:var(--font-weight-semibold)}
th{font-weight:var(--font-weight-semibold)}
.sidebar nav>a,.sidebar details a,.sidebar summary,.professor-sidebar-link,.professor-sidebar-submenu>summary,.professor-sidebar-logout,.professor-sidebar-install{font-weight:var(--font-weight-medium)}
.sidebar nav>a.active,.professor-sidebar-link.is-active,.professor-sidebar-submenu.is-active>summary{font-weight:var(--font-weight-semibold)}
.professor-sidebar-group>h2,.professor-sidebar-user__text strong,.professor-sidebar-brand__text strong{font-weight:var(--font-weight-semibold)}
.app-topbar,.professor-topbar,.topbar nav a,.drawer-button{font-weight:var(--font-weight-medium)}
.language-tabs button,.translation-tabs button,.exam-detail__tabs a,[role=tab]{font-weight:var(--font-weight-medium)}
.language-tabs button.active,.translation-tabs button.active,.exam-detail__tabs a.is-active,[role=tab][aria-selected=true]{font-weight:var(--font-weight-semibold)}
.form-grid label,.wizard label,.filter-bar label,.question-browser-filters label,.exam-management__toolbar label,.exam-students__filters label,.exam-analysis__filters label,.batches-filters label,.categories-filters label,.prof-results__filters label,.student-exams__toolbar label,.professor-management__form label{font-weight:var(--font-weight-medium)}
.responsive-table td,.students-table td,.batches-table td,.categories-table td,.exam-management__table td,.exam-students__table td,.prof-results__table td,.student-exams__table td{font-weight:var(--font-weight-regular)}
.responsive-table td strong,.students-table td strong,.batches-table td strong,.categories-table td strong,.exam-management__table td strong,.exam-students__table td strong,.prof-results__table td strong,.student-exams__table td strong{font-weight:var(--font-weight-semibold)}
.batch-status,.batch-current-mark,.category-status,.exam-status,.assignment-state,.student-status,.student-exam-status,.prof-result-status,.profile-result-status,.attempt-badge,.professor-management__status,.professor-management__role{font-weight:var(--font-weight-medium)}
.student-compact-row__identity strong,.exam-management-compact__identity strong,.batch-table-identity strong,.action-card strong,.student-dashboard__menu-card strong,.student-question-card strong{font-weight:var(--font-weight-semibold)}
.student-compact-row__identity small,.exam-management-compact__identity small,.batch-table-identity small,.action-card small,.student-dashboard__menu-card small{font-weight:var(--font-weight-regular)}
.page-heading h1,.batches-management__header h1,.categories-management__header h1,.exam-builder__header h1,.prof-results__header h1{font-weight:var(--font-weight-semibold)}
.pagination a,.batches-pagination a,.categories-pagination a,.student-exams__pagination a{font-weight:var(--font-weight-medium)}
.exam-builder__accordion-number,.exam-builder__complete-number,.summary-grid>div>strong,.student-dashboard__stat strong{font-weight:var(--font-weight-bold)}

/* Higher-specificity component rules must still follow the shared hierarchy. */
.exam-builder__toolbar button,
.exam-builder__details label,
.exam-builder__details-column label,
.exam-builder__fields label,
.exam-builder__count label,
.exam-builder__search,
.exam-assignment-search label,
.professor-management__delete-dialog label,
.professor-management__actions>summary,
.professor-profile-install,
.professor-sidebar-install,
.login-pwa-install,
.pwa-install-banner__install{font-weight:var(--font-weight-medium)}
.exam-builder__mode strong,
.exam-builder__review h3,
.professor-management__card dd{font-weight:var(--font-weight-semibold)}

/* Exact application typography system. */
:root{--app-font:"Segoe UI Variable Text","Segoe UI",segoeui,"Helvetica Neue",Helvetica,Arial,sans-serif}
html,
body,
button,
input,
select,
textarea{font-family:var(--app-font)}
body{font-weight:400}
.sidebar,
.professor-sidebar,
.student-sidebar,
.app-topbar,
.professor-topbar,
.topbar,
.professor-profile-dropdown,
.professor-mobile-actions__dropdown,
table,
.card,
.panel,
.action-card,
.student-dashboard__menu-card,
.question-browser-card,
.exam-builder,
.language-tabs,
.translation-tabs,
.question-language-tabs,
.status-pill,
.badge,
.student-status,
.exam-status,
.student-exam-status,
.prof-result-status,
.profile-result-status,
.attempt-badge,
dialog,
.modal,
.pagination,
.student-exams__pagination,
.exam-builder__accordion-toggle,
.exam-builder__chapter-card--complete,
.questions-browser .question-browser-toolbar,
.questions-browser .question-browser-toolbar input,
.questions-browser .question-browser-toolbar select,
.questions-browser .question-browser-toolbar button{font-family:var(--app-font)}
h1,h2,h3{font-weight:600}
.page-title{font-weight:500}
.large-number,
.summary-grid>div>strong,
.student-dashboard__stat strong{font-weight:300}
button,
.btn,
[role=button],
input[type=button],
input[type=submit],
input[type=reset],
.table-header,
.exam-builder__toolbar button,
.pwa-install-action,
.professor-sidebar-install,
.professor-profile-install,
.login-pwa-install,
.pwa-install-banner__install,
.pwa-install-banner__dismiss,
.pwa-install-dialog button{font-weight:600}
.sidebar nav>a,
.sidebar details a,
.sidebar summary,
.professor-sidebar-link,
.professor-sidebar-submenu>summary,
.professor-sidebar-logout,
.student-sidebar a,
.app-topbar nav a,
.professor-topbar nav a,
.topbar nav a,
.professor-profile-dropdown a,
.professor-profile-dropdown button{font-weight:400}
.sidebar nav>a.active,
.professor-sidebar-link.is-active,
.professor-sidebar-submenu.is-active>summary,
.student-sidebar a.active,
.student-sidebar a[aria-current=page],
.app-topbar nav a.active,
.professor-topbar nav a.active,
.topbar nav a.active{font-weight:600}
.sidebar .badge,
.professor-sidebar .badge,
.student-sidebar .badge,
.professor-sidebar-group>h2,
.professor-sidebar-label{font-weight:500}
label,
.form-grid label,
.wizard label,
.filter-bar label,
.question-browser-filters label,
.question-browser-toolbar label,
.exam-management__toolbar label,
.exam-students__filters label,
.exam-analysis__filters label,
.batches-filters label,
.categories-filters label,
.prof-results__filters label,
.student-exams__toolbar label,
.professor-management__form label{font-weight:500}
input,select,textarea,option,td{font-weight:400}
th,.table-header{font-weight:600}
td strong,
.responsive-table td strong,
.students-table td strong,
.batches-table td strong,
.categories-table td strong,
.exam-management__table td strong,
.exam-students__table td strong,
.prof-results__table td strong,
.student-exams__table td strong{font-weight:500}
.language-tabs button,
.translation-tabs button,
.question-language-tabs button,
.exam-detail__tabs a,
[role=tab]{font-weight:500}
.language-tabs button.active,
.translation-tabs button.active,
.question-language-tabs button.is-active,
.exam-detail__tabs a.is-active,
[role=tab][aria-selected=true]{font-weight:600}
.answer,
.drawer-button,
.professor-profile-trigger,
.exam-info-mobile__toggle,
.exam-result-card__stats button{font-weight:600}
.exam-detail--focused .exam-detail__tabs .exam-detail__tab{font-weight:500}
.exam-detail--focused .exam-detail__tabs .exam-detail__tab.is-active,
.exam-detail--focused .exam-detail__tabs .exam-detail__tab[aria-current=page]{font-weight:600}

/* Students: visible edit action in the existing compact action group. */
.student-action-button--edit{border-color:#6676a8;color:#4d5e91}
.student-action-button--edit:hover{background:#f0f2fa;color:#394b82}

/* Students: focused password reset dialog. */
.student-password-dialog{width:min(520px,calc(100vw - 32px))}
.student-password-dialog .student-dialog__body{display:grid;gap:1rem}
.student-password-dialog .student-dialog__body>label{display:grid;gap:.4rem}
.student-password-dialog .password-field{display:flex;align-items:stretch;gap:.5rem;min-width:0}
.student-password-dialog .password-field input{min-width:0;flex:1}
.student-password-dialog .password-field .btn{min-height:44px;flex:0 0 auto}
@media(max-width:599px){
 .student-password-dialog{width:calc(100vw - 24px)}
 .student-password-dialog .password-field{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .student-password-dialog .student-dialog__form>footer .btn{min-height:48px}
}

/* Professor statistics: finalized activity only. */
.prof-stats{display:grid;gap:16px;max-width:1500px;margin:0 auto}.prof-stats__toolbar{display:grid;grid-template-columns:minmax(260px,2fr) minmax(190px,1fr) 120px auto auto;gap:10px;align-items:end;padding:14px;border:1px solid #d9e3eb;border-radius:14px;background:#fff}.prof-stats__toolbar label{display:grid;gap:5px;color:#40566a;font-size:.84rem;font-weight:500}.prof-stats__toolbar input,.prof-stats__toolbar select{width:100%;min-height:44px}.prof-stats__desktop{overflow:hidden;border:1px solid #d8e2ea;border-radius:15px;background:#fff}.prof-stats__desktop table{width:100%;border-collapse:collapse}.prof-stats__desktop th{padding:11px 12px;background:#edf3f8;color:#344b60;font-size:.78rem;font-weight:600;text-align:left;white-space:nowrap}.prof-stats__desktop td{padding:12px;border-top:1px solid #e6edf2;vertical-align:middle;font-weight:400}.prof-stats__desktop tbody tr:hover{background:#fafcfd}.prof-stats-student{display:grid;min-width:205px;gap:3px}.prof-stats-student>a{color:#245f9f;font-weight:600}.prof-stats-student>small{color:#687b8d}.prof-stats-batch,.prof-stats-disabled{display:inline-flex;margin:2px 5px 2px 0;padding:2px 7px;border-radius:999px;background:#e8f0f7;color:#405d76;font-size:.72rem;font-weight:500}.prof-stats-disabled{background:#f3e5e7;color:#943746}.prof-stats-mode{display:grid;min-width:135px;gap:4px}.prof-stats-mode>strong{font-weight:500}.prof-stats-mode>div{display:flex;gap:6px;white-space:nowrap;font-size:.84rem;font-weight:500}.prof-stats-mode>small{white-space:nowrap;color:#647487}.prof-stats-correct{color:#137451}.prof-stats-wrong{color:#ad3544}.prof-stats-total{font-size:1.1rem;font-weight:400}.prof-stats-progress{display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:center;gap:6px;margin-top:4px}.prof-stats-progress__track{display:flex;height:7px;overflow:hidden;border-radius:999px;background:#dfe6eb}.prof-stats-progress__correct{background:#2a996b}.prof-stats-progress__wrong{background:#d65a68}.prof-stats-progress small{color:#607386;font-size:.7rem;white-space:nowrap}.prof-stats__mobile{display:none}.prof-stats__empty{padding:36px 18px;border:1px dashed #bac9d5;border-radius:14px;background:#f8fafc;color:#607386;text-align:center}.prof-stats__pagination{display:flex;align-items:center;justify-content:center;gap:14px}.prof-stats__pagination span{color:#52677a;font-size:.86rem}
@media(max-width:1100px){.prof-stats__desktop{display:none}.prof-stats__mobile{display:grid;gap:10px}.prof-stats-accordion{overflow:hidden;border:1px solid #d7e2ea;border-radius:13px;background:#fff}.prof-stats-accordion>summary{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:10px;min-height:58px;padding:11px 13px;cursor:pointer;list-style:none}.prof-stats-accordion>summary::-webkit-details-marker{display:none}.prof-stats-accordion>summary>div{display:grid;min-width:0;gap:3px}.prof-stats-accordion>summary strong{font-weight:600}.prof-stats-accordion>summary small{color:#62768a}.prof-stats-accordion>summary>span{font-size:26px;color:#526d86;transition:transform .18s ease}.prof-stats-accordion[open]>summary>span{transform:rotate(90deg)}.prof-stats-accordion__body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:13px;border-top:1px solid #e1e8ee;background:#fbfcfd}.prof-stats-accordion__body>div{padding:10px;border:1px solid #e0e7ed;border-radius:10px;background:#fff}.prof-stats-accordion__body h3{margin:0 0 7px;font-size:.9rem;font-weight:600}.prof-stats-accordion__body dl{display:grid;grid-template-columns:1fr 1fr;grid-column:1/-1;gap:8px;margin:0}.prof-stats-accordion__body dl div{padding:9px;border-radius:9px;background:#eef3f7}.prof-stats-accordion__body dt{color:#637689;font-size:.76rem}.prof-stats-accordion__body dd{margin:3px 0 0;font-weight:500}.prof-stats-accordion__body>.btn{grid-column:1/-1;min-height:46px}.prof-stats__toolbar{grid-template-columns:2fr 1fr 110px auto}.prof-stats__toolbar>a{grid-column:1/-1}.prof-stats-progress{max-width:420px}}
@media(max-width:700px){.prof-stats__toolbar{grid-template-columns:1fr}.prof-stats__toolbar .btn{width:100%;min-height:46px}.prof-stats-accordion__body{grid-template-columns:1fr}.prof-stats-accordion__body dl,.prof-stats-accordion__body>.btn{grid-column:1}.prof-stats__pagination{justify-content:space-between;gap:6px}.prof-stats__pagination .btn{min-height:44px;padding-inline:10px}.prof-stats__pagination span{text-align:center}}
@media(prefers-reduced-motion:reduce){.prof-stats-accordion>summary>span{transition:none}}

/* Statistics correction: canonical-bank completion replaces answer accuracy. */
.prof-stats-progress-row td{padding:8px 12px 12px!important;border-top:0!important;background:#fbfcfd}.prof-stats-progress-row:hover{background:#fbfcfd!important}.prof-stats-bank-progress{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:10px;width:100%}.prof-stats-bank-progress>strong{color:#435b70;font-size:.78rem;font-weight:500;white-space:nowrap}.prof-stats-bank-progress__track{height:9px;overflow:hidden;border-radius:999px;background:#dfe6eb}.prof-stats-bank-progress__track span{display:block;height:100%;max-width:100%;border-radius:inherit;background:#299568}.prof-stats-bank-progress>small{color:#526a7e;font-size:.76rem;white-space:nowrap}.prof-stats-mode>div{background:transparent}
@media(max-width:1100px){.prof-stats-bank-progress{grid-template-columns:1fr}.prof-stats-bank-progress>small{white-space:normal}.prof-stats-bank-progress.is-compact{gap:4px}.prof-stats-bank-progress.is-compact>small{order:-1}.prof-stats-accordion__body>.prof-stats-bank-progress{grid-column:1/-1}}

/* Statistics cumulative-error viewer reuses the shared result modal. */
.prof-stats-error-button{display:inline-flex;min-height:36px;align-items:center;padding:4px 7px;border:1px solid transparent;border-radius:7px;background:transparent;color:#ad3544;font:inherit;font-weight:500;cursor:pointer}.prof-stats-error-button:hover{border-color:#e3b6bc;background:#fff5f6}.prof-stats-error-button:focus-visible{outline:3px solid #f4b942;outline-offset:2px}.stats-errors-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-errors-filters{overflow-x:auto}.stats-errors-filters button{white-space:nowrap}.stats-errors-review{display:grid;gap:10px}.stats-errors-review[aria-busy=true]{opacity:.68}.stats-error-question>header{align-items:center}.stats-error-question>header small{color:#617386;font-weight:400;text-align:right}.stats-error-question__meta{margin:4px 0 8px;color:#607386;font-size:.82rem}.stats-error-question>[data-stats-error-panel]{font-size:1.08rem;line-height:1.55}.stats-error-question>img{display:block;max-width:min(100%,420px);max-height:320px;margin:10px auto;object-fit:contain}.stats-errors-viewer .student-result-review__arrow{width:48px;height:48px;min-width:48px;min-height:48px}.stats-errors-viewer .student-result-review__position strong{color:#a52d3e}
@media(max-width:600px){.stats-errors-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-errors-summary>div{padding:8px}.stats-errors-summary small{font-size:.7rem}.stats-errors-summary strong{font-size:1.15rem}.stats-error-question>header{display:grid}.stats-error-question>header small{text-align:left}.stats-error-question .student-result-question__answers{grid-template-columns:1fr}.stats-errors-viewer .student-result-review__arrow{width:46px;height:46px;min-width:46px;min-height:46px}.stats-errors-filters{width:100%}.stats-errors-filters button{flex:0 0 auto}}
.student-cumulative{display:grid;width:min(1040px,100%);gap:14px;margin:18px auto 0;padding:18px;border:1px solid #d7e1ea;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(36,61,86,.07)}.student-cumulative>header h2{margin:0;color:#25364a;font-size:1.3rem}.student-cumulative>header p{margin:4px 0 0;color:#65778a}.student-cumulative__empty{margin:0;padding:10px 12px;border-radius:10px;background:#f5f8fa;color:#607286}.student-cumulative__modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.student-cumulative__modes article{padding:13px;border:1px solid #dce5ec;border-radius:12px;background:#f8fafc}.student-cumulative__modes h3{margin:0 0 7px;color:#334a60;font-size:.95rem}.student-cumulative__modes strong{font-size:1.05rem}.student-cumulative__modes p{margin:5px 0 0;font-size:.86rem}.student-cumulative .is-correct{color:#14764d}.student-cumulative .is-wrong{color:#ad3544}.student-cumulative__totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;overflow:hidden;border:1px solid #dce5ec;border-radius:12px}.student-cumulative__totals>div{padding:10px 12px;border-right:1px solid #dce5ec;text-align:center}.student-cumulative__totals>div:last-child{border-right:0}.student-cumulative__totals dt{color:#65778a;font-size:.78rem}.student-cumulative__totals dd{margin:3px 0 0;color:#26394d;font-weight:600}.student-cumulative__errors{min-height:36px;padding:3px 7px;border:1px solid transparent;border-radius:7px;background:transparent;color:#ad3544;font:inherit;font-weight:600;cursor:pointer}.student-cumulative__errors:hover{border-color:#e3b6bc;background:#fff5f6}.student-cumulative__errors:focus-visible{outline:3px solid #f4b942;outline-offset:2px}.student-cumulative__bank{display:grid;gap:5px}.student-cumulative__bank small{color:#607386}.student-cumulative__track{height:9px;overflow:hidden;border-radius:999px;background:#e2e9ee}.student-cumulative__track span{display:block;height:100%;border-radius:inherit;background:#15915f}
@media(max-width:760px){.student-cumulative{gap:12px;margin-top:14px;padding:14px}.student-cumulative__modes{grid-template-columns:1fr;gap:8px}.student-cumulative__modes article{padding:11px 12px}.student-cumulative__totals>div{padding:8px 4px}.student-cumulative__totals dt{font-size:.7rem}.student-cumulative__totals dd{font-size:.9rem}}
.student-period-metrics>div:nth-child(3),.student-progress-strip .is-wrong{background:#fdeff1}.student-period-metrics>div:nth-child(3) dt,.student-period-metrics>div:nth-child(3) dd,.student-progress-strip .is-wrong dt,.student-progress-strip .is-wrong dd{color:#a72f40}.student-progress-activity--successful{border-color:#a9d9bd;background:#eef9f2}.student-progress-activity--successful>button{background:#eef9f2}.student-progress-activity--successful small{color:#167247}.student-progress-activity--failed{border-color:#edb5bc;background:#fff1f2}.student-progress-activity--failed>button{background:#fff1f2}.student-progress-activity--failed small{color:#b53042}.student-progress-activity--pending{border-color:#e7d28f;background:#fff9e7}.student-progress-activity--pending>button{background:#fff9e7}.student-progress-activity__details dl{grid-template-columns:repeat(6,minmax(0,1fr))}
.student-week-pillars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;min-height:190px;padding-top:8px}.student-week-pillar{display:flex;min-height:132px;flex-direction:column-reverse;align-items:center;justify-content:flex-start;gap:4px;padding:4px 0;border-bottom:2px solid #cfd9e2}.student-week-sheet{position:relative;width:clamp(22px,4vw,34px);height:14px;min-height:14px;padding:0;border:1px solid transparent;border-radius:5px;cursor:pointer}.student-week-sheet.is-successful{border-color:#118254;background:#28a66f}.student-week-sheet.is-failed{border-color:#b73445;background:#d85968}.student-week-sheet:focus-visible{z-index:4;outline:3px solid #f4b942;outline-offset:2px}.student-week-empty{width:clamp(22px,4vw,34px);height:5px;border-radius:999px;background:#dce4eb}.student-week-tooltip{position:absolute;z-index:20;bottom:calc(100% + 8px);left:50%;display:none;width:min(260px,calc(100vw - 32px));padding:10px;border:1px solid #bdcbd8;border-radius:10px;background:#fff;color:#293d51;box-shadow:0 9px 24px rgba(25,43,62,.22);text-align:left;transform:translateX(-50%);font-size:.76rem;font-style:normal}.student-week-tooltip strong,.student-week-tooltip small,.student-week-tooltip b,.student-week-tooltip span,.student-week-tooltip em{display:block;margin:2px 0}.student-week-tooltip em{color:#536a7e;font-style:normal}.student-week-sheet:hover .student-week-tooltip,.student-week-sheet:focus .student-week-tooltip,.student-week-sheet.is-open .student-week-tooltip{display:block}.student-week-day:first-child .student-week-tooltip{left:0;transform:none}.student-week-day:last-child .student-week-tooltip{right:0;left:auto;transform:none}.student-week-day>small{white-space:nowrap}
.student-month-week{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d9e3eb;border-radius:11px;background:#f3f6f8}.student-month-week__fill{position:absolute;z-index:-1;inset:0;display:flex;opacity:.34}.student-month-week__fill .is-successful{background:#b8e7cc}.student-month-week__fill .is-failed{background:#f1b9c0}.student-month-week__content{display:grid;gap:4px;padding:11px 12px;background:rgba(255,255,255,.48)}.student-month-week__content span{color:#465c71}.student-month-week__content strong{font-size:.84rem}.student-month-week__content small{color:#52677a}.student-month-week__content i{font-style:normal}.student-month-week__content .is-successful{color:#126d46}.student-month-week__content .is-failed{color:#a72f40}.student-progress-exam--pending{border-color:#e7d28f;background:#fff9e7}.student-progress-exam--pending header>strong{color:#8b6714}.student-progress-exam dl{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:760px){.student-week-pillars{gap:3px}.student-week-pillar{min-height:116px}.student-week-sheet{width:clamp(22px,7vw,30px)}.student-week-tooltip{position:fixed;z-index:1000;right:16px;bottom:16px;left:16px;width:auto;transform:none}.student-week-day:first-child .student-week-tooltip,.student-week-day:last-child .student-week-tooltip{right:16px;left:16px;transform:none}.student-week-day>strong{font-size:.78rem}.student-week-day>small{font-size:.64rem}.student-progress-activity__details dl,.student-progress-exam dl{grid-template-columns:1fr 1fr}.student-month-week__content{padding:9px}.student-month-week__content strong,.student-month-week__content small{font-size:.72rem}}
.professor-glossary{display:grid;gap:16px;min-width:0}.professor-glossary__filters{display:grid;grid-template-columns:minmax(260px,1fr) 140px auto auto;align-items:end;gap:10px;padding:14px;border:1px solid #d6e0e9;border-radius:14px;background:#fff}.professor-glossary__filters label{display:grid;gap:5px;color:#445a70;font-size:.82rem;font-weight:500}.professor-glossary__filters input,.professor-glossary__filters select{height:44px;min-width:0}.professor-glossary__desktop{overflow:auto;border:1px solid #d6e0e9;border-radius:14px;background:#fff}.professor-glossary__desktop table{width:100%;border-collapse:collapse;table-layout:fixed}.professor-glossary__desktop th,.professor-glossary__desktop td{padding:10px 11px;border-bottom:1px solid #e1e7ed;text-align:left;vertical-align:top;overflow-wrap:anywhere}.professor-glossary__desktop th{background:#edf2f7;color:#42566a;font-size:.78rem;font-weight:600}.professor-glossary__desktop th:nth-child(1){width:16%}.professor-glossary__desktop th:nth-child(2),.professor-glossary__desktop th:nth-child(3){width:23%}.professor-glossary__desktop th:nth-child(4){width:16%}.professor-glossary__desktop th:nth-child(5){width:10%}.professor-glossary__desktop th:nth-child(6){width:12%}.professor-glossary__desktop td{font-size:.83rem}.professor-glossary__desktop td small{display:block;margin-top:3px;color:#697b8d}.professor-glossary__desktop .btn{min-height:40px}.professor-glossary__mobile{display:none}.professor-glossary__pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.professor-glossary__pagination>:first-child{justify-self:start}.professor-glossary__pagination>:last-child{justify-self:end}.professor-glossary__pagination span{color:#566b7f;font-size:.86rem;text-align:center}.professor-glossary__pagination .is-disabled{opacity:.5;pointer-events:none}.professor-glossary-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:hidden;border:0;border-radius:17px;background:#f8fafc;box-shadow:0 24px 70px rgba(20,36,56,.34)}.professor-glossary-dialog::backdrop{background:rgba(17,29,43,.62)}.professor-glossary-dialog form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px)}.professor-glossary-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;background:#244f7d;color:#fff}.professor-glossary-dialog header span{font-size:.75rem}.professor-glossary-dialog header h2{margin:2px 0 0}.professor-glossary-dialog header>a{display:grid;width:44px;height:44px;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:50%;color:#fff;font-size:1.4rem}.professor-glossary-dialog__body{display:grid;gap:13px;overflow:auto;padding:17px}.professor-glossary-dialog__body label{display:grid;gap:5px;font-weight:500}.professor-glossary-dialog__body label small{color:#64778a;font-weight:400}.professor-glossary-dialog footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 17px;border-top:1px solid #d8e1e9;background:#eef3f7}
@media(max-width:1099px){.professor-glossary__desktop{display:none}.professor-glossary__mobile{display:grid;gap:8px}.professor-glossary__mobile article{overflow:hidden;border:1px solid #d7e1e9;border-radius:12px;background:#fff}.professor-glossary__mobile article>button{display:grid;width:100%;min-height:58px;grid-template-columns:minmax(0,1fr) auto 22px;align-items:center;gap:9px;padding:9px 11px;border:0;background:#f8fafc;color:#30465b;text-align:left}.professor-glossary__mobile article>button span{min-width:0}.professor-glossary__mobile article>button strong,.professor-glossary__mobile article>button small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.professor-glossary__mobile article>button small{margin-top:2px;color:#687b8e;font-weight:400}.professor-glossary__mobile article>button em{color:#5d7185;font-size:.76rem;font-style:normal;white-space:nowrap}.professor-glossary__mobile article>button b{font-size:1.35rem;transition:transform .18s}.professor-glossary__mobile article>button[aria-expanded=true] b{transform:rotate(90deg)}.professor-glossary__mobile article>div{padding:12px;border-top:1px solid #dce4eb}.professor-glossary__mobile dl{display:grid;gap:9px;margin:0 0 11px}.professor-glossary__mobile dl div{padding:9px;border-radius:8px;background:#f4f7fa}.professor-glossary__mobile dt{color:#64778a;font-size:.72rem}.professor-glossary__mobile dd{margin:3px 0 0;overflow-wrap:anywhere}.professor-glossary__mobile .btn{min-height:44px}.professor-glossary__filters{grid-template-columns:minmax(0,1fr) 120px}.professor-glossary__filters .btn{min-height:44px}.professor-glossary__pagination{grid-template-columns:auto minmax(0,1fr) auto}}
@media(max-width:600px){.professor-glossary__filters{grid-template-columns:1fr}.professor-glossary__filters .btn{width:100%}.professor-glossary__pagination .btn{padding-inline:10px}.professor-glossary-dialog{inset:0;width:100%;height:100dvh;max-height:none;margin:0;border-radius:0}.professor-glossary-dialog form{height:100dvh;max-height:none}}
.content-import{display:grid;gap:1rem;max-width:1180px;margin:0 auto}.content-import .panel{margin:0}.content-import__upload form,.content-import__confirm{display:grid;gap:.85rem;max-width:640px}.content-import__upload input[type=file],.content-import__confirm input{width:100%;min-height:48px}.content-import__preview{border-top:4px solid #dbe3ee}.content-import__preview.is-valid{border-top-color:#16a36a}.content-import__preview.is-invalid{border-top-color:#cf3f4e}.content-import__preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.content-import__hash{padding:.8rem;border-radius:.7rem;background:#f5f7fb;overflow-wrap:anywhere}.content-import__hash code{display:block;margin-top:.3rem;font-size:.85rem}.content-import__summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-top:1rem}.content-import__summary article{padding:.85rem;border:1px solid #dde4ed;border-radius:.8rem}.content-import__summary h3{margin:0 0 .5rem}.content-import__summary dl{margin:0}.content-import__summary dl div{display:flex;justify-content:space-between;gap:.6rem;padding:.25rem 0}.content-import__summary dd{margin:0;font-weight:700}.content-import__issues{margin-top:1rem;padding:.8rem;border-radius:.7rem;background:#fff0f1;color:#8d1f2d}.content-import__confirm{margin-top:1rem;padding-top:1rem;border-top:1px solid #dde4ed}.content-import__check{display:flex!important;align-items:flex-start;gap:.6rem}.content-import__check input{width:auto;min-height:0;margin-top:.2rem}.content-import__confirm .btn{min-height:48px}.content-import__history code{white-space:nowrap}
@media(max-width:900px){.content-import__summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.content-import__summary{grid-template-columns:1fr}.content-import__preview-head,.content-import .page-heading{align-items:stretch}.content-import .page-heading .btn{width:100%}.content-import__history .responsive-table{overflow-x:auto}}
.selection-save{display:inline-flex;align-items:center;justify-content:center;gap:.38rem;min-height:40px;max-width:calc(100vw - 16px);border:1px solid rgba(255,255,255,.35);padding:.45rem .75rem;font-size:.86rem;line-height:1.15;white-space:nowrap;box-shadow:0 7px 22px rgba(18,38,57,.24);cursor:pointer}.selection-save[hidden]{display:none}.selection-save:hover{background:#102b43}.selection-save:active{transform:translateY(1px)}.selection-save:focus-visible{outline:3px solid #ffc857;outline-offset:2px}.selection-save>span{font-size:1rem}@media(max-width:768px){.selection-save{min-height:44px;font-size:.84rem}}
.batch-assignment,.exam-groups,.batch-subgroups{display:grid;gap:14px;min-width:0}.batch-assignment>header,.batch-subgroups,.exam-groups{padding:16px;border:1px solid #d7e1ea;border-radius:14px;background:#fff}.batch-assignment h1,.exam-groups h2,.batch-subgroups h2{margin:0}.batch-assignment__filters{display:grid;grid-template-columns:minmax(220px,1fr) 220px 180px auto;gap:10px;align-items:end;padding:14px;border:1px solid #d7e1ea;border-radius:14px;background:#fff}.batch-assignment__filters label{display:grid;gap:5px}.batch-assignment__form{display:grid;gap:10px}.batch-assignment__toolbar{position:sticky;top:70px;z-index:5;display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #ccd9e4;border-radius:12px;background:#f8fbfd}.batch-assignment__toolbar strong{margin-right:auto}.batch-assignment__table{overflow-x:auto;border:1px solid #d7e1ea;border-radius:12px;background:#fff}.batch-assignment__table table{width:100%;min-width:980px}.batch-assignment__table th,.batch-assignment__table td{padding:10px;border-bottom:1px solid #e7edf2;text-align:left}.batch-assignment__cards{display:none}.batch-subgroups>div,.exam-groups>div{display:grid;gap:9px}.batch-subgroups article,.exam-groups article{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dce5ec;border-left:4px solid #2980b9;border-radius:10px}.batch-subgroups article>div{display:grid;margin-right:auto}.batch-subgroups article small{color:#607286}.batch-subgroups__create{display:grid;grid-template-columns:1fr 1fr auto auto;gap:10px;align-items:end;margin-top:12px}.batch-subgroups__create label{display:grid;gap:5px}.exam-groups article{display:grid}.exam-groups article header,.exam-groups article footer{display:flex;justify-content:space-between;align-items:center}.exam-groups dl{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:0}.exam-groups dl div{padding:8px;border-radius:8px;background:#f3f7fa}.exam-groups dt{font-size:.72rem;color:#647587}.exam-groups dd{margin:2px 0 0;font-weight:600}
@media(max-width:1099px){.batch-assignment__filters{grid-template-columns:1fr 1fr}.batch-assignment__table{display:none}.batch-assignment__cards{display:grid;gap:9px}.batch-assignment__cards label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #d7e1ea;border-radius:11px;background:#fff}.batch-assignment__cards label>span{display:grid;min-width:0}.batch-assignment__cards small{overflow-wrap:anywhere;color:#607286}.batch-assignment__toolbar{top:58px;display:grid;grid-template-columns:1fr 1fr}.batch-assignment__toolbar strong,.batch-assignment__toolbar select{grid-column:1/-1;width:100%}.batch-assignment__toolbar .btn{min-height:44px}.batch-subgroups article{flex-wrap:wrap}.batch-subgroups__create{grid-template-columns:1fr}.exam-groups dl{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.batch-assignment__filters{grid-template-columns:1fr}.batch-assignment__toolbar{grid-template-columns:1fr}.batch-assignment__toolbar strong,.batch-assignment__toolbar select{grid-column:auto}.exam-groups dl{grid-template-columns:repeat(2,1fr)}}

.batch-tree{display:grid;gap:18px;min-width:0}.batch-tree__header{display:flex;align-items:center;justify-content:space-between;gap:16px}.batch-tree__header h1{margin:2px 0;font-size:1.8rem}.batch-tree__header p{margin:0;color:#52677a;font-size:1rem}.batch-tree__list{display:grid;gap:14px}.batch-tree-parent{overflow:hidden;border:1px solid #d5e0e8;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(28,55,76,.06)}.batch-tree-parent__row{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;align-items:center;gap:16px;padding:16px}.batch-tree-toggle{display:flex;align-items:center;gap:12px;min-width:0;padding:0;border:0;background:transparent;text-align:left;color:#18354b;cursor:pointer}.batch-tree-toggle>span:last-child{display:grid;min-width:0}.batch-tree-toggle strong{overflow-wrap:anywhere;font-size:1.2rem}.batch-tree-toggle small{font-size:1rem;color:#516a7e}.batch-tree-chevron{font-size:2rem;line-height:1;transition:transform .18s}.batch-tree-parent.is-open .batch-tree-chevron{transform:rotate(90deg)}.batch-tree-parent__facts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:1rem}.batch-tree-parent__facts>span:not(.batch-status){padding:6px 9px;border-radius:999px;background:#eef4f8}.batch-tree-parent__actions,.batch-tree-child__actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.batch-tree-parent__actions .btn,.batch-tree-child__actions .btn{min-height:44px}.batch-tree-children{display:grid;border-top:1px solid #dfe7ed;background:#f7fafc}.batch-tree-child{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:12px 16px 12px 34px;border-bottom:1px solid #e1e8ee}.batch-tree-child:last-child{border-bottom:0}.batch-tree-child:before{content:"";position:absolute;left:22px;top:0;bottom:0;border-left:2px solid #cfdae3}.batch-tree-child__main{display:flex;align-items:center;gap:10px;min-width:220px;margin-right:auto;color:#19364b;text-decoration:none}.batch-tree-child__main>span:nth-child(2){display:grid}.batch-tree-child__main strong{font-size:1.08rem}.batch-tree-child__main small{font-size:1rem;color:#607286}.batch-tree-branch{position:relative;z-index:1;background:#f7fafc;color:#8193a3}.batch-tree-child--direct{background:#fbfcfd}.batch-subgroup-examples{margin:7px 0;color:#52697c;font-size:1rem}.batch-subgroup-preview{display:grid;gap:3px;padding:12px;border-radius:10px;background:#f2f6f9}.batch-subgroup-preview strong{font-size:1.08rem}.batch-student-sheet{width:min(920px,calc(100vw - 28px));max-width:none;padding:0;border:0;border-radius:16px;background:#fff}.batch-student-sheet::backdrop{background:rgba(14,31,44,.55)}.batch-student-sheet__panel{display:grid;max-height:min(88vh,900px);overflow:auto}.batch-student-sheet__panel>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid #dbe4eb;background:#fff}.batch-student-sheet__panel h2{margin:2px 0;font-size:1.35rem}.batch-student-sheet__panel p{margin:0;font-size:1rem}.batch-student-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #dbe4eb}.batch-student-tabs a{min-height:48px;padding:13px;text-align:center;text-decoration:none;color:#315168;font-weight:650}.batch-student-tabs a.is-active{color:#1169aa;border-bottom:3px solid #1878ba;background:#f1f7fb}.batch-student-filters{display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:8px;padding:15px}.batch-student-filters label{display:grid;gap:5px;font-size:1rem}.batch-alphabet{display:grid;gap:8px;padding:0 15px 15px}.batch-alphabet>div{display:flex;flex-wrap:wrap;gap:6px}.batch-alphabet a{display:grid;place-items:center;min-width:44px;min-height:44px;padding:5px 8px;border:1px solid #b9c9d5;border-radius:9px;color:#23465e;text-decoration:none;font-weight:650}.batch-alphabet a.is-active{border-color:#1475b8;background:#1475b8;color:#fff}.batch-picker-summary{position:sticky;top:91px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 15px;border-block:1px solid #dbe4eb;background:#f7fafc}.batch-simple-students{display:grid;padding:0 15px}.batch-simple-students label,.batch-simple-students article{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:10px 2px;border-bottom:1px solid #e4eaef;font-size:1rem}.batch-simple-students label{justify-content:flex-start;cursor:pointer}.batch-simple-students input[type=checkbox]{width:24px;height:24px;flex:0 0 24px}.batch-simple-students label span,.batch-simple-students article>div{display:grid;min-width:0}.batch-simple-students small{overflow-wrap:anywhere;color:#5b7081}.batch-student-picker>footer{position:sticky;bottom:0;display:flex;align-items:end;justify-content:flex-end;gap:9px;padding:14px;border-top:1px solid #dbe4eb;background:#fff}.batch-student-picker>footer label{display:grid;gap:4px}.batch-student-picker>footer .btn{min-height:44px}.batch-student-empty{padding:20px;text-align:center}.batch-sheet-pages{display:flex;justify-content:center;gap:14px;padding:12px}
.batch-tree-toggle>span:last-child{row-gap:3px}.batch-tree-toggle strong,.batch-tree-toggle small,.batch-tree-parent__facts>span{display:block}.batch-tree-child.is-selected{background:#e8f3fb;box-shadow:inset 4px 0 #1677b8}.batch-tree-child.is-selected .batch-tree-branch{background:#e8f3fb}.professor-sidebar-link[href*="batch-student-assignment"]{display:none}
@media(max-width:1099px){.batch-tree-parent__row{grid-template-columns:1fr}.batch-tree-parent__facts,.batch-tree-parent__actions{padding-left:44px}.batch-tree-child{align-items:flex-start;flex-wrap:wrap}.batch-tree-child__actions{width:100%;padding-left:32px}}
@media(max-width:600px){.batch-tree{gap:12px}.batch-tree__header{align-items:flex-start}.batch-tree__header .btn{min-width:52px}.batch-tree-parent__row{padding:14px 10px}.batch-tree-parent__facts,.batch-tree-parent__actions{padding-left:38px}.batch-tree-parent__actions .btn{flex:1 1 150px}.batch-tree-child{padding:12px 10px 12px 18px}.batch-tree-child:before{left:12px}.batch-tree-child__main{width:100%;min-width:0}.batch-tree-child__actions{padding-left:24px}.batch-tree-child__actions .btn{flex:1 1 130px}.batch-student-sheet{width:100vw;height:100dvh;max-height:none;border-radius:0}.batch-student-sheet__panel{height:100dvh;max-height:none}.batch-student-filters{grid-template-columns:1fr 1fr}.batch-student-filters label{grid-column:1/-1}.batch-picker-summary{top:88px;align-items:flex-start;flex-direction:column}.batch-simple-students article{align-items:flex-start;flex-direction:column}.batch-student-picker>footer{display:grid;grid-template-columns:1fr 1fr}.batch-student-picker>footer label{grid-column:1/-1}.batch-student-picker>footer .btn{width:100%}}

/* Batch tree: compact hierarchy, persistent in-dialog student management. */
.batch-tree-parent__row{grid-template-columns:minmax(0,1fr) auto}.batch-tree-toggle{grid-column:1}.batch-tree-parent__facts{grid-column:1/-1;margin-left:44px}.batch-tree-parent__actions{grid-column:1/-1;margin-left:44px}.batch-tree-toggle>span:last-child{gap:4px}.batch-tree-parent__facts>span{display:inline-flex;align-items:center;min-height:32px}.batch-tree-delete-action{margin-left:auto;border-color:#c84a4a;color:#a52626}.batch-tree-delete-action:hover,.batch-tree-delete-action:focus-visible{border-color:#a52626;background:#fff0f0;color:#841d1d}.batch-tree-child__main .batch-status{margin-left:8px}.batch-manager-loading{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:rgba(255,255,255,.82);color:#174f78;font-weight:700}.batch-manager-loading[hidden]{display:none}.batch-student-sheet__panel{grid-template-rows:auto auto auto auto minmax(0,1fr);max-height:min(88dvh,900px);overflow:hidden}.batch-student-picker{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden}.batch-picker-summary{position:static;top:auto}.batch-student-picker>.batch-simple-students{min-height:0;overflow:auto}.batch-student-sheet__panel>.batch-simple-students{overflow:auto;min-height:0}.batch-student-picker>footer{z-index:4}.batch-destination-empty{grid-column:1/-1;margin:0}.batch-tree-delete-dialog .batch-dialog__body{display:grid;gap:10px}.batch-tree-delete-dialog .batch-dialog__body strong{font-size:1.1rem}.batch-tree-delete-dialog .batch-dialog__body p{margin:0;color:#7f2525}
@media(max-width:1099px){.batch-tree-parent__row{grid-template-columns:minmax(0,1fr)}.batch-tree-parent__facts,.batch-tree-parent__actions{margin-left:0}.batch-tree-delete-action{margin-left:0}}
@media(max-width:600px){.batch-tree-parent__facts,.batch-tree-parent__actions{margin-left:0;padding-left:38px}.batch-tree-parent__facts{display:grid;grid-template-columns:1fr 1fr}.batch-tree-parent__facts .batch-status{grid-column:1/-1;width:max-content}.batch-tree-parent__actions .btn,.batch-tree-child__actions .btn{flex:1 1 100%;width:100%}.batch-tree-child__actions{display:grid;grid-template-columns:1fr;width:100%;padding-left:24px}.batch-tree-child__actions form,.batch-tree-child__actions form .btn{width:100%}.batch-student-sheet__panel{grid-template-rows:auto auto auto auto minmax(0,1fr);height:100dvh;max-height:100dvh}.batch-student-picker{min-height:0}.batch-student-picker>.batch-simple-students{min-height:0}.batch-picker-summary{align-items:center;flex-flow:row wrap;padding-block:6px}.batch-alphabet>div{max-height:112px;overflow:auto}.batch-student-picker>footer{grid-template-areas:"message message" "cancel submit";align-items:center;padding:10px}.batch-student-picker>footer .batch-destination-empty{grid-area:message}.batch-student-picker>footer [data-batch-manager-close]{grid-area:cancel}.batch-student-picker>footer [data-add-to-group]{grid-area:submit}.batch-sheet-pages{min-height:48px}.batch-tree-delete-action{margin-left:0}}

/* Focused exam-row navigation and whole-exam publication action. */
.exam-management__row[data-exam-open],.exam-management-compact[data-exam-open]{cursor:pointer;transition:background-color .15s ease,box-shadow .15s ease}
.exam-management__row[data-exam-open]:hover td,.exam-management__row[data-exam-open]:focus td{background:#edf5fa}.exam-management__row[data-exam-open]:focus{outline:3px solid #5a9bca;outline-offset:-3px}
.exam-management-compact[data-exam-open]:hover,.exam-management-compact[data-exam-open]:focus{background:#edf5fa;box-shadow:0 6px 16px rgba(35,62,81,.1)}.exam-management-compact[data-exam-open]:focus{outline:3px solid #5a9bca;outline-offset:2px}
.exam-detail__publish-all,.exam-detail__publish-unavailable>.btn{min-height:44px}.exam-detail__publish-unavailable{display:grid;gap:3px;max-width:290px}.exam-detail__publish-unavailable small{color:#66798a;font-size:.75rem;line-height:1.25}.exam-detail__publish-unavailable>.btn[disabled]{opacity:.58}
.exam-whole-publication-modal{width:min(520px,calc(100% - 24px))}.exam-whole-publication-modal>form{display:grid}.exam-whole-publication-modal>form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #dce5eb}.exam-whole-publication-modal>form>header span{color:#66798a;font-size:.78rem;text-transform:uppercase}.exam-whole-publication-modal>form>header h2{margin:3px 0 0;font-size:1.3rem}.exam-whole-publication-modal>form>header button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#edf2f6;color:#29485f;font-size:1.5rem;cursor:pointer}.exam-whole-publication-modal__body{display:grid;gap:14px;padding:18px 20px}.exam-whole-publication-modal__body p{margin:0;color:#526b7e}.exam-whole-publication-modal__body dl{display:grid;gap:7px;margin:0}.exam-whole-publication-modal__body dl div{display:flex;justify-content:space-between;gap:12px;padding:8px;border-radius:8px;background:#f4f7fa}.exam-whole-publication-modal__body dd{text-align:right;font-weight:700}.exam-whole-publication-modal>form>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid #dce5eb}.exam-whole-publication-modal>form>footer .btn{min-height:44px}
@media(max-width:600px){.exam-detail__publish-all,.exam-detail__publish-unavailable{flex-basis:100%;width:100%;max-width:none}.exam-detail__publish-unavailable>.btn{width:100%}.exam-whole-publication-modal>form>footer{display:grid;grid-template-columns:1fr 1fr;padding:12px}.exam-whole-publication-modal>form>footer .btn{width:100%}}
