.classroom-page {
  display: block;
  height: auto;
  min-height: 100vh;
}
.classroom-main {
  max-width: 85rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.classroom-main a,
#studentWork a {
  color: #9cbcff;
}
.classroom-header,
.classroom-toolbar,
#teacherLogin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.classroom-header {
  justify-content: space-between;
  border-bottom: 1px solid #384659;
  margin-bottom: 1rem;
}
.classroom-header h1 {
  margin: 0.35rem 0 0.85rem;
}
.teacher-workspace,
.replay-columns {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 3fr);
  gap: 1rem;
}
.replay-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.classroom-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #384659;
  border-radius: 0.65rem;
  background: #161e29;
}
.classroom-panel h2 {
  margin-top: 0;
}
#submissionList {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
#submissionList button {
  width: 100%;
  text-align: start;
  overflow-wrap: anywhere;
}
#replaySeek {
  width: 100%;
  margin: 0.75rem 0 0;
}
#replayViewSwitch {
  display: none;
}
#replaySource,
#replayPreview {
  min-height: 12rem;
  max-height: 28rem;
  margin: 0;
  padding: 0.65rem;
  overflow: auto;
  background: #10141b;
  border-radius: 0.45rem;
}
#replaySource {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#replayPreview iframe {
  display: block;
  width: 100%;
  height: 23rem;
  border: 0;
  background: #e8edf3;
}
#studentAssignments > * + * {
  margin-block-start: 0.6rem;
}
#recordingStatus {
  color: #ffc78c;
}
.new-assignment-field {
  display: grid;
  gap: 0.35rem;
}
#newAssignmentHint,
#attachRecordingHint {
  color: #c3ceda;
  font-size: 0.875rem;
}
@media (max-width: 800px) {
  .teacher-workspace,
  .replay-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  #replayControls {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.5rem 0;
    background: #161e29;
    border-bottom: 1px solid #384659;
  }
  #replayControls button {
    min-height: 44px;
  }
  #replayStep {
    margin: 0.35rem 0 0.5rem;
  }
  #replayViewSwitch {
    display: flex;
    gap: 0.4rem;
  }
  #replayColumns[data-view='graphic'] #replaySourcePanel,
  #replayColumns[data-view='source'] #replayGraphicPanel {
    display: none;
  }
  #replayPreview iframe,
  #replaySource {
    height: min(23rem, 49dvh);
  }
}
