/* ════════════════════════════════════════════════════════════════
   Teacher LMS dashboard — screen structure & visual design only.
   Fixed 1920×1080 canvas (scaled by #game-root --game-scale, same
   convention as other stages). Only the main content scrolls.
   All selectors are prefixed with `teacher-lms-` to avoid leaking
   into other scenes. Legacy body-level rule stays in
   teacher-dashboard.css.
   ════════════════════════════════════════════════════════════════ */

.teacher-dashboard-scene.teacher-lms {
  --lms-bg: #eef1f7;
  --lms-panel: #ffffff;
  --lms-border: #e2e7f0;
  --lms-text: #1c2b45;
  --lms-muted: #6b7890;
  --lms-blue: #3062d4;
  --lms-blue-soft: #e8effd;
  --lms-green: #2c9463;
  --lms-green-soft: #e4f5ec;
  --lms-orange: #c9791f;
  --lms-orange-soft: #fbeedd;
  --lms-gray-soft: #eef0f4;
  --lms-sidebar-bg: #131c30;
  --lms-sidebar-muted: #93a0bd;
  --lms-radius: 12px;
  --lms-shadow: 0 8px 22px rgba(24, 35, 60, 0.06);

  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: stretch;
  color: var(--lms-text);
  background: var(--lms-bg);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* ─────────────────────────── sidebar ─────────────────────────── */

.teacher-lms-sidebar {
  flex: 0 0 220px;
  width: 220px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--lms-sidebar-bg);
  color: #e7ebf5;
  padding: 26px 16px 20px;
}

.teacher-lms-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.teacher-lms-brand-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, #3f79f0, #2650b8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.teacher-lms-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.teacher-lms-brand-text strong {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.teacher-lms-brand-text span {
  font-size: 12px;
  color: var(--lms-sidebar-muted);
}

.teacher-lms-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.teacher-lms-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aab5cc;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.teacher-lms-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #dfe5f3;
}

.teacher-lms-nav-item.active {
  background: var(--lms-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(48, 98, 212, 0.35);
}

.teacher-lms-nav-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.teacher-lms-nav-icon svg {
  width: 100%;
  height: 100%;
}

.teacher-lms-sidebar-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teacher-lms-judge-note {
  margin: 0 0 6px;
  padding: 0 14px;
  color: #6f7c98;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.teacher-lms-reviewer-mode-note {
  margin: 6px 0 0;
  color: #5b6b88;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.teacher-lms-footer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aab5cc;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.teacher-lms-footer-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ─────────────────────────── main area ───────────────────────── */

.teacher-lms-main {
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 34px 44px 40px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--lms-bg);
}

.teacher-lms-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.teacher-lms-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.teacher-lms-kicker {
  margin: 0 0 6px;
  color: var(--lms-blue);
  font-size: 14px;
  font-weight: 800;
}

.teacher-lms-page-header h1 {
  margin: 0;
  color: var(--lms-text);
  font-size: 32px;
  font-weight: 900;
}

.teacher-lms-page-desc {
  margin: 8px 0 0;
  color: var(--lms-muted);
  font-size: 16px;
  font-weight: 600;
  max-width: 640px;
}

.teacher-lms-page-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

/* ─────────────────────────── buttons ─────────────────────────── */

.teacher-lms-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.teacher-lms-btn svg {
  width: 18px;
  height: 18px;
}

.teacher-lms-btn-primary {
  background: var(--lms-blue);
  border-color: var(--lms-blue);
  color: #fff;
}

.teacher-lms-btn-primary:hover {
  filter: brightness(1.05);
}

.teacher-lms-btn-outline {
  background: var(--lms-panel);
  border-color: var(--lms-border);
  color: var(--lms-text);
}

.teacher-lms-btn-outline:hover {
  border-color: var(--lms-blue);
  color: var(--lms-blue);
}

.teacher-lms-btn-ghost {
  height: 36px;
  padding: 0 14px;
  background: var(--lms-panel);
  border-color: var(--lms-border);
  color: var(--lms-blue);
  font-size: 13.5px;
}

.teacher-lms-btn-ghost:hover {
  background: var(--lms-blue-soft);
}

.teacher-lms-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.teacher-lms-btn[disabled]:hover {
  filter: none;
  border-color: var(--lms-border);
  color: var(--lms-text);
}

.teacher-lms-inline-btn {
  border: 0;
  background: transparent;
  color: var(--lms-blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ─────────────────────────── filter row ──────────────────────── */

.teacher-lms-filter-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 14px;
}

.teacher-lms-filter {
  display: grid;
  grid-template-rows: 20px 44px;
  gap: 7px;
  color: var(--lms-muted);
  font-size: 14px;
  font-weight: 800;
}

.teacher-lms-filter input,
.teacher-lms-filter select {
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  background: var(--lms-panel);
  color: var(--lms-text);
  font-size: 16px;
  padding: 0 14px;
  outline: none;
}

.teacher-lms-filter input:focus,
.teacher-lms-filter select:focus {
  border-color: var(--lms-blue);
  box-shadow: 0 0 0 3px rgba(48, 98, 212, 0.14);
}

/* ─────────────────────────── notices ─────────────────────────── */

.teacher-lms-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  padding: 14px 18px;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  background: var(--lms-panel);
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 700;
}

.teacher-lms-notice.is-error {
  border-color: rgba(191, 74, 74, 0.35);
  color: #b23f3f;
}

.teacher-lms-inline-empty {
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 700;
  padding: 18px 4px;
}

.teacher-lms-empty-row {
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 700;
  padding: 30px !important;
  text-align: center;
}

/* ─────────────────────────── summary cards ───────────────────── */

.teacher-lms-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.teacher-lms-summary-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.teacher-lms-summary-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 620px;
}

