.classroom-shell.is-teacher-dashboard {
  --teacher-violet: #6756e8;
  --teacher-violet-soft: rgba(103, 86, 232, 0.1);
  --teacher-green: #087f69;
  --teacher-green-soft: rgba(8, 127, 105, 0.1);
  --teacher-amber: #a8640d;
  --teacher-amber-soft: rgba(168, 100, 13, 0.1);
  padding: 32px clamp(20px, 3vw, 48px) 64px;
}

.classroom-shell.is-teacher-dashboard .classroom-hero,
.classroom-shell.is-teacher-dashboard .classroom-create,
.classroom-shell.is-teacher-dashboard .classroom-list-section,
.classroom-shell.is-teacher-dashboard .teacher-workbench {
  width: min(1440px, 100%);
  max-width: none;
}

.classroom-shell.is-teacher-dashboard .classroom-hero {
  align-items: center;
  margin-bottom: 20px;
}

.classroom-shell.is-teacher-dashboard .classroom-hero h1 {
  max-width: 720px;
  margin: 8px 0 10px;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
}

.classroom-shell.is-teacher-dashboard .classroom-hero p {
  max-width: 700px;
  margin: 0;
  font-size: 17px;
}

.classroom-shell.is-teacher-dashboard #refreshClassrooms {
  min-height: 46px;
  padding-inline: 18px;
}

.classroom-shell.is-teacher-dashboard .classroom-create,
.classroom-shell.is-teacher-dashboard .classroom-card {
  border-radius: 8px;
}

.classroom-shell.is-teacher-dashboard .classroom-create {
  margin-bottom: 22px;
  padding: 18px;
}

.classroom-shell.is-teacher-dashboard .classroom-list-section {
  margin-bottom: 28px;
}

.classroom-shell.is-teacher-dashboard .classroom-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}

.classroom-shell.is-teacher-dashboard .classroom-card {
  min-height: 174px;
  padding: 20px;
}

.teacher-workbench {
  margin: 0 auto;
}

.teacher-workbench-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.teacher-workbench-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
  line-height: 1.15;
}

.teacher-workbench-heading p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

.teacher-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 19, 26, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.teacher-overview-metric {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 17px 20px;
}

.teacher-overview-metric + .teacher-overview-metric {
  border-left: 1px solid var(--border);
}

.teacher-metric-icon,
.teacher-panel-icon,
.teacher-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--teacher-violet);
  background: var(--teacher-violet-soft);
}

.teacher-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.teacher-metric-icon.green {
  color: var(--teacher-green);
  background: var(--teacher-green-soft);
}

.teacher-metric-icon.amber {
  color: var(--teacher-amber);
  background: var(--teacher-amber-soft);
}

.teacher-metric-icon .profile-ui-icon,
.teacher-panel-icon .profile-ui-icon,
.teacher-tool-icon .profile-ui-icon {
  width: 23px;
  height: 23px;
}

.teacher-overview-metric strong {
  display: block;
  margin-bottom: 2px;
  font-size: 25px;
  line-height: 1;
}

.teacher-overview-metric span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.teacher-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.teacher-workbench-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 19, 26, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.teacher-continue-panel,
.teacher-readiness-panel {
  padding: 20px;
}

.teacher-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.teacher-panel-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.teacher-panel-heading h3 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.2;
}

.teacher-continue-class {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.teacher-continue-class h4 {
  overflow: hidden;
  margin: 5px 0 7px;
  font-size: 24px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-continue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-continue-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.teacher-continue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.teacher-action-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.teacher-action-button:hover {
  border-color: rgba(103, 86, 232, 0.5);
  background: var(--teacher-violet-soft);
}

.teacher-action-button.primary {
  border-color: var(--teacher-violet);
  color: #fff;
  background: var(--teacher-violet);
}

.teacher-action-button.primary:hover {
  background: #5948d8;
  box-shadow: 0 8px 20px rgba(103, 86, 232, 0.22);
}

.teacher-readiness-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.teacher-readiness-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.teacher-readiness-item + .teacher-readiness-item {
  border-top: 1px solid var(--border);
}

.teacher-readiness-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--teacher-amber);
  background: var(--teacher-amber-soft);
}

.teacher-readiness-item.done .teacher-readiness-state {
  color: var(--teacher-green);
  background: var(--teacher-green-soft);
}

.teacher-readiness-state .profile-ui-icon {
  width: 16px;
  height: 16px;
}

.teacher-readiness-copy strong,
.teacher-readiness-copy span {
  display: block;
}

.teacher-readiness-copy strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.teacher-readiness-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.teacher-tools-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--teacher-tool-count, 4), minmax(0, 1fr));
  overflow: hidden;
}

.teacher-tool {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px 18px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.teacher-tool + .teacher-tool {
  border-left: 1px solid var(--border);
}

.teacher-tool:hover {
  background: var(--teacher-violet-soft);
}

.teacher-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.teacher-tool strong,
.teacher-tool span {
  display: block;
}

.teacher-tool strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.teacher-tool span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-action-button:focus-visible,
.teacher-tool:focus-visible {
  outline: 3px solid rgba(103, 86, 232, 0.32);
  outline-offset: 2px;
}

html[data-theme="day"] .teacher-overview-strip,
html[data-theme="day"] .teacher-workbench-panel {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(24, 36, 64, 0.07);
}

html[data-theme="day"] .teacher-action-button,
html[data-theme="day"] .teacher-tool {
  color: #172033;
}

@media (max-width: 980px) {
  .teacher-workbench-grid {
    grid-template-columns: 1fr;
  }

  .teacher-tools-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-tool:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .teacher-tool:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .classroom-shell.is-teacher-dashboard {
    padding: 20px 14px 48px;
  }

  .classroom-shell.is-teacher-dashboard .classroom-hero h1 {
    font-size: clamp(40px, 13vw, 52px);
  }

  .teacher-workbench-heading,
  .teacher-continue-class {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-workbench-heading {
    display: block;
  }

  .teacher-workbench-heading p {
    margin-top: 7px;
    text-align: left;
  }

  .teacher-overview-strip {
    grid-template-columns: 1fr;
  }

  .teacher-overview-metric + .teacher-overview-metric {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .teacher-continue-class {
    display: flex;
  }

  .teacher-continue-class h4 {
    white-space: normal;
  }

  .teacher-continue-actions {
    justify-content: stretch;
  }

  .teacher-continue-actions .teacher-action-button {
    flex: 1 1 140px;
  }

  .teacher-tools-panel {
    grid-template-columns: 1fr;
  }

  .teacher-tool + .teacher-tool,
  .teacher-tool:nth-child(3),
  .teacher-tool:nth-child(4) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-action-button,
  .teacher-tool {
    transition: none;
  }
}
