:root {
  --brand-canvas: #f5f0e3;
  --brand-surface: #fffdf7;
  --brand-surface-muted: #ebe2cf;
  --brand-ink: #173a35;
  --brand-ink-muted: #48635d;
  --brand-coral-fg: #ad3f32;
  --teacher-primary: #416b57;
  --teacher-primary-hover: #315543;
  --teacher-soft: #eef5e9;
  --teacher-border: rgba(23, 58, 53, 0.14);
  --status-success-fg: #2f6f55;
  --status-success-bg: #eaf5ee;
  --status-success-border: #a9cfb7;
  --status-info-fg: #2d6f8e;
  --status-info-bg: #eef7fb;
  --status-info-border: #aed1df;
  --status-warning-fg: #8a5c12;
  --status-warning-bg: #fff4d6;
  --status-warning-border: #e2c676;
  --status-danger-fg: #b6473e;
  --status-danger-bg: #fff0ed;
  --status-danger-border: #e8ada6;
  --status-pending-fg: #6a5b79;
  --status-pending-bg: #f6f0fa;
  --status-pending-border: #cebfdc;
  --teacher-focus: #b96f22;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-role="teacher"] .eyebrow {
  color: var(--brand-coral-fg);
}

[data-role="teacher"] button:focus-visible,
[data-role="teacher"] input:focus-visible,
[data-role="teacher"] textarea:focus-visible {
  outline-color: var(--teacher-focus);
}

[data-role="teacher"] .content {
  width: min(1440px, 100%);
}

.teacher-mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(166, 105, 39, 0.24);
  border-radius: 14px;
  background: #fff8e9;
  color: #66451e;
  font-size: 13px;
  line-height: 1.5;
}

.teacher-mock-bar strong {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #8a571f;
  color: #fffdf7;
  font-size: 11px;
  letter-spacing: 0.08em;
}

[data-role="teacher"] .nav-button.is-active {
  border: 1px solid rgba(65, 107, 87, 0.24);
  background: var(--teacher-soft);
  box-shadow: 3px 3px 0 rgba(65, 107, 87, 0.16);
}

.teacher-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.teacher-overview-metric {
  position: relative;
  min-height: 112px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--teacher-border);
  border-radius: 18px;
  color: var(--brand-ink);
  background: rgba(255, 253, 247, 0.82);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.teacher-overview-metric::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -34px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--metric-wash, var(--teacher-soft));
  opacity: 0.86;
}

.teacher-overview-metric:hover {
  border-color: rgba(23, 58, 53, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(48, 58, 44, 0.08);
}

.teacher-overview-metric.is-review {
  --metric-wash: var(--status-pending-bg);
}

.teacher-overview-metric.is-binding {
  --metric-wash: var(--status-info-bg);
}

.teacher-overview-metric.is-goal {
  --metric-wash: var(--status-warning-bg);
}

.teacher-overview-metric strong,
.teacher-overview-metric span,
.teacher-overview-metric small {
  position: relative;
  z-index: 1;
  display: block;
}

.teacher-overview-metric strong {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}

.teacher-overview-metric span {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.teacher-overview-metric small {
  margin-top: 5px;
  color: var(--brand-ink-muted);
  font-size: 12px;
}

.teacher-praise-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  align-items: start;
  gap: 18px;
}

.teacher-card {
  border: 1px solid var(--teacher-border);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 10px 28px rgba(48, 58, 44, 0.08);
}

.teacher-roster-panel,
.teacher-praise-composer,
.teacher-goal-card,
.teacher-todo-card {
  padding: 22px;
}

.teacher-praise-composer {
  position: sticky;
  top: 104px;
}

.teacher-panel-head,
.teacher-result-head,
.teacher-result-title,
.teacher-result-foot,
.teacher-goal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.teacher-panel-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.teacher-panel-head h2,
.teacher-result-head h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.18;
}

.teacher-panel-head p,
.teacher-result-head p {
  margin: 5px 0 0;
  color: var(--brand-ink-muted);
  font-size: 11px;
  line-height: 1.55;
}

.teacher-step {
  color: var(--brand-coral-fg);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.teacher-mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--teacher-border);
  border-radius: 13px;
  background: var(--brand-surface-muted);
}

.teacher-mode-switch button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  color: var(--brand-ink-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.teacher-mode-switch button.is-active {
  color: var(--brand-surface);
  background: var(--teacher-primary);
  box-shadow: 0 4px 10px rgba(49, 85, 67, 0.18);
}

.teacher-roster-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.teacher-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 100%);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--teacher-border);
  border-radius: 13px;
  background: var(--brand-surface);
}