.teacher-lms-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  background: var(--lms-panel);
  box-shadow: var(--lms-shadow);
}

.teacher-lms-summary-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--lms-blue-soft);
  color: var(--lms-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-lms-summary-icon svg {
  width: 22px;
  height: 22px;
}

.teacher-lms-summary-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-lms-summary-body span {
  color: var(--lms-muted);
  font-size: 13.5px;
  font-weight: 800;
}

.teacher-lms-summary-body strong {
  color: var(--lms-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

/* ─────────────────────────── card / analysis grid ────────────── */

.teacher-lms-card {
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  background: var(--lms-panel);
  box-shadow: var(--lms-shadow);
}

.teacher-lms-card h3 {
  margin: 0 0 16px;
  color: var(--lms-text);
  font-size: 18px;
  font-weight: 900;
}

.teacher-lms-card-title {
  margin: 0 0 14px;
  color: var(--lms-text);
  font-size: 16px;
  font-weight: 900;
}

.teacher-lms-analysis-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.teacher-lms-analysis-grid .teacher-lms-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.teacher-lms-stage-progress-card .teacher-lms-stage-progress-list {
  flex: 1 1 auto;
}

/* stage progress rows (reused on Dashboard + 학습현황) */

.teacher-lms-stage-progress-list {
  display: flex;
  flex-direction: column;
}

.teacher-lms-stage-row {
  display: grid;
  grid-template-columns: 168px 1fr 88px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-stage-row:last-child {
  border-bottom: 0;
}

.teacher-lms-stage-row-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.teacher-lms-stage-row-label strong {
  font-size: 15px;
  color: var(--lms-text);
  font-weight: 800;
}

.teacher-lms-stage-row-label span {
  font-size: 12.5px;
  color: var(--lms-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-lms-stage-row-bar {
  height: 8px;
  border-radius: 8px;
  background: #e6eaf2;
  overflow: hidden;
}

.teacher-lms-stage-row-bar i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--lms-blue);
}

.teacher-lms-stage-row-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.teacher-lms-stage-row-meta b {
  font-size: 15px;
  color: var(--lms-text);
}

.teacher-lms-stage-row-meta span {
  font-size: 12.5px;
  color: var(--lms-muted);
  font-weight: 700;
}

/* empty state (cognitive placeholder, empty item table, etc.) */

.teacher-lms-empty-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 44px 20px;
  color: var(--lms-muted);
}

.teacher-lms-empty-state svg {
  width: 42px;
  height: 42px;
  color: #b7c0d4;
}

.teacher-lms-empty-state strong {
  color: var(--lms-text);
  font-size: 16px;
  font-weight: 900;
}

.teacher-lms-empty-state p {
  margin: 0;
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
}

.teacher-lms-empty-state-compact {
  padding: 20px 16px;
  min-height: 220px;
}

/* ─────────────────────────── chips ───────────────────────────── */

.teacher-lms-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 26px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-lms-chip.is-complete {
  color: var(--lms-green);
  background: var(--lms-green-soft);
}

.teacher-lms-chip.is-progress {
  color: var(--lms-blue);
  background: var(--lms-blue-soft);
}

.teacher-lms-chip.is-help {
  color: var(--lms-orange);
  background: var(--lms-orange-soft);
}

.teacher-lms-chip.is-idle,
.teacher-lms-chip.is-pending {
  color: var(--lms-muted);
  background: var(--lms-gray-soft);
}

/* ─────────────────────────── table (학생 관리) ─────────────────── */

.teacher-lms-table-card {
  padding: 0;
  overflow: hidden;
}

.teacher-lms-table-wrap {
  overflow-x: auto;
}

.teacher-lms-student-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.teacher-lms-student-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 48px;
  box-sizing: border-box;
  padding: 0 18px;
  border-bottom: 1px solid var(--lms-border);
  background: #f7f9fd;
  color: var(--lms-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.teacher-lms-student-table tbody td {
  height: 66px;
  box-sizing: border-box;
  padding: 0 18px;
  border-bottom: 1px solid var(--lms-border);
  color: var(--lms-text);
  font-size: 15px;
  white-space: nowrap;
}

.teacher-lms-student-row {
  cursor: pointer;
}

.teacher-lms-student-row:hover td {
  background: #f5f8fe;
}

.teacher-lms-student-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: normal;
}

.teacher-lms-student-cell strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--lms-text);
}

.teacher-lms-student-cell span {
  font-size: 12px;
  color: #9aa5ba;
}

.teacher-lms-table-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-lms-table-progress-bar {
  width: 96px;
  height: 7px;
  border-radius: 8px;
  background: #e6eaf2;
  overflow: hidden;
}

.teacher-lms-table-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--lms-blue);
}

