body{background:radial-gradient(circle at 8% 0,#e7e2ff 0,transparent 28rem),radial-gradient(circle at 95% 15%,#e9f8f4 0,transparent 25rem),#f7f8fc}header{border-bottom-color:#e1ddff}header:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:linear-gradient(90deg,#7057f5,#35c7b2,#7057f5);background-size:220% 100%}.brand,h1,h2{font-family:"Sora",sans-serif}.brand{background:linear-gradient(100deg,#513bcf,#806cff 55%,#35ad96);-webkit-background-clip:text;background-clip:text;color:transparent}.brand:before{color:#513bcf}.hero h1{background:linear-gradient(105deg,#172033,#4a3ab1 55%,#278c79);-webkit-background-clip:text;background-clip:text;color:transparent}.button,button{font-family:"Sora",sans-serif;font-size:.78rem;letter-spacing:.07em;text-transform:uppercase;background:linear-gradient(135deg,#6048e8,#7a62f4)}.button:hover,button:hover{background:linear-gradient(135deg,#503acb,#7158ee)}.secondary{background:linear-gradient(135deg,#fff,#f7f5ff);color:#4936c4}.secondary:hover{background:#f0edff;color:#3f2cae}.save-button{background:linear-gradient(135deg,#1ca783,#32bea0)}.save-button:hover{background:linear-gradient(135deg,#13896d,#27a88c)}.card:hover{border-color:#d6d0ff;box-shadow:0 12px 25px #3d2f8b12}.editor-section:first-of-type{border-color:#d8d2ff;background:linear-gradient(145deg,#fff 20%,#fbfaff)}.editor-toolbar{background:linear-gradient(90deg,#f2efff,#f8fbff)}.math-button{font-family:Georgia,"Times New Roman",serif;text-transform:none;letter-spacing:0;background:linear-gradient(135deg,#e5e0ff,#d9f7ef);border-color:#cfc5ff;color:#4c38c4}.math-button:hover{background:linear-gradient(135deg,#d9d1ff,#c6f0e3)}.live-preview{background:linear-gradient(145deg,#fff,#f8f7ff 65%,#f4fffc)}.stats div:first-child{border-top:3px solid #7159f3}.stats div:last-child{border-top:3px solid #31bda9}.flash.success{border-left:4px solid #22a98d}.check input{accent-color:#7057f5}

.task-content-image{display:block;max-width:100%;height:auto;object-fit:contain;margin:.5rem 0;break-inside:avoid}.question-content p{min-width:0}.task-content-image + br{display:none}
@media print{.task-content-image{max-width:100%;break-inside:avoid}}

.task-prompt,.task-part,.question-content,.feedback-answer,.assessment-criteria{line-height:1.85}
.task-part{margin:1.1rem 0}
.assessment-criteria li{margin:.6rem 0}
.criterion-points{display:inline-block;margin-left:.6rem;white-space:nowrap}
.document-edit-label{display:flex;align-items:center;gap:.5rem;font-weight:600;margin-top:.8rem}
.default-answer-controls{display:flex;align-items:end;flex-wrap:wrap;gap:1rem}
.default-answer-controls label{display:grid;gap:.35rem}
.default-answer-controls label.check{display:flex;align-items:center;align-self:center}
.default-answer-controls input[type=number]{max-width:8rem}
.task-part .katex,.question-content .katex,.task-prompt .katex{vertical-align:baseline}
.assessment-criteria{display:grid;gap:.6rem;margin:.6rem 0;padding:0;list-style:none}
.assessment-criteria .assessment-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.5rem;align-items:baseline;margin:0}
.assessment-criteria .criterion-points{text-align:right;margin:0;white-space:nowrap}
.task-topic-label{display:inline-block;font-size:.78rem;font-weight:500;color:#655d76;background:#f0edf6;border-radius:.3rem;padding:.2rem .45rem;line-height:1.4}
.item-heading{margin-bottom:.8rem;gap:.45rem}
.item-heading .item-move-buttons{display:flex;gap:.2rem;margin-left:auto}
.item-move-buttons button{padding:.15rem .5rem;min-width:1.8rem;font-size:1rem}
#document-sections{overflow-anchor:none}
.exam-statistics .stats-total{font-size:1.1rem;font-weight:700}
.exam-statistics p{margin:.35rem 0}
.exam-answer-key li{padding:.4rem 0;line-height:1.8}
.exam-answer{box-sizing:border-box;background:none!important;position:relative;overflow:hidden}
.exam-answer .answer-art{position:absolute;inset:0;pointer-events:none;z-index:0;display:block}
.answer-grid-art,.answer-lines-art{display:none}
.exam-answer-grid .answer-grid-art,.exam-answer-lines .answer-lines-art{display:block}
.exam-answer-lines{border:0}
.exam-answer .answer-label{z-index:1;right:auto;bottom:auto;left:clamp(0px,var(--label-x,2%),calc(100% - 3.5em));top:clamp(0px,var(--label-y,2%),calc(100% - 1.6em));font-size:.85rem;line-height:1.3;padding:.1rem .25rem;background:white;color:#111}
.resizable-answer .answer-label{cursor:move;touch-action:none;user-select:none}
.resizable-answer .answer-label:focus{outline:2px solid #7658d6}
.short-answer{display:none}
.exam-answer-short{height:12mm!important;max-height:12mm;min-height:12mm!important;border:0!important;resize:none!important;overflow:visible}
.exam-answer-short .answer-label,.exam-answer-short .answer-art{display:none!important}
.exam-answer-short .short-answer{display:flex;align-items:baseline;gap:.4rem;width:75mm;max-width:100%;padding-top:3mm}
.short-answer-rule{flex:1;border-bottom:1px solid #333;min-width:20mm}
@media print{.exam-answer{background:none!important}.answer-art{visibility:visible!important}}

/* Fixed action columns keep the arrows aligned regardless of label length. */
.document-item .item-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto 6.5rem;align-items:center;padding-right:1rem}
.item-heading .task-topic-label{min-width:0;overflow-wrap:anywhere;justify-self:start}
.item-heading .item-move-buttons{margin-left:0;white-space:nowrap}
.item-heading .task-id{margin-left:0!important;white-space:nowrap;text-align:right}
.exam-answer-key h4{margin:.6rem 0 .3rem}
.exam-answer-key [data-key-item]{padding:.8rem 0;border-bottom:1px solid #e4e4ec}
@media(max-width:600px){.document-item .item-heading{grid-template-columns:auto minmax(0,1fr) auto auto 5rem;gap:.2rem}.item-heading .task-topic-label{grid-column:2 / -1;grid-row:1}.item-heading>.edit-item-toggle{grid-column:3}.item-heading .item-move-buttons{grid-column:4}.item-heading .task-id{grid-column:5}}

.document-item .item-heading{grid-template-columns:auto auto minmax(0,1fr) auto 6.5rem}
.item-heading>.edit-item-toggle{grid-column:1;grid-row:1;align-self:start}
.item-heading>.drag-handle{grid-column:2;grid-row:1}
.item-heading>.task-topic-label{grid-column:3;grid-row:1}
.item-heading>.item-move-buttons{grid-column:4;grid-row:1}
.item-heading>.task-id{grid-column:5;grid-row:1}
.document-item .item-controls{margin-top:2rem;padding-top:1rem;border-top:1px solid #e4e4ec}
#tab-tasks:not([hidden]){display:grid;grid-template-columns:210px minmax(0,1fr);gap:1.25rem;align-items:start}
.task-selection-main{min-width:0}
#exam-statistics{position:sticky;top:6rem;margin:0;max-height:calc(100vh - 7rem);overflow:auto}
#exam-statistics h3{margin-top:0}
.subarea-count{white-space:nowrap;font-size:.75rem;color:#51437d;background:#eee9fa;border-radius:.35rem;padding:.1rem .35rem}
@media(max-width:850px){#tab-tasks:not([hidden]){grid-template-columns:minmax(0,1fr)}#exam-statistics{position:static;max-height:none}.document-item .item-heading{grid-template-columns:auto auto minmax(0,1fr) auto 5rem}}
@media(max-width:600px){.item-heading>.task-topic-label{grid-column:2 / -1;grid-row:1}.item-heading>.drag-handle{grid-column:2;grid-row:2}.item-heading>.item-move-buttons{grid-column:4;grid-row:2}.item-heading>.task-id{grid-column:5;grid-row:2}}

.document-item .item-heading{grid-template-columns:auto auto minmax(0,1fr) auto auto}
.item-heading>.task-id{width:auto;justify-self:end}
.feedback-edit-form label{display:block;margin:.6rem 0}
.feedback-edit-form textarea{width:100%;min-height:4rem}
.feedback-answer{white-space:pre-wrap}
.library-tabs{display:flex;gap:1rem;margin:1rem 0}.library-tabs .active{font-weight:800;text-decoration:underline}
.library-group>summary{cursor:pointer;font-weight:700;font-size:1.1rem;padding:1rem;background:#eeeaf9;border-radius:.5rem}
.library-group{margin:1rem 0}.library-group .card{margin:.5rem 0}
.task-edit-parts textarea{width:100%;min-height:5rem}
/* Navigation, library previews and the vertical exam selection sidebar. */
header{justify-content:flex-start;gap:2rem}header nav{justify-content:flex-start;flex-wrap:wrap}
.library-task-preview{line-height:1.8;max-height:18rem;overflow:auto;margin:.75rem 0;padding:.25rem 0}.library-task-preview .task-content-image{max-height:12rem;width:auto}
.text-danger,.text-danger:hover{background:transparent;color:#a52c39;box-shadow:none;border:1px solid #e6c5ca;padding:.5rem .7rem;text-transform:none;letter-spacing:normal}
.task-delete-form{display:inline-block;margin-left:1rem}.document-card{position:relative}.document-card-link{display:block;color:inherit;text-decoration:none}.document-card-link:after{content:'';position:absolute;inset:0}.document-delete-form{position:relative;z-index:1;display:inline-block;margin-top:.75rem}
.status-complete{display:block;color:#12694f;font-weight:700}.suggestions-table td small{display:block;white-space:nowrap}.suggestions-table td form{margin-top:.6rem}
#tab-tasks:not([hidden]){grid-template-columns:290px minmax(0,1fr)}.task-selection-sidebar{position:sticky;top:6rem;max-height:calc(100vh - 11rem);overflow:auto;display:grid;gap:1rem;padding:2px}
.task-selection-sidebar .document-filters{display:flex;flex-direction:column;align-items:stretch;margin:0;padding:1rem;background:white;border:1px solid var(--line);border-radius:.7rem}
.task-selection-sidebar .document-filters input:not([type=checkbox]),.task-selection-sidebar .document-filters select{width:100%;min-width:0}.task-selection-sidebar .filter-choices{display:flex;flex-direction:column;align-items:flex-start}.task-selection-sidebar #exam-statistics{position:static;max-height:none;overflow:visible}
.task-selection-sidebar{min-width:0;overflow-x:hidden;overflow-y:auto}
.task-selection-sidebar .document-filters fieldset{min-width:0;width:100%}
.task-selection-sidebar .document-filters .check{white-space:normal;overflow-wrap:anywhere;max-width:100%;margin-right:0;align-items:flex-start}
.task-selection-sidebar .document-filters .check input{flex-shrink:0;margin-top:.2rem}
.task-selection-sidebar .subarea-count{white-space:normal;flex-shrink:0}
#tab-layout:not([hidden]){display:grid;grid-template-columns:290px minmax(0,1fr);gap:1.25rem;align-items:start}
.overview-settings{position:sticky;top:6rem;max-height:calc(100vh - 11rem);overflow-y:auto;min-width:0;padding:2px;display:grid;gap:1rem}
.overview-settings .card{margin:0;padding:1rem;min-width:0;box-shadow:none}
.overview-settings h2{font-size:1.1rem;margin-top:0}
.overview-settings fieldset{min-width:0;padding:.5rem}
.overview-settings .check{white-space:normal;margin-right:0}
.overview-settings .check input{flex-shrink:0}
.overview-settings input,.overview-settings select,.overview-settings textarea{min-width:0;max-width:100%}
.overview-settings .default-answer-controls,.overview-settings .identity-options{display:flex;flex-direction:column;align-items:stretch;gap:.4rem}
.overview-main{min-width:0}
.create-exam-hero{text-align:center;margin:1rem 0 2.5rem}
.teacher-welcome,.teacher-overview-heading{display:flex;justify-content:space-between;align-items:center;gap:1.2rem;flex-wrap:wrap}.teacher-welcome h1{margin-bottom:.6rem}.teacher-welcome p{margin:.5rem 0}.teacher-shortcuts{display:flex;gap:.6rem;margin:1.5rem 0 2rem}.teacher-shortcuts a{background:#fff;border:1px solid var(--line);padding:.65rem 1rem}.teacher-shortcuts strong{font-size:1.25rem;margin-right:.3rem}.teacher-overview-heading h2{margin:0}.teacher-overview-heading form label{display:flex;align-items:center;gap:.6rem}.teacher-overview-heading select{width:auto;max-width:100%}.teacher-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1.25rem 0}.teacher-metrics article{background:linear-gradient(120deg,#efebff,#f8f7ff);border:1px solid #e1dbf8;border-radius:.8rem;padding:1.1rem}.teacher-metrics strong{display:block;font-size:2rem;color:#5038bd}.teacher-metrics span,.teacher-metrics small{display:block}.teacher-metrics span{font-size:.9rem}.teacher-metrics small{color:var(--muted);margin-top:.4rem}.teacher-news-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}.teacher-news-grid>.card{margin:0 0 1rem}.teacher-news-grid h2,.teacher-progress h2{margin-top:0}.teacher-activity{list-style:none;padding:0;margin:0}.teacher-activity li{display:flex;gap:.8rem;padding:.9rem 0;border-bottom:1px solid var(--line)}.teacher-activity small,.teacher-progress-row small{display:block;color:var(--muted);font-size:.8rem;margin-top:.35rem}.activity-dot{flex-shrink:0;margin-top:.4rem;width:.6rem;height:.6rem;border-radius:50%;background:#34a991}.dashboard-assignment{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .8rem;color:var(--ink);text-decoration:none;padding:.9rem 0;border-bottom:1px solid var(--line)}.dashboard-assignment small{display:block;color:var(--muted)}.dashboard-assignment progress,.dashboard-assignment>small{grid-column:1/-1}.dashboard-badge{display:inline-block;align-self:start;padding:.3rem .5rem;background:#eeebfa;border-radius:.4rem;font-size:.8rem;color:#55458a}.dashboard-badge.needs-attention{color:#85501a;background:#fff0d9}.teacher-progress-row{display:grid;grid-template-columns:1fr 1.3fr 1fr 1.2fr;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line);font-size:.9rem}.dashboard-exams{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.8rem}.dashboard-exams>a{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem;text-decoration:none;color:var(--ink);background:#f7f7fc;padding:1rem;border-radius:.6rem}.dashboard-exams small{color:var(--muted)}.dashboard-notice{display:block;background:#fff0d9;padding:1rem;border-radius:.6rem;margin-top:1rem;color:#75501d}.teacher-progress-row>div{min-width:0;overflow-wrap:anywhere}@media(max-width:800px){.teacher-news-grid{grid-template-columns:1fr}.teacher-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-progress-row{grid-template-columns:1fr 1fr}}@media(max-width:450px){.teacher-overview-heading form,.teacher-overview-heading select{width:100%}.teacher-overview-heading form label{display:block}.teacher-metrics strong{font-size:1.6rem}.dashboard-assignment{grid-template-columns:1fr}.teacher-welcome .button{width:100%}}
.assignment-status{display:flex;gap:.8rem;flex-wrap:wrap;margin:1rem 0}.assignment-status span{padding:.7rem 1rem;border-radius:.6rem;background:#f0edff}.assignment-status strong{font-size:1.3rem;margin-right:.3rem}.assignment-instructions{border-left:3px solid #7b68da;background:#f1eefb;border-radius:.5rem;padding:1rem;margin:1rem 0}.assignment-instructions p{margin:.4rem 0}.assignment-card h3{text-transform:none;font-size:1.2rem;color:var(--ink)}
.create-exam-button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;font-size:clamp(1.3rem,3vw,2rem);font-weight:800;padding:1rem 2.5rem;border-radius:1rem;box-shadow:0 8px 24px #6750e52b;text-transform:none;letter-spacing:-.02em}
.create-exam-button span{font-size:1.3em}.exam-list-filters{align-items:end}
.student-heading{margin-bottom:2rem}.student-heading h1{margin-bottom:.6rem}.eyebrow{font-size:.8rem;letter-spacing:.12em;font-weight:800;color:#6652bd}
.practice-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin:1rem 0 2rem}
.practice-module-grid .card{margin:0}.practice-module{display:block;text-decoration:none;color:var(--ink);transition:border-color .2s,box-shadow .2s}.practice-module:hover,.practice-module.selected{border-color:#8873ef;box-shadow:0 5px 18px #6750e51a}.practice-module h2{font-size:1.25rem;margin-top:0}.practice-module span{color:#5b46e5;font-weight:700}.practice-setup{max-width:720px}.practice-setup input[type=number]{max-width:10rem}
.table-choices{display:flex;flex-wrap:wrap;gap:.6rem}.table-choices label{margin:0;display:flex;align-items:center;gap:.4rem;padding:.7rem 1rem;background:#f2efff;border-radius:.6rem}.table-choices input{width:auto;margin:0;accent-color:#634be8}
.practice-progress{display:flex;align-items:center;gap:1rem;margin:1rem 0}.practice-progress progress{flex:1;max-width:360px}progress{accent-color:#6652df;width:100%;height:.8rem}
.practice-question{max-width:850px}.practice-prompt{margin:1.5rem 0;overflow-wrap:anywhere}.arithmetic-prompt{font-size:clamp(2rem,6vw,3.5rem);font-weight:800;letter-spacing:-.04em}.practice-question input[name=answer]{max-width:12rem;font-size:1.4rem}.practice-answer{background:#f6f4ff;padding:1.2rem;border-radius:.7rem;border:1px solid #ded7fa;margin-top:1rem}.self-mark-form{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}.practice-result{padding:.8rem 1rem;border-radius:.6rem;margin:1rem 0}.practice-result.correct{background:#e9f6ef;color:#175e44}.practice-result.retry{background:#fff2df;color:#79521b}.practice-result p{margin:.3rem 0}.practice-complete{background:linear-gradient(110deg,#eee9ff,#e9f8f3)}.practice-review{padding:.8rem 0;border-bottom:1px solid var(--line)}.practice-review summary{cursor:pointer}.skill-level{display:block;font-size:1.7rem;margin:.6rem 0}.skill-level small{font-size:1rem;color:var(--muted)}.skill-card h3{font-size:1rem;text-transform:none}.login-role{display:flex;gap:1rem}.practice-question img{max-width:100%}
@media(max-width:850px){#tab-layout:not([hidden]){grid-template-columns:minmax(0,1fr)}.overview-settings{position:static;max-height:none}.overview-main .overview-section-settings{grid-template-columns:minmax(0,1fr)}.overview-main .overview-section-settings select{min-width:0;width:100%}}
.answer-review-warning,.answer-edit-warning{color:#a51d32;background:#fff1f2;border:1px solid #f0c3cb;padding:.7rem;border-radius:.45rem}.answer-review-warning strong{display:inline-grid;place-items:center;background:#ba233c;color:white;border-radius:50%;width:1.4em;height:1.4em;margin-right:.4rem}.answer-review-warning[hidden],.answer-edit-warning[hidden],.confirm-answer-form[hidden]{display:none}
@media(max-width:850px){#tab-tasks:not([hidden]){grid-template-columns:1fr}.task-selection-sidebar{position:static;max-height:none}.task-selection-sidebar .document-filters{max-width:none}header{gap:.7rem}}
@media print{.answer-review-warning,.answer-edit-warning,.confirm-answer-form{display:none!important}}
.groups-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1.4rem;align-items:start}.group-links{display:grid;gap:.6rem;margin-bottom:1rem}.group-links a{padding:.5rem;border-radius:.4rem}.group-links [aria-current=page]{background:#eeeafa;font-weight:700}.group-links small{display:block}.groups-workspace input,.groups-workspace textarea{width:100%}.groups-workspace label{display:block;margin:.65rem 0}.groups-workspace textarea{font-family:inherit}.student-fields{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}.student-fields label{flex:1;min-width:140px}.student-fields button{margin-bottom:.65rem}.student-row{border-bottom:1px solid #e0e2eb;padding:.75rem 0}.student-row summary{cursor:pointer}.student-row summary small{margin-left:.8rem}.student-row>form{margin:.5rem 0}@media(max-width:850px){.groups-workspace{grid-template-columns:1fr}}
.teacher-create-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;width:100%;max-width:32rem;margin:1.6rem 0 1rem}.teacher-create-actions .button{display:grid;grid-template-columns:1.25rem minmax(0,1fr);align-items:center;gap:.75rem;min-width:0;height:4rem;padding:.9rem 1.25rem;border-radius:.85rem;font-size:.88rem;font-weight:700;line-height:1.25;letter-spacing:.075em;text-transform:uppercase;text-align:center;box-shadow:0 5px 14px #6048e822}.teacher-create-actions .button span{white-space:nowrap}.teacher-create-actions .button svg{display:block;width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.teacher-create-actions .button:focus-visible{outline:3px solid #26816f;outline-offset:4px}@media(max-width:480px){.teacher-create-actions{gap:.65rem}.teacher-create-actions .button{grid-template-columns:1.1rem minmax(0,1fr);height:3.8rem;padding:.75rem .7rem;font-size:.78rem;letter-spacing:.045em;gap:.45rem}.teacher-create-actions .button svg{width:1.1rem;height:1.1rem}}@media(max-width:380px){.teacher-create-actions{grid-template-columns:1fr}}
.student-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:2rem;max-width:1440px;margin:2rem auto;padding:0 1.25rem;align-items:start}.student-shell>main{width:100%;min-width:0;max-width:none;margin:0;padding:0}.student-sidebar{position:sticky;top:6.5rem;max-height:calc(100dvh - 11rem);overflow-y:auto;padding:1rem;border:1px solid #dfd9f2;border-radius:1rem;background:#f0edfa}.student-menu>summary{display:none}.student-sidebar nav{display:flex;flex-direction:column;gap:.4rem}.student-sidebar nav a{display:block;padding:.65rem .7rem;border-radius:.5rem;text-decoration:none;color:#49387d;font-weight:650;overflow-wrap:anywhere}.student-sidebar nav a:hover,.student-sidebar nav a[aria-current]{background:#ded6f5;color:#322266}.student-course-context{margin-top:1rem;padding-top:1rem;border-top:1px solid #d8d0eb;font-size:.9rem}.student-course-context strong{display:block}.student-course-context select{width:100%;min-width:0}.student-run-actions{display:grid;gap:.75rem;margin-top:1rem}.student-run-actions button{width:100%;letter-spacing:0;text-transform:none}.student-run-actions small{color:var(--muted)}.group-course-form{padding:1rem;background:#f2effa;border:1px solid #dfd9ed;border-radius:.7rem;margin:1rem 0}.dashboard-draft{display:block;padding:.8rem 0;text-decoration:none;border-bottom:1px solid var(--line)}.dashboard-draft small{display:block;margin-top:.3rem;color:var(--muted)}.teacher-drafts h3{margin-top:0}@media(min-width:761px){.student-menu:not([open])> :not(summary){display:block}.student-menu:not([open])>nav{display:flex}}@media(max-width:760px){.student-shell{display:block;margin:1rem auto;padding:0 1rem}.student-sidebar{position:sticky;top:5rem;z-index:8;max-height:calc(100dvh - 10rem);margin-bottom:1rem;box-shadow:0 3px 10px #38296812}.student-menu>summary{display:list-item;cursor:pointer;font-weight:700;color:#49387d}.student-sidebar nav{display:grid;grid-template-columns:1fr 1fr;margin-top:.7rem}.student-header-label{display:none}}
.student-sidebar{top:calc(var(--student-header-height,6rem) + .75rem);max-height:calc(100dvh - var(--student-header-height,6rem) - 6rem)}
.site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1.5rem}.site-header .primary-nav{min-width:0;align-items:center;justify-content:flex-start}.logout-button{display:inline-flex;justify-self:end;align-items:center;gap:.45rem;padding:.55rem .85rem;border:1px solid #e6bcb7;border-radius:.65rem;background:#fff0ed;color:#993a34;font-size:.9rem;font-weight:700;text-decoration:none;white-space:nowrap}.logout-button svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.logout-button:hover{background:#f9ded9;border-color:#d59890;color:#7d2c28}.logout-button:focus-visible{outline:3px solid #b65c52;outline-offset:3px}@media(max-width:760px){.site-header{grid-template-columns:minmax(0,1fr) auto;gap:.6rem}.site-header .brand{grid-column:1;grid-row:1}.site-header .logout-button{grid-column:2;grid-row:1}.site-header .primary-nav{grid-column:1/-1;grid-row:2;gap:.1rem}.logout-button{padding:.5rem .6rem;font-size:.85rem}.logout-button svg{width:1.1rem;height:1.1rem}}
.worksheet-selection{display:grid;grid-template-columns:240px minmax(0,1fr);gap:1rem;align-items:start}.worksheet-total{position:sticky;top:7rem}.worksheet-total strong{font-size:1.4rem}.worksheet-total button{width:100%;letter-spacing:0}.worksheet-topic{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-bottom:1px solid #e7e4ef;padding:.65rem 0}.worksheet-topic input{width:5.5rem;flex-shrink:0}.worksheet-generator>.card label{display:block;margin:.8rem 0}.worksheet-generator>.card input,.worksheet-generator>.card select{width:100%}.worksheet-link{display:grid;gap:.4rem;text-decoration:none;color:var(--ink)}.worksheet-link:hover{background:#f5f2ff}.worksheet-link small{color:var(--muted)}@media(max-width:760px){.worksheet-selection{grid-template-columns:1fr}.worksheet-total{position:static}.worksheet-topic{font-size:.9rem}}
.teacher-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.6rem 0 2.2rem}.teacher-shortcuts a{display:flex;align-items:center;gap:.7rem;padding:1.2rem 1.3rem;border:1px solid #e5e1f1;border-radius:1rem;background:#fff;box-shadow:0 3px 12px #35266d06;color:#625777;transition:border-color .15s,box-shadow .15s}.teacher-shortcuts strong{font-size:1.7rem;color:#513bc0;line-height:1.2;margin:0}.teacher-shortcuts a:hover{border-color:#c0b3f0;box-shadow:0 5px 16px #35266d10}.teacher-resume{margin-bottom:1.6rem}.teacher-resume>h2{font-size:1.15rem;margin:0 0 .85rem}.resume-exam-card{display:flex;align-items:center;gap:1.3rem;padding:1.65rem;border:1px solid #dcd4f4;border-radius:1.25rem;background:linear-gradient(120deg,#f3efff,#fff 75%);box-shadow:0 5px 20px #47377c09;text-decoration:none;color:var(--ink);transition:border-color .15s,box-shadow .15s}.resume-exam-card:hover{border-color:#b9a8ed;box-shadow:0 8px 24px #47377c14}.resume-exam-icon{display:grid;place-items:center;flex-shrink:0;width:3.5rem;height:3.5rem;background:#e5dcfb;border-radius:1rem;color:#6046ba}.resume-exam-icon svg{width:1.8rem;height:1.8rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.resume-exam-content{flex:1;min-width:0;overflow-wrap:anywhere}.resume-exam-label{font-size:.75rem;color:#725da3;font-weight:700}.resume-exam-content h3{margin:.35rem 0 .5rem;text-transform:none;letter-spacing:0;font-size:1.35rem;line-height:1.35;color:#302345}.resume-exam-content p{margin:0 0 .45rem;color:#615970;font-size:.92rem}.resume-exam-content small{color:#81798e;font-size:.8rem}.resume-exam-action{padding:.75rem 1rem;background:#6247d6;color:white;border-radius:.7rem;font-weight:700;font-size:.9rem;white-space:nowrap}.resume-exam-card:focus-visible,.teacher-shortcuts a:focus-visible{outline:3px solid #8874d6;outline-offset:4px}.resume-exam-empty{justify-content:space-between}.resume-exam-empty p{margin:0;color:var(--muted)}.teacher-followup{border:1px solid #e4dfef;border-radius:1rem;background:#ffffffb8;margin:1.8rem 0}.teacher-followup>summary{padding:1.2rem 1.4rem;cursor:pointer;color:#524463;font-weight:700}.teacher-followup>summary small{display:block;font-size:.83rem;font-weight:400;color:var(--muted);margin:.3rem 0 0 1.1rem}.teacher-followup-content{padding:0 1.4rem 1.4rem}.teacher-followup[open]>summary{margin-bottom:1rem;border-bottom:1px solid #e9e4f0}.teacher-followup-content>.card{border-radius:1rem}@media(max-width:650px){.teacher-shortcuts{gap:.5rem}.teacher-shortcuts a{flex-direction:column;align-items:flex-start;gap:.35rem;padding:.9rem .75rem;font-size:.8rem}.teacher-shortcuts strong{font-size:1.5rem}.resume-exam-card{padding:1.2rem;gap:.85rem;flex-wrap:wrap}.resume-exam-icon{width:2.7rem;height:2.7rem}.resume-exam-content{flex-basis:calc(100% - 4rem)}.resume-exam-content h3{font-size:1.15rem}.resume-exam-action{width:100%;text-align:center;margin-top:.35rem}.teacher-followup-content{padding:0 .8rem .8rem}.resume-exam-empty{align-items:flex-start;flex-direction:column}}
/* Shared primary creation actions. */
.create-material-button.button,.teacher-create-actions .create-material-button.button{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;min-width:0;height:4.25rem;padding:1rem 1.65rem;border:1px solid #ffffff35;border-radius:1rem;background:linear-gradient(115deg,#5140b8 0%,#6953cb 46%,#19796e 100%);color:#fff;font-family:"Manrope",ui-sans-serif,system-ui,sans-serif;font-size:1.15rem;font-weight:800;line-height:1.2;letter-spacing:.065em;text-transform:uppercase;box-shadow:0 5px 16px #49439b20;transition:background .18s,box-shadow .18s,transform .18s}.create-material-button.button:hover,.teacher-create-actions .create-material-button.button:hover{background:linear-gradient(115deg,#45349e,#5a44b7 46%,#12685e);box-shadow:0 8px 22px #49439b2a}.create-material-button.button svg,.teacher-create-actions .create-material-button.button svg{width:1.4rem;height:1.4rem;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}.create-material-button.button span{white-space:nowrap}.worksheet-intro{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:1.5rem}.worksheet-intro h1{margin-bottom:.65rem}.worksheet-intro p{margin:.3rem 0}.worksheet-intro .create-material-button{min-width:16rem}.worksheet-selection{grid-template-columns:270px minmax(0,1fr);gap:1.4rem}.worksheet-sidebar{position:sticky;top:6.5rem;max-height:calc(100dvh - 11rem);overflow-y:auto;min-width:0}.worksheet-sidebar>.card{margin:0 0 .8rem}.worksheet-sidebar .worksheet-total{position:static}.worksheet-sidebar h2{font-size:1rem;margin:0 0 .9rem}.worksheet-filters label{display:block;margin:.7rem 0;font-size:.9rem}.worksheet-filters select,.worksheet-filters input[type=search]{width:100%;min-width:0}.worksheet-filters label.check{display:flex;align-items:center;gap:.5rem}.worksheet-filters input[type=checkbox]{margin:0;width:1rem;height:1rem}.worksheet-content{min-width:0}.worksheet-options{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:.75rem 1rem;margin:0 0 1.3rem}.worksheet-options label{display:block;font-size:.9rem}.worksheet-options input,.worksheet-options select{width:100%;min-width:0}.worksheet-options .hint{grid-column:1/-1;margin:0;line-height:1.5;font-size:.82rem}.worksheet-topic-heading{display:flex;align-items:baseline;justify-content:space-between;padding:0 .8rem}.worksheet-topic-heading h2{font-size:1.1rem;margin:0}.worksheet-topic-heading>span{font-size:.8rem;color:var(--muted)}.worksheet-selection-help{margin:.5rem .8rem 1rem;font-size:.85rem}.worksheet-area-group{border:1px solid #e0dced;border-radius:.8rem;margin-bottom:.65rem;background:#fff;overflow:hidden}.worksheet-area-group>summary{cursor:pointer;padding:.8rem 1rem;font-weight:700;color:#4d4265;font-size:.94rem;background:#f5f3fb}.worksheet-area-count{float:right;font-size:.74rem;font-weight:500;color:#75698b;margin-left:.5rem}.worksheet-area-group>div{padding:0 .65rem}.worksheet-topic{padding:.35rem .3rem;gap:.65rem;min-height:2.7rem;font-size:.89rem}.worksheet-topic:last-child{border-bottom:0}.worksheet-topic[hidden],.worksheet-area-group[hidden]{display:none}.worksheet-topic-label{display:flex;align-items:center;gap:.6rem;margin:0;flex:1;min-width:0;cursor:pointer;line-height:1.3}.worksheet-topic-pick{width:1rem!important;height:1rem;flex:0 0 1rem;accent-color:#6452c7;margin:0}.worksheet-topic .worksheet-topic-count{width:4.6rem;padding:.32rem .5rem;height:2.1rem;text-align:center;font-size:.88rem;border-radius:.4rem}.worksheet-topic-count:disabled{background:#f7f6f9;color:#a6a0b2;border-color:#eeebf2}.worksheet-topic.is-selected{background:#f7f5ff}.worksheet-total>strong{font-size:1.45rem}.worksheet-total #worksheet-selected-list{list-style:none;padding:0;margin:.9rem 0 1.1rem}.worksheet-total #worksheet-selected-list li{display:flex;justify-content:space-between;gap:.6rem;padding:.35rem 0;font-size:.82rem;line-height:1.35}.worksheet-total #worksheet-selected-list strong{font-size:.85rem;flex-shrink:0}.worksheet-start-hint{padding:2rem;color:var(--muted)}@media(max-width:850px){.worksheet-selection{grid-template-columns:230px minmax(0,1fr)}.worksheet-options{grid-template-columns:1fr}.worksheet-area-count{float:none;display:block;margin:.25rem 0 0 1rem}}@media(max-width:650px){.worksheet-selection{grid-template-columns:1fr}.worksheet-sidebar{position:static;max-height:none;overflow:visible}.worksheet-intro{align-items:flex-start;flex-direction:column}.worksheet-intro .create-material-button{width:100%}.teacher-create-actions{max-width:none}.create-material-button.button,.teacher-create-actions .create-material-button.button{font-size:1rem;padding:1rem .8rem;height:4rem;gap:.5rem}.worksheet-options{grid-template-columns:1fr}}
@media(max-height:850px){.worksheet-sidebar{position:static;max-height:none;overflow:visible}}
.student-resume,.student-training-summary{margin-bottom:2rem}.student-resume progress{width:100%;max-width:30rem;accent-color:#6953cb}.student-training-summary .teacher-metrics{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
.logout-form{margin:0 0 0 auto;flex-shrink:0}.logout-form .logout-button{margin:0;font:inherit;text-transform:none;letter-spacing:normal}
@font-face{font-family:"Sora Local";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/sora-700.ttf") format("truetype")}.create-exam-hero .create-exam-button{font-family:"Sora Local","Sora",sans-serif;width:20rem;max-width:100%;min-height:5rem;box-sizing:border-box;color:#fff;text-decoration:none;white-space:nowrap}.create-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:1rem}.create-group-panel{display:block;text-align:center}.create-group-panel>summary{list-style:none;cursor:pointer;margin:0 auto}.create-group-panel>summary::-webkit-details-marker{display:none}.create-group-panel>form{max-width:28rem;margin:1rem auto;text-align:left}.create-exam-hero .create-exam-button:focus-visible{outline:3px solid #26816f;outline-offset:4px}@media(max-width:760px){.site-header .logout-form{grid-column:2;grid-row:1}}
.logout-form .logout-button{font-family:inherit;font-size:.9rem;font-weight:700;background:#fff0ed;color:#993a34}.logout-form .logout-button:hover{background:#f9ded9;color:#7d2c28}

/* Exam builder: shared right-hand summary and square controls. */
/* Shared tabs, including group and task navigation. */
.question-content>.item-question-body,.printed-question>div{flex:1;min-width:0}
main:has(#task-form){max-width:1600px}
#task-form{max-width:none}
.task-authoring-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.task-authoring-layout>.task-workspace{min-width:0}
.task-authoring-layout fieldset,.task-authoring-layout .question-editor{min-width:0}
.document-part{padding-right:0}
.document-part:has(.part-visibility-form)>.document-part-text{padding-right:4.5rem}
.task-preview-panel{position:sticky;top:6rem;max-height:calc(100dvh - 11rem);overflow:auto;min-width:0;border:1px solid #d8d2e6;padding:1rem;background:white}
.task-preview-panel h2{font-size:1.1rem;margin:0 0 1rem}
.task-preview-panel{background:#e5eaf2}
.task-preview-panel #task-preview{background:transparent}
.task-form .option-row{grid-template-columns:6rem minmax(0,1fr) auto;align-items:center}
.task-form .option-row .answer-row{min-width:0}
.task-form .add-option{margin-top:.6rem;text-transform:none;letter-spacing:normal}
#task-preview .preview-option{display:flex;align-items:baseline;gap:.4rem;margin:.4rem 0}
#task-preview .preview-option .preview-content{flex:1;min-width:0;margin:0}
.exam-builder .task-favorite-form{background:transparent;box-shadow:none;border:0}
.exam-builder .search-task.favorite-task{padding-right:0}
.exam-builder .search-task-header{padding-right:4rem}
.print-actions{position:sticky;top:5rem;z-index:9;padding:.65rem;background:#f6f7fc;border-bottom:1px solid #d8d2e6}
@media(max-width:760px){.print-actions{top:10rem;gap:.5rem}.print-actions .button,.print-actions button{font-size:.8rem}.task-form .option-row{grid-template-columns:minmax(0,1fr) auto}.task-form .option-row>label{grid-column:1/-1}}
#task-preview{border:0;padding:0;background:white;white-space:normal}
#task-preview section+section{border-top:1px solid #e4e0eb;margin-top:1rem;padding-top:1rem}
#task-preview h3{font-size:.95rem;margin:1rem 0 .4rem;text-transform:none;letter-spacing:normal}
#task-preview .preview-content{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:.65rem}
#task-preview .editor-image{max-width:100%}
.assessment-row .remove-point{padding:.1rem .35rem;margin-left:.3rem;background:transparent;color:#8d2934;box-shadow:none}
.assessment-panel .add-point{margin-top:.6rem;text-transform:none;letter-spacing:normal}
.task-form .level-button{position:relative}
.task-form .level-button input{width:1px;height:1px;left:0;top:0}
.task-form .level-button:has(input:focus-visible) span{outline:2px solid #6953cb;outline-offset:2px}
@media(max-width:1050px){.task-form .assessment-row{grid-template-columns:1fr}.task-authoring-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:750px){.task-authoring-layout{grid-template-columns:minmax(0,1fr)}.task-preview-panel{position:static;max-height:none}}
.document-tabs,.task-library-tabs{display:flex;flex-wrap:wrap;gap:0;padding:0;margin:1rem 0 1.4rem;background:transparent;border:0;border-bottom:2px solid #d8d2e6;border-radius:0}
.document-tabs button,.task-library-tabs a{margin:0 0 -2px;padding:.85rem 1.15rem;background:transparent;color:#625777;border:0;border-bottom:3px solid transparent;border-radius:0;box-shadow:none;text-transform:none;letter-spacing:normal;font:inherit;font-weight:600;text-decoration:none;transform:none}
.document-tabs button:hover,.task-library-tabs a:hover{background:#f3f0f8;color:#403776;box-shadow:none;transform:none}
.document-tabs button.active,.document-tabs button[aria-selected="true"],.task-library-tabs a.active,.task-library-tabs a[aria-current="page"]{background:transparent;color:#513bc0;border-color:#6953cb;box-shadow:none}
.document-tabs button:focus-visible,.task-library-tabs a:focus-visible{outline:2px solid #6953cb;outline-offset:2px}
.document-tabs,.task-library-tabs{position:sticky;top:var(--tabs-header-height,5rem);z-index:9;background:#f4f3fa}
.resume-task-card{margin-top:1rem}
.document-tab-bar{position:sticky;top:var(--tabs-header-height,5rem);z-index:9;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;background:#f4f3fa;border-bottom:2px solid #d8d2e6;margin:1rem 0 1.4rem}
.document-tab-bar .document-tabs{position:static;margin:0;flex:1;border-bottom:0}
.document-tab-bar #toggle-exam-preview{display:inline-flex;align-items:center;gap:.4rem;margin:.35rem;font-size:.8rem;letter-spacing:normal;text-transform:none}
.document-tab-bar #toggle-exam-preview svg{width:18px;height:18px;flex:none}
.document-tab-bar #toggle-exam-preview[hidden]{display:none}
main:has(.exam-library){max-width:1600px}
main:has(.task-library-page),main:has(.groups-page){max-width:1600px}
.task-library-page *{border-radius:0!important}
.task-library-page .task-selection-sidebar{position:sticky;top:calc(var(--tabs-header-height,5rem) + var(--sticky-tabs-height,3rem) + 1rem)}
.task-library-page .task-library-filters{display:flex;flex-direction:column;gap:.8rem;align-items:stretch;padding:1rem}
.task-library-page .task-library-filters>label,.task-library-page .library-area-control{font-size:.9rem}
.task-library-page .library-area-choices{position:static;width:100%;max-width:none;max-height:18rem;box-shadow:none;border:0;padding:.4rem 0}
.task-library-page .library-area-choices input[type=checkbox],.task-library-page .library-publish-form input[type=checkbox]{width:1.4rem;height:1.4rem;min-width:1.4rem;flex-basis:1.4rem;accent-color:#6953cb}
.task-library-page #task-library-results{min-width:0}
.task-library-page .library-result-count{margin-top:0;font-size:.9rem}
.task-library-page .library-group{margin:.75rem 0}
.task-library-page .library-group>summary{font-size:.95rem;padding:.65rem .8rem;background:#eeebf7;border:1px solid #ded9ea}
.task-library-page .library-task{padding:.8rem 4rem .8rem .8rem;margin:0;border:1px solid #ded9ea;border-top:0;box-shadow:none;gap:.7rem}
.task-library-page .library-task-content h2{font-size:1rem;margin:0 0 .4rem}
.task-library-page .library-task-content h2 a{color:#493a86;text-decoration:none}
.task-library-page .library-task-content h2 a:hover{text-decoration:underline}
.task-library-page .library-task-preview{font-size:.92rem;line-height:1.65;margin:.4rem 0}
.task-library-page .library-task-content>small{display:block;margin:.4rem 0;color:var(--muted)}
.task-library-page .task-favorite-form{background:transparent}
.task-library-page .publication-help{font-size:.85rem}
@media(max-width:1000px){.task-library-page .task-selection-sidebar{position:static}.task-library-page .task-library-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.task-library-page .task-library-filters{grid-template-columns:minmax(0,1fr)}}
.exam-library *{border-radius:0!important}
.exam-library-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1.25rem;align-items:start}
.exam-library .task-selection-sidebar{position:sticky;top:6rem}
.exam-library .document-filters{gap:.8rem;padding:1rem}
.exam-library .document-filters label{display:grid;gap:.35rem;margin:0;font-size:.9rem}
.exam-library .filter-retry[hidden]{display:none}
#exam-list-results{min-width:0}
.exam-library .bulk-exam-actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:0 0 .75rem;font-size:.9rem}
.exam-library .bulk-exam-actions button{padding:.5rem .75rem;font-size:.8rem;letter-spacing:normal;text-transform:none}
.exam-table-wrap{overflow-x:auto;border:1px solid #ded9ea;background:white}
.exam-table{width:100%;border-collapse:collapse;font-size:.88rem}
.exam-table th,.exam-table td{padding:.7rem .65rem;text-align:left;border-bottom:1px solid #e6e1ef}
.exam-table th{background:#eeebf7;white-space:nowrap}
.exam-table th a{color:inherit;text-decoration:none;display:flex;gap:.4rem;align-items:center}
.exam-table th a:hover{text-decoration:underline}
.exam-table td:nth-child(2){min-width:10rem;font-weight:600}
.exam-table td:nth-child(2) a{color:#493a86;text-decoration:none}
.exam-table td:nth-child(2) a:hover{text-decoration:underline}
.exam-table td:nth-child(3){min-width:10rem;font-size:.82rem;color:#625777}
.exam-table td:nth-child(4),.exam-table td:nth-child(5){white-space:nowrap}
.exam-table tbody tr:hover{background:#f7f5fc}
.exam-table input[type=checkbox]{width:1.4rem;height:1.4rem;margin:0;accent-color:#6953cb;vertical-align:middle;cursor:pointer}
@media(max-width:1000px){.exam-library-layout{grid-template-columns:minmax(0,1fr)}.exam-library .task-selection-sidebar{position:static}.exam-library .document-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.exam-library .filter-status{grid-column:1/-1}}
@media(max-width:650px){.exam-library .document-filters{grid-template-columns:minmax(0,1fr)}.document-tab-bar{gap:0}.document-tab-bar .document-tabs{flex-basis:100%}}
.part-visibility-form{z-index:2}
.document-part.is-hidden-part{min-height:4rem}
.part-answer-form{margin-top:2rem;padding-top:1rem;border-top:1px solid #e4e4ec}
.exam-point-group{min-width:0;margin:.6rem 0;padding:.7rem;border:1px solid #ddd9ed}
.exam-point-row{display:grid;grid-template-columns:5rem minmax(0,1fr) auto auto;gap:.4rem;align-items:center;margin:.5rem 0}
.exam-point-row .level-picker{display:flex}
.exam-point-row .level-button{position:relative}
.exam-point-row .level-button input{width:1px;height:1px;left:0;top:0}
.feedback-edit-form .answer-row{min-width:0}
.feedback-edit-form .answer-editor{white-space:pre-wrap}
.feedback-edit-form textarea[hidden]{display:none}
.exam-editor-shell{min-width:0}
.exam-editor-shell.preview-open{display:grid;grid-template-columns:minmax(650px,1fr) minmax(500px,1fr);gap:1rem;align-items:start}
main:has(.exam-editor-shell.preview-open){max-width:2100px}
#inline-exam-preview{position:sticky;top:calc(var(--tabs-header-height,5rem) + 1rem);height:calc(100dvh - var(--tabs-header-height,5rem) - 6rem)}
#inline-exam-preview[hidden]{display:none}
#inline-exam-preview iframe{width:100%;height:100%;border:1px solid #ddd9ed;background:white}
.exam-editor-shell.preview-open .exam-workspace[data-active-tab="layout"]{grid-template-columns:minmax(0,1fr)}
.exam-editor-shell.preview-open #exam-statistics{position:static}
.exam-editor-shell.preview-open .overview-main{width:100%}
.document-item>.question-points,.question>.question-points{display:block;text-align:right;margin-top:.7rem}
@media(max-width:1250px){.exam-editor-shell.preview-open{grid-template-columns:minmax(0,1fr)}#inline-exam-preview{position:static;height:80vh}.exam-point-row{grid-template-columns:1fr}}
.suggestion-footer{display:flex;gap:1rem}
.suggestion-footer .suggestion-form{flex:1;min-width:0;max-width:none}
.suggestion-footer .error-report-form input[type=text]{background:#fff1f1;border-color:#efc9c9}
.suggestion-footer .error-report-form button{background:#bd3c43;color:white}
.suggestion-footer .error-report-form button:hover{background:#9e2931}
.suggestion-filters{margin-bottom:1rem}
.suggestion-filters .check{display:inline-flex;align-items:center;gap:.55rem;margin:0;cursor:pointer}
.suggestion-filters input[type=checkbox]{width:1.4rem;height:1.4rem;margin:0;accent-color:#6953cb}
.suggestions-table th a{display:flex;align-items:center;gap:.5rem;color:inherit;text-decoration:none}
.suggestions-table th a:hover{text-decoration:underline}
.suggestions-table .error-report-row td{background:#fff0f3}
.suggestions-table .student-suggestion-row td{background:#fff3e6}
@media(max-width:650px){.suggestion-footer{flex-direction:column;gap:.4rem}body:has(.suggestion-footer){padding-bottom:8rem}.suggestion-footer .suggestion-form{width:100%}}
@media(min-width:701px){.exam-builder .exam-workspace #exam-statistics{top:calc(var(--tabs-header-height,5rem) + var(--sticky-tabs-height,3rem) + 1rem);max-height:calc(100dvh - var(--tabs-header-height,5rem) - var(--sticky-tabs-height,3rem) - 6rem)}}
@media(min-width:1151px){.exam-builder .exam-workspace .task-selection-sidebar{top:calc(var(--tabs-header-height,5rem) + var(--sticky-tabs-height,3rem) + 1rem);max-height:calc(100dvh - var(--tabs-header-height,5rem) - var(--sticky-tabs-height,3rem) - 6rem)}}
.dashboard-dismissible{position:relative}
.dashboard-dismissible>h2,.dashboard-dismissible>strong,.dashboard-dismissible>a,.teacher-activity .dashboard-dismissible{padding-right:2.8rem}
#teacher-dashboard .dashboard-dismiss{position:absolute;top:.25rem;right:.25rem;display:grid;place-items:center;width:2rem;height:2rem;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#625777;font-size:1.5rem;line-height:1;transform:none}
#teacher-dashboard .dashboard-dismiss:hover{background:#eee9f7;color:#302345}
#teacher-dashboard [hidden]{display:none!important}
#dashboard-dismiss-status{display:block;font-size:.85rem;color:var(--muted);margin:.4rem 0}
main:has(.exam-builder){max-width:1600px}
.exam-builder *,.exam-builder *::before,.exam-builder *::after{border-radius:0!important}
.exam-workspace{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:1.25rem;align-items:start}
.exam-content{min-width:0}
.exam-workspace[data-active-tab="layout"]{max-width:calc(210mm + 240px);margin-inline:auto}
.exam-workspace[data-active-tab="settings"]{display:block;max-width:none}
.exam-builder #exam-statistics{position:sticky;top:6rem;margin:0;max-height:calc(100dvh - 11rem);overflow:auto}
.exam-builder #exam-statistics[hidden]{display:none}
.exam-builder #tab-tasks:not([hidden]){display:grid;grid-template-columns:var(--filter-width,340px) minmax(0,1fr);gap:1.25rem;align-items:start}
.exam-builder .task-selection-sidebar{width:100%;position:sticky;top:6rem;max-height:calc(100dvh - 11rem);overflow:auto}
.exam-builder .task-selection-sidebar .filter-choices{align-items:stretch}
.exam-builder .task-selection-sidebar .check{white-space:nowrap;overflow-wrap:normal;max-width:none}
.exam-builder #subarea-filter .check{display:grid;grid-template-columns:auto minmax(max-content,1fr) auto;gap:.4rem;width:100%;align-items:center}
.exam-builder #subarea-filter .check[hidden]{display:none}
.exam-builder .subarea-count{margin-left:auto;min-width:4.5rem;text-align:right;white-space:nowrap}
.exam-builder .filter-label-text{white-space:nowrap}
.exam-builder .filter-retry[hidden]{display:none}
.exam-builder #tab-layout:not([hidden]){display:block;max-width:none;width:100%}
.exam-builder .overview-main{width:210mm;max-width:100%}
.exam-builder #tab-settings .overview-settings{position:static;max-height:none;overflow:visible;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:start}

@media(max-width:1150px){.exam-workspace{grid-template-columns:minmax(0,1fr) 190px;gap:1rem}.exam-builder #tab-tasks:not([hidden]){grid-template-columns:minmax(0,1fr)}.exam-builder .task-selection-sidebar{position:static;width:min(var(--filter-width,340px),100%);max-height:none}}
@media(max-width:700px){.exam-workspace{display:flex;flex-direction:column}.exam-content{width:100%}.exam-builder #exam-statistics{position:static;order:-1;width:100%;max-height:none}.exam-builder #tab-settings .overview-settings{grid-template-columns:minmax(0,1fr)}.exam-builder .overview-sections-heading,.exam-builder .overview-main>.title-row{flex-wrap:wrap}}


/* Compact task library table, sharing the exam list styling. */
.task-library-page .task-table{min-width:740px}
.task-library-page .task-table .library-task{display:table-row;position:static;border:0;padding:0}
.task-library-page .task-table td{vertical-align:top;white-space:normal}
.task-library-page .task-table td:nth-child(2){width:40%;min-width:15rem;font-weight:400}
.task-library-page .task-table td:nth-child(3){min-width:8rem}
.task-library-page .task-table .task-favorite-form{position:static;margin:0;background:transparent}
.task-library-page .task-table .library-publish-form{padding:0;margin:.4rem 0 0}
.task-library-page .task-table-actions{min-width:8rem}
.task-library-page .task-table-actions>a,.task-library-page .task-table small{display:block}
.task-library-page .task-table .task-delete-form{margin:.4rem 0 0}
.task-library-page .task-row-preview{margin:.35rem 0 0}
.task-library-page .task-row-preview>summary{font-size:.8rem;color:#625777;cursor:pointer}
.task-library-page .task-row-preview .library-task-preview{padding-top:.5rem;font-weight:400}
.task-library-page .task-draft-row{background:#faf8ee}
/* Shared compact density for the task and exam libraries. */
:is(.task-library-page,.exam-library) .document-filters{padding:.65rem;gap:.5rem;font-size:.8rem}
:is(.task-library-page,.exam-library) .document-filters label,:is(.task-library-page,.exam-library) .library-area-control{font-size:.8rem;margin:0;gap:.2rem}
:is(.task-library-page,.exam-library) .document-filters input:not([type=checkbox]),:is(.task-library-page,.exam-library) .document-filters select{font-size:.8rem;line-height:1.3;padding:.35rem .45rem;margin-top:0;min-height:2rem}
.task-library-page #library-areas>summary{font-size:.8rem;padding:.35rem .45rem;line-height:1.3;min-height:2rem;box-sizing:border-box}
.task-library-page .library-area-choices{gap:.3rem}
:is(.task-library-page,.exam-library) .filter-status:empty{display:none}
:is(.task-library-page,.exam-library) .exam-table{font-size:.8rem;line-height:1.4}
:is(.task-library-page,.exam-library) .exam-table th,:is(.task-library-page,.exam-library) .exam-table td{padding:.4rem .5rem}
:is(.task-library-page,.exam-library) .exam-table td:nth-child(3){font-size:.78rem}
:is(.task-library-page,.exam-library) .exam-table button:not(.favorite-toggle){font-size:.75rem;padding:.3rem .45rem;letter-spacing:normal;text-transform:none}
.task-library-page .task-table .favorite-toggle{font-size:2.0rem;padding:.1rem .25rem;min-height:1.5rem}
.task-library-page .task-table .task-favorite-form{display:inline-block;vertical-align:middle;margin-right:.3rem}
.task-library-page .task-table-actions>a{display:inline}
.task-library-page .task-table .library-publish-form{display:inline-block;vertical-align:middle;margin:0 0 0 .3rem}
.task-library-page .task-row-preview{margin:.15rem 0 0}
.task-library-page .task-row-preview>summary{font-size:.75rem}
.task-library-page .library-task-preview{font-size:.85rem;line-height:1.5}
:is(.task-library-page,.exam-library) .bulk-exam-actions,.task-library-page .library-result-count,.task-library-page .publication-help{font-size:.8rem}
@media(min-width:1001px){:is(.task-library-page,.exam-library) .exam-library-layout{grid-template-columns:230px minmax(0,1fr);gap:.85rem}}
/* Compact controls throughout the exam builder; printed question sizes stay unchanged. */
.exam-builder .document-tabs button{font-size:.82rem;padding:.55rem .75rem}
.exam-builder .document-tab-bar{margin:.65rem 0 .85rem}
.exam-builder label,.exam-builder legend,.exam-builder .hint,.exam-builder .compact{font-size:.8rem}
.exam-builder label{margin:.4rem 0}
.exam-builder input:not([type=checkbox]):not([type=radio]):not([type=range]),.exam-builder select,.exam-builder textarea{font-size:.8rem;padding:.35rem .45rem;line-height:1.4}
.exam-builder button:not(.favorite-toggle):not(.math-button):not(.remove-math),.exam-builder .button{font-size:.9rem;padding:.35rem .55rem;letter-spacing:normal;text-transform:none}
.exam-builder .document-tabs button{font-size:.82rem;padding:.55rem .75rem}
.exam-builder .document-filters{padding:.65rem;gap:.4rem;font-size:.8rem}
.exam-builder .document-filters label{font-size:.8rem;margin:.15rem 0}
.exam-builder .document-filters fieldset{padding:.4rem;margin:.2rem 0}
.exam-builder .filter-choices{gap:.15rem}
.exam-builder .overview-settings{gap:.65rem}
.exam-builder .overview-settings .card,.exam-builder #exam-statistics{padding:.7rem;font-size:.8rem}
.exam-builder .overview-settings h2,.exam-builder .overview-sections-heading h2{font-size:1rem}
.exam-builder #exam-statistics h3{font-size:.78rem}
.exam-builder #exam-statistics .stats-total{font-size:.95rem}
.exam-builder .search-task-header{padding:.5rem 3rem .5rem .65rem;gap:.4rem}
.exam-builder .search-task-header h3{font-size:.85rem}
.exam-builder .search-task{font-size:.85rem}
.exam-builder .search-task-body>.question-content{margin-bottom:.75rem}
.exam-builder .favorite-toggle{font-size:1.4rem;min-width:1.8rem}
.exam-builder .document-item .item-controls{margin-top:1rem;padding-top:.65rem;font-size:.8rem}
.exam-builder .part-answer-form{margin-top:1rem;padding-top:.65rem}
.exam-builder .overview-section-settings{font-size:.8rem;gap:.5rem}
.exam-builder .exam-answer-key{font-size:.85rem}

.task-library-page .task-table button.task-delete-cross{color:#b42332;font-size:1.25rem;padding:0 .35rem;line-height:1.2;background:transparent}

.exam-builder .task-source-note{display:block;text-align:right;font-size:.65rem;line-height:1.4;color:#77717f;margin:.6rem 0 0;font-weight:400}

.task-usage{font-size:.75rem}.task-usage.is-used{font-weight:600;color:#594574}.task-usage.is-unused{color:#52675a}.task-unpublish-form{margin-top:.35rem}.task-unpublish-form [role=status]{display:block;font-size:.75rem}

.task-library-page .library-filter-group{border-bottom:1px solid #e6e1ef;padding:.4rem 0}
.task-library-page .library-filter-group>summary{font-size:.8rem;font-weight:600;cursor:pointer}
.task-library-page .library-filter-group .check{display:flex;align-items:flex-start;gap:.4rem;padding:.2rem 0;font-weight:400}
.task-library-page .library-filter-group .check input{margin:0;flex-shrink:0}
.task-library-page .task-table td:nth-child(2){width:auto;min-width:0;font-weight:400}
.task-library-page .task-table td:nth-child(3){width:auto;min-width:0;white-space:nowrap}
.task-library-page .task-table td:nth-child(4){width:35%;min-width:12rem;font-size:.8rem}
.task-library-page .task-table td:nth-child(4),.task-library-page .task-table td:nth-child(5){white-space:normal}
.task-library-page .task-table .task-table-actions{min-width:5rem;white-space:nowrap}
.task-library-page .task-table .task-edit-icon,.task-library-page .task-table button.task-delete-cross{display:inline-flex;align-items:center;justify-content:center;width:1.9rem;height:1.9rem;border:1px solid #cfc7e1;font-size:1.3rem;line-height:1;text-decoration:none;background:#f7f5fc;vertical-align:middle}
.task-library-page .task-table button.task-delete-cross{border-color:#e5a7ad;background:#fff0f2;color:#b42332}
.task-library-page .task-table .task-delete-form{margin:0 0 0 .3rem}
.task-library-page .task-table .task-favorite-cell{min-width:2.5rem;width:auto}

.task-library-page .task-edit-icon svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.task-library-page .task-row-title{font-weight:600}
.task-library-page .task-row-feedback{border-top:1px solid #e6e1ef;margin-top:.6rem;padding-top:.4rem}
.task-library-page .task-row-feedback h4{font-size:.8rem;margin:.5rem 0 .25rem}
.task-library-page .task-row-feedback .assessment-row{gap:.65rem}

.task-library-page .task-library-filters{padding:.5rem;gap:.3rem}
.task-library-page .library-filter-group{padding:.25rem 0}
.task-library-page .library-filter-group>summary{font-size:.75rem;line-height:1.4}
.task-library-page .library-filter-group .check{font-size:.75rem;line-height:1.35;margin:.1rem 0;padding:.1rem 0;gap:.3rem}
.task-library-page .library-filter-group input[type=checkbox]{width:1rem;height:1rem;min-width:1rem;min-height:1rem;flex:0 0 1rem;padding:0}
.task-library-page .library-filter-group .library-area-choices{padding:.2rem 0;max-height:14rem;overflow-y:auto}
.task-library-page #library-levels .library-area-choices{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}
.task-library-page .library-filter-group.is-unavailable>summary{color:#817a8c;cursor:default}
.task-library-page .filter-prerequisite{display:block;font-size:.68rem;color:#817a8c;margin:.1rem 0 .2rem}

.feedback-answer-line{display:flex;align-items:baseline;gap:.4em;margin:.5rem 0}.feedback-answer-line>.feedback-answer{min-width:0;flex:1}.feedback-answer-line>strong{flex-shrink:0}


.task-title-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}

.ML__keyboard .MLK__toolbar .keyboard-toolbar-dismiss{position:static;flex-shrink:0;    padding: 8px 10px;
    margin: 0px 4px 4px;
    border-radius: 8px;font:500 12px/1.2 sans-serif;letter-spacing:normal;text-transform:none;color:#fff;background:transparent;border:1px solid #ccd0d6;border-radius:4px;box-shadow:none;transform:none;white-space:nowrap;cursor:pointer}
.ML__keyboard .MLK__toolbar .keyboard-toolbar-dismiss:hover{background:#303030;transform:none;box-shadow:none}
@media(max-width:500px){.ML__keyboard .MLK__toolbar{flex-wrap:wrap;height:auto;min-height:36px}.ML__keyboard .MLK__toolbar .keyboard-toolbar-dismiss{font-size:11px;margin:0 .15rem;padding:.2rem}}

.task-markdown-table{border-collapse:collapse;width:auto;max-width:100%;margin:.65rem 0;font-size:inherit;white-space:normal;break-inside:avoid}
.task-markdown-table th,.task-markdown-table td{border:1px solid #9898a4;padding:.3em .65em;vertical-align:top;overflow-wrap:anywhere}
.task-markdown-table th{font-weight:600;background:#f3f2f7}

.exam-builder .overview-header.compact-document-meta{background:#eeebf7;border:1px solid #d8d1e8;padding:.65rem .8rem;display:grid;gap:.35rem}
.exam-builder .compact-document-meta input,.exam-builder .compact-document-meta textarea{background:transparent}
.answer-review-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.answer-review-row>.answer-review-warning{flex:1;margin:.5rem 0}
.answer-review-row>.confirm-answer-form{margin:0;flex-shrink:0}
.resume-task-prompt{max-height:8rem;overflow:hidden;font-size:.95rem;line-height:1.5}
.exam-library .library-filter-group{padding:.25rem 0;border-bottom:1px solid #e6e1ef}
.exam-library .library-filter-group>summary{font-size:.75rem;font-weight:600;cursor:pointer}
.exam-library .library-area-choices{display:flex;flex-direction:column;position:static;padding:.3rem 0;max-height:14rem;overflow:auto;box-shadow:none;border:0;width:auto}
.exam-library .document-filters .check{display:flex;align-items:flex-start;font-size:.75rem;gap:.35rem;padding:.15rem 0;font-weight:400}
.exam-library .document-filters input[type=checkbox]{width:1.4rem;height:1.4rem;flex-shrink:0;margin:0;accent-color:#6953cb}
.exam-actions>summary{font-size:1.5rem;line-height:1;cursor:pointer;list-style:none;padding:.1rem .35rem}
.exam-actions>a{display:block;padding:.4rem;white-space:nowrap}

/* Group cards and worksheet controls use the compact library layout. */
.group-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem}.group-color-card{display:block;padding:1rem;border:1px solid #d8d4e1;color:inherit;text-decoration:none;border-radius:3px}.group-color-card h3{margin:0 0 .6rem;font-size:1.1rem}.group-color-card p{margin:.4rem 0}.group-color-0{background:#f0ebff}.group-color-1{background:#e5f2ff}.group-color-2{background:#e6f4eb}.group-color-3{background:#fff1dc}.group-color-4{background:#fce8f0}.group-settings-fields{border:0;padding:0;margin:0;min-width:0}.worksheet-space-form{display:flex;align-items:end;gap:.4rem}.worksheet-space-form input{width:6rem}.worksheet-generator .check{display:flex;align-items:center;gap:.45rem;font-size:.8rem}.worksheet-generator .library-filter-group summary{font-size:.85rem}.worksheet-generator .library-filter-group{margin-bottom:.7rem}.worksheet-area-pick{background:#f0edf8}.skill-card table{font-size:.8rem}.skill-card input[type=checkbox],.groups-workspace input[type=checkbox]{width:1.35rem;height:1.35rem;accent-color:var(--accent,#7250e8)}

.worksheet-controls .title-row>details>summary{list-style:none}.worksheet-controls .title-row>details>summary::-webkit-details-marker{display:none}

.exam-builder .document-item .item-heading{background:#e9e6fb;border-bottom:1px solid #d9d3fa;padding:.5rem 2rem .5rem .65rem;grid-template-columns:auto auto minmax(0,1fr) auto auto auto;gap:.4rem}
.exam-builder .item-heading>.tool-icons{grid-column:4;grid-row:1}.exam-builder .item-heading>.item-move-buttons{grid-column:5}.exam-builder .item-heading>.task-id{grid-column:6}
#task-form .task-publish-choice,#task-form .image-placement .check{display:flex;align-items:center;gap:.6rem}#task-form .task-publish-choice input[type=checkbox],#task-form .image-placement input[type=radio]{width:1.4rem;height:1.4rem;min-width:1.4rem;accent-color:#6953cb;margin:0}#task-form .image-placement{display:flex;flex-wrap:wrap;gap:1rem}
@media(max-width:600px){.exam-builder .item-heading>.task-topic-label{grid-column:2 / -1;grid-row:1}.exam-builder .item-heading>.tool-icons{grid-column:3;grid-row:2}.exam-builder .item-heading>.item-move-buttons{grid-column:5;grid-row:2}.exam-builder .item-heading>.task-id{grid-column:6;grid-row:2}}

/* Keep header actions in normal flow so the remove button cannot cover the ID. */
.exam-builder .document-item .item-heading{display:flex;align-items:center;flex-wrap:wrap;padding-right:.65rem;gap:.4rem}
.exam-builder .item-heading>.task-topic-label{flex:1;min-width:0}
.exam-builder .item-heading>.tool-icons,.exam-builder .item-heading>.item-move-buttons,.exam-builder .item-heading>.task-id{flex:none;margin:0}
.exam-builder .item-heading .remove-item-form{position:static;inset:auto;display:flex;flex:none;align-self:center;margin:0;padding:0;width:auto}
.exam-builder .document-item .item-heading>button.edit-item-toggle,.exam-builder .document-item .item-heading button.remove-item-cross{display:flex;align-items:center;justify-content:center;flex:none;align-self:center;width:1.8rem;height:1.8rem;min-width:1.8rem;padding:0;letter-spacing:0;line-height:1;box-shadow:none;transform:none}
.exam-builder .item-heading .remove-item-cross{border:1px solid #e5a7ad;border-radius:3px;background:#fff0f2;color:#b42332}
.exam-builder .item-heading .remove-item-cross svg{display:block;width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.exam-builder .item-heading .remove-item-cross:hover{background:#ffe0e5;border-color:#b42332;color:#971c29}
.exam-builder .item-heading .remove-item-cross:focus-visible{outline:2px solid #b42332;outline-offset:2px}
@media(max-width:600px){.exam-builder .item-heading>.task-topic-label{order:-1;flex-basis:100%}.exam-builder .item-heading>.item-end-actions{margin-left:auto}}
.exam-builder .document-item{padding-right:.8rem}

.exam-builder .item-heading>.item-end-actions{display:flex;align-items:center;flex:none;gap:.4rem}.exam-builder .item-end-actions>.task-id{margin:0!important}

/* Shared edit control: keep identical geometry across buttons, links and summaries. */
.edit-pencil-control{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border:1px solid #c9c2ef!important;border-radius:3px!important;background:rgba(255,255,255,0.5)!important;color:#6048e8!important;box-shadow:none!important;transform:none!important;line-height:1!important;text-decoration:none!important;vertical-align:middle;list-style:none;cursor:pointer}
.edit-pencil-control:hover{background:#eeeaff!important;color:#6048e8!important}
.edit-pencil-control:focus-visible{outline:2px solid #6048e8;outline-offset:2px}
.edit-pencil-control::-webkit-details-marker{display:none}
.edit-pencil-control .edit-pencil-icon{display:block!important;flex:none!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round;stroke-linejoin:round}

/* Group and worksheet workspaces. */
.workspace-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:1rem 0}.workspace-metrics article{display:grid;gap:.35rem;padding:1rem;background:#f3f0fc;border:1px solid #e0d9f0;border-radius:3px}.workspace-metrics strong{font-size:1.3rem;color:#5941bd;overflow-wrap:anywhere}.workspace-metrics span{font-size:.75rem;color:#635d72}.workspace-shortcuts,.workspace-bulk{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:1rem 0}.workspace-shortcuts .button,.workspace-bulk button{font-size:.7rem;padding:.45rem .6rem;letter-spacing:0;border-radius:3px}.workspace-bulk>span{margin-right:auto;font-size:.8rem}.workspace-section{margin:1.5rem 0}.workspace-section h3{font-size:1rem}.workspace-section>p{font-size:.8rem;color:var(--muted)}.workspace-table{font-size:.8rem}.workspace-table th,.workspace-table td{padding:.55rem .6rem}.workspace-status{display:inline-block;padding:.2rem .45rem;background:#eeedf1;border-radius:3px;white-space:nowrap}.workspace-status.is-active{background:#dff3ea;color:#226549}.compact-assignment-editor{min-width:220px;max-width:320px;white-space:normal}.compact-assignment-editor button{font-size:.68rem;letter-spacing:0;padding:.4rem;margin:.2rem 0}.group-pupil-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.5rem}.group-pupil-links>a,.group-pupil-links>span{padding:.7rem;border:1px solid #e0d9f0;border-radius:3px;text-decoration:none;font-size:.85rem}.group-pupil-links a span{display:block;font-size:.7rem;color:var(--muted);margin-top:.3rem}.group-color-card{transition:box-shadow .15s,border-color .15s}.group-color-card:hover{box-shadow:0 4px 15px #45377218;border-color:#aa9cd2}.group-color-card[hidden]{display:none}.group-color-card small{display:block;margin:.65rem 0;color:#62566e}.group-color-card h3{font-size:1rem}.group-color-card p{font-size:.85rem}.group-card-filters{display:flex;flex-wrap:wrap;align-items:start;gap:.65rem;margin:1rem 0}.group-card-filters>label{flex:1;min-width:180px}.group-card-filters details{border:1px solid #ddd6ec;padding:.6rem;background:#fff;border-radius:3px;font-size:.8rem}.group-card-filters .check{display:flex;align-items:center;gap:.4rem}.group-card-filters input[type=checkbox]{width:1.35rem;height:1.35rem}.exam-library .sheet-star{background:transparent;color:#7057d6;border:0;box-shadow:none;padding:.15rem .35rem;font-size:1.25rem;line-height:1}.exam-library input[name="worksheet_ids[]"],#select-all-worksheets{width:1.35rem;height:1.35rem;accent-color:#7057d6}.worksheet-selection{grid-template-columns:210px minmax(0,1fr) 230px}.worksheet-summary-sidebar{position:sticky;top:6rem;max-height:calc(100dvh - 7rem);overflow:auto}.worksheet-summary-sidebar .worksheet-total{position:static;margin:0}.worksheet-generator .card,.worksheet-generator .worksheet-area-group{border-radius:3px}.worksheet-generator .worksheet-area-group>summary{padding:.65rem .8rem}.worksheet-generator .worksheet-topic-pick{width:1.25rem!important;height:1.25rem;flex-basis:1.25rem}.worksheet-generator .worksheet-options{grid-template-columns:1fr}.worksheet-content{min-width:0}.worksheet-controls .title-row h1{font-size:1.6rem}.worksheet-controls .worksheet-toolbar{padding:.8rem;background:#f1eef9;border:1px solid #e0d9f0;border-radius:3px;gap:.65rem}.worksheet-controls .worksheet-toolbar button,.worksheet-controls .worksheet-toolbar .button{font-size:.7rem;padding:.45rem .6rem;letter-spacing:0;border-radius:3px}.worksheet-controls .worksheet-toolbar label{font-size:.8rem}
@media(max-width:1100px){.worksheet-selection{grid-template-columns:190px minmax(0,1fr)}.worksheet-summary-sidebar{grid-column:1/-1;position:static;max-height:none}.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.worksheet-selection{grid-template-columns:1fr}.worksheet-summary-sidebar{grid-column:auto}.workspace-metrics strong{font-size:1.1rem}.workspace-metrics article{padding:.7rem}.workspace-bulk>span{flex-basis:100%}.group-card-filters{display:grid;grid-template-columns:1fr}}

.group-card-open{display:block;margin-top:1rem;font-size:.75rem;font-weight:600}.group-course-tag{font-size:.75rem!important;color:#62566e}

.groups-page>.create-exam-hero{text-align:left;margin:.7rem 0 1rem;padding:0}.groups-page .create-group-panel{text-align:left}.groups-page .create-group-panel>summary{margin:0;width:auto;display:inline-flex;min-height:0;padding:.6rem .9rem;font-size:.85rem;border-radius:3px;box-shadow:none;gap:.4rem}.groups-page .create-group-panel>form{margin:1rem 0}.groups-page>.groups-workspace>.card{border-radius:3px}.groups-page>p{font-size:.85rem}.groups-page .group-links{font-size:.85rem}.worksheet-controls>.card{border-radius:3px}.worksheet-generator input,.worksheet-generator select,.worksheet-generator button{border-radius:3px}.worksheet-generator .worksheet-filters input[type=checkbox],.worksheet-toolbar input[type=checkbox]{width:1.25rem;height:1.25rem;accent-color:#7057d6}

/* Worksheet favorites and course names. */
:is(.exam-library .exam-table button.sheet-star,.task-library-page .task-table button.favorite-toggle,.exam-builder button.favorite-toggle){display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:4px;background:transparent;color:#7057d6;border:0;box-shadow:none;line-height:1;transform:none}
:is(.exam-library .exam-table button.sheet-star,.task-library-page .task-table button.favorite-toggle,.exam-builder button.favorite-toggle) svg{display:block;flex:none;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
:is(.exam-library .exam-table button.sheet-star,.task-library-page .task-table button.favorite-toggle,.exam-builder button.favorite-toggle)[aria-pressed=true] svg{fill:currentColor}
.worksheet-selection{grid-template-columns:max-content minmax(0,1fr) 230px}
.worksheet-sidebar{min-width:210px;max-width:100%}
.worksheet-course-filter .check{white-space:nowrap;width:max-content}
.worksheet-course-filter .check input{flex:none}
@media(min-width:951px) and (max-width:1100px){.worksheet-selection{grid-template-columns:max-content minmax(0,1fr)}}
@media(max-width:950px){.worksheet-selection{grid-template-columns:minmax(0,1fr)}.worksheet-sidebar{min-width:0;width:100%;position:static;max-height:none}.worksheet-filters{overflow-x:auto}.worksheet-summary-sidebar{grid-column:auto;position:static;max-height:none}}

.document-tab-bar .document-tabs{flex:0 1 auto}

/* Consistent document actions and exam results. */
.print-actions button.print-icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:5px;color:#6048e8;background:#fff;border:1px solid #c9c2ef;border-radius:3px;box-shadow:none;transform:none}
.print-icon-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.exam-builder .document-item .item-heading button.remove-item-cross.task-delete-cross{width:1.9rem;height:1.9rem;min-width:1.9rem;border:1px solid #cfc7e1;background:#f7f5fc;font-size:1.3rem;color:#b42318;line-height:1;border-radius:0;padding:0}
.exam-builder .compact-document-meta{background:#f1eef9;border:1px solid #dcd5ec;border-radius:3px;padding:.65rem .8rem;display:grid;gap:.45rem}
.exam-builder .compact-document-meta input,.exam-builder .compact-document-meta textarea{background:transparent;border-color:transparent}.exam-builder .compact-document-meta input:focus,.exam-builder .compact-document-meta textarea:focus{background:#fff;border-color:#aa9ad7}
.editor-toolbar .format-button.insert-table{display:inline-flex;align-items:center;justify-content:center}.editor-toolbar .insert-table svg{display:block;width:20px;height:20px;flex:none}
.exam-group-links{background:#f4f1fa;border:1px solid #e1dced;padding:.65rem;margin:.6rem 0;font-size:.85rem}.exam-group-links form{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}.exam-group-links select{max-width:100%}.exam-group-links label{margin:0}
.exam-results .exam-table{font-size:.8rem}.exam-results .exam-table th,.exam-results .exam-table td{padding:.4rem .5rem;white-space:nowrap}.results-visibility{display:flex;align-items:center;gap:.75rem;margin:1rem 0;flex-wrap:wrap}.results-visibility .check{display:flex;gap:.5rem;align-items:center}.results-visibility input[type=checkbox]{width:1.35rem;height:1.35rem}.result-item{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;padding:.6rem 0;border-bottom:1px solid #e0d9ed}.result-item label{margin:0;font-size:.8rem}.result-entry input[type=number]{width:5rem}.result-entry fieldset[hidden]{display:none}.result-entry fieldset{margin:1rem 0;border:1px solid #ddd6ea;padding:.8rem}.result-entry button{font-size:.75rem;letter-spacing:0}.result-entry>label{max-width:20rem}.results-overview a{color:#6048e8}.exam-results .card{border-radius:3px}#classify-form label.check[hidden]{display:none}#classify-form .check{display:flex;align-items:center;gap:.5rem}#classify-form input[type=checkbox]{width:1.35rem;height:1.35rem}

:is(#task-form button.task-delete-cross,.task-library-page .task-table button.task-delete-cross,.exam-builder .document-item .item-heading button.remove-item-cross.task-delete-cross,.groups-page .groups-workspace .group-student-table .student-inline-actions button.task-delete-cross){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:1.9rem;height:1.9rem;min-width:1.9rem;padding:0;border:1px solid #e5a7ad;border-radius:0;background:#fff0f2;color:#b42332;font-size:1.3rem;line-height:1;box-shadow:none;transform:none}

.editor-toolbar .format-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;box-sizing:border-box}

.exam-results .results-overview th,.exam-results .results-overview td{min-width:0;width:auto}

.exam-library .exam-table tr.is-selected>td{background:#e9e5f4}.bulk-exam-actions [data-exam-share][hidden]{display:none}
.exam-library .exam-table button.exam-actions-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;color:#4936c4;border:1px solid #d8d1e7;border-radius:3px;font-size:1.5rem;line-height:1;box-shadow:none;transform:none}
.exam-action-menu{position:fixed;inset:auto;margin:0;width:280px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:.35rem;background:#fff;border:1px solid #d8d1e7;border-radius:3px;box-shadow:0 5px 20px #24183926;font-size:.8rem}.exam-action-menu a{display:block;padding:.55rem .65rem;color:#493b69;text-decoration:none}.exam-action-menu a:hover,.exam-action-menu a:focus{background:#eeebf7}

.result-pupil-picker{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.result-pupil-picker label{margin:0;min-width:200px}

.session-status{position:fixed;z-index:100000;left:1rem;right:1rem;bottom:1rem;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:1rem;padding:1rem;background:#fff0d5;color:#633c10;border:2px solid #ca8b29;box-shadow:0 4px 24px #0003}
.session-status[hidden]{display:none}
.bulk-exam-actions button:disabled,.bulk-exam-actions button:disabled:hover{background:#e4e4e9;color:#777582;border-color:#d1d0d7;opacity:1;box-shadow:none;cursor:not-allowed;transform:none}
.assessment-criteria>.assessment-row+.assessment-row{border-top:1px solid #ddd8e5;padding-top:.45rem}
.exam-answer-key [data-key-item]{border-bottom:1.5px solid #8a8297}
.result-mode-picker{display:flex;gap:1rem;flex-wrap:wrap;margin:1rem 0;padding:.8rem;background:#f4f2f8;border:1px solid #ded9e9}
.result-mode-picker .check{display:flex;align-items:center;gap:.45rem}.result-mode-picker input{width:1.25rem;height:1.25rem;accent-color:#7057d6}
.result-entry input[type=number]{max-width:6rem}
.result-pupil-picker{padding:1rem;background:#f4f2f8;border:1px solid #ded9e9}

#register-result{scroll-margin-top:6rem}

.dashboard-result-shortcuts,.dashboard-group-shortcuts{margin:1.5rem 0 2rem}.dashboard-result-shortcuts .title-row,.dashboard-group-shortcuts .title-row{margin-bottom:.75rem}.dashboard-result-shortcuts h2,.dashboard-group-shortcuts h2{font-size:1.15rem;margin:0}.group-exam-add{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;margin:1rem 0}.group-exam-add label{flex:1;min-width:min(100%,220px)}.group-exam-add select{width:100%}#group-exams,#result-pupil-picker{scroll-margin-top:6rem}

.document-tabs .conduct-tab-link,.conduct-tabs a{display:inline-flex;align-items:center;padding:.6rem .8rem;color:#625777;background:transparent;border:0;border-bottom:2px solid transparent;text-decoration:none;font-size:.8rem;font-weight:600}.document-tabs .conduct-tab-link:hover,.conduct-tabs a:hover,.conduct-tabs a[aria-current]{color:#6048e8;border-bottom-color:#6048e8;background:#f2effa}.conduct-tabs{margin-bottom:1.5rem}.seb-code{font:700 1.3rem monospace;letter-spacing:.12em}.seb-delivery textarea{font-family:monospace}.student-exam-entry form{display:flex;flex-wrap:wrap;align-items:end;gap:.8rem}.student-exam-entry label{display:grid;gap:.35rem}
.seb-create-form{display:flex;align-items:end;gap:1rem;flex-wrap:wrap}.seb-create-form label{display:grid;gap:.3rem}.seb-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1rem 0}.seb-codes>div{padding:1rem;background:var(--surface-subtle,#f4f2f8);border:1px solid #ded9e9}.seb-codes small{display:block;margin-top:.5rem}.seb-codes .seb-code{display:block;margin:.4rem 0;font-size:1.45rem;letter-spacing:.12em}.seb-codes summary{cursor:pointer;font-weight:600}

/* Exam controls share the compact task-library appearance. */
.document-tabs button:disabled{color:#8b8992;background:#eeedf0;cursor:not-allowed;opacity:.65;border-bottom-color:transparent}
.teacher-share-table{width:100%}.teacher-share-table th:first-child{width:3rem}.teacher-share-table input[type=checkbox]{width:1.3rem;height:1.3rem;accent-color:var(--primary,#4936c4)}
.task-visibility-form,.task-report-form{display:inline-flex;align-items:center;gap:.35rem;margin:0}.task-report-form{margin-top:.5rem}.task-report-form button{color:#ad3434}.task-visibility-toggle .eye-slash[hidden]{display:none}
#exam-points-summary{font-size:.8rem;font-weight:700;white-space:nowrap;margin-left:auto;padding:.35rem .5rem;background:#f0edf8}
.exam-editor-shell:not(.preview-open) #exam-points-summary{display:none}
.instruction-editor{flex:1;min-width:0;grid-column:1/-1}.instruction-editor textarea{width:100%;box-sizing:border-box}.instruction-toolbar{padding:.2rem;gap:.25rem}.instruction-toolbar button{width:28px;height:28px;min-height:28px;padding:0}
.replacement-notice{background:#f1eefb;border:1px solid #d4ccec;padding:.7rem;margin-bottom:.8rem;display:flex;gap:1rem;align-items:center}.item-replace-link{font-size:.75rem;white-space:nowrap}

.exam-share-tabs{display:inline-flex;align-items:end}.exam-share-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--ink);border-radius:0}.exam-share-tabs button.active{border-bottom-color:#6048e8;background:#f0edf8}.exam-share-tabs button:disabled{opacity:.45;cursor:not-allowed}.share-panel-title{font-size:1.2rem}
.task-visibility-toggle,.task-report-form .task-edit-icon{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 30px;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid #c9c2ef;border-radius:3px;background:#f7f5fc;color:#6048e8;box-shadow:none;line-height:1}
.task-visibility-toggle svg,.task-report-form .task-edit-icon svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.task-report-form .task-edit-icon{color:#b42332;background:#fff0f2;border-color:#e5a7ad}
.teacher-share-table td{padding:.4rem .6rem;vertical-align:middle}.teacher-share-table label{margin:0;font-weight:400}.teacher-share-table input[type=checkbox]{margin:0}.exam-share-tabs{position:static}
.instruction-editor .instruction-text{min-height:3.5em;padding:.45rem .6rem;font:inherit;line-height:1.5;background:#fff;border:1px solid #d4cee2;white-space:pre-wrap;overflow-wrap:anywhere}
.instruction-editor textarea[hidden]{display:none}
.search-task-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:.75rem;margin-top:.5rem;flex-wrap:wrap}
.search-task-footer .task-report-form{margin:0;flex:0 0 auto}
.exam-builder .search-task-footer .task-source-note{flex:0 1 auto;width:auto;max-width:100%;margin:0 0 0 auto}
.task-report-form.is-reported .task-edit-icon{color:#85828b;background:#eeedf0;border-color:#d3d0d8;box-shadow:none;opacity:1;cursor:default;transform:none}
.task-report-form.is-reported [role=status]{font-size:.7rem;font-style:italic;color:#77717f}

.task-library-heading{margin-bottom:1rem}.task-library-heading h1{margin-bottom:.65rem}.task-library-heading .button{display:inline-flex}
.task-library-page .task-table .task-table-actions>form{display:inline-flex;align-items:center;vertical-align:middle;margin-top:0;margin-bottom:0}
.task-library-page .task-table .task-table-actions .task-edit-icon,.task-library-page .task-table .task-table-actions .task-delete-cross{box-sizing:border-box;width:30px;height:30px;min-width:30px;min-height:30px;padding:0;vertical-align:middle}
.task-library-page .task-table .task-table-actions [role=status]:empty{display:none}
.share-submit{margin-top:.75rem}
.exam-library .exam-list-filters label[hidden]{display:none}
@font-face{font-family:"Library Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url("../fonts/manrope-variable.ttf") format("truetype")}
.library-page-heading{margin-bottom:1.2rem}.library-page-heading h1{margin-bottom:.7rem}
.library-page-heading .library-create-button.button{display:inline-flex;align-items:center;justify-content:flex-start;gap:.65rem;box-sizing:border-box;width:200px;max-width:100%;height:46px;min-height:46px;margin:0;padding:8px 14px;border:1px solid #c5c3e6;border-radius:0;background:linear-gradient(110deg,#eeE8ff,#e2f5f3);color:#4936a7;font-family:"Library Manrope",Manrope,sans-serif;font-size:.9rem;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:0 2px 3px rgba(73,54,167,.12),0 5px 12px rgba(73,54,167,.13);cursor:pointer;transform:none;list-style:none}
.library-page-heading .library-create-button.button:hover{background:linear-gradient(110deg,#e5dbff,#d4eeeb);border-color:#9b8dca;color:#3c288f;box-shadow:0 3px 5px rgba(73,54,167,.15),0 7px 16px rgba(73,54,167,.16);transform:none}
.library-page-heading .library-create-button.button:active{box-shadow:0 1px 2px rgba(73,54,167,.15)}
.library-page-heading .library-create-button.button:focus-visible{outline:2px solid #6048e8;outline-offset:3px}
.library-create-button .library-create-plus{display:block;flex:0 0 28px;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.library-page-heading .create-group-panel{text-align:left}.library-page-heading .create-group-panel>summary::-webkit-details-marker{display:none}

/* Compact expandable filter branches and stacked teacher permissions. */
.task-library-page .library-filter-group>summary{display:flex;align-items:center;gap:.4rem;list-style:none}
.task-library-page .library-filter-group>summary::-webkit-details-marker{display:none}
.task-library-page .library-filter-group>summary::before{content:"+";display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;box-sizing:border-box;border:1px solid #b9afd2;color:#6048e8;background:#f8f7ff;font-size:13px;line-height:1}
.task-library-page .library-filter-group[open]>summary::before{content:"−"}
.task-library-page .library-filter-group .library-area-choices{width:auto;margin-left:7px;border-left:1px solid #d8d1e7;padding-left:1rem}
.task-library-page .library-filter-group.is-unavailable>summary::before{color:#817a8c;background:transparent}
.admin-users-table td:last-child{white-space:normal}
.admin-users-table .teacher-permissions-form{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}
.admin-users-table .teacher-permissions-form .check{display:flex;align-items:flex-start;gap:.5rem;margin:0;white-space:normal}
.admin-users-table .teacher-permissions-form input[type=checkbox]{flex-shrink:0}

/* Student work and worksheet actions share the compact library styling. */
.student-workspace .student-heading{margin-bottom:1rem}.student-workspace .student-heading h1{margin-bottom:.4rem}
.student-workspace-nav{margin:1rem 0;flex-wrap:wrap}.student-workspace section{margin:1.2rem 0}
.student-workspace .card{border-radius:3px;padding:.85rem}.student-workspace .assignment-card h3{margin:.3rem 0}.student-workspace .assignment-card p{margin:.4rem 0;font-size:.85rem}
.student-workspace .practice-module-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.7rem}
.student-workspace .student-exam-entry{margin-top:1.5rem}.student-exam-entry>summary,.student-progress-history>summary{cursor:pointer;font-weight:600;font-size:.85rem}
.student-course-picker{margin:1rem 0}.student-course-picker label{display:grid;gap:.3rem;max-width:36rem;font-size:.85rem}
.student-progress-area{border:1px solid #ded9e9;margin:.5rem 0;background:#fff}.student-progress-area>summary{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.65rem;cursor:pointer;font-size:.85rem;background:#f8f7ff}
.student-progress-area>summary::before{content:"+";color:#6048e8}.student-progress-area[open]>summary::before{content:"−"}.student-progress-area>summary small{margin-left:auto;font-weight:400;color:#6d647c}
.student-progress-table{font-size:.8rem}.student-progress-table td,.student-progress-table th{padding:.5rem;white-space:normal!important;min-width:0!important}.student-progress-table td small{display:block;color:#6d647c;font-size:.7rem}.student-progress-history{margin:1.5rem 0}
.worksheet-row-actions{white-space:nowrap}.worksheet-row-actions a+a{margin-left:.8rem}.worksheet-assignment-panel{max-width:55rem}
.worksheet-controls .task-library-tabs{margin:1rem 0}.worksheet-extra-options{grid-column:1/-1}.worksheet-extra-options>summary{cursor:pointer;font-size:.8rem;color:#6048e8}
@media(max-width:600px){.student-workspace .practice-module-grid{grid-template-columns:1fr}.student-progress-table{min-width:520px}.worksheet-row-actions a{display:block}.worksheet-row-actions a+a{margin:.35rem 0 0}}

/* Teacher home: shared create controls, compact cards and clear sections. */
#teacher-dashboard .dashboard-heading{gap:.8rem;margin-bottom:1.1rem}
#teacher-dashboard .teacher-welcome h1{margin:0 0 .45rem;font-size:clamp(1.5rem,3vw,2rem)}
#teacher-dashboard .teacher-welcome p{margin:.25rem 0;color:#6d647c;font-size:.9rem}
#teacher-dashboard .teacher-welcome .eyebrow{font-size:.7rem;margin-bottom:.5rem}
#teacher-dashboard .dashboard-create-actions{display:flex;flex-wrap:wrap;gap:.65rem}
#teacher-dashboard .teacher-shortcuts{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 1.6rem}
#teacher-dashboard .teacher-shortcuts a{display:flex;flex-direction:row;align-items:center;gap:.5rem;padding:.6rem .85rem;border-radius:3px;font-size:.8rem;text-decoration:none;box-shadow:none}
#teacher-dashboard .teacher-shortcuts strong{font-size:1.15rem}
#teacher-dashboard .teacher-resume{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1.5rem 0}
#teacher-dashboard .teacher-resume>h2{grid-column:1/-1;margin:0;font-size:1.1rem}
#teacher-dashboard .resume-exam-card{padding:1rem;gap:.75rem;border-radius:3px;flex-wrap:wrap;align-content:start;box-shadow:0 2px 8px #47377c08;margin:0;background:linear-gradient(120deg,#f8f6ff,#fff)}
#teacher-dashboard .resume-exam-icon{width:2.3rem;height:2.3rem;border-radius:3px;background:#eeE8ff}
#teacher-dashboard .resume-exam-icon svg{width:1.5rem;height:1.5rem}
#teacher-dashboard .resume-exam-content{flex-basis:calc(100% - 4rem)}
#teacher-dashboard .resume-exam-content h3{font-size:1rem;margin:.25rem 0}
#teacher-dashboard .resume-exam-content p{font-size:.8rem}
#teacher-dashboard .resume-exam-action{background:transparent;color:#6048e8;padding:0;margin-top:.35rem;border-radius:0;font-size:.8rem;text-align:left;width:auto}
#teacher-dashboard .group-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.75rem}
#teacher-dashboard .group-color-card{padding:.9rem;border-radius:3px;border-color:#ded9e9;box-shadow:0 2px 8px #47377c08}
#teacher-dashboard .group-color-card h3{font-size:.95rem;margin:0 0 .4rem}
#teacher-dashboard .group-color-card p,#teacher-dashboard .group-color-card strong{font-size:.82rem}
#teacher-dashboard .group-card-open{font-size:.78rem}
#teacher-dashboard .title-row>a{font-size:.8rem}
#teacher-dashboard .teacher-followup,#teacher-dashboard .teacher-followup-content>.card,#teacher-dashboard .teacher-metrics article,#teacher-dashboard .dashboard-notice{border-radius:3px}
#teacher-dashboard .teacher-followup>summary{padding:.85rem 1rem;font-size:.9rem}
#teacher-dashboard .teacher-metrics article{padding:.85rem}
#teacher-dashboard .teacher-metrics strong{font-size:1.5rem}
#teacher-dashboard .teacher-metrics span{font-size:.8rem}
@media(max-width:650px){#teacher-dashboard .teacher-resume{grid-template-columns:1fr}#teacher-dashboard .dashboard-create-actions{width:100%}#teacher-dashboard .teacher-shortcuts{gap:.4rem}#teacher-dashboard .teacher-shortcuts a{padding:.5rem .65rem}}
/* The same gently curved active underline as the student navigation. */
.has-suggestion-footer .site-header .primary-nav a{border-bottom:3px solid transparent;border-radius:.5rem;font-family:"Library Manrope",Manrope,sans-serif;font-weight:600}
.has-suggestion-footer .site-header .primary-nav a[aria-current="page"]{color:var(--primary-dark);border-bottom-color:var(--primary);font-weight:600}
.weekly-preview-panel{margin:20px 0;padding:20px;border:1px solid #d9cfeb;border-left:4px solid #8067bd;background:#fcfaff}.weekly-preview-panel h3{font-size:1.15rem;margin-top:0}.weekly-preview-panel .task-prompt{padding:16px;background:#fff;border:1px solid #e4dced;max-height:480px;overflow:auto}.weekly-preview-panel .task-prompt:empty{display:none}

.site-header .primary-nav .teacher-help-toggle{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;min-width:28px;padding:0;margin-left:.5rem;border:1px solid #cdc5e4;border-radius:50%;background:#f8f6ff;color:#65558c;font:600 16px/1 "Library Manrope",sans-serif;box-shadow:none;letter-spacing:normal}
.teacher-help-dialog{width:min(640px,calc(100vw - 2rem));max-height:80vh;overflow:auto;border:1px solid #ddd4ee;border-radius:12px;padding:1.25rem;color:var(--ink);background:#fff;box-shadow:0 16px 60px #29213b30}
.teacher-help-dialog::backdrop{background:#24203966}.teacher-help-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}.teacher-help-heading h2{margin:0;font:650 1.2rem "Library Manrope",sans-serif}.teacher-help-heading button{padding:.25rem .65rem;background:#f3effb;color:#65558c;box-shadow:none;font-size:1.25rem}
.teacher-help-dialog details{padding:.7rem 0;border-top:1px solid #ece7f2}.teacher-help-dialog summary{font-weight:650;cursor:pointer;color:#594679}.teacher-help-dialog ol{padding-left:1.4rem;font-size:.9rem;line-height:1.65}.teacher-help-dialog li+li{margin-top:.5rem}
@media print{.teacher-help-dialog,.teacher-help-toggle{display:none!important}}

.document-title-row{display:flex;align-items:center;gap:.65rem}.document-title-row #document-title{margin:0;line-height:1.3;min-width:0;overflow-wrap:anywhere;cursor:text;outline-offset:4px}
#document-title[contenteditable]:hover{box-shadow:0 1px #c9bfea}#document-title[contenteditable]:focus{outline:2px solid #8b78df}
#document-title-status{display:block;font-size:.75rem;color:var(--muted)}#document-title-status:empty{display:none}

.worksheet-back-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid #d8d0ed;background:#f6f4fc;border-radius:3px;color:#7057d6;margin-bottom:.5rem}
.worksheet-back-icon svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.worksheet-back-icon:hover{background:#ece7fa}

.worksheet-library .worksheet-bulk-button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border-radius:0;font:inherit;font-size:.8rem;letter-spacing:0;padding:.45rem .65rem}
.worksheet-library .worksheet-bulk-button[hidden]{display:none!important}.worksheet-library .worksheet-bulk-button svg{width:1.1rem;height:1.1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.worksheet-library .worksheet-delete-button{color:#b83240;border-color:#e9b6bb;background:#fff6f6}

.worksheet-library .worksheet-action-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;box-sizing:border-box;padding:0;border:1px solid #c9c2ef;border-radius:3px;color:#6048e8;background:rgba(255,255,255,.5);vertical-align:middle}
.worksheet-library .worksheet-action-icon:hover{background:#eeeaff}.worksheet-library .worksheet-action-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Welcome-page actions: more prominent, using the site's purple palette. */
.hero .hero-logo{filter:drop-shadow(0 7px 10px rgba(74,54,137,.16))}
.hero-actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.8rem}
.hero-action{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;height:3.5rem;min-height:3.5rem;padding:.9rem 1.4rem;box-sizing:border-box;border:1px solid transparent;border-radius:5px;font-family:"Manrope",sans-serif;font-size:1rem;font-weight:700;line-height:1.3;letter-spacing:0;text-transform:none;text-decoration:none;transition:background .15s,box-shadow .15s,transform .15s}
.hero-action svg{width:1.3rem;height:1.3rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero-action-primary{color:#fff;background:linear-gradient(125deg,#6048e8,#7961ee);box-shadow:0 4px 0 #4933b5,0 8px 18px #6048e825}
.hero-action-primary:hover{background:linear-gradient(125deg,#523bcf,#6d54df);box-shadow:0 4px 0 #4933b5,0 10px 22px #6048e835;transform:translateY(-1px)}
.hero-action-secondary{color:#513bc5;background:linear-gradient(125deg,#fff,#f2efff);border-color:#cfc5f4;box-shadow:0 4px 0 #ded6f5,0 6px 14px #6048e810}
.hero-action-secondary:hover{color:#4630b0;background:#eeE9ff;transform:translateY(-1px)}
.hero-action:focus-visible{outline:3px solid #513bc5;outline-offset:5px}
.hero-action:active{transform:translateY(2px);box-shadow:0 1px 0 #b7a9df}
@media(max-width:520px){.hero-actions{flex-direction:column;align-items:stretch;gap:1rem}.hero-action{width:100%;padding:.85rem 1rem}}
@media(prefers-reduced-motion:reduce){.hero-action{transition:none}.hero-action:hover,.hero-action:active{transform:none}}

.form .hero-action{justify-self:start;width:auto;max-width:100%;margin-top:.35rem}
@media(max-width:520px){.form .hero-action{width:100%}}

.form .hero-action.hero-action-end{display:flex;justify-self:end;width:fit-content;margin-left:auto}

.auth-help-link{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;box-sizing:border-box;padding:.45rem .65rem;border:1px solid #ded8f3;border-radius:0;background:#f5f3fc;color:#6048e8;font:inherit;font-size:.9rem;font-weight:600;line-height:1.4;text-decoration:none}
.auth-help-link svg{width:1.1rem;height:1.1rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-help-link:hover{background:#ebe6fb;color:#4933b5;border-color:#c9c2ef}
.auth-help-link:focus-visible{outline:2px solid #6048e8;outline-offset:3px}

/* Shared account forms; keep unrelated forms unchanged. */
.card.form.auth-form{width:100%;max-width:36rem;padding:1.25rem;border:1px solid #ded8f3;border-radius:5px;background:#fff;box-shadow:0 3px 12px #6048e80a}
.auth-form>label{margin:0 0 1rem;font-size:.9rem;font-weight:600;line-height:1.5}
.auth-form>label>input{display:block;width:100%;min-width:0;height:3rem;margin-top:.35rem;padding:.65rem .75rem;border:1px solid #cfc9df;border-radius:0;background:#fff;color:var(--ink);font-family:inherit;font-size:1rem;font-weight:400;line-height:1.5}
.auth-form>label>input:hover{border-color:#a89acb}
.auth-form>label>input:focus{border-color:#6048e8;outline:2px solid #c9c2ff;outline-offset:2px}
.auth-form .login-role{margin:0 0 1rem;border-color:#ded8f3;border-radius:0;background:#f5f3fc}
.auth-form .hint{margin-bottom:0}
@media(max-width:520px){.card.form.auth-form{padding:1rem}}
