.quiz-main{max-width:1440px;padding-top:42px}.quiz-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.quiz-intro h1{font-size:35px}.saved-count{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}.saved-count>span:first-child{display:grid;place-items:center;border:1px solid #d4d9cb;border-radius:50%;width:52px;height:52px;color:#a58754;font:27px Georgia,serif}.demo-notice{background:#ecefe8;border-left:3px solid #b7c3ae;color:#67746b;font-size:11px;line-height:1.6;margin:0 0 22px;padding:11px 15px}.demo-notice strong{color:#475c50}.assessment-workspace{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden;box-shadow:0 6px 22px #213b4010}.assessment-tabs{display:flex;gap:32px;padding:0 28px;border-bottom:1px solid var(--line);background:#fcfdfa}.assessment-tabs button{display:flex;align-items:center;gap:10px;padding:20px 0 17px;border:0;border-bottom:3px solid transparent;background:none;color:#7c8983;font-size:12px;font-weight:600}.assessment-tabs button>span{font:10px var(--mono);font-weight:400;color:#a69a83}.assessment-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--accent)}.quiz-picker{display:flex;align-items:center;gap:12px;background:#f5f7f2;padding:15px 28px;border-bottom:1px solid #e3e7df}.quiz-picker>label{font-size:11px;font-weight:600;white-space:nowrap}.quiz-picker select{max-width:450px;flex:1}.persistent-note{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:10px;white-space:nowrap;color:#809083}.assessment-panel{padding:29px 30px 24px}.section-intro{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:25px}.section-intro .eyebrow{margin-bottom:9px;font-size:8px}.section-intro h2{font:25px/1.3 Georgia,serif;font-weight:400;margin:0}.section-intro>p{max-width:290px;font-size:11px;line-height:1.7;color:#87918b;margin:0}.quiz-app input,.quiz-app select,.quiz-app textarea{border:1px solid #dce2da;border-radius:4px;background:#fff;color:#354c52;padding:10px 11px;max-width:100%;font-size:12px}.quiz-app textarea{resize:vertical;line-height:1.65;min-height:70px}.quiz-app input:disabled,.quiz-app textarea:disabled,.quiz-app select:disabled{background:#f1f3ed;color:#90988e}.field-label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:600;color:#60736b;min-width:0}.field-label small{font-size:10px;font-weight:400;color:#8b958b;line-height:1.6}.latex-source{font:11px/1.7 var(--mono)!important;tab-size:2}.quiz-details{display:grid;gap:18px;margin-bottom:25px}.quiz-details>#quiz-title{font-size:16px}:is(.preamble-details, .introduction-details){background:#f8faf5;border:1px solid #e1e6db;border-radius:4px;padding:13px 15px}:is(.preamble-details, .introduction-details) summary{cursor:pointer;font-size:11px;font-weight:600;color:#61756a}:is(.preamble-details, .introduction-details) summary>span{font-weight:400;font-size:10px;color:#96a08e;margin-left:10px}:is(.preamble-details, .introduction-details) .field-label{margin-top:14px}.question-editor{border:1px solid #dce2d8;border-radius:5px;margin-bottom:22px;overflow:hidden;background:#fff}.question-editor-heading{padding:12px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e9df;background:#f8faf5}.question-editor-heading h3{margin:0;font:17px Georgia,serif;color:#526851}.button-subtle{background:transparent;border:0;padding:6px 9px;font-size:10px;color:#8b8f7e;font-weight:400}.button-subtle:hover{background:#e9ede2;color:#385747}.button-outline{background:#fff;border:1px solid #cfd8c9;color:#5f755e;font-size:11px;padding:10px 14px}.button-outline:hover{background:#f3f6ee}.editor-settings{display:grid;grid-template-columns:220px 110px;gap:16px;padding:18px}.question-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:0 18px 18px}.question-content-grid>label textarea{flex:1;min-height:170px}.question-preview{background:#fbfcf8;border:1px solid #e4e8dc;border-radius:4px;padding:12px 17px;min-width:0;overflow:hidden}.preview-label{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1.25px;color:#9d9e88;margin-bottom:8px}.preview-label .button{letter-spacing:0}.editor-preview{font-size:14px;max-height:300px;overflow:auto}.editor-preview h2{font-size:21px}.preview-placeholder{font:12px Georgia,serif;color:#a1a993;font-style:italic;padding:12px 0}.preview-diagnostic{font:10px/1.6 var(--mono);color:#a2644c;background:#fff3eb;border-radius:3px;padding:10px;overflow-wrap:anywhere;white-space:pre-wrap;margin-top:10px}.preview-diagnostic details{margin-top:7px}.preview-diagnostic pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.grading-fields{border:0;border-top:1px solid #e8ece3;display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:18px}.grading-fields legend{padding:0 8px;font-size:10px;font-weight:600;color:#859578}.grading-fields .field-label{max-width:390px}.choice-fields{grid-template-columns:1.4fr 1fr}.choices-field{max-width:none!important}.retry-fields{background:#fafbf7;grid-template-columns:180px 180px 1fr;align-items:start}.retry-explanation{font-size:10px;line-height:1.75;color:#8e977f;margin:21px 0 0}.written-note{margin:0;padding:18px;background:#fafbf7;border-top:1px solid #e8ece3;color:#8a947a;font-size:11px;line-height:1.7}.builder-actions{display:flex;align-items:center;gap:15px;padding-top:3px}.builder-actions>span{font-size:11px;color:#97a08d}.builder-actions #save-quiz{margin-left:auto}.form-note{font-size:10px;color:#939d88;line-height:1.8;margin:15px 0 0}.workflow-message{margin:18px 28px 0;border-radius:4px;padding:12px 15px;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.workflow-success{background:#edf6ed;border:1px solid #cddfca;color:#4c7954}.workflow-error{background:#fff0e9;border:1px solid #e6c3b6;color:#9e5e49}.student-picker{display:flex;flex-direction:column;gap:8px;font-size:10px;color:#8b977e;min-width:180px}.student-picker select{font-size:11px}.score-summary{background:#f1f5eb;border:1px solid #dfe7d4;border-radius:4px;display:flex;align-items:center;gap:25px;padding:15px 19px;margin-bottom:22px;color:#718263;font-size:11px;flex-wrap:wrap}.score-summary:empty{display:none}.score-summary strong{font:24px Georgia,serif;color:#47643e}.score-summary small{font-size:11px;color:#829377}.student-question{border:1px solid #dee5d5;border-radius:5px;margin:0 0 22px;overflow:hidden}.student-question-heading{background:#f8faf3;border-bottom:1px solid #e4e9db;padding:13px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px}.student-question-heading h3{margin:0;font:18px Georgia,serif;color:#577047}.question-type{font-size:9px;color:#93a181;margin-left:10px;font-family:Arial,sans-serif}.question-marks{font-size:11px;color:#8c997b;white-space:nowrap}.student-body{padding:20px 22px}.student-content{margin-bottom:17px}.answer-form{border-top:1px solid #edf0e8;padding-top:17px}.answer-form>.field-label{max-width:430px}.answer-form textarea{min-height:115px}.answer-form .answer-hint{font-size:10px;color:#95a084;line-height:1.65;margin:7px 0 0}.answer-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.answer-actions .button{font-size:11px;padding:10px 15px}.attempt-budget{font-size:10px;color:#899975;line-height:1.7}.answer-options{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}.answer-options legend{font-size:11px;color:#788b65;font-weight:600;margin-bottom:10px}.choice-option{display:flex;align-items:center;gap:12px;border:1px solid #e2e7d9;padding:10px 13px;border-radius:4px;cursor:pointer}.choice-option:hover{background:#f8faf4}.choice-option input{margin:0;accent-color:#6b8758;flex-shrink:0}.choice-content{font-size:14px;flex:1;min-width:0}.choice-content p{margin-bottom:0}.answer-feedback{margin-top:17px;padding:12px 14px;border-left:3px solid #a7b78f;background:#f4f7ed;font-size:11px;line-height:1.7;color:#708255;white-space:pre-wrap}.answer-feedback.incorrect{border-left-color:#d5b171;background:#fcf7e9;color:#947d49}.answer-feedback.correct{border-left-color:#7ca46c;background:#eef7e8;color:#5b7e43}.answer-feedback.pending{border-left-color:#93b2bf;background:#f0f6f8;color:#73919e}.question-complete{font-size:11px;line-height:1.7;color:#899a78;margin:0}.student-attempts{margin-top:14px;border-top:1px solid #edf0e4;padding-top:13px}.student-attempts summary{font-size:10px;color:#8c9c79;cursor:pointer}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;font-size:10px;line-height:1.65;margin-top:12px;min-width:560px}.history-table th{text-align:left;font-size:9px;color:#99a38b;font-weight:600;padding:8px;border-bottom:1px solid #e3e8da;white-space:nowrap}.history-table td{padding:10px 8px;border-bottom:1px solid #eef1e8;color:#72865d;vertical-align:top}.history-table td.answer-cell{white-space:pre-wrap;max-width:330px;overflow-wrap:anywhere}.history-table td.time-cell{white-space:nowrap;color:#9aa58a;font-size:9px}.review-question{padding:19px 21px;border-top:1px solid #e6ebdd}.review-question h4{font:17px Georgia,serif;color:#718b58;margin:0 0 12px}.review-question .latex-output{font-size:13px}.answer-key{font-size:10px;color:#95a080;line-height:1.7;margin:8px 0 13px}.manual-grade-form{display:grid;grid-template-columns:130px 1fr auto;align-items:end;gap:13px;background:#f3f7ec;border:1px solid #e0e9d3;border-radius:4px;padding:14px;margin-top:16px}.manual-grade-form textarea{min-height:45px;resize:vertical}.manual-grade-form input,.manual-grade-form textarea{font-size:11px}.manual-grade-form .button{font-size:10px;padding:10px 13px;margin-bottom:1px}.empty-state{padding:35px 20px;border:1px dashed #d6dfc9;background:#fafcf6;border-radius:5px;text-align:center;color:#95a47e;font-size:12px;line-height:1.9}.empty-state strong{display:block;color:#718a55;font:20px Georgia,serif;margin-bottom:7px}.empty-state p{margin:0}.empty-state .button{margin-top:17px}.quiz-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:19px 0 30px;color:#99a587;font-size:10px;line-height:1.8}.quiz-footer p{margin:0;max-width:760px}.quiz-footer>span{font-size:8px;letter-spacing:1.5px;white-space:nowrap}
@media(max-width:1050px){.retry-fields{grid-template-columns:160px 160px}.retry-explanation{grid-column:1/-1;margin-top:0}.section-intro>p{max-width:220px}.persistent-note{display:none}.question-content-grid{grid-template-columns:1fr}.editor-preview{max-height:240px}.manual-grade-form{grid-template-columns:120px 1fr}.manual-grade-form>.button{grid-column:1/-1;justify-self:end}}
@media(max-width:700px){.quiz-main{padding-top:26px}.quiz-intro h1{font-size:29px}.saved-count{display:none}.demo-notice{font-size:10px;margin-bottom:17px}.assessment-tabs{gap:24px;padding:0 17px}.assessment-tabs button{font-size:11px;padding-top:17px;gap:7px}.quiz-picker{padding:12px 16px;gap:8px;flex-wrap:wrap}.quiz-picker select{min-width:150px;font-size:10px;flex:1}.quiz-picker .button{padding:7px;font-size:9px}.assessment-panel{padding:23px 16px}.section-intro{align-items:flex-start;gap:15px;margin-bottom:21px}.section-intro h2{font-size:22px}.section-intro>p{display:none}.student-picker{min-width:135px;max-width:155px}.student-picker select{padding:8px;font-size:10px}:is(.preamble-details, .introduction-details) summary>span{display:block;margin:7px 0 0 14px;font-size:9px}.editor-settings{grid-template-columns:1fr 90px;gap:11px;padding:15px}.question-content-grid{padding:0 15px 15px;gap:14px}.grading-fields{grid-template-columns:1fr;gap:14px;padding:15px}.grading-fields .field-label{max-width:none}.retry-fields{grid-template-columns:1fr 1fr}.retry-fields .field-label{font-size:10px}.retry-explanation{font-size:9px}.question-preview{padding:11px 13px}.question-editor-heading{padding:11px 14px}.builder-actions{gap:8px;flex-wrap:wrap}.builder-actions>.button{font-size:10px;padding:10px}.builder-actions>span{font-size:10px}.form-note{font-size:9px}.score-summary{padding:13px;gap:15px;font-size:10px}.score-summary strong{font-size:22px}.student-body{padding:17px 15px}.student-question-heading{padding:12px 14px}.student-question-heading h3{font-size:17px}.question-type{display:block;font-size:9px;margin:5px 0 0}.question-marks{font-size:10px}.student-content{font-size:14px}.answer-actions{gap:11px}.attempt-budget{font-size:9px}.workflow-message{margin:14px 15px 0;padding:11px 13px;font-size:11px}.review-question{padding:17px 14px}.manual-grade-form{grid-template-columns:1fr;padding:12px}.manual-grade-form>.button{grid-column:auto}.quiz-footer{font-size:9px}.quiz-footer>span{display:none}}
/* One authoring surface: saved definitions and local drafts are distinct. */
.header-workspace{font:9px var(--mono);letter-spacing:1.2px;color:#b6c4bb}.authoring-intro{align-items:flex-start}.editor-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.editor-status{font-size:11px;color:#789078;margin:9px 0 0}.editor-status[data-state=dirty]{color:#a27332}.draft-notice{font-size:11px;line-height:1.7;background:#fff7e7;border:1px solid #eadbb9;border-radius:4px;padding:11px 14px;margin:0 0 18px;color:#8b713e}.preamble-help{font-size:11px;line-height:1.7;color:#7d8c76;margin:12px 0}.preamble-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.preamble-actions>span{font-size:10px;color:#8a977e}.example-picker{display:flex;align-items:center;gap:12px;font-size:11px;color:#748469;flex-wrap:wrap}.example-picker select{min-width:220px}.example-picker small{font-size:10px;color:#99a18e}.editor-render-status{letter-spacing:0;color:#8c9982;font-size:10px;margin-left:auto;margin-right:8px}.question-editor[data-render-state=error] .editor-render-status{color:#ab7251}.question-editor[data-render-state=busy] .editor-render-status{color:#a38e61}.grading-lock-note{margin:0;padding:12px 18px;background:#f4f2e8;border-top:1px solid #e4e2d5;color:#908164;font-size:11px;line-height:1.7}.builder-actions #save-as-new{margin-left:auto}.builder-actions #save-as-new:not([hidden])+#save-quiz{margin-left:0}.question-preview .editor-preview{max-height:500px;min-height:170px}.question-content-grid>label textarea{min-height:230px}.quiz-app .latex-source{font-size:12px!important}.preview-label{flex-wrap:wrap;gap:4px}.quiz-app :focus-visible{outline:2px solid #b58f54;outline-offset:3px}#editor-heading{overflow-wrap:anywhere}#quiz-form[inert]{opacity:.72}:is(.preamble-details, .introduction-details) textarea{width:100%;min-height:160px}.question-editor .latex-output .tikz-figure>svg{max-width:100%;height:auto}
@media(max-width:600px){.header-workspace{display:none}.authoring-intro{gap:15px}.editor-tools{gap:4px}.editor-tools>.button{font-size:10px;padding:8px}.preamble-actions{align-items:flex-start}.preamble-actions>span{flex-basis:100%}.example-picker{gap:8px}.example-picker select{width:100%;min-width:0}.example-picker small{font-size:9px}.editor-render-status{font-size:9px}.question-content-grid>label textarea{min-height:210px}.builder-actions #save-as-new{margin-left:0}.builder-actions #save-quiz{margin-left:auto}.question-preview .editor-preview{max-height:420px}.draft-notice,.grading-lock-note{font-size:10px}.authoring-intro h2{font-size:22px}}
.grade-dialog{border:1px solid #ccd8c8;border-radius:7px;max-width:800px;width:calc(100% - 32px);max-height:90vh;overflow:auto;padding:25px;color:#354c52}.grade-dialog::backdrop{background:#142e3a88}.grade-dialog h2{font:25px Georgia,serif;margin:0 0 18px}.grade-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grade-form>p,.grade-form>.history-table-wrap{grid-column:1/-1}.grade-check{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6}.grade-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.grade-dialog pre,.grade-history pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:350px;overflow:auto;font-size:11px}.grading-question-controls{border:1px solid #dce2d8;border-radius:5px;padding:15px;margin-bottom:20px}.grading-question-controls h3{font:20px Georgia,serif;margin:0 0 12px}.grading-question-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:12px}.grading-warning{color:#9b713e;font-size:11px}.student-grade-tools{margin:12px 0}.grade-history{margin:14px 0}.grade-history>summary{cursor:pointer;font-size:12px;color:#55714c}.grade-history p{font-size:11px}.grade-dialog input,.grade-dialog select,.grade-dialog textarea{font-size:13px}.grade-dialog .history-table{min-width:560px}@media(max-width:600px){.grade-form{grid-template-columns:1fr}.grade-dialog{padding:16px}.grade-actions .button{font-size:11px;padding:10px}.grading-question-tools{gap:8px}}

input:is([data-field="penalty_percent"], [name="penalty_percent"]) { appearance: textfield; -moz-appearance: textfield; }
input:is([data-field="penalty_percent"], [name="penalty_percent"])::-webkit-inner-spin-button { -webkit-appearance: none; }

.free-units-setting { grid-column: 1 / -1; font-size: 12px; }
.free-units-setting input { width: auto; display: inline-block; margin-right: 6px; }
.retry-stepper { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr 1fr; min-width: 0; }
.retry-stepper > input { grid-column: 1; grid-row: 1 / span 2; width: 100%; min-width: 0; }
.retry-stepper > .retry-step { grid-column: 2; padding: 0 8px; margin: 0; font-size: 9px; line-height: 1; }
.question-editor > .grading-lock-note:not([hidden]) ~ .retry-fields { margin-block-start: 14px; }
.answer-form .question-validation { margin: 0; font-weight: 400; }
.grading-lock-note:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.existing-choice-texts { grid-column: 1 / -1; }
.existing-choice-texts .field-label { max-width: none; margin-bottom: 12px; }

.manual-adjustment { display: inline-block; margin-left: 10px; padding: 3px 7px; border: 1px solid #d8c496; border-radius: 3px; background: #fff7e7; color: #80632a; font: 11px Arial, sans-serif; }

.interactive-preview { border-top: 2px solid #dce2da; margin-top: 24px; padding-top: 24px; }

.quiz-introduction { margin-bottom: 22px; }
.quiz-introduction > :last-child { margin-bottom: 0; }
.preview-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.preview-toolbar h2 { margin-right: auto; font: 23px Georgia, serif; }
.interactive-preview #preview-error { margin: 12px 0; }
.question-editor-heading [data-action="interactive-preview"] { margin-left: auto; margin-right: 10px; }

#question-preview-modal { width: 88vw; max-width: none; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cbd8c5; border-top: 3px solid #819b70; border-radius: 7px; padding: 24px; color: var(--ink); background: white; }
#question-preview-modal::backdrop { background: #142e3a99; }
#question-preview-modal .preview-toolbar { position: sticky; top: 0; z-index: 2; background: white; padding-bottom: 10px; }
#question-preview-modal .interactive-preview { border: 0; margin: 0; padding: 0; }
#question-preview-modal .demo-notice { background: #f5f7f2; border-left-width: 2px; font-size: 11px; }
html.question-preview-open, body.question-preview-open { overflow: hidden; }
@media (max-width: 600px) { #question-preview-modal { width: calc(100vw - 16px); max-height: 94vh; padding: 12px; } }

.area-navigation { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:12px; }
.area-navigation a { color:inherit; text-decoration:none; padding:6px; }
.area-navigation a[aria-current=page] { border-bottom:2px solid var(--accent); }
.test-student-tools { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:16px; }
.results-filter { max-width:300px; margin-bottom:20px; }
@media(max-width:700px) { .site-header { flex-wrap:wrap; gap:12px; } .area-navigation { gap:4px; font-size:11px; } }

.introduction-content-grid { padding: 0; margin-top: 14px; }
.introduction-content-grid > .field-label { margin-top: 0; }

.multipart-editor, .multipart-question { border: 1px solid #b6c7ac; border-radius: 5px; margin-bottom: 22px; overflow: hidden; background: white; }
.multipart-editor > .question-content-grid { padding-top: 18px; }
.multipart-editor > .form-note { margin: 0 18px 16px; }
.part-editors, .multipart-parts { padding: 16px; }
.multipart-editor > .add-part { margin: 0 16px 16px; }
.multipart-source { padding: 20px; }
.multipart-editor-total, .multipart-total { font-size: 12px; color: #60736b; }
.question-editor-heading { flex-wrap: wrap; gap: 8px; }
.export-quiz { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; overflow-wrap: anywhere; }
#grade-export { margin-bottom: 20px; }

.session-tools {display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
.site-header {flex-wrap:wrap;}
.session-tools {min-width:0;max-width:100%;} .session-tools span {overflow-wrap:anywhere;}

/* Account tools share the dark header's navigation treatment, including visits. */
.session-tools a { padding: 6px; }
body[data-auth-page] :is(#login-form, #profile-form, #password-form, #create-instructor) { width: 100%; max-width: 440px; }
/* Submission updates preserve their own anchor rather than the browser choosing
   an answer control or history row that is about to be replaced. */
#student-questions { overflow-anchor: none; }
.course-form {max-width:440px; width:100%; margin:16px 0;}
.workspace-banner {padding:12px 5%;background:#fff0cf;color:#493815;border-bottom:2px solid #b58f54;}

.student-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-block-end: 1rem; }

/* Continuous question marking: answers stay expanded; only individual save
   indicators change during autosave. */
.marking-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; margin-block:.8rem; }
.marking-toolbar .field-label { margin:0; }
#marking-question { max-width:min(46rem,85vw); }
#marking-default-score { max-width:7rem; }
.marking-response { border-top:1px solid var(--line, #cbd5d6); padding:1rem 0; }
.marking-response h3 { margin:0 0 .5rem; font-size:1rem; }
.marking-answer { white-space:pre-wrap; overflow-wrap:anywhere; margin:.5rem 0 .8rem; }
.marking-response textarea { width:100%; min-height:5rem; resize:vertical; }
.marking-response input[name=marks] { max-width:8rem; }
.marking-save-status { min-height:1.4em; font-size:.85rem; margin:.4rem 0; }
.marking-response [data-suggested=true] { border-style:dashed; }
.marking-response :focus-visible { outline:3px solid #25718c; outline-offset:3px; }
.marking-palette { width:min(42rem,94vw); }
.marking-palette input { width:100%; }
.marking-comment-list { max-height:50vh; overflow-y:auto; margin:.75rem 0; }
.marking-comment-option { display:block; width:100%; text-align:left; white-space:pre-wrap; padding:.65rem; margin:.25rem 0; border:1px solid var(--line, #cbd5d6); border-radius:.3rem; background:transparent; color:inherit; }
.marking-comment-option[aria-selected=true] { outline:2px solid #25718c; outline-offset:-2px; }
.marking-conflict { white-space:pre-wrap; }
.grading-question-controls > summary { cursor:pointer; padding:.75rem 0; font-weight:600; }
.grading-tools-warning { display:inline-block; margin-left:1rem; color:#914d26; font-size:.85em; }
.student-results-table th,.student-results-table td { vertical-align:top; }
.button.result-student-link { background:transparent; color:#295b60; padding:0; font:inherit; font-weight:600; text-decoration:underline; text-underline-offset:.18em; white-space:normal; text-align:left; }
.button.result-student-link:hover { color:#142e3a; text-decoration-thickness:2px; }
.score-note { display:block; font-size:.8em; color:#60736b; margin-top:.2rem; }
.regraded-indicator { display:inline-block; margin-left:.4rem; padding:0 .25rem; border:1px solid #9bb1a7; border-radius:3px; font-size:.75em; }
.student-results-open { overflow:hidden; }
.student-results-dialog { max-width:1100px; overscroll-behavior:contain; }
.student-results-header { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; position:sticky; top:0; z-index:2; background:#fff; padding-bottom:.6rem; }
.student-results-header h2 { margin-bottom:0; }
.student-results-dialog .review-question { margin:1rem 0; }
.student-results-total .score-note { display:inline-block; margin-left:.75rem; }
.variable-chips { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin:.65rem 0; }
.variable-chips .form-note { flex-basis:100%; font-weight:normal; }
.variable-chip { padding:.4rem .65rem; white-space:normal; }
.preview-parameters { border-left:3px solid var(--accent); padding:.5rem 1rem; margin:1rem 0; }
.preview-parameters h3 { margin:.3rem 0; }
.variable-dialog .form-note { grid-column:1/-1; }
.preview-parameters { overflow-wrap:anywhere; }
.numerical-tolerance-controls { display:grid; gap:.65rem; grid-column:1/-1; }
.tolerance-choice { display:flex; align-items:center; gap:.65rem; }
.tolerance-option { display:inline-flex; align-items:center; gap:.4rem; min-width:0; cursor:pointer; font-size:11px; font-weight:600; color:#60736b; }
.tolerance-option input[type=radio] { flex:none; margin:0; padding:0; accent-color:#295b60; }
.tolerance-choice > input[type=text] { width:10rem; min-width:4rem; flex:0 1 10rem; }
.tolerance-zero { max-width:27rem; }
.tolerance-zero > input { width:10rem; }
.editor-modes { display:flex; gap:4px; margin:0 0 18px; width:fit-content; padding:4px; border:1px solid #cbd4cc; border-radius:8px; }
.editor-modes a { padding:8px 20px; border-radius:5px; color:inherit; text-decoration:none; font-weight:600; }
.editor-modes a[aria-current="page"] { background:#142e3a; color:white; }
.question-metadata { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; grid-column:1/-1; }
body[data-editor-mode="questions"] .quiz-only,
body[data-editor-mode="questions"] #question-editors > section > .question-editor-heading > .remove-question,
body[data-editor-mode="questions"] #question-editors > section > .question-editor-heading > .move-question { display:none !important; }
.editor-question-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:-6px 0 20px; }
.editor-question-actions .form-note { flex-basis:100%; margin:0; }
/* Shade complete logical questions; multipart parts share their parent's shade. */
#question-editors > :is(.question-editor, .multipart-editor):nth-child(even) { --question-surface:#f5f8f2; background:var(--question-surface); }
#question-editors > .multipart-editor .part-editors > .question-editor { background:var(--question-surface, #fff); }
/* A growing flex item overrides the height set by Firefox's native resizer. */
.question-content-grid { align-items:start; }
.question-content-grid > label textarea { flex:0 0 auto; width:100%; resize:vertical; }
.question-content-grid > .question-preview { min-height:210px; }
#create-instructor { display:grid; gap:18px; justify-items:start; }
#create-instructor h2 { margin:0; }
#create-instructor .field-label { width:260px; max-width:100%; gap:8px; }
#create-instructor input { width:100%; max-width:100%; padding:8px 10px; border:1px solid #dce2da; border-radius:4px; }
.site-header:has(.session-tools) { height:auto; min-height:84px; padding-top:14px; padding-bottom:14px; }
@media(max-width:700px) { .site-header:has(.session-tools) { min-height:72px; } }
.student-question > .preview-parameters,
.multipart-question > .preview-parameters { margin:12px 18px; background:#f8faf5; }
.preview-parameters > button { margin-bottom:10px; }
.preview-parameters details > summary { cursor:pointer; }
.constants-dialog { width:min(760px,94vw); max-height:85vh; overflow:auto; }
.constants-table { width:100%; border-collapse:collapse; margin:16px 0; font-size:12px; }
.constants-table th,.constants-table td { text-align:left; padding:8px; border-bottom:1px solid #dce2da; overflow-wrap:anywhere; }
.constants-dialog > button { margin-top:16px; }