.teacher-search:focus-within {
  border-color: var(--teacher-primary);
  box-shadow: 0 0 0 3px rgba(65, 107, 87, 0.1);
}

.teacher-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  color: var(--brand-ink);
  background: transparent;
  font-size: 12px;
}

.teacher-search input::placeholder {
  color: rgba(72, 99, 93, 0.78);
}

.teacher-batch-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.teacher-link-button {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--teacher-primary);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.teacher-link-button:hover {
  background: var(--teacher-soft);
}

.teacher-selection-hint {
  color: var(--brand-ink-muted);
  font-size: 11px;
}

.teacher-roster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.teacher-child-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 156px;
  padding: 17px 8px 12px;
  border: 1px solid rgba(23, 58, 53, 0.12);
  border-radius: 16px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.teacher-child-card:hover {
  border-color: rgba(23, 58, 53, 0.34);
  transform: translateY(-2px);
}

.teacher-child-card.is-selected {
  border: 2px solid var(--teacher-primary);
  background: var(--teacher-soft);
  box-shadow: 3px 3px 0 rgba(65, 107, 87, 0.2);
}

.teacher-child-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(23, 58, 53, 0.18);
  border-radius: 50%;
  color: var(--brand-surface);
  background: rgba(255, 253, 247, 0.9);
  font-size: 11px;
  font-weight: 900;
}

.teacher-child-card.is-selected .teacher-child-check {
  border-color: var(--teacher-primary);
  background: var(--teacher-primary);
}

.teacher-child-copy,
.teacher-child-copy strong,
.teacher-child-copy small {
  display: block;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.teacher-child-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-child-copy small,
.teacher-child-today {
  color: var(--brand-ink-muted);
  font-size: 11px;
}

.teacher-child-copy small {
  margin-top: 3px;
}

.teacher-child-today {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(235, 226, 207, 0.74);
}

.teacher-empty-search {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border: 1px dashed rgba(23, 58, 53, 0.24);
  border-radius: 16px;
  color: var(--brand-ink-muted);
  text-align: center;
  font-size: 12px;
}

.teacher-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--brand-ink-muted);
  background: rgba(235, 226, 207, 0.5);
  font-size: 12px;
}

.teacher-selection-summary strong {
  color: var(--brand-ink);
  font-size: 16px;
}

.teacher-composer-head {
  margin-bottom: 15px;
}

.teacher-context-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--brand-ink-muted);
  background: var(--brand-surface-muted);
  font-size: 11px;
  font-weight: 900;
}

.teacher-rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.teacher-rule-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(23, 58, 53, 0.12);
  border-radius: 14px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  text-align: left;
  cursor: pointer;
}

.teacher-rule-card:hover {
  border-color: rgba(23, 58, 53, 0.36);
}

.teacher-rule-card.is-selected {
  border: 2px solid var(--teacher-primary);
  background: var(--teacher-soft);
}

.teacher-rule-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-surface-muted);
  font-size: 18px;
}

.teacher-rule-card strong,
.teacher-rule-card small {
  display: block;
}

.teacher-rule-card strong {
  font-size: 11px;
}

.teacher-rule-card small {
  margin-top: 4px;
  color: var(--brand-ink-muted);
  font-size: 11px;
}

.teacher-rule-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--brand-surface);
  background: var(--teacher-primary);
  font-size: 11px;
  font-weight: 900;
}

.teacher-rule-card:not(.is-selected) .teacher-rule-check {
  visibility: hidden;
}

.teacher-note-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 800;
}

.teacher-note-field > span {
  display: flex;
  justify-content: space-between;
}

.teacher-note-field small {
  color: var(--brand-ink-muted);
  font-size: 11px;
  font-weight: 500;
}

.teacher-note-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--teacher-border);
  border-radius: 12px;
  outline: 0;
  color: var(--brand-ink);
  background: var(--brand-surface);
  font-size: 11px;
  line-height: 1.55;
}

.teacher-note-field textarea:focus {
  border-color: var(--teacher-primary);
}

.teacher-submit-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(65, 107, 87, 0.32);
  border-radius: 13px;
  background: rgba(238, 245, 233, 0.72);
}

.teacher-preview-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--brand-surface);
  background: var(--teacher-primary);
}

.teacher-submit-preview strong,
.teacher-submit-preview small {
  display: block;
}

.teacher-submit-preview strong {
  font-size: 11px;
}

