/* Classroom visual layer. Existing actions, iframe and annotation coordinates stay intact.
 * Repeated shell scope outranks Vue's asynchronously loaded per-node scoped attributes. */
.teaching-classroom-page {
  padding: 16px 16px 40px !important;
  background: #fff !important;
  color: #24415f;
  font-size: 14px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell {
  gap: 24px;
  min-width: 0;
  max-width: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-header {
  min-height: 96px;
  padding: 12px 24px;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid #e4edf6;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-header-main {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px 16px;
  width: 100%;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-title {
  color: #17324d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-subtitle {
  margin: 0;
  color: #60758b;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .header-student-block {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #60758b;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .header-student-block span {
  font-size: 13px;
  opacity: 1;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .header-student-block strong {
  margin: 0;
  color: #2463d4;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-actions {
  width: 240px;
  min-width: 0;
  flex: 0 0 240px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .unit-select {
  width: 100%;
  min-width: 0;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .unit-select .ant-select-selection {
  border-color: #c9ddf1;
  background: #f8fbff;
  color: #24415f;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-back-button {
  color: #2463d4 !important;
  border-color: transparent !important;
  background: transparent !important;
  border-radius: 8px !important;
  transform: none;
  backdrop-filter: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-eyebrow {
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-studio-workbench {
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #f6f8fc;
  box-shadow: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-player-shell {
  height: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 14px;
  background: #f6f8fc;
  box-shadow: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-toolbar {
  height: auto;
  min-height: 56px;
  flex: 0 0 auto;
  gap: 12px;
  padding: 12px 16px;
  border-color: #e4edf6;
  background: #f6f8fc;
  color: #24415f;
  font-size: 14px;
  font-weight: 600;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-player-title {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions .ant-btn {
  height: 34px !important;
  min-height: 34px !important;
  color: #2463d4 !important;
  border-color: transparent !important;
  background: #edf4ff !important;
  box-shadow: none !important;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions .ant-btn:hover:not(:disabled),
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions .ant-btn-primary {
  color: #fff !important;
  background: #2463d4 !important;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions .ant-btn:disabled {
  color: #8190a0 !important;
  background: #f4f6f8 !important;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-player-viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  width: calc(100% - 32px);
  max-width: none;
  margin: 16px auto;
  padding: 0;
  max-height: none;
  background: #f6f8fc;
}
/* Documents need a reading surface, not the Scratch stage's aspect ratio. */
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-player-viewport:has(> .is-doc-preview) {
  aspect-ratio: auto;
  height: max(560px, calc(100vh - 240px));
  min-height: 560px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: #f6f8fc;
  box-shadow: 0 0 0 1px #e4edf6;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-frame.is-doc-preview {
  aspect-ratio: auto;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .stage-footer-page {
  color: #60758b;
  background: #f6f8fc;
  padding: 0 16px 12px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-tool-card {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section + .tool-section {
  margin-top: 20px;
  padding-top: 4px;
  border-top: 0;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section-heading {
  color: #355a80;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section-heading::before {
  display: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section-heading i {
  background: transparent;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action {
  --tool-ink: #2463d4;
  --tool-fill: #edf4ff;
  --tool-line: #d6e6fa;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: var(--tool-ink) !important;
  background: var(--tool-fill) !important;
  box-shadow: none !important;
  transition: border-color .16s ease, background-color .16s ease;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section:nth-child(2) .tool-action {
  --tool-ink: #157d78;
  --tool-fill: #eaf8f5;
  --tool-line: #cfece5;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-section:nth-child(3) .tool-action {
  --tool-ink: #6c52ae;
  --tool-fill: #f2efff;
  --tool-line: #e5ddf6;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action .anticon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  font-size: 18px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action span {
  min-width: 0;
  width: auto;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action:hover:not(:disabled) {
  border-color: var(--tool-ink) !important;
  background: #fff !important;
  transform: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action:disabled {
  color: #8190a0 !important;
  background: #f4f6f8 !important;
  border-color: #e3e8ef !important;
  opacity: 1;
  transform: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .live-create-button {
  height: 44px;
  margin-top: 24px;
  color: #fff;
  border: 1px solid #2463d4;
  background: #2463d4;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .live-create-button:hover:not(:disabled) {
  border-color: #194fae;
  background: #194fae;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .live-create-button:disabled {
  color: #8594a5;
  border-color: #e3e8ef;
  background: #f3f5f8;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .live-create-button.is-started:disabled {
  color: #16746f;
  border-color: #cfece5;
  background: #edf9f6;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-attendance-strip {
  margin-top: 24px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-strip-kicker,
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-strip-head strong {
  font-size: 14px;
  color: #355a80;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-student-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-student-card {
  flex: 0 1 92px;
  min-height: 84px;
  padding: 10px 8px;
  border-color: transparent !important;
  background: transparent !important;
  color: #60758b !important;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-student-card.is-signed {
  border-color: transparent !important;
  background: #f0faf6 !important;
  color: #16746f !important;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-student-card .ant-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  background: #e1edff;
  color: #5481b7;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-student-card > span:not(.ant-avatar) {
  font-size: 13px;
  line-height: 20px;
}
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell button:focus-visible,
.teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .ant-select-selection:focus-visible {
  outline: 2px solid #2463d4;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-header {
    flex-wrap: wrap;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-actions {
    flex: 1 1 240px;
    max-width: 100%;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-studio-workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-tool-card {
    position: static;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .teaching-classroom-page {
    padding: 16px 12px 28px !important;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-header {
    padding: 16px;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-header-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-title,
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-subtitle,
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .header-student-block {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .classroom-eyebrow {
    justify-self: start;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-player-viewport {
    width: calc(100% - 24px);
    margin: 12px auto;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-stage-actions {
    flex: 1 1 100%;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-strip-head,
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .attendance-strip-head > div {
    flex-wrap: wrap;
    gap: 10px;
  }
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .lesson-tool-card {
    padding: 16px;
  }
}
@media (max-width: 380px) {
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .teaching-classroom-page .classroom-shell.classroom-shell.classroom-shell .tool-action {
    transition: none;
  }
}