.teacher-lms-table-progress span {
  font-size: 13px;
  font-weight: 800;
  color: var(--lms-text);
  width: 36px;
}

/* ─────────────────────────── student detail ──────────────────── */

.teacher-lms-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.teacher-lms-back-link svg {
  width: 16px;
  height: 16px;
}

.teacher-lms-back-link:hover {
  color: var(--lms-blue);
}

.teacher-lms-detail-title h1 {
  margin: 0;
  color: var(--lms-text);
  font-size: 28px;
  font-weight: 900;
}

.teacher-lms-detail-title p {
  margin: 6px 0 0;
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 700;
}

.teacher-lms-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-tab {
  padding: 10px 2px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--lms-muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.teacher-lms-tab:hover {
  color: var(--lms-text);
}

.teacher-lms-tab.active {
  color: var(--lms-text);
  border-bottom-color: var(--lms-blue);
}

.teacher-lms-tab-panel {
  padding-top: 4px;
}

.teacher-lms-summary-tab-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: start;
}

.teacher-lms-stage-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.teacher-lms-stage-mini-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  background: #f9fafd;
}

.teacher-lms-stage-mini-card strong {
  font-size: 14px;
  color: var(--lms-text);
  font-weight: 800;
}

.teacher-lms-session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.teacher-lms-session-item {
  display: grid;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  background: #f9fafd;
  color: var(--lms-text);
  text-align: left;
  cursor: pointer;
}

.teacher-lms-session-item:hover {
  background: var(--lms-blue-soft);
}

.teacher-lms-session-item.active {
  background: var(--lms-blue-soft);
  border-color: var(--lms-blue);
}

.teacher-lms-session-item strong {
  font-size: 15px;
}

.teacher-lms-session-item span,
.teacher-lms-session-item em {
  color: var(--lms-muted);
  font-size: 13px;
  font-style: normal;
}

/* stage record cards (스테이지 기록 tab) */

.teacher-lms-stage-record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.teacher-lms-stage-record-card {
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  background: #fbfcff;
}

.teacher-lms-stage-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-lms-stage-record-head strong {
  font-size: 16px;
  color: var(--lms-text);
  font-weight: 900;
}