.teacher-submit-preview small {
  margin-top: 4px;
  color: var(--brand-ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.teacher-submit-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: 11px;
  padding: 9px 14px;
  border: 0;
  border-radius: 14px;
  color: var(--brand-surface);
  background: var(--teacher-primary);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.teacher-submit-button:hover:not(:disabled) {
  background: var(--teacher-primary-hover);
  transform: translateY(-1px);
}

.teacher-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.teacher-submit-state {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 253, 247, 0.38);
  border-radius: 50%;
  font-weight: 900;
}

.teacher-submit-button strong,
.teacher-submit-button small {
  display: block;
}

.teacher-submit-button strong {
  font-size: 12px;
}

.teacher-submit-button small {
  margin-top: 3px;
  color: rgba(255, 253, 247, 0.82);
  font-size: 11px;
}

.teacher-safety-note {
  display: flex;
  gap: 6px;
  margin: 10px 2px 0;
  color: var(--brand-ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.teacher-result-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--status-success-border);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--status-success-bg), rgba(255, 253, 247, 0.96) 62%);
  box-shadow: 0 12px 30px rgba(47, 111, 85, 0.09);
}

.teacher-result-panel.is-notice {
  border-color: var(--status-warning-border);
  background: linear-gradient(135deg, var(--status-warning-bg), rgba(255, 253, 247, 0.96) 62%);
}

.teacher-result-panel.is-partial {
  border-color: var(--status-pending-border);
  background: linear-gradient(135deg, var(--status-pending-bg), rgba(255, 253, 247, 0.96) 62%);
}

.teacher-result-title {
  justify-content: flex-start;
}

.teacher-result-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 16px;
  color: var(--status-success-fg);
  background: var(--brand-surface);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.is-notice .teacher-result-mark {
  color: var(--status-warning-fg);
}

.is-partial .teacher-result-mark {
  color: var(--status-pending-fg);
}

.teacher-result-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--teacher-border);
  border-radius: 13px;
  background: var(--brand-surface);
  font-size: 20px;
  cursor: pointer;
}

.teacher-result-summary {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  overflow-x: auto;
}

.teacher-result-summary span,
.teacher-result-row em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-result-summary .is-success,
.teacher-result-row em.is-success {
  border-color: var(--status-success-border);
  color: var(--status-success-fg);
  background: var(--status-success-bg);
}

.teacher-result-summary .is-partial,
.teacher-result-row em.is-partial {
  border-color: var(--status-pending-border);
  color: var(--status-pending-fg);
  background: var(--status-pending-bg);
}

.teacher-result-summary .is-capped,
.teacher-result-row em.is-capped {
  border-color: var(--status-warning-border);
  color: var(--status-warning-fg);
  background: var(--status-warning-bg);
}

.teacher-result-summary .is-rejected,
.teacher-result-row em.is-rejected {
  border-color: var(--status-danger-border);
  color: var(--status-danger-fg);
  background: var(--status-danger-bg);
}

.teacher-result-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.teacher-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(23, 58, 53, 0.1);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.82);
}

.teacher-result-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: var(--brand-surface);
  background: var(--teacher-primary);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
}

.teacher-result-row strong,
.teacher-result-row small {
  display: block;
}

.teacher-result-row strong {
  font-size: 11px;
}

.teacher-result-row small {
  margin-top: 3px;
  color: var(--brand-ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.teacher-result-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 58, 53, 0.1);
}

