.teacher-classroom-session,
.student-classroom-session {
  margin: 18px 0;
}

.classroom-create-card,
.classroom-teacher-card,
.classroom-student-card {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.classroom-create-card,
.classroom-teacher-card {
  padding: 24px;
}

.classroom-session-head,
.classroom-student-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.classroom-session-head h2,
.classroom-student-head h2 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
}

.classroom-session-head p:last-child,
.classroom-student-head span {
  display: block;
  margin-top: 7px;
  color: #526173;
  line-height: 1.5;
}

.classroom-live-chip,
.classroom-duration,
.classroom-student-head > b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: #166534;
  background: #dcfce7;
  font-size: 12px;
  font-weight: 900;
}

.classroom-duration {
  color: #1e40af;
  background: #dbeafe;
}

.classroom-stage-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.classroom-stage-rail li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  color: #64748b;
  text-align: center;
}

.classroom-stage-rail li::before {
  position: absolute;
  top: 13px;
  right: 50%;
  left: -50%;
  z-index: 0;
  height: 2px;
  background: #e2e8f0;
  content: "";
}

.classroom-stage-rail li:first-child::before {
  display: none;
}

.classroom-stage-rail span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.classroom-stage-rail small {
  overflow: hidden;
  width: 100%;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.classroom-stage-rail .is-current span {
  border-color: #1e40af;
  color: #fff;
  background: #1e40af;
  box-shadow: 0 0 0 4px #dbeafe;
}

.classroom-stage-rail .is-current small {
  color: #1e40af;
}

.classroom-stage-rail .is-done span {
  border-color: #16a34a;
  color: #fff;
  background: #16a34a;
}

.classroom-stage-rail .is-done::before,
.classroom-stage-rail .is-current::before {
  background: #86efac;
}

.classroom-create-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(260px, 1.35fr) auto;
  gap: 12px;
  align-items: end;
}

.classroom-create-form label,
.classroom-exit-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.classroom-create-form select,
.classroom-exit-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 10px 12px;
  color: #111827;
  background: #fff;
}

.classroom-template-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  color: #526173;
  font-size: 12px;
  font-weight: 750;
}

.classroom-template-preview span::before {
  margin-right: 6px;
  color: #16a34a;
  content: "✓";
}

.classroom-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}

.classroom-current-stage {
  display: grid;
  gap: 5px;
}

.classroom-current-stage > span {
  color: #1e40af;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.classroom-current-stage strong {
  font-size: 22px;
}

.classroom-current-stage p {
  color: #526173;
  line-height: 1.5;
}

.classroom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 390px;
}