.teacher-lms-stage-record-concept {
  margin: 8px 0 14px;
  color: var(--lms-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.teacher-lms-stage-record-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.teacher-lms-stage-record-meta dt {
  margin: 0;
  color: var(--lms-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.teacher-lms-stage-record-meta dd {
  margin: 3px 0 0;
  color: var(--lms-text);
  font-size: 14px;
  font-weight: 800;
}

/* items tab toolbar + shared event table */

.teacher-lms-items-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.teacher-lms-items-toolbar .teacher-lms-filter {
  width: 320px;
}

.teacher-lms-event-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.teacher-lms-event-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 40px;
  border-bottom: 1px solid var(--lms-border);
  background: #f7f9fd;
  color: var(--lms-muted);
  text-align: left;
  padding: 0 12px;
  white-space: nowrap;
}

.teacher-lms-event-table tbody td {
  height: 42px;
  border-bottom: 1px solid var(--lms-border);
  color: var(--lms-text);
  padding: 0 12px;
  white-space: nowrap;
}

.teacher-lms-event-table tbody tr.is-correct td {
  background: rgba(44, 148, 99, 0.045);
}

.teacher-lms-event-table tbody tr.is-wrong td {
  background: rgba(191, 74, 74, 0.05);
}

.teacher-lms-answer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 900;
}

.teacher-lms-answer-badge.correct {
  color: var(--lms-green);
  background: var(--lms-green-soft);
}

.teacher-lms-answer-badge.intermediate {
  min-width: 104px;
  color: var(--lms-orange);
  background: var(--lms-orange-soft);
}

.teacher-lms-answer-badge.wrong {
  color: #b23f3f;
  background: rgba(191, 74, 74, 0.12);
}

.teacher-lms-item-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
}

/* 요약 항목 사이 · 구분자 — 내부 ID 없이 한 줄로 읽히게 한다. */
.teacher-lms-item-summary > span::before {
  content: "·";
  margin-right: 10px;
  opacity: 0.55;
}

/* ─────────────────────────── 학습 현황 page ───────────────────── */

.teacher-lms-compare-list,
.teacher-lms-recent-list {
  display: flex;
  flex-direction: column;
}

.teacher-lms-compare-row {
  display: grid;
  grid-template-columns: 150px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-compare-row:last-child {
  border-bottom: 0;
}

.teacher-lms-compare-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--lms-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-lms-compare-bar {
  height: 7px;
  border-radius: 8px;
  background: #e6eaf2;
  overflow: hidden;
}

.teacher-lms-compare-bar i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--lms-blue);
}

.teacher-lms-compare-value {
  text-align: right;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--lms-muted);
}

.teacher-lms-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-recent-row:last-child {
  border-bottom: 0;
}

.teacher-lms-recent-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--lms-text);
  flex: 1 1 auto;
}

.teacher-lms-recent-date {
  font-size: 13px;
  color: var(--lms-muted);
  font-weight: 700;
}

/* ─────────────────────────── 인지요소 분석 page ─────────────────── */

.teacher-lms-cognitive-student-select {
  max-width: 320px;
  margin-bottom: 18px;
}

.teacher-lms-cognitive-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  width: 100%;
}

.teacher-lms-cognitive-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  align-items: start;
  gap: 12px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lms-border);
  width: 100%;
  box-sizing: border-box;
}

.teacher-lms-cognitive-row.has-status {
  grid-template-columns: minmax(280px, 1fr) auto;
}

.teacher-lms-cognitive-row:last-child {
  border-bottom: 0;
}

.teacher-lms-cognitive-info {
  min-width: 280px;
  flex-shrink: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.teacher-lms-cognitive-code {
  font-size: 13px;
  font-weight: 900;
  color: var(--lms-blue);
}

.teacher-lms-cognitive-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--lms-text);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: normal;
}

.teacher-lms-cognitive-stats {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lms-muted);
  word-break: keep-all;
  overflow-wrap: normal;
}

.teacher-lms-cognitive-stats-line + .teacher-lms-cognitive-stats-line {
  margin-top: 2px;
}

.teacher-lms-cognitive-rate {
  color: var(--lms-text);
  font-size: 15px;
  font-weight: 900;
}

.teacher-lms-cognitive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--lms-border);
}

.teacher-lms-cognitive-tools strong {
  color: var(--lms-text);
}

.teacher-lms-cognitive-status {
  flex-shrink: 0;
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .teacher-lms-cognitive-row,
  .teacher-lms-cognitive-row.has-status {
    grid-template-columns: 1fr;
  }

  .teacher-lms-cognitive-info {
    min-width: 0;
    width: 100%;
  }

  .teacher-lms-cognitive-status {
    justify-self: start;
  }
}

/* ─────────────────────────── cognitive mastery analysis ─────────── */

.teacher-lms-mastery-notice {
  padding: 15px 20px;
}

.teacher-lms-mastery-notice strong {
  margin-bottom: 3px;
  color: var(--lms-text);
  font-size: 16px;
  font-weight: 800;
}

.teacher-lms-mastery-notice p {
  color: #4d5d76;
  font-size: 14px;
  line-height: 1.6;
}

.teacher-lms-mastery-overview {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 22px;
  align-items: start;
}

.teacher-lms-mastery-chart-card,
.teacher-lms-mastery-summary-card,
.teacher-lms-mastery-priority-card,
.teacher-lms-mastery-detail-card {
  box-sizing: border-box;
}