.teacher-result-foot > span {
  overflow: hidden;
  max-width: 46%;
  color: var(--brand-ink-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-result-foot > div {
  display: flex;
  gap: 8px;
}

.teacher-home-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.teacher-goal-number {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 21px;
}

.teacher-goal-track {
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(23, 58, 53, 0.18);
  border-radius: 999px;
  background: var(--brand-surface-muted);
}

.teacher-goal-track span {
  display: block;
  width: var(--teacher-progress);
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(120deg, var(--teacher-primary) 0 11px, #6f937a 11px 19px);
}

.teacher-goal-foot {
  margin-top: 9px;
  color: var(--brand-ink-muted);
  font-size: 11px;
}

.teacher-todo-list {
  display: grid;
  gap: 8px;
}

.teacher-todo-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(23, 58, 53, 0.1);
  border-radius: 14px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  text-align: left;
  cursor: pointer;
}

.teacher-todo-list strong,
.teacher-todo-list small {
  display: block;
}

.teacher-todo-list strong {
  font-size: 11px;
}

.teacher-todo-list small {
  margin-top: 3px;
  color: var(--brand-ink-muted);
  font-size: 11px;
}

.teacher-todo-list em {
  color: var(--teacher-primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.teacher-todo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid;
  border-radius: 11px;
  font-weight: 900;
}

.teacher-todo-icon.is-pending {
  border-color: var(--status-pending-border);
  color: var(--status-pending-fg);
  background: var(--status-pending-bg);
}

.teacher-todo-icon.is-info {
  border-color: var(--status-info-border);
  color: var(--status-info-fg);
  background: var(--status-info-bg);
}

.teacher-form-layout {
  align-items: start;
}

.teacher-form,
.teacher-boundary-card,
.teacher-form-result,
.teacher-records-card {
  border: 1px solid var(--teacher-border);
}

.teacher-form-heading {
  margin-bottom: 18px;
}

.teacher-form-heading h2,
.teacher-boundary-card h2 {
  margin: 5px 0 7px;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
}

.teacher-form-heading p,
.teacher-boundary-card p,
.teacher-form-result p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.teacher-boundary-card,
.teacher-form-result {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.teacher-boundary-card ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 24px;
}

.teacher-boundary-card li {
  padding-left: 5px;
}

.teacher-boundary-card li strong,
.teacher-boundary-card li small {
  display: block;
}

.teacher-boundary-card li small {
  margin-top: 3px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.teacher-form-result {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  background: var(--status-success-bg);
}

.teacher-form-result > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--status-success-fg);
  color: #fff;
  font-weight: 900;
}

.teacher-form-result strong,
.teacher-form-result small {
  display: block;
}

.teacher-form-result small {
  margin: 4px 0 8px;
  color: var(--teacher-primary);
}

.teacher-records-card {
  margin-top: 20px;
}

.teacher-record-list {
  display: grid;
  gap: 10px;
}

.teacher-record-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(180px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 58, 53, 0.1);
  border-radius: 14px;
  background: #fffdf8;
}

.teacher-record-value {
  text-align: right;
}

.teacher-record-value strong,
.teacher-record-value small {
  display: block;
}

.teacher-record-value strong {
  font-size: 13px;
}

.teacher-record-value small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .teacher-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-praise-workbench {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  }

  .teacher-roster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .teacher-result-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .teacher-praise-workbench,
  .teacher-home-secondary {
    grid-template-columns: 1fr;
  }

  .teacher-praise-composer {
    position: static;
  }

  .teacher-roster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .teacher-roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-result-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-result-foot > span {
    max-width: 100%;
  }

  .teacher-result-foot > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .teacher-record-row {
    grid-template-columns: auto 1fr auto;
  }

  .teacher-record-value {
    grid-column: 2 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .teacher-mock-bar {
    align-items: flex-start;
  }

  .teacher-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .teacher-overview-metric {
    min-height: 104px;
    padding: 14px;
  }

  .teacher-roster-panel,
  .teacher-praise-composer,
  .teacher-result-panel,
  .teacher-goal-card,
  .teacher-todo-card {
    padding: 16px;
    border-radius: 19px;
  }

  .teacher-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-mode-switch {
    width: 100%;
  }

  .teacher-mode-switch button {
    min-height: 44px;
  }

  .teacher-roster-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-search {
    width: 100%;
  }

  .teacher-batch-tools {
    justify-content: flex-end;
  }

  .teacher-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-child-card {
    min-height: 150px;
  }

  .teacher-selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .teacher-rule-grid {
    grid-template-columns: 1fr;
  }

  .teacher-result-head,
  .teacher-result-title {
    align-items: flex-start;
  }

  .teacher-result-head h2 {
    font-size: 20px;
  }

  .teacher-result-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-result-row em {
    grid-column: 2;
    justify-self: start;
  }

  .teacher-result-foot > div {
    grid-template-columns: 1fr;
  }

  .teacher-result-foot button {
    width: 100%;
  }

  .teacher-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-record-row {
    grid-template-columns: auto 1fr;
  }

  .teacher-record-row > .tag {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 380px) {
  .teacher-overview-strip {
    grid-template-columns: 1fr;
  }

  .teacher-overview-metric {
    min-height: 92px;
  }

  .teacher-child-card {
    min-height: 146px;
  }

  .teacher-result-title {
    gap: 10px;
  }

  .teacher-result-mark {
    width: 42px;
    height: 42px;
  }

  .teacher-todo-list button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .teacher-todo-list em {
    grid-column: 2;
  }
}

@media (hover: none), (pointer: coarse) {
  .teacher-overview-metric:hover,
  .teacher-child-card:hover,
  .teacher-submit-button:hover:not(:disabled) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-overview-metric,
  .teacher-child-card,
  .teacher-submit-button,
  .teacher-goal-track span {
    transition: none;
  }
}