.classroom-text-button {
  border: 0;
  padding: 8px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.classroom-live-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.classroom-live-summary div {
  display: grid;
  gap: 2px;
  padding: 14px;
  background: #f8fafc;
  text-align: center;
}

.classroom-live-summary strong {
  font-size: 24px;
}

.classroom-live-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.classroom-roster {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.classroom-roster summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.classroom-roster summary span {
  color: #526173;
  font-size: 12px;
}

.classroom-participant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 380px;
  margin-top: 14px;
  overflow: auto;
}

.classroom-participant-list article {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.classroom-participant-list article > div {
  display: grid;
  min-width: 0;
}

.classroom-work-review {
  grid-column: 2 / -1;
  min-width: 0;
  font-size: 12px;
}

.classroom-work-review summary { cursor: pointer; color: #15615c; font-weight: 750; }
.classroom-work-review > div { border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 8px; }
.classroom-work-review strong,
.classroom-work-review p { overflow-wrap: anywhere; white-space: normal; }
.classroom-work-review p { margin: 5px 0 0; line-height: 1.5; }

.classroom-participant-list strong,
.classroom-participant-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classroom-participant-list small {
  margin-top: 2px;
  color: #64748b;
  font-size: 10px;
}

.classroom-presence {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.classroom-presence.is-ready { background: #16a34a; }
.classroom-presence.is-help { background: #dc2626; }
.classroom-presence.is-offline { background: #94a3b8; }
.classroom-presence.is-away { background: #ea580c; }

.classroom-status {
  border-radius: 999px;
  padding: 4px 7px;
  color: #92400e;
  background: #fef3c7;
  font-size: 9px;
}

.classroom-status.is-ready { color: #166534; background: #dcfce7; }
.classroom-status.is-help { color: #991b1b; background: #fee2e2; }
.classroom-status.is-offline { color: #475569; background: #f1f5f9; }
.classroom-status.is-away { color: #9a3412; background: #ffedd5; }

.classroom-select-message {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 16px 18px;
  color: #526173;
  background: #fff;
}

.classroom-select-message strong { color: #111827; }

.classroom-teacher-card.is-paused,
.classroom-student-card.is-paused {
  border-color: #f59e0b;
}

.classroom-teacher-card.is-paused .classroom-live-chip,
.classroom-student-card.is-paused .classroom-student-head > b {
  color: #92400e;
  background: #fef3c7;
}

.classroom-student-card {
  overflow: hidden;
  border-top: 5px solid #1e40af;
}

.classroom-student-head {
  padding: 20px 22px 4px;
}

.classroom-student-card > .classroom-stage-rail {
  margin-right: 22px;
  margin-left: 22px;
}

.classroom-student-task {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  padding: 24px 22px;
  background: #f8fafc;
}

.classroom-student-task > span {
  color: #1e40af;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.classroom-student-task h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
}

.classroom-student-task > p {
  max-width: 700px;
  color: #526173;
  font-size: 16px;
  line-height: 1.6;
}

.classroom-student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.classroom-waiting {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  align-items: center;
  margin-top: 6px;
  border-left: 4px solid #f59e0b;
  padding: 13px 15px;
  color: #78350f;
  background: #fffbeb;
}

.classroom-waiting.is-done {
  border-left-color: #16a34a;
  color: #14532d;
  background: #f0fdf4;
}

.classroom-waiting span { color: inherit; }

.classroom-exit-form {
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.classroom-exit-form textarea {
  min-height: 84px;
  resize: vertical;
}

.classroom-exit-form .button { justify-self: start; }

.classroom-workbook {
  display: grid;
  gap: 12px;
  width: 100%;
  border-top: 1px solid #cbd5e1;
  margin-top: 8px;
  padding-top: 18px;
}

.classroom-workbook-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.classroom-workbook-head strong { font-size: 18px; }
.classroom-workbook-head span { color: #15615c; font-size: 13px; font-weight: 750; }
.classroom-work-choice,
.classroom-work-form label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 750; }
.classroom-work-choice select,
.classroom-work-form textarea {
  width: 100%;
  max-width: 720px;
  border: 1px solid #a8bbc6;
  border-radius: 7px;
  padding: 10px 12px;
  color: #111827;
  background: #fff;
  font: inherit;
}
.classroom-workbook > p { max-width: 720px; font-size: 16px; line-height: 1.5; }
.classroom-work-form { display: grid; justify-items: start; gap: 10px; }
.classroom-work-form label { width: 100%; }
.classroom-work-form textarea { min-height: 110px; resize: vertical; font-weight: 400; }

.classroom-module-path {
  display: grid;
  justify-items: start;
  gap: 10px;
  border-top: 1px solid #cbd5e1;
  margin-top: 8px;
  padding-top: 18px;
  width: 100%;
}

.classroom-module-path > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.classroom-module-path > div span,
.classroom-module-path small { color: #526173; }

.classroom-module-path details { width: 100%; }
.classroom-module-path summary { cursor: pointer; font-weight: 750; }
.classroom-module-path ol { margin: 8px 0 0; padding-left: 22px; }
.classroom-module-path li { padding: 3px 0; }
.classroom-module-path li button {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  border: 0;
  padding: 8px;
  width: 100%;
  color: #102a43;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.classroom-module-path li button:hover,
.classroom-module-path li button[aria-current="step"] { background: #e8f3f1; }

.classroom-plan { margin: 10px 0 16px; }
.classroom-plan summary { cursor: pointer; font-weight: 750; }
.classroom-plan ol { margin: 10px 0; padding-left: 24px; }
.classroom-plan li { padding: 4px 0; }
.classroom-plan small { margin-left: 6px; color: #526173; }

.classroom-session-active #masteryToday,
.classroom-session-active #studentCompass,
.classroom-session-active .student-lab-section,
.classroom-session-active .premium-panel,
.classroom-session-active .student-drawer:not(.student-lab-section):not(.premium-panel):not(.student-course-drawer) {
  display: none !important;
}

.classroom-session-active .student-follow-notice {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .classroom-create-card,
  .classroom-teacher-card { padding: 17px; }

  .classroom-create-form,
  .classroom-control-row { grid-template-columns: 1fr; }

  .classroom-create-form .button { width: 100%; }

  .classroom-actions { justify-content: stretch; max-width: none; }
  .classroom-actions .button { flex: 1 1 170px; }

  .classroom-participant-list { grid-template-columns: 1fr; }

  .classroom-stage-rail small { display: none; }

  .classroom-stage-rail { gap: 2px; }

  .classroom-stage-rail span {
    width: 25px;
    height: 25px;
  }

  .classroom-stage-rail li::before { top: 12px; }

  .classroom-live-summary strong { font-size: 20px; }
  .classroom-live-summary span { font-size: 9px; }

  .classroom-student-head { padding: 17px 17px 2px; }
  .classroom-student-card > .classroom-stage-rail { margin-right: 17px; margin-left: 17px; }
  .classroom-student-task { padding: 20px 17px; }
  .classroom-student-task h3 { font-size: 24px; }
  .classroom-student-actions { display: grid; }
  .classroom-student-actions .button { width: 100%; }
  .classroom-work-form .button { width: 100%; }
}

@media (max-width: 480px) {
  .classroom-session-head,
  .classroom-student-head { gap: 10px; }

  .classroom-session-head h2,
  .classroom-student-head h2 { font-size: 20px; }

  .classroom-live-summary div { padding: 11px 5px; }

  .classroom-select-message {
    display: grid;
  }
}
