/* Approved classroom appearance: charcoal chalkboard and light whiteboard. */
body.board-surface{--bg:#191b1a;background-color:var(--bg)}
body.charcoal-theme{--bg:#191b1a;--paper:#282b29;--line:#686e6a;--muted:#bec3bf;background-color:var(--bg)}
/* Erased chalk belongs to the floor inside the room frame only. */
body.board-surface:before{display:none}
body.board-surface .room{background-color:var(--bg);background-image:url("chalk-surface.svg");background-size:cover}
body.charcoal-theme .room{box-shadow:inset 0 0 0 4px var(--bg),inset 0 0 0 5px #858a86}
body.board-surface .room .desk-top{background:var(--bg)}
body.board-surface .fixture[data-kind=teacher] svg path:first-child{fill:var(--bg)}
body.board-surface .fixture[data-kind=board] svg>path:first-child{fill:var(--bg)}
body.charcoal-theme .checkin{background:var(--paper)}
/* Hand printing is confined to labels in the room. */
body.board-surface .desk-name{font-family:"Segoe Print","Chalkboard SE","Chalkboard",cursive;font-weight:700;font-size:.95em;line-height:1.18;letter-spacing:-.35px;color:#eef0e4;text-shadow:.35px .2px 0 #eef0e433}
body.board-surface .room,body.board-surface .room button,body.board-surface .room .fixture-label{font-family:"Segoe Print","Chalkboard SE","Chalkboard",cursive;font-weight:700;letter-spacing:-.25px}
body.board-surface .room .fixture-label{color:#eef0e4;text-shadow:.35px .2px 0 #eef0e433}
.board-supplies{display:none}body.board-surface .board-supplies{display:inline}

/* Neutral controls complete the charcoal palette; engagement colours retain their meaning. */
body.charcoal-theme input,body.charcoal-theme textarea,body.charcoal-theme select,body.charcoal-theme .activitybar select{background:var(--paper);border-color:var(--line);color:var(--ink)}
body.charcoal-theme .popover,body.charcoal-theme dialog,body.charcoal-theme .history,body.charcoal-theme .list-wrap{background:var(--paper);border-color:var(--line)}
body.charcoal-theme .pop-switch .segmented{background:#1e211f}
body.charcoal-theme .notice,body.charcoal-theme .arrange-hint{background:#343835}
body.charcoal-theme .checkin .names button:hover{background:#3a403c}

body.charcoal-theme .chalk-class{background:transparent}
/* Whiteboard: the same room drawing with dark marker lettering. */
body.whiteboard-theme{--bg:#f5f5f1;--paper:#ffffff;--ink:#252b28;--muted:#59615c;--line:#adb4ae;background:var(--bg);color:var(--ink)}
body.whiteboard-theme .room{background-color:#fafbf7;background-image:radial-gradient(ellipse at 25% 28%,#65736909,transparent 55%),radial-gradient(ellipse at 75% 68%,#65736907,transparent 48%);box-shadow:inset 0 0 0 4px #fafbf7,inset 0 0 0 5px #aab2ac;border-color:#77837a}
body.whiteboard-theme .room .desk-top{background:#fafbf7}
body.whiteboard-theme .desk-name,body.whiteboard-theme .room .fixture-label{color:#27332c;text-shadow:none}
body.whiteboard-theme .room .fixture svg{color:#637168}
body.whiteboard-theme .room .fixture[data-kind=teacher] svg path:first-child,body.whiteboard-theme .room .fixture[data-kind=board] svg>path:first-child{fill:#fafbf7}
body.whiteboard-theme input,body.whiteboard-theme textarea,body.whiteboard-theme select,body.whiteboard-theme .activitybar select{background:var(--paper);border-color:var(--line);color:var(--ink)}
body.whiteboard-theme .chalk-class{background:transparent}
body.whiteboard-theme .checkin,body.whiteboard-theme .popover,body.whiteboard-theme dialog,body.whiteboard-theme .history,body.whiteboard-theme .list-wrap{background:var(--paper);border-color:var(--line)}
body.whiteboard-theme .room .today-marker{background:#e6f0f8;color:#22516e;border-color:var(--blue)}

/* Primary actions need their own contrasting surface in both board themes. */
body.board-surface dialog button.primary{background:var(--ink)!important;color:var(--bg);border:1px solid var(--ink)!important;border-radius:5px!important;padding:9px 14px;text-decoration:none}
body.board-surface dialog button.primary:hover{filter:brightness(.92)}
.teaching-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}
.teaching-actions [hidden]{display:none}
#scheduleDialog .schedule-row{grid-template-columns:minmax(150px,1fr) 145px 145px}
#scheduleDialog input[type=time]{width:100%;min-width:0}
@media(max-width:540px){#scheduleDialog .schedule-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#scheduleDialog .schedule-row>span:first-child{grid-column:1/-1}#scheduleDialog{padding:18px}}

#seatAssignment{width:min(1000px,95vw);max-width:95vw}
#assignmentPreview{position:relative;height:440px;border:1px solid var(--line);margin:16px 0;background:var(--bg)}
.assignment-front{position:absolute;top:8px;left:40%;width:20%;text-align:center;border-bottom:2px solid var(--line)}
#assignmentPreview .assignment-desk{position:absolute;transform:translate(-50%,-50%);width:8%;min-width:45px;min-height:38px;max-height:56px;overflow:hidden;font-size:12px;border:1px solid var(--line)!important;background:var(--paper)!important;padding:3px;text-decoration:none;line-height:1.1}
#unplacedNames{display:flex;flex-wrap:wrap;gap:6px;max-height:145px;overflow:auto}
#unplacedNames button[aria-pressed=true]{outline:2px solid var(--blue);outline-offset:2px}
#frontSeatChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;max-height:180px;overflow:auto}
#frontSeatChoices label{display:flex;align-items:center;gap:6px}
.separation-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:12px}
.separation-controls label{display:grid;gap:6px}
dialog{overscroll-behavior:contain}
@media(max-width:540px){#assignmentPreview{height:500px}#assignmentPreview .assignment-desk{font-size:10px;min-width:30px}}

body.board-surface button.primary{color:var(--ink)}
body.board-surface dialog button.primary{color:var(--bg)}
.layout-save-actions{display:flex;gap:14px;align-items:center;margin-left:auto;flex-wrap:nowrap}
.object-tools .layout-save-actions #saveLayout{margin-left:0}
body.board-surface #headerActions #arrangeButton{background:transparent!important;color:var(--ink)!important;border-color:transparent!important;box-shadow:none!important}
/* One reading surface, with the class and student choices in a consistent position. */
#feedbackDialog, #reviewDialog.semester-overview{display:block;overflow:auto;height:auto;max-height:90vh}
#feedbackDialog:not([open]),#reviewDialog.semester-overview:not([open]){display:none}
#feedbackDialog .feedback-workspace,#reviewDialog .overview-workspace{display:block;min-height:0;grid-template-rows:none}
#feedbackDialog .feedback-roster[hidden],#reviewDialog .overview-roster[hidden]{display:none}
#feedbackPanel,#reviewDialog .overview-evidence{overflow:visible;max-height:none;padding-right:0}
.review-navigation{display:grid;grid-template-columns:minmax(140px,1fr) minmax(170px,1.4fr);gap:12px 20px;padding:16px 0;border-bottom:1px solid var(--line)}
.review-navigation label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}
.review-navigation select{width:100%;min-width:0;max-width:100%;min-height:42px;font:inherit}
.review-pagination{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.review-navigation .feedback-queue-label{margin:0;grid-row:2;grid-column:2}
.feedback-cycle{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:8px}
.feedback-cycle h3{margin:0 0 12px;font-size:18px}
.feedback-cycle .feedback-timing{margin:0}
.feedback-note-example{padding:12px 0;border-bottom:1px solid var(--line)}
.feedback-note-example label{display:block;margin-top:10px}
.feedback-note-example textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}
#feedbackCycleDates{max-height:220px;overflow:auto}
@media(max-width:560px){.review-navigation{grid-template-columns:minmax(0,1fr)}.review-navigation .feedback-queue-label{grid-row:auto;grid-column:auto}.review-pagination{order:4}.feedback-cycle{padding:12px}#feedbackDialog,#reviewDialog.semester-overview{max-height:92vh}}
#feedbackDialog[open],#reviewDialog.semester-overview[open]{display:block}
.feedback-timing label[hidden]{display:none!important}
.feedback-cycle #feedbackCycleProgress p{margin:10px 0}
.feedback-cycle details{margin-top:10px}
#feedbackBuilder{margin:18px 0;padding:12px;border:1px solid var(--line);border-radius:6px}
#feedbackBuilder>summary{font-size:14px;font-weight:600}
#feedbackBuilder #assembleFeedback{margin-top:16px}
.feedback-cycle{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px 20px}
.feedback-cycle h3{grid-column:1/-1;margin-bottom:0}
.feedback-cycle #feedbackCycleProgress{grid-column:2;grid-row:2}
.feedback-cycle .feedback-timing{align-self:center}
.feedback-cycle #feedbackWeeks{font:inherit;min-height:38px;padding:5px}
.feedback-cycle details{grid-column:1/-1;margin:0}
@media(max-width:560px){.feedback-cycle{display:block}.feedback-cycle h3{margin-bottom:12px}.feedback-cycle details{margin-top:6px}}

/* The focused review replaces the former long, single-column editing form. */
#feedbackDialog .feedback-cycle{display:block;padding:10px 14px;margin:12px 0}
#feedbackDialog .feedback-cycle h3{font-size:14px;margin:0}
#feedbackDialog .feedback-cycle #feedbackCycleProgress{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#feedbackDialog .feedback-cycle #feedbackCycleProgress p{margin:5px 0}
#feedbackDialog .feedback-cycle details{margin-top:3px}
#feedbackDialog.has-feedback-student>p.small,#feedbackDialog.has-feedback-student>a.small{display:none}
#feedbackDialog.has-feedback-student .feedback-cycle{border:0;padding:4px 0;margin:4px 0}
#feedbackDialog.has-feedback-student .feedback-cycle h3,#feedbackDialog.has-feedback-student #feedbackCycleProgress{display:none}
#feedbackPane-rubric>#feedbackReviewStage{float:right;margin:0 0 8px 12px;font-size:12px}
#feedbackFocusedWorkspace #feedbackText{max-height:340px;overflow:auto}
.feedback-history-record{content-visibility:auto;contain-intrinsic-size:400px}
@media(max-width:560px){
 #feedbackDialog .review-navigation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px 0}
 #feedbackDialog .review-navigation label{font-size:12px}
 #feedbackDialog .review-navigation select{font-size:12px;min-height:42px}
 #feedbackDialog .review-pagination{grid-row:2;grid-column:1;order:0;gap:2px;align-self:end}
 #feedbackDialog .review-pagination button{padding:8px 2px;font-size:11px}
 #feedbackDialog .review-navigation .feedback-queue-label{grid-row:2;grid-column:2}
 #feedbackDialog #feedbackCycleProgress button{font-size:12px;padding:5px 0}
 #feedbackDialog .feedback-cycle{margin:8px 0;padding:8px 10px}
 #feedbackDialog .feedback-cycle h3{display:none}
 #feedbackDialog #feedbackCycleProgress{gap:2px}
 #feedbackDialog .feedback-work-tabs{gap:12px;font-size:12px}
 #feedbackDialog .feedback-primary-actions{gap:4px 12px}
 #feedbackDialog .feedback-primary-actions select{max-width:100%}
 #feedbackDialog .feedback-primary-actions button{padding:8px 0;font-size:12px}
 #feedbackDialog #feedbackText{height:220px!important;min-height:160px}
}
/* Rubric decisions: a highlighted level, with its evidence alongside. */
.rubric-review{margin:24px 0;border-top:1px solid var(--line);padding-top:20px}
.rubric-review h4{font-size:20px;margin:0 0 8px}.rubric-review>p{max-width:80ch}
.rubric-review-actions,.rubric-preview-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.rubric-criterion-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 22px}
body.board-surface .rubric-criterion-nav button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;border:1px solid var(--line)!important;border-radius:5px!important;padding:10px!important;background:transparent!important;color:var(--ink)!important;text-decoration:none;min-height:68px}
body.board-surface .rubric-criterion-nav button[aria-pressed=true]{border-color:var(--blue)!important;box-shadow:inset 0 -3px var(--blue)}
.rubric-criterion-nav small{font-size:12px;color:var(--muted)}
.rubric-review-criterion[hidden]{display:none}.rubric-review-criterion h5{font-size:18px;margin:0 0 8px}
.rubric-recommendation{border-left:3px solid var(--blue);padding:8px 12px;background:var(--bg)}
.rubric-evidence-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.rubric-level-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border:0;gap:8px;margin:0 0 16px;min-width:0}
.rubric-level-choices legend{font-size:14px;margin-bottom:10px}
.rubric-level-choice{display:flex;gap:8px;padding:12px;border:1px solid var(--line);border-radius:5px;cursor:pointer;align-items:flex-start;min-width:0}
.rubric-level-choice:has(input:checked){border:2px solid var(--blue);padding:11px;background:var(--bg);box-shadow:inset 0 -3px var(--blue)}
.rubric-level-choice:hover{border-color:var(--ink)}
.rubric-level-choice input,.rubric-gap-choice input,.rubric-evidence-entry input{flex:0 0 auto;accent-color:var(--blue);margin:4px 0 0}
.rubric-level-choice>span{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.55}.rubric-level-choice strong{font-size:14px}
.rubric-gap-choice{grid-column:1/-1;display:flex;gap:8px;align-items:center;font-size:14px;padding:8px 0}
.rubric-review-criterion textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;min-height:80px}.rubric-review-criterion label[for]{font-size:13px}
.rubric-judgment-evidence{border-left:1px solid var(--line);padding-left:20px;min-width:0}.rubric-judgment-evidence h6{font-size:16px;margin:0 0 8px}
.rubric-evidence-entry{display:flex;gap:9px;border-top:1px solid var(--line);padding:12px 0;cursor:pointer}.rubric-evidence-entry>span{display:flex;flex-direction:column;gap:6px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.rubric-evidence-entry strong{font-size:12px}.rubric-private-note{color:var(--muted)}
.rubric-level-choice:focus-within,.rubric-evidence-entry:focus-within{outline:2px solid var(--blue);outline-offset:3px}
#rubricPreview{width:min(1200px,95vw);max-width:95vw;max-height:90vh;box-sizing:border-box}
.student-rubric-table-wrap{overflow-x:auto;margin:18px 0;overscroll-behavior-x:contain}
.student-rubric-table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.student-rubric-table{width:100%;min-width:600px;table-layout:fixed;border-collapse:collapse;font-size:13px;line-height:1.5}
.student-rubric-table caption{text-align:left;font-weight:700;font-size:18px;margin-bottom:10px}
.student-rubric-table th,.student-rubric-table td{width:20%;border:1px solid var(--line);padding:12px;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.student-rubric-table thead th{background:var(--bg)}.student-rubric-table thead strong{display:block;color:var(--ink);font-size:15px}.student-rubric-table thead span{display:block;color:var(--muted);font-size:12px}
.student-rubric-table tbody th{font-size:13px;font-weight:600}.student-rubric-table td p{margin:0}
.student-rubric-table td.selected{background:var(--bg);box-shadow:inset 0 0 0 3px var(--blue)}
.rubric-selection-marker{display:block;font-size:12px;color:var(--blue);margin-bottom:8px}.rubric-row-status{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:8px}
.student-rubric-feedback{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}.student-rubric-feedback p{font-size:14px;line-height:1.7}.rubric-table-help{display:none}
@media(min-width:600px) and (max-width:1000px){.student-rubric-table{min-width:0;font-size:12px;line-height:1.45}.student-rubric-table th,.student-rubric-table td{padding:7px}.student-rubric-table tbody th{font-size:12px}.student-rubric-table thead strong{font-size:13px}.student-rubric-table thead span{font-size:11px}}
@media(max-width:599px){.rubric-table-help{display:block}}
@media(max-width:850px){.rubric-evidence-layout{grid-template-columns:minmax(0,1fr)}.rubric-judgment-evidence{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}}
@media(max-width:500px){.rubric-criterion-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.rubric-level-choices{grid-template-columns:minmax(0,1fr)}.rubric-review-criterion textarea{font-size:16px}}
@page student-rubric{size:letter landscape;margin:12mm}
@media print{
 body:has(#rubricPreview[open]):not(:has(#rubricPrintDialog[open]))>*:not(#rubricPreview){display:none!important}
 body:has(#rubricPreview[open]){background:white!important;color:black!important}
 #rubricPreview[open]{page:student-rubric;display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;overflow:visible!important;border:0!important;padding:0!important;background:white!important;color:black!important}
 #rubricPreview::backdrop{display:none}#rubricPreview .dialog-top,#rubricPreview .rubric-preview-actions{display:none!important}
 #rubricPreviewContent{overflow:visible!important;max-height:none!important}#rubricPreview strong,#rubricPreview p{color:black!important}.rubric-table-help{display:none}
 .student-rubric-table-wrap{overflow:visible;margin:10px 0}.student-rubric-table{min-width:0;font-size:9px;line-height:1.35}.student-rubric-table th,.student-rubric-table td{padding:7px;border-color:#888;color:black;background:white!important}.student-rubric-table thead strong{font-size:11px}.student-rubric-table thead span,.student-rubric-table tbody th{font-size:10px;color:black}.student-rubric-table td.selected{box-shadow:inset 0 0 0 2px black;background:#eee!important;print-color-adjust:exact}.rubric-selection-marker{font-size:9px;color:black}
 .student-rubric-table thead{display:table-header-group}.student-rubric-table tr{break-inside:avoid}.student-rubric-feedback{margin-top:10px}.student-rubric-feedback p{font-size:10px;line-height:1.4}.student-rubric-feedback h4{font-size:12px;margin:8px 0}.student-rubric-feedback h4{break-after:avoid}
}
/* A print run can contain any selected students, including across classes. */
#rubricPrintDialog{width:min(1180px,96vw);max-width:96vw;max-height:92vh;overflow:auto;box-sizing:border-box}
.rubric-print-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rubric-print-filters label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}.rubric-print-filters input,.rubric-print-filters select{width:100%;min-width:0;box-sizing:border-box;min-height:42px}
.rubric-print-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0}
#rubricPrintChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:230px;overflow:auto;margin:14px 0}
.rubric-print-choice{display:flex;gap:9px;padding:10px;border:1px solid var(--line);border-radius:4px;cursor:pointer;content-visibility:auto;contain-intrinsic-size:auto 64px}.rubric-print-choice input{accent-color:var(--blue);margin-top:4px}.rubric-print-choice span{display:flex;flex-direction:column;gap:4px}.rubric-print-choice small{color:var(--muted)}
.rubric-print-sheet{background:white;color:#17221c;padding:24px;margin:20px 0;border:1px solid var(--line);overflow-x:auto}.rubric-print-sheet>div{min-width:700px}.rubric-print-course{font:13px Arial,sans-serif;margin:0 0 10px}
#rubricCopyStatus{flex-basis:100%;margin:0}.rubric-preview-actions .primary{font-size:14px}
@media(max-width:700px){.rubric-print-filters{grid-template-columns:minmax(0,1fr)}#rubricPrintChoices{grid-template-columns:minmax(0,1fr)}.rubric-print-sheet{padding:12px}}
@page rubric-batch{size:letter landscape;margin:12mm}
@media print{
 body:has(#rubricPrintDialog[open])>*:not(#rubricPrintDialog){display:none!important}
 body:has(#rubricPrintDialog[open]){background:white!important;color:black!important}
 #rubricPrintDialog[open]{page:rubric-batch;display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;padding:0!important;background:white!important;color:black!important}
 #rubricPrintDialog::backdrop{display:none}#rubricPrintDialog>.dialog-top,.rubric-print-controls{display:none!important}
 .rubric-print-sheet{overflow:visible!important;border:0;padding:0;margin:0;break-after:page;page:rubric-batch}.rubric-print-sheet:last-child{break-after:auto}.rubric-print-sheet>div{min-width:0;font-size:10px!important;line-height:1.35!important}.rubric-print-sheet h2{font-size:16px!important}.rubric-print-sheet h3{font-size:12px!important;margin:10px 0 6px!important}.rubric-print-course{font-size:10px}
 .rubric-print-sheet table{width:100%!important;table-layout:fixed!important}.rubric-print-sheet th,.rubric-print-sheet td{font-size:9px!important;line-height:1.3!important;padding:6px!important;print-color-adjust:exact}.rubric-print-sheet tr{break-inside:avoid}.rubric-print-sheet thead{display:table-header-group}
}

.room-space-choice{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.room-space-choice select{min-height:36px;padding:6px 8px}
#arrangeHint{display:none}
#contactLogDialog:has(.contact-reminder-notice:not([hidden])) #contactLogTitle{color:var(--red)}
#contactReminderMessage{border:2px solid var(--amber);padding:12px 14px;border-radius:5px;background:color-mix(in srgb,var(--amber) 9%,var(--paper))}
#contactLogDialog:has(.contact-reminder-notice:not([hidden])) label[for="contactNote"],#contactLogDialog:has(.contact-reminder-notice:not([hidden])) #contactNote{display:none}
.contact-recipients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:16px}
.contact-recipient-group>label:not(.field){display:flex;align-items:flex-start;gap:8px;line-height:1.5}
.contact-recipient-group input[type="checkbox"]{flex:none;margin:4px 0 0}
.contact-recipient-group .field{margin:12px 0 0}.contact-recipient-group select{width:100%;margin-top:6px}
@media(max-width:600px){.contact-recipients{grid-template-columns:minmax(0,1fr);row-gap:20px}}
/* A scheduled review is a calm yellow notice, distinct from a conversation concern. */
#feedbackDialog .feedback-cycle.feedback-cycle-due{border:2px solid var(--amber);background:color-mix(in srgb,var(--amber) 9%,var(--paper));padding:16px 18px}
#feedbackDialog .feedback-cycle.feedback-cycle-due h3{display:block;font-size:20px;line-height:1.35;color:var(--amber);margin:0 0 8px}
#feedbackDialog .feedback-cycle.feedback-cycle-due #feedbackCycleProgress{align-items:flex-start;gap:12px 24px}
#feedbackDialog .feedback-cycle.feedback-cycle-due #feedbackCycleProgress p{font-size:14px;line-height:1.6;flex:1 1 360px;max-width:72ch;margin:0}
#feedbackDialog .feedback-cycle.feedback-cycle-due #feedbackCycleProgress button{color:var(--amber);font-weight:700;min-height:40px;white-space:normal}
#feedbackDialog .feedback-cycle.feedback-cycle-due details{margin-top:12px}
#feedbackDialog.has-feedback-student .feedback-cycle.feedback-cycle-due{border:0;background:transparent;padding:4px 0;margin:4px 0}
#feedbackDialog.has-feedback-student .feedback-cycle.feedback-cycle-due h3{display:none}
/* Recording actions belong above the plan; room furniture stays below it. */
.recording-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px 24px;margin:10px 0 16px;padding:10px 0;border-bottom:1px solid var(--line)}
.whole-class-action{min-width:0}
.recording-toolbar #recordWholeClassPraise{font-size:15px;font-weight:700;margin:0}
.recording-toolbar #wholeClassPraiseHelp{font-size:12px;line-height:1.5;margin:5px 0 0;max-width:70ch}
.recording-toolbar #historyToggle{flex:none;min-height:40px;margin:0}
#history .history-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#history .history-head button{margin-left:auto;min-width:40px;min-height:40px;font-size:22px}
@media(max-width:560px){.recording-toolbar{flex-wrap:wrap;gap:8px}.recording-toolbar #historyToggle{margin-left:auto}}
/* Make class switching recognisable as a dropdown, with no leftover green divider. */
header .class-separator{display:none}
body #classPicker{background-color:#383c39;color:#f0f2ee;border:1px solid #858b87;border-radius:5px;min-height:44px;padding:9px 12px;max-width:min(330px,100%);cursor:pointer;color-scheme:dark}
body #classPicker:hover{background-color:#454a46;border-color:#bdc4be}
body #classPicker:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
body #classPicker option{background-color:#383c39;color:#f0f2ee}
body.whiteboard-theme #classPicker{background-color:#e3e5e3;color:#252b28;border-color:#858d87;color-scheme:light}
body.whiteboard-theme #classPicker:hover{background-color:#d5d9d6;border-color:#59635b}
body.whiteboard-theme #classPicker option{background-color:#e3e5e3;color:#252b28}
@media(max-width:560px){body #classPicker{font-size:14px;max-width:100%}}
/* Whiteboard has its own dry-erase lettering and a single, smooth marker outline. */
@font-face{font-family:'Classroom Marker';src:url('PermanentMarker-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
body.whiteboard-theme .room{background-color:#fff;background-image:none;border:2px solid #79848a;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 5px #c8cdd0}
body.whiteboard-theme .room .desk-top{background:#fff}
body.whiteboard-theme .room .desk-name,body.whiteboard-theme .room .fixture-label,body.whiteboard-theme .room .today-marker{font-family:'Classroom Marker','Segoe Print',cursive;font-weight:400;font-style:normal;letter-spacing:.05px;color:#142d43;text-shadow:none}
body.whiteboard-theme .room .desk-art{color:#203849;filter:none}
body.whiteboard-theme .room .desk-art path{stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
body.whiteboard-theme .room .desk-art path+path{display:none}
body.whiteboard-theme .room .chair{border-color:#526876;border-width:2px;background:transparent}
body.whiteboard-theme .room .fixture svg{color:#203849;stroke-width:2;filter:none}
body.whiteboard-theme .room .fixture[data-kind=board] svg>path:first-child,body.whiteboard-theme .room .fixture[data-kind=teacher] svg>path:first-child{fill:#fff}
body.whiteboard-theme .room .seat[data-engagement=positive] .desk-art{color:#27834b}
body.whiteboard-theme .room .seat[data-engagement=mixed] .desk-art{color:#926512}
body.whiteboard-theme .room .seat[data-engagement=negative] .desk-art{color:#b74042}
.daily-focus-person{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px}
.checkin .names .daily-away-button{font:12px 'Segoe UI',Arial,sans-serif;color:var(--muted);padding:3px 0;text-decoration:none;border-bottom:1px dotted var(--muted)}
.daily-away-summary{display:flex;gap:8px 18px;flex-wrap:wrap;flex-basis:100%;font-size:12px;color:var(--muted)}
.daily-away-summary[hidden]{display:none}
.daily-away-summary button{font-size:12px;padding:3px 7px;margin-left:5px}
.daily-checkin-strip{flex-wrap:wrap}

/* Saved observation editing, shared by recent entries and student history. */
.entry-actions,.saved-observation-form .dialog-actions{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0 8px}
.entry-actions button,.saved-observation-form button{min-height:36px;padding:6px 12px;border:1px solid var(--line,#727b74);border-radius:4px}
.recent-entry-editor[hidden]{display:none}
.saved-observation-form{padding:12px 0;font-family:"Segoe UI",sans-serif}
.saved-observation-form label{display:block;margin:12px 0 6px;font-weight:600}
.saved-observation-form select,.saved-observation-form textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;font:inherit;padding:9px}
.saved-observation-form textarea{resize:vertical;min-height:90px}
.saved-observation-form .delete-observation,.entry-actions .delete-observation{color:#ffb3b3}
#studentObservationHistory{margin:14px 0;padding:12px;border:1px solid var(--line,#727b74);border-radius:6px}
.student-history-entry{padding:12px 0;border-top:1px solid var(--line,#727b74)}
.student-history-entry summary{line-height:1.5;overflow-wrap:anywhere;cursor:pointer}
.saved-comment{white-space:pre-wrap;overflow-wrap:anywhere}
#deleteObservationDialog{width:min(560px,calc(100vw - 48px));box-sizing:border-box}
body.whiteboard-theme .delete-observation{color:#9c2424}

/* A visible batch action, with explicit whole-class and selected-student scopes. */
.recording-toolbar #recordWholeClassPraise{display:inline-flex;align-items:center;min-height:46px;padding:10px 18px;background:var(--paper,#292d2a)!important;color:var(--ink,#eff1ed);border:2px solid var(--ink,#eff1ed)!important;border-radius:6px!important;text-decoration:none;font-size:16px;line-height:1.35}
.recording-toolbar #recordWholeClassPraise:hover{background:var(--line,#59665e)!important}
#classObservation{width:min(680px,calc(100vw - 32px));box-sizing:border-box;max-height:90vh;overflow-y:auto;overscroll-behavior:contain}
#classObservation .batch-audience{display:flex;flex-wrap:wrap;gap:12px 26px;margin:20px 0 12px;padding:12px 14px;border:1px solid var(--line)}
#classObservation .batch-audience label,#classStudents label{display:flex;align-items:center;gap:10px;min-height:40px;cursor:pointer}
#classObservation input[type=radio],#classObservation input[type=checkbox]{flex:none;width:18px;height:18px;margin:0}
#batchStudentPicker[hidden]{display:none}
#classStudents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;max-height:240px;overflow-y:auto;padding:8px;border:1px solid var(--line);overscroll-behavior:contain}
#classStudents label{min-width:0;overflow-wrap:anywhere;padding:3px 6px}
#classSelectionSummary{font-weight:600;margin:12px 0}
#classObservation #classRating{width:100%;font:inherit;padding:10px}
#classObservation #recordClassObservation{min-height:44px;padding:10px 16px;border:1px solid var(--ink);border-radius:5px;font-weight:700}
@media(max-width:480px){#classStudents{grid-template-columns:1fr}.recording-toolbar #recordWholeClassPraise{width:100%;justify-content:center}}

/* Standard four-category evaluation, visible without opening a menu. */
#classObservation #classRating{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0;padding:12px;border:1px solid var(--line)}
#classRating legend{padding:0 6px;font-weight:600}
#classRating label{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px;box-sizing:border-box;border:1px solid var(--line);border-radius:5px;cursor:pointer;font-weight:600}
#classRating label:has(input:checked){background:color-mix(in srgb,var(--blue) 15%,var(--paper));border-color:var(--blue)}
#classRating label:focus-within{outline:2px solid var(--blue);outline-offset:2px}
@media(max-width:480px){#classObservation #classRating{grid-template-columns:1fr}}
.batch-context-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.batch-context-fields label{display:block;font-weight:600}
.batch-context-fields select,#batchSource{display:block;width:100%;font:inherit;padding:9px;margin-top:6px}
.batch-prompts details,.batch-extras details{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:5px}
.batch-prompts summary,.batch-extras summary{cursor:pointer;font-weight:600;line-height:1.5}
.batch-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#classObservation .batch-prompt{display:flex;align-items:center;gap:10px;text-align:left;min-height:48px;padding:10px;border:1px solid var(--line)!important;border-radius:5px!important;text-decoration:none;line-height:1.4}
#classObservation .batch-prompt[aria-pressed=true]{border-color:var(--blue)!important;background:color-mix(in srgb,var(--blue) 15%,var(--paper))!important}
.batch-prompt svg{width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#batchFollowup{margin:16px 0;padding:12px;border:1px solid var(--line)}
#classObservation [hidden]{display:none!important}
@media(max-width:480px){.batch-context-fields,.batch-prompt-grid{grid-template-columns:1fr}}
/* Group selection above the same compact evaluation layout used for one student. */
#classObservation.standard-batch-evaluation{width:min(450px,calc(100vw - 28px));padding:20px 22px;font-family:"Segoe UI",Arial,sans-serif}
#classObservation.standard-batch-evaluation .dialog-top h2{font-size:22px;line-height:1.25;max-width:85%}
#classObservation.standard-batch-evaluation>.small.muted:first-of-type{display:none}
#classObservation.standard-batch-evaluation .batch-audience{gap:6px 18px;margin:12px 0 8px;padding:0;border:0}
#classObservation.standard-batch-evaluation .batch-audience legend{font-size:12px;color:var(--muted);margin-bottom:4px}
#classObservation.standard-batch-evaluation #classStudents{max-height:132px;gap:0 10px;padding:3px 6px}
#classObservation.standard-batch-evaluation #classStudents label{min-height:34px;font-size:12px}
#classObservation.standard-batch-evaluation #batchStudentPicker>.small{margin:6px 0;font-size:11px;line-height:1.45}
#classObservation.standard-batch-evaluation .class-selection-actions{display:flex;gap:16px;margin:6px 0}
#classObservation.standard-batch-evaluation .class-selection-actions button{padding:4px 0;min-height:30px;font-size:12px}
#classObservation.standard-batch-evaluation #classSelectionSummary{font-size:12px;margin:10px 0 18px}
#classObservation.standard-batch-evaluation .batch-context-fields{display:block;margin:10px 0 20px}
#classObservation.standard-batch-evaluation .batch-context-fields label{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);font-weight:400;margin:12px 0}
#classObservation.standard-batch-evaluation .batch-context-fields select{flex:1;min-width:0;max-width:270px;margin:0 0 0 auto;padding:7px;background:var(--paper);color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:14px}
.batch-rating-title{font-size:13px;margin:12px 0 14px}
#batchRatings{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 16px}
#batchRatings button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:80px;padding:10px 6px;text-align:center;font-size:13px;line-height:1.3}
#batchRatings button svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#batchRatings button[data-rating=active],#batchRatings button[data-rating=quiet]{color:var(--green)}
#batchRatings button[data-rating=off]{color:var(--red)}
#batchRatings button.picked span{border-bottom:3px solid currentColor;padding-bottom:5px}
#classObservation.standard-batch-evaluation .batch-prompts details,#classObservation.standard-batch-evaluation .batch-extras details{border:0;padding:0;margin:14px 0}
#classObservation.standard-batch-evaluation .batch-prompts summary,#classObservation.standard-batch-evaluation .batch-extras summary{font-size:12px;font-weight:400;color:var(--muted)}
#classObservation.standard-batch-evaluation .batch-prompt-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;margin-top:8px}
#classObservation.standard-batch-evaluation .batch-prompt{border:0!important;border-radius:0!important;background:transparent!important;color:var(--muted);padding:5px 2px;min-height:68px;font-size:11px;line-height:1.4;text-decoration:underline;text-decoration-color:#9bc7cd;text-underline-offset:6px}
#classObservation.standard-batch-evaluation .batch-prompt[aria-pressed=true]{color:var(--ink);background:transparent!important;text-decoration-thickness:3px}
#classObservation.standard-batch-evaluation .batch-prompt.action-shortcut{flex-direction:column;justify-content:center;gap:4px;text-align:center}
#classObservation.standard-batch-evaluation .batch-prompt svg{width:25px;height:25px}
#classObservation.standard-batch-evaluation #batchSteps{grid-template-columns:1fr 1fr;gap:8px 16px}
#classObservation.standard-batch-evaluation #batchSteps .batch-prompt{min-height:44px;text-align:left;flex-direction:row;align-items:center;gap:9px}
#classObservation.standard-batch-evaluation #batchCriteria{display:flex;flex-direction:column;gap:4px}
#classObservation.standard-batch-evaluation #batchCriteria .batch-prompt{min-height:40px;font-size:12px}
#classObservation.standard-batch-evaluation #classNote{min-height:86px}
#classObservation.standard-batch-evaluation #recordClassObservation{width:100%;margin-top:16px}
#classObservation.standard-batch-evaluation .observation-source-row select{border-radius:0;margin:0}
@media(max-width:380px){#classObservation.standard-batch-evaluation{padding:16px}#classObservation.standard-batch-evaluation #classStudents{grid-template-columns:1fr}#batchRatings button{font-size:12px}}
#classObservation.standard-batch-evaluation #classObservationStatus:not(:empty){padding:10px;border:1px solid var(--amber);color:var(--amber);line-height:1.5}
#discardBatchFeedback{display:block;margin:10px auto 0;min-height:36px}
/* Seating rules choose the plan; the real classroom is the only placement preview. */
body.board-surface #headerActions #arrangeButton{background:var(--paper)!important;border:1px solid var(--line)!important;border-radius:6px;padding:9px 14px!important}
#assignSeats,#trialSeatingRules{border:1px solid var(--line)!important;background:var(--paper)!important;padding:10px 16px!important;border-radius:6px;font-weight:700;min-height:44px}
#seatingRulesSummary{max-width:34ch;line-height:1.5}
#seatAssignment{width:min(760px,94vw);max-height:90vh;overflow:auto;padding:24px}
#seatAssignment [hidden],#mainSeatingHelp[hidden]{display:none!important}
#assignmentClass{font-weight:700;margin-bottom:6px}
#seatAssignment>p{max-width:68ch;line-height:1.6}
.seating-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:20px 0}
.seating-tabs button{padding:12px 4px!important;min-height:44px}
.seating-tabs [aria-selected=true]{border-bottom:3px solid var(--blue)!important;font-weight:700}
#seatAssignment [role=tabpanel] h3{font-size:18px;margin:18px 0 8px}
#seatAssignment [role=tabpanel] p{line-height:1.6}
.assignment-methods{display:grid;gap:12px;margin:20px 0}
.assignment-methods button{display:grid;gap:6px;text-align:left;border:1px solid var(--line)!important;border-radius:6px;padding:14px 16px!important;min-height:64px;background:var(--paper)!important}
.assignment-methods button span{font-size:13px;line-height:1.5}
#frontSeatChoices{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));max-height:230px;padding:12px;border:1px solid var(--line);border-radius:6px}
#frontSeatChoices label{min-height:40px;gap:10px}
.apart-rule-section{margin:20px 0;padding-top:8px;border-top:1px solid var(--line)}
.separation-controls select{font:inherit;min-height:44px;max-width:100%;padding:8px}
.separation-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px}
.separation-pair{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
.separation-pair button{min-height:40px}
#seatAssignmentStatus{border-left:3px solid var(--blue);padding:10px 14px;line-height:1.6}
#seatAssignmentStatus.has-warning{border-color:var(--amber)}
.assignment-save-bar{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}
.assignment-save-bar .dialog-actions{justify-content:flex-end;gap:18px}
.setup-seating-help{border-top:1px solid var(--line);margin-top:20px;padding:12px 0}
#mainSeatingHelp{display:flex;align-items:center;justify-content:space-between;gap:18px;border-left:3px solid var(--blue);padding:8px 14px;margin:8px 0 16px;background:var(--paper)}
#mainSeatingInstructions{font-size:14px;line-height:1.6;margin:0}
#mainSeatingHelp button{min-height:44px;white-space:nowrap}
#room .seat.seating-swap-selected{outline:3px solid var(--blue)!important;outline-offset:5px}
@media(max-width:600px){#seatAssignment{padding:16px}.separation-controls{grid-template-columns:minmax(0,1fr)}#mainSeatingHelp{align-items:flex-start;flex-direction:column}.assignment-save-bar .dialog-actions{justify-content:flex-start;flex-wrap:wrap}#seatingRulesSummary{width:100%}}
#feedbackPurpose{max-width:78ch;font-size:15px;line-height:1.6;margin:12px 0}
#feedbackDialog .feedback-schedule-control{display:flex;align-items:center;gap:16px 28px;padding:14px 0}
#feedbackDialog .feedback-schedule-control label{font-weight:700;min-width:200px}
#feedbackDialog .feedback-schedule-control select{background:var(--paper);border:1px solid var(--line);min-height:44px;padding:9px 12px;font:inherit}
#feedbackIntervalHelp{flex:1 1 280px;max-width:58ch;line-height:1.6;margin:0}
.settings-feedback-schedule{border-block:1px solid var(--line);padding:16px 0;margin:16px 0}
.settings-feedback-schedule h3{margin:0 0 10px}
.settings-feedback-schedule p{max-width:65ch;line-height:1.6}
.settings-feedback-schedule>label{display:block;margin:14px 0 6px;font-weight:700}
#settingsFeedbackWeeks{font:inherit;min-height:44px;padding:9px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--line)}

#deskSelectionTools{display:flex;gap:20px;align-items:center;justify-content:space-between;border:1px solid var(--blue);padding:10px 14px;margin:8px 0;background:var(--paper)}
#deskSelectionTools[hidden]{display:none!important}
#deskSelectionStatus{margin:0;font-size:14px;line-height:1.5}
#clearDeskSelection{white-space:nowrap;min-height:44px}
#room .seat.multi-selected-desk{outline:3px solid var(--blue)!important;outline-offset:5px}
#multiSelectionTip{width:100%;margin:4px 0;line-height:1.5}
@media(max-width:600px){#deskSelectionTools{align-items:flex-start;flex-direction:column;gap:8px}}

#seatingRulesSummary[hidden],#deskMovementMode[hidden]{display:none!important}

.feedback-date-settings>label{display:block;font-weight:700;margin:16px 0 6px}
.feedback-date-settings input,.feedback-date-settings select{font:inherit;min-height:44px;max-width:100%;padding:9px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--line)}
#feedbackFirstCycleInfo{line-height:1.6;margin:8px 0;max-width:75ch}

body.board-surface #headerActions #arrangeButton,body.board-surface #assignSeats,body.board-surface #trialSeatingRules{background:transparent!important;border-color:transparent!important;border-radius:0!important;box-shadow:none!important;padding:8px 4px!important;font-weight:inherit}

#finalReviewPrompt{border:1px solid var(--amber);background:color-mix(in srgb,var(--amber) 7%,var(--paper));padding:16px;margin:16px 0;border-radius:6px}
#finalReviewPrompt strong{color:var(--amber)}
