/* Formal school surfaces only. No student, host-theme or WordPress-wide selector. */
[data-hsm-staff-surfaces="comfortable"]:not([data-hsm-active-panel="hsm_student"]):not(.hsm-student-skin){
 --hsm-surface:var(--hsm-staff-card);--hsm-card:var(--hsm-staff-card);--hsm-bg:var(--hsm-staff-page);--hsm-surface-soft:var(--hsm-staff-nested);--hsm-border:var(--hsm-staff-line);--hsm-text:var(--hsm-staff-ink);--hsm-muted:var(--hsm-staff-muted);--td-border:var(--hsm-staff-line);--qb-border:var(--hsm-staff-line);
 color:var(--hsm-staff-ink);color-scheme:normal;
}
[data-hsm-staff-surfaces="comfortable"]:is(.hsm-app,.wrap){background:var(--hsm-staff-page)}
dialog[data-hsm-staff-surfaces="comfortable"]{background:var(--hsm-staff-card);border-color:var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-workspace,.hsm-workspace-content,.hsm-portal-main,.hsm-teacher-desk,.hsm-question-bank,.hsm-manager-dashboard){background:var(--hsm-staff-page);color:var(--hsm-staff-ink)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card,.hsm-form-section,.hsm-td-dashboard-panel,.hsm-td-dashboard-class,.hsm-td-dialog,.hsm-td-context-card,.hsm-td-person-accordion,.hsm-td-class-student,.hsm-td-personal-shortcut,.hsm-learning-card,.hsm-learning-dialog,.hsm-qb-source-editor,.hsm-qb-category-editor,.hsm-qb-source-card,.hsm-qb-category-card,.hsm-qb-card,.hsm-qb-dialog,.hsm-exams-dialog,.hsm-tt-dialog,.hsm-style-section,.postbox){background:var(--hsm-staff-card);color:var(--hsm-staff-ink);border-color:var(--hsm-staff-line);box-shadow:0 2px 8px #263d5710}
/* Generic portal groups did not have the admin panel's inset before gaining a visible surface. */
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card){box-sizing:border-box;min-inline-size:0;padding:clamp(12px,1.4vw,20px);border:1px solid var(--hsm-staff-line);border-radius:14px}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card)>:is(form,.hsm-inactive-filters,.hsm-application-filters,.hsm-table-scroll){margin-block:12px}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card)>:first-child{margin-block-start:0}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card)>:last-child{margin-block-end:0}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-workspace,.hsm-workspace-content,.hsm-portal-main,.hsm-tab-panel,.hsm-modal-panel)>:is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card)~:is(.hsm-card,.hsm-panel,.hsm-section,.hsm-admin-card){margin-block-start:16px}
[data-hsm-staff-surfaces="comfortable"] .hsm-table-scroll{box-sizing:border-box;min-inline-size:0;max-inline-size:100%}
[data-hsm-staff-surfaces="comfortable"] .hsm-inactive-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){[data-hsm-staff-surfaces="comfortable"] .hsm-inactive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-td-dashboard-panel,.hsm-td-dialog,.hsm-qb-source-editor,.hsm-qb-category-editor,.hsm-qb-dialog,.hsm-learning-dialog,.hsm-exams-dialog,.hsm-style-section){border:1px solid var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-td-dashboard-class,.hsm-td-context-card,.hsm-td-personal-shortcut){background:linear-gradient(150deg,var(--hsm-staff-card),var(--hsm-staff-nested));border:1px solid var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-section-heading,.hsm-td-dashboard-panel>header,.hsm-td-class-table-heading,.hsm-qb-chapter>summary,.hsm-qb-topic>summary,.hsm-qb-dialog>header,.hsm-tt-dialog>header,.hsm-exams-dialog>header){background:var(--hsm-staff-header);color:var(--hsm-staff-ink);border-block-end:1px solid var(--hsm-staff-line);padding:12px;border-radius:9px 9px 0 0}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-qb-chapter,.hsm-qb-source-files,.hsm-qb-portable,.hsm-td-person-fields,.hsm-td-class-student-body,.hsm-preference-accordion,.hsm-td-dashboard-report,fieldset){background:var(--hsm-staff-nested);color:var(--hsm-staff-ink);border:1px solid var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-qb-topic,.hsm-qb-page-range,.hsm-qb-range,.hsm-td-response,.hsm-learning-response,.hsm-qb-portable-question){background:var(--hsm-staff-card);color:var(--hsm-staff-ink);border:1px solid var(--hsm-staff-line);border-inline-start:3px solid var(--hsm-staff-field-line)}
[data-hsm-staff-surfaces="comfortable"] :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]):not([type="submit"]):not([type="button"]),select,textarea){background:var(--hsm-staff-field);border-color:var(--hsm-staff-field-line);color:var(--hsm-staff-ink)}
[data-hsm-staff-surfaces="comfortable"] :is(input,textarea)::placeholder{color:var(--hsm-staff-muted);opacity:1}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-muted,.description,.hsm-td-empty,.hsm-td-class-card-facts,small){color:var(--hsm-staff-muted)}
[data-hsm-staff-surfaces="comfortable"] table{background:var(--hsm-staff-card);color:var(--hsm-staff-ink);border-color:var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] table th{background:var(--hsm-staff-header);color:var(--hsm-staff-ink);border-color:var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] table td{border-color:var(--hsm-staff-line)}
[data-hsm-staff-surfaces="comfortable"] tbody tr:nth-child(even){background:var(--hsm-staff-nested)}
[data-hsm-staff-surfaces="comfortable"] :is(.hsm-td-dashboard-panel>header,.hsm-qb-chapter>summary) :is(h2,h3,h4,strong){color:var(--hsm-staff-ink)}
.hsm-staff-surface-control{font:inherit;max-width:600px;margin:12px 0;color:var(--hsm-theme-text,#172033)}
.hsm-staff-surface-control>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600}
.hsm-staff-surface-control>div{padding:12px;border:1px solid var(--hsm-theme-border,#c9d3df);border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;background:var(--hsm-theme-surface,#fff)}
.hsm-staff-surface-control label{display:grid;gap:6px;min-width:0}.hsm-staff-surface-control :is(select,button){font:inherit;min-height:44px;max-width:100%}.hsm-staff-surface-control p{grid-column:1/-1;margin:0}
@media(forced-colors:active){[data-hsm-staff-surfaces="comfortable"] :is(.hsm-qb-chapter,.hsm-qb-topic,fieldset,input,select,textarea){border-color:CanvasText}}