.teacher-lms-mastery-chart-card {
  padding: 20px 22px;
}

.teacher-lms-mastery-chart-card h3,
.teacher-lms-mastery-summary-card h3,
.teacher-lms-mastery-priority-card h3,
.teacher-lms-mastery-details > h3 {
  margin: 0;
  color: var(--lms-text);
  font-size: 18px;
  font-weight: 800;
}

.teacher-lms-mastery-chart {
  margin-top: 12px;
}

.teacher-lms-mastery-chart-row {
  display: grid;
  grid-template-columns: minmax(170px, 200px) minmax(120px, 1fr) 72px 88px;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-mastery-chart-row:last-child {
  border-bottom: 0;
}

.teacher-lms-mastery-chart-name {
  color: var(--lms-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
}

.teacher-lms-mastery-bar-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.teacher-lms-mastery-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #98a4b5;
}

.is-mastered .teacher-lms-mastery-bar-fill,
.teacher-lms-mastery-detail-card.is-mastered .teacher-lms-mastery-bar-fill {
  background: #58a77b;
}

.is-needs-support .teacher-lms-mastery-bar-fill,
.teacher-lms-mastery-detail-card.is-needs-support .teacher-lms-mastery-bar-fill {
  background: #d59449;
}

.is-no-record .teacher-lms-mastery-bar-fill,
.teacher-lms-mastery-detail-card.is-no-record .teacher-lms-mastery-bar-fill {
  background: #aab3c0;
}

.teacher-lms-mastery-chart-rate {
  color: var(--lms-text);
  font-size: 17px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.teacher-lms-mastery-chart-row.is-no-record .teacher-lms-mastery-chart-rate {
  color: #667387;
  font-size: 14px;
}

.teacher-lms-mastery-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.teacher-lms-mastery-badge.is-mastered {
  border-color: #b9dec9;
  background: #eaf7ef;
  color: #2f7650;
}

.teacher-lms-mastery-badge.is-needs-support {
  border-color: #efd3ad;
  background: #fff4e5;
  color: #985e1f;
}

.teacher-lms-mastery-badge.is-no-record {
  border-color: #d9dee7;
  background: #f1f3f6;
  color: #667387;
}

.teacher-lms-mastery-side {
  display: grid;
  gap: 18px;
}

.teacher-lms-mastery-summary-card,
.teacher-lms-mastery-priority-card {
  padding: 20px;
}

.teacher-lms-mastery-summary-card dl,
.teacher-lms-mastery-detail-stats {
  margin: 12px 0 0;
}

.teacher-lms-mastery-summary-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-mastery-summary-card dl > div:last-child {
  border-bottom: 0;
}

.teacher-lms-mastery-summary-card dt {
  color: #4d5d76;
  font-size: 14px;
  font-weight: 700;
}

.teacher-lms-mastery-summary-card dd {
  margin: 0;
  color: var(--lms-text);
  font-size: 22px;
  font-weight: 900;
}

.teacher-lms-mastery-summary-card dd span {
  margin-left: 2px;
  font-size: 14px;
}

.teacher-lms-mastery-summary-card dd.is-mastered { color: #2f7650; }
.teacher-lms-mastery-summary-card dd.is-needs-support { color: #985e1f; }
.teacher-lms-mastery-summary-card dd.is-no-record { color: #667387; }

.teacher-lms-mastery-priority-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.teacher-lms-mastery-priority-card li {
  padding-left: 2px;
  color: var(--lms-text);
  font-size: 14px;
  font-weight: 700;
}

.teacher-lms-mastery-priority-card li::marker {
  color: var(--lms-blue);
  font-weight: 900;
}

.teacher-lms-mastery-priority-card li span {
  display: inline;
  line-height: 1.45;
  word-break: keep-all;
}

.teacher-lms-mastery-priority-card li strong {
  float: right;
  margin-left: 12px;
  color: #985e1f;
  font-size: 15px;
}

.teacher-lms-mastery-priority-card p {
  margin: 14px 0 0;
  color: #4d5d76;
  font-size: 14px;
  line-height: 1.6;
}

.teacher-lms-mastery-details {
  margin-top: 22px;
}

.teacher-lms-mastery-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.teacher-lms-mastery-detail-card {
  padding: 22px;
  border-color: var(--lms-border);
  box-shadow: 0 4px 14px rgba(39, 58, 91, 0.06);
}

.teacher-lms-mastery-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.teacher-lms-mastery-detail-card h4 {
  margin: 0;
  color: var(--lms-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.teacher-lms-mastery-detail-rate {
  margin-top: 16px;
  color: var(--lms-text);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.teacher-lms-mastery-detail-card.is-no-record .teacher-lms-mastery-detail-rate {
  color: #667387;
  font-size: 22px;
}

.teacher-lms-mastery-bar-small {
  height: 14px;
  margin-top: 10px;
}

.teacher-lms-mastery-no-record-copy {
  margin: 10px 0 0;
  color: #59677c;
  font-size: 14px;
  font-weight: 700;
}

.teacher-lms-mastery-detail-stats {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--lms-border);
}

.teacher-lms-mastery-detail-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.teacher-lms-mastery-detail-stats dt,
.teacher-lms-mastery-detail-stats dd {
  font-size: 14px;
  line-height: 1.45;
}

.teacher-lms-mastery-detail-stats dt {
  color: #59677c;
  font-weight: 700;
}

.teacher-lms-mastery-detail-stats dd {
  margin: 0;
  color: var(--lms-text);
  font-weight: 800;
}

@media (max-width: 1050px) {
  .teacher-lms-mastery-overview,
  .teacher-lms-mastery-detail-grid {
    grid-template-columns: 1fr;
  }

  .teacher-lms-mastery-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .teacher-lms-mastery-chart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 0;
  }

  .teacher-lms-mastery-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .teacher-lms-mastery-chart-rate {
    text-align: left;
  }

  .teacher-lms-mastery-chart-row > .teacher-lms-mastery-badge {
    grid-column: 2;
    grid-row: 1;
  }

  .teacher-lms-mastery-side {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────── 성적표·학습지 page ─────────────────── */

.teacher-lms-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.teacher-lms-report-card h3 {
  margin: 0 0 10px;
}

.teacher-lms-report-card p {
  margin: 0 0 14px;
  color: var(--lms-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.teacher-lms-report-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--lms-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ─────────────────────────── blocked / unauthorized shell ──────── */

.teacher-lms-blocked {
  align-items: center;
  justify-content: center;
}

.teacher-lms-blocked-card {
  box-sizing: border-box;
  width: 520px;
  padding: 40px 36px;
  border-radius: 16px;
  background: var(--lms-panel, #fff);
  border: 1px solid var(--lms-border, #e2e7f0);
  box-shadow: 0 20px 50px rgba(20, 30, 55, 0.16);
  text-align: center;
}

.teacher-lms-blocked-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--lms-text, #1c2b45);
}

.teacher-lms-blocked-card p {
  margin: 0 0 22px;
  color: var(--lms-muted, #6b7890);
  font-size: 15px;
  line-height: 1.6;
}

.teacher-lms-blocked-card .teacher-lms-btn {
  width: 100%;
  justify-content: center;
}

/* ─────────────────────────── student result tabs / errors ─────────── */

.teacher-lms-results-page {
  min-height: 0;
}

.teacher-lms-results-split {
  display: grid;
  grid-template-columns: clamp(270px, 19vw, 310px) minmax(0, 1fr);
  gap: 18px;
  height: clamp(640px, calc(100vh - 190px), 830px);
  min-height: 0;
}

.teacher-lms-result-student-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fbfcfe;
}

.teacher-lms-result-student-controls {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--lms-border);
  background: #fff;
}

.teacher-lms-result-student-controls h2 {
  margin: 0;
  color: var(--lms-text);
  font-size: 18px;
  font-weight: 900;
}

.teacher-lms-result-search {
  display: grid;
  gap: 6px;
  color: #59677c;
  font-size: 13px;
  font-weight: 800;
}

.teacher-lms-result-search input,
.teacher-lms-result-search select {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid var(--lms-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--lms-text);
  font-size: 14px;
}

.teacher-lms-result-search input:focus,
.teacher-lms-result-search select:focus {
  border-color: var(--lms-blue);
  box-shadow: 0 0 0 3px rgba(48, 98, 212, 0.12);
}

.teacher-lms-result-student-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.teacher-lms-result-student-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  padding: 14px 14px 14px 17px;
  border: 1px solid var(--lms-border);
  border-radius: 11px;
  background: #fff;
  color: var(--lms-text);
  text-align: left;
  cursor: pointer;
}

.teacher-lms-result-student-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.teacher-lms-result-student-card:hover {
  border-color: #bdcbed;
  background: #f8faff;
}

.teacher-lms-result-student-card:focus-visible {
  outline: 3px solid rgba(48, 98, 212, 0.2);
  outline-offset: 1px;
}

.teacher-lms-result-student-card.is-selected {
  border-color: #aabfeb;
  background: var(--lms-blue-soft);
}

.teacher-lms-result-student-card.is-selected::before {
  background: var(--lms-blue);
}

.teacher-lms-result-student-card strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.teacher-lms-result-student-card .teacher-lms-chip {
  grid-column: 1;
  justify-self: start;
  margin-top: 3px;
  font-size: 12.5px;
}

.teacher-lms-result-student-check {
  grid-column: 2;
  grid-row: 1;
  color: var(--lms-blue);
  font-size: 15px;
  font-weight: 900;
}

.teacher-lms-result-list-empty {
  padding: 28px 12px;
  color: #647188;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.teacher-lms-result-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  background: var(--lms-bg);
}

.teacher-lms-result-student-navigation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.teacher-lms-result-student-navigation > span {
  color: #69778c;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.teacher-lms-result-loading {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  background: #fff;
  color: #59677c;
  font-size: 14px;
  text-align: center;
}

.teacher-lms-result-loading-bar {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: #e9edf4;
}

.teacher-lms-result-loading-bar:nth-child(2) {
  width: 68%;
}

.teacher-lms-result-empty-state {
  min-height: 260px;
}

@media (max-width: 1200px) {
  .teacher-lms-results-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .teacher-lms-result-student-panel {
    max-height: 360px;
  }

  .teacher-lms-result-student-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-lms-result-detail-shell {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .teacher-lms-result-student-list {
    grid-template-columns: 1fr;
  }
}

.teacher-lms-student-result .teacher-lms-result-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.teacher-lms-student-result .teacher-lms-result-tabs {
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 9px;
  border: 1px solid var(--lms-border);
  border-radius: 11px;
  background: #fff;
}

.teacher-lms-student-result .teacher-lms-result-tabs .teacher-lms-tab {
  height: 42px;
  padding: 0 15px;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #f4f7fb;
  color: #27364d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.teacher-lms-student-result .teacher-lms-result-tabs .teacher-lms-tab:hover {
  border-color: #bcc9dc;
  background: #eaf0f8;
  color: var(--lms-text);
}

.teacher-lms-student-result .teacher-lms-result-tabs .teacher-lms-tab.active {
  border-color: var(--lms-blue);
  background: var(--lms-blue);
  color: #fff;
  box-shadow: 0 2px 6px rgba(48, 98, 212, 0.16);
}

.teacher-lms-student-result .teacher-lms-result-tabs .teacher-lms-tab:focus-visible {
  outline: 3px solid rgba(48, 98, 212, 0.24);
  outline-offset: 2px;
}

.teacher-lms-process-summary {
  margin-bottom: 16px;
}

.teacher-lms-process-card {
  overflow: hidden;
}

.teacher-lms-count-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: var(--lms-radius);
  background: var(--lms-panel);
  border: 1px solid var(--lms-border);
  color: var(--lms-muted);
  font-size: 13.5px;
  font-weight: 700;
}

.teacher-lms-manage-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-lms-muted-text {
  color: var(--lms-muted);
  font-size: 13.5px;
}

.teacher-lms-card-note {
  margin: 0 0 12px;
  color: var(--lms-muted);
  font-size: 13px;
  line-height: 1.5;
}

.teacher-lms-card-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--lms-muted);
  font-size: 12.5px;
}

.teacher-lms-overview-grid,
.teacher-lms-opinion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.teacher-lms-insight-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teacher-lms-insight-cols h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.teacher-lms-insight-cols ul,
.teacher-lms-recommend-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  font-size: 14px;
}

.teacher-lms-repeated-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teacher-lms-repeated-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--lms-border);
}

.teacher-lms-repeated-row:last-child {
  border-bottom: 0;
}

.teacher-lms-repeated-row strong {
  margin-right: 8px;
}

.teacher-lms-repeated-row em {
  font-style: normal;
  color: var(--lms-muted);
  font-size: 13px;
}

.teacher-lms-error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teacher-lms-error-card {
  padding: 16px 18px;
  border-radius: var(--lms-radius);
  border: 1px solid var(--lms-border);
  background: #fffaf5;
}

.teacher-lms-error-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.teacher-lms-error-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lms-text);
}

.teacher-lms-cognitive-notice {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--lms-radius);
  background: var(--lms-blue-soft);
  border: 1px solid #c9d8f8;
}

.teacher-lms-cognitive-notice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.teacher-lms-cognitive-notice p {
  margin: 0;
  color: var(--lms-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.teacher-lms-filter-chips {
  display: flex;
  gap: 6px;
}

.teacher-lms-chip-btn {
  border: 1px solid var(--lms-border);
  background: #fff;
  color: var(--lms-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.teacher-lms-chip-btn.active {
  background: var(--lms-blue-soft);
  border-color: #b7c9f3;
  color: var(--lms-blue);
}

.teacher-lms-memo {
  width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--lms-border);
  font: inherit;
  resize: vertical;
}

/* ─────────────────────────── worksheet split / A4 preview ───────── */

.teacher-lms-worksheet-split {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.teacher-lms-worksheet-config h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.teacher-lms-worksheet-config h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--lms-muted);
}

.teacher-lms-ws-block {
  margin: 0 0 14px;
}

.teacher-lms-ws-check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.teacher-lms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.4;
}

.teacher-lms-topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-lms-ws-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.teacher-lms-preview-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.teacher-lms-sheet-preview-frame {
  max-height: calc(1080px - 220px);
  overflow: auto;
  padding: 12px;
  background: #dfe5ef;
  border-radius: 10px;
}

.teacher-lms-sheet {
  box-sizing: border-box;
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  padding: 48px 52px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 10px 30px rgba(20, 30, 55, 0.12);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.teacher-lms-sheet-header {
  margin-bottom: 22px;
  border-bottom: 2px solid #222;
  padding-bottom: 14px;
}

.teacher-lms-sheet-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #666;
  font-weight: 800;
}

.teacher-lms-sheet-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.teacher-lms-sheet-header p,
.teacher-lms-sheet-goal p,
.teacher-lms-sheet-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.teacher-lms-sheet-note {
  margin-top: 8px !important;
  color: #8a5a12 !important;
}

.teacher-lms-sheet-goal,
.teacher-lms-sheet-section {
  margin-bottom: 18px;
}

.teacher-lms-sheet-goal h3,
.teacher-lms-sheet-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.teacher-lms-sheet-warn {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4e5;
  border: 1px solid #f0d2a0;
  font-size: 13px;
}

.teacher-lms-sheet-item {
  margin-bottom: 16px;
}

.teacher-lms-sheet-item-q {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.teacher-lms-sheet-item-space {
  height: 56px;
  border: 1px dashed #c9c9c9;
  border-radius: 6px;
  background: #fafafa;
}

.teacher-lms-sheet-empty-slot {
  color: #888;
  font-size: 13px;
}

.teacher-lms-sheet-check {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.teacher-lms-sheet-check li {
  margin-bottom: 8px;
  font-size: 14px;
}

.teacher-lms-sheet-answer-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
  font-size: 15px;
}

/* ─────────────────────────── print rules ─────────────────────────── */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body.teacher-lms-printing * {
    visibility: hidden !important;
  }

  body.teacher-lms-printing .teacher-lms-sidebar,
  body.teacher-lms-printing .teacher-lms-no-print,
  body.teacher-lms-printing .teacher-lms-page-header,
  body.teacher-lms-printing .teacher-lms-page-actions,
  body.teacher-lms-printing .teacher-lms-filter-row,
  body.teacher-lms-printing .teacher-lms-tabs,
  body.teacher-lms-printing .teacher-lms-result-nav,
  body.teacher-lms-printing .teacher-lms-preview-toolbar,
  body.teacher-lms-printing .teacher-lms-worksheet-config {
    display: none !important;
  }

  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="result"] #teacher-lms-print-result,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="result"] #teacher-lms-print-result *,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="worksheet"] #teacher-lms-print-worksheet,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="worksheet"] #teacher-lms-print-worksheet *,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="answers"] #teacher-lms-print-answers,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="answers"] #teacher-lms-print-answers *,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="worksheet"] .teacher-lms-sheet,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="worksheet"] .teacher-lms-sheet *,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="answers"] .teacher-lms-sheet-answers,
  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms[data-print-mode="answers"] .teacher-lms-sheet-answers * {
    visibility: visible !important;
  }

  body.teacher-lms-printing .teacher-dashboard-scene.teacher-lms {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    display: block !important;
  }

  body.teacher-lms-printing .teacher-lms-main {
    overflow: visible !important;
    height: auto !important;
  }

  body.teacher-lms-printing .teacher-lms-sheet,
  body.teacher-lms-printing .teacher-lms-sheet-answers {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body.teacher-lms-printing .teacher-lms-sheet-preview-frame {
    background: transparent !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.teacher-lms-printing .teacher-lms-student-result {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
  }
}
