/* css/main-lecture-detail.css — css/main.css 가족의 한 조각(옮기기만 · 순서의 정본 = js/script-families.json · 코드 구조 4계단④ · 2026-10-10) · 수업 상세 머리 · 수강생 목록 · 회차 관리 · 팀 배정 · 수업 관리 요약 */
/* ── [F86] 강의 상세 상단 헤더 카드 ─────────────────────────────────
   좌: 대표 이미지 / 중: 제목 + 5항목 정보 그리드 / 우: 라이브 수업 버튼. */
/* [v2-02] 수업 분석 화면(독립 페이지 IA)에서는 상단 강의 카드섹션 숨김. 다른 탭·비-v2는 표시. */
.lecd-hcard--an-hidden { display: none !important; }
.lecd-hcard {
  display: flex; align-items: stretch; gap: 20px;
  padding: 18px 20px; margin-bottom: 16px;
  border: 1px solid #e7ebf0; border-radius: 18px; background: var(--surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}
.lecd-hcard-err { padding: 24px; color: var(--text-body); font-weight: 700; }

/* 좌 — 대표 이미지(1:1) */
.lecd-hcard-img {
  width: 96px; height: 96px; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
.lecd-hcard-img--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #fff;
  background: var(--ph-hue, #4F7BF0); /* [D-07] color-mix 미지원(Chrome<111·일부 임베디드) 폴백 */
  background: linear-gradient(135deg, var(--ph-hue, #4F7BF0), color-mix(in srgb, var(--ph-hue, #4F7BF0) 70%, #000 10%));
  user-select: none;
}
.lecd-hcard-imginput { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 중 — 제목 + 정보 그리드 */
.lecd-hcard-title {
  font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0;
  color: #1A1A1A; word-break: keep-all; overflow-wrap: anywhere;
}

/* [F163] 진행 중(lobby/live) 라이브 세션이 있을 때 표시하는 'LIVE 중' 배지 — 빨강 + 점멸 도트 */
.lecd-hcard-livebadge {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  align-self: center;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1;
  color: #fff; background: var(--danger);
  box-shadow: 0 2px 8px rgba(224, 36, 36, .32);
  white-space: nowrap;
}
.lecd-hcard-livebadge:empty { display: none; }

/* ⛔[2026-09-21] 태블릿(≤980px) 블록을 걷었다 — 칸이 셋이 되며 «할 일이 없어졌다».
   종전엔 5칸을 3칸씩 두 줄로 접고 각 줄 첫 칸의 왼쪽 선을 지우던 자리인데, 이제 칸이 셋이라
   `nth-child(3n+1)` 은 `:first-child` 와 같은 줄만 고른다(위 기본 규칙이 이미 한다).
   ★남겨 두면 «반응형이 있다»고 착각하게 만든다★ — 실제로 그 빈 블록에 기대던 시험이 하나
   있었고, 아무것도 안 재면서 초록이었다. 접는 것은 모바일(≤680px) 한 단계뿐이다. */
/* 모바일: 세로 적층(이미지·정보 → 버튼 하단 전폭) */
@media (max-width: 680px) {
  .lecd-hcard { flex-direction: column; align-items: stretch; gap: 16px; }
}

/* [F32] 수강생 개별 추가 모달 — 중앙 fade-in scale-up. dialog-overlay/dialog-modal 토큰 계승. */
@keyframes lecdAddStuOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lecdAddStuModalIn { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.lecd-addstu-overlay { animation: lecdAddStuOverlayIn 160ms ease-out; }
.lecd-addstu-modal { max-width: 520px; width: 100%; border-radius: var(--radius-lg); animation: lecdAddStuModalIn 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.lecd-addstu-modal .dialog-body { display: flex; flex-direction: column; gap: 16px; }
.lecd-field { display: flex; flex-direction: column; gap: 6px; }
.lecd-field-lbl { font-size: 13px; font-weight: 700; color: var(--text); }
.lecd-field-opt { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.lecd-field .form-control { width: 100%; }
.lecd-addstu-modal .field-error { margin-top: 0; }
.lecd-addstu-modal .dialog-footer .btn { min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .lecd-addstu-overlay, .lecd-addstu-modal { animation: none; }
}

/* [모델 B] '전체 명단에서 불러오기' 모달 — 전체 수강생 체크 선택 */
.lecd-imp-modal { max-width: 560px; width: 100%; border-radius: var(--radius-lg); }
/* [2026-09-25 겹침 점검] ★크기 고정★ — 높이가 명단 길이를 따라 661~840px 로 출렁였다(명단 max-height 50vh).
   상자는 한 높이로 두고 명단만 안에서 구른다(규칙: 모달 고정 크기 · 같은 틀 = .an-chk-dlg). */
.dialog-modal.lecd-imp-modal { height: min(680px, 88vh); overflow: hidden; }
.lecd-imp-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.lecd-imp-tools { display: flex; gap: 8px; }
.lecd-imp-list {
  display: flex; flex-direction: column; gap: 2px;
  flex: 0 1 auto; min-height: 0; overflow-y: auto;   /* 상자는 고정 · 명단은 제 길이까지만(몇 명이면 빈 테두리가 늘어나지 않게) · 넘치면 안에서 구른다 */
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px;   /* ⛔옛 --radius-md 는 정의가 없어 모서리가 0 이었다 — --radius = 토큰 표의 «가이드 md»(F-20261003-11-3) */
}
.lecd-imp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
  word-break: keep-all;
}
.lecd-imp-row:hover { background: var(--surface-2, rgba(0,0,0,0.03)); }
.lecd-imp-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; accent-color: var(--primary); }
.lecd-imp-row.is-disabled { opacity: 0.55; cursor: default; }
.lecd-imp-row.is-disabled:hover { background: none; }
.lecd-imp-name { font-weight: 600; }
.lecd-imp-sub { color: var(--text-muted); font-size: 0.86em; }
.lecd-imp-empty { color: var(--text-muted); padding: 16px 4px; }
/* [DC-4] 불러오기 모달 '＋ 새 수강생 등록' 진입점(빈 상태든 목록 있든 노출) */
.lecd-imp-add { white-space: nowrap; }
/* [2026-10-23] 불러오기 창 아래 «명단에 없는 학생은 → 초대링크 · ＋ 새 학생 등록» 한 줄 */
.lecd-imp-invite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--bg-subtle); }
.lecd-imp-invite-t { margin-right: auto; font-size: var(--text-sm); font-weight: 700; color: var(--text-body); word-break: keep-all; }

/* [DC-6] 헤더 '라이브 수업' → 별도 회차선택 모달 폐지(수업 설정 모달 상단 드롭박스로 통합).
   라이브 설정 모달의 회차 선택 <select>(#_lssSess)는 인라인 style 기반(.form-control)이라 별도 CSS 불필요. */

/* [삭제] `.lecd-scard-rename` 규칙 3개를 지웠다 — **죽은 CSS** 였다.
   그 버튼은 953ba66c1「회차 카드 '슬라이드 편집' 아이콘 → 회차명 편집으로 통합, 별도 '편집' 버튼 삭제」
   에서 없어졌다. 회차명은 지금 더보기 「편집」 칸(`openSessionSchedEdit`)에서 바꾼다(2026-10-22).
   전수 확인: js/·*.html 어디에도 이 클래스를 만드는 곳이 없었다(그리는 코드 0). */

.lecd-team-empty {
  padding: 24px; text-align: center; color: var(--text-muted);
  border: 1px dashed #d6dbe1; border-radius: 12px; background: #fafbfc; word-break: keep-all;
}

/* 탭 바 */
.lecd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.lecd-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; word-break: keep-all;
}
.lecd-tab:hover { color: var(--text-body); }
/* [F85-2] 활성 탭 가독성 — 연한 파란색 → 짙은 네이비 + Bold + 굵은 하단 인디케이터로 비활성과 명확히 구분 */
.lecd-tab.active { color: #0f2c54; font-weight: 800; border-bottom-color: #0f2c54; border-bottom-width: 3px; }
.lecd-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.lecd-tabpanel:focus-visible { outline: none; }
.lecd-tab-help { font-size: 12.5px; color: var(--text-body); margin: 0 0 12px; line-height: 1.6; word-break: keep-all; }

/* ═══ [v2-03 · 강의 상세 v2 · devquiz 단독·승격가능] env-flags PROMOTE['v2-03'] ═══
   Phase 2 — 탭바를 v2 pill 톤으로(밑줄형→알약형, 활성=primary) + 요약 stat 카드 라운드. 비주얼만·렌더/로직 무변경.
   값 출처: 옛 목업 03(지움 · git 기록)(.tabs/.tab.on). alcquiz/운영은 기존 밑줄탭 그대로. */
/* 칸(배경·테두리·라운드)을 래퍼로 올렸다 — 도움말(?) 버튼이 이 «칸 안» 오른쪽
   끝에 앉아야 하는데, tablist 안에 넣으면 ARIA(탭만 담아야 한다)와 좌우 화살표
   이동이 깨진다. 그래서 보기에는 한 칸, 의미로는 tablist 와 버튼이 분리돼 있다. */
/* [디자인 개편 시범 1호 2-2 · 2026-10-17 승인] 파란 면 알약 → 밑줄 탭 44px(§0-D D6 «화면 1단 = 밑줄 탭»).
   «긴 막대 안 오른쪽 끝의 사용법»은 그대로 둔다 — 막대는 아래 헤어라인 한 줄이 된다. */
html.v2 .lecd-tabs-wrap { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; padding: 0; }
html.v2 .lecd-tabs { border-bottom: none; gap: 2px; display: inline-flex; min-width: 0; flex-wrap: wrap; }
html.v2 .lecd-tab { height: 44px; padding: 0 14px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: var(--text-base); font-weight: 600; color: var(--text-muted); }
html.v2 .lecd-tab:hover:not(.active) { color: var(--text); background: none; }
html.v2 .lecd-tab.active { background: none; color: var(--primary-dark); font-weight: 800; border-bottom-color: var(--primary); box-shadow: none; }
/* [시범 1호 2-2 · 결정 2A] 글자 아랫단(칩 11→12 · 보조 12.5→13)을 이 화면 탭 줄·거르기 칩에 먼저 적용한다.
   전역 토큰을 올리면(개선 계획 2단계) 이 한 줄은 지운다. */
html.v2 #lecdTabbar, html.v2 .lecd-sess-bar { --text-xs: 12px; --text-sm: 13px; }
/* [시범 1호 2차 · 결정 2A] 같은 글자 아랫단을 머리 카드·회차 목록에도 — 전역 토큰으로 올릴 때 위 줄과 함께 지운다. */
html.v2 #lecdHeaderCard, html.v2 .lecd-scard-list { --text-xs: 12px; --text-sm: 13px; }
/* ─── Phase 3 — 회차 관리: 상태 범례 ───────────────────────
   03 레퍼런스 .sess-legend 색 체계. 걸러내기 판정은 js/sessions-panel.js 그대로 — 비주얼만.
   ⛔[F-20260925-09-1 · 2026-09-29] 여기 있던 «옛 표» 몫(표 래퍼 라운드 · 상태칩 5색 ·
     행 좌측 액센트 바 · `.lecd-sess-open--primary`)을 지웠다 — 그 표를 그리던 JS 갈래가
     2026-09-25 에 걷혀(`57819b5cb`) 붙을 마크업이 0 이다. 남긴 것은 **범례**뿐이고,
     그것은 지금도 `js/sessions-panel.js` 가 `.lecd-sess-bar` 안에 그린다. */
/* 회차 상태 범례 — JS가 .lecd-sess-bar 안에 주입 */
html.v2 .lecd-sess-legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 13px; font-size: var(--text-xs); color: var(--text-muted); }
/* 범례 = 누르면 걸러지는 버튼(js/sessions-panel.js _applySessFilter). 칩 생김새는 그대로 둔다. */
html.v2 .lecd-sess-legend .lgl { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; word-break: keep-all;
  font: inherit; font-size: var(--text-xs); color: var(--text-body); cursor: pointer; transition: background .14s var(--ease, ease), border-color .14s var(--ease, ease), color .14s var(--ease, ease); }
/* ★:not(.is-on) 을 빼지 말 것★ — `:hover:not(:disabled)` 는 `.is-on` 보다 특이도가 높아,
   켜진 칩에 마우스를 얹으면 흰 글씨가 연한 배경 위에 얹혀 «글자가 사라진다»(실측 #eef2f7 + #fff). */
html.v2 .lecd-sess-legend .lgl:hover:not(:disabled):not(.is-on) { background: #eef2f7; border-color: var(--primary); }
html.v2 .lecd-sess-legend .lgl:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html.v2 .lecd-sess-legend .lgl.is-on { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); font-weight: 700; }
html.v2 .lecd-sess-legend .lgl.is-on:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
/* 못 누르는 것(그 상태의 회차가 0개)은 «색 안내»로만 남는다 — 흐리게 두되 읽히기는 해야 한다.
   [시범 1호 2-2] 반투명(.45 · 대비 2.87)을 걷고 점선 테두리 + 보조 글자색으로 «못 누름»을 말한다(대비 4.5 이상). */
html.v2 .lecd-sess-legend .lgl:disabled { cursor: default; background: transparent; border-style: dashed; border-color: var(--border-strong); color: var(--text-muted); }   /* [시범 1호 3차] 점선이 회색 바탕에서 안 보였다(--border) → 한 단계 진하게 */
html.v2 .lecd-sess-legend .lgl:disabled .dot { opacity: .4; }   /* 점은 장식이라 옅게 둔다 — 진한 빨간 점이 «지금 수업 중»으로 읽히지 않게 */
/* 개수 — 눌러 보기 전에 «몇 개인지» 알 수 있게. 켜지면 흰 글씨 위라 배경만 바꾼다. */
html.v2 .lecd-sess-legend .lgl-n { min-width: 15px; padding: 0 4px; border-radius: var(--radius-pill); background: rgba(15,23,42,.08); font-size: var(--text-xs); font-weight: 800; text-align: center; }
html.v2 .lecd-sess-legend .lgl.is-on .lgl-n { background: rgba(15, 23, 42, .25); }   /* [다크 ④ 수업 상세] 흰 면(.28) 위 흰 글자 3.14 → 어두운 면(밝은 판도) */
html.v2 .lecd-sess-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
html.v2 .lecd-sess-legend .dot.now  { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.16); }
html.v2 .lecd-sess-legend .dot.done { background: #16a34a; }
html.v2 .lecd-sess-legend .dot.todo { background: #94a3b8; }

/* ─── Phase 4 — 수강생: 팀 배정 30/70 보드 v2 화장 + 학생칩 ───────────────────
   기존 드래그&드롭 보드(lecd-ta-*)는 그대로. 03 레퍼런스 .tasn/.ta-board/.ta-stu 톤으로. */
html.v2 .lecd-tadrag-body { gap: 0; }
html.v2 .lecd-ta-left { background: #f8fafc; border: 1px solid var(--border); border-right: 0; border-radius: 14px 0 0 14px; padding: 12px 12px 14px; }
html.v2 .lecd-ta-right { background: var(--surface); border: 1px solid var(--border); border-radius: 0 14px 14px 0; padding: 12px 14px 14px; }
html.v2 .lecd-ta-pool { background: transparent; border: 1.5px dashed var(--border); border-radius: 11px; }
html.v2 .lecd-ta-teams { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
html.v2 .lecd-ta-team { border-radius: 13px; }
html.v2 .lecd-ta-stu {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-weight: 600; color: var(--text-body);
  box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: transform .08s, box-shadow .12s, border-color .12s;
}
html.v2 .lecd-ta-stu::before { content: "⠿"; color: #cbd5e1; font-size: 13px; letter-spacing: -2px; flex-shrink: 0; }
html.v2 .lecd-ta-stu:hover { border-color: var(--primary-bd); box-shadow: 0 4px 14px rgba(16,24,40,.08); transform: translateY(-1px); }
html.v2 .lecd-ta-drop.over { background: var(--primary-light); border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); outline: 0; }
html.v2 .lecd-ta-colhead { color: var(--text-strong, #0f2c54); }

/* ─── Phase 5 — 출결·설문 비주얼 정돈(실제 클래스 대상, 라운드 통일) ─────────── */
html.v2 .lecd-att-legend { gap: 14px; }

/* ─── Phase 6 — 수업 분석: 카드/박스 라운드 폴리시(렌더/집계 무변경) ───────── */
html.v2 .lecd-an-card, html.v2 .lecd-an-box, html.v2 .lecd-an-dash { border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }

/* ─── Phase 7 — 설정: sv-row space-between(가운데 빈박스 제거) + 헤더 LIVE pill ── */
/* 좌 라벨+설명은 자연 폭에서 끝나게(max-width 560), 컨트롤은 우측 정렬 → 중앙 빈 박스 제거 */
html.v2 .lecd-set .sv-row { justify-content: space-between; gap: 24px; }
html.v2 .lecd-set .sv-row .sv-info { flex: 1 1 auto; max-width: 560px; }
html.v2 .lecd-set .sv-row > :not(.sv-info) { flex: 0 0 auto; }
html.v2 .lecd-set .sv-group { border-radius: 14px; }
/* 헤더 «수업 중» 알약 — 빨간 면 + 흰 글자 + 흰 깜빡 점(§0-B R211 ⑦ · 대시보드 «수업 중» 꼬리표와 같은 색). 제목 인라인. */
html.v2 .lecd-hcard-livebadge.lecd-pill--live {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--danger); color: var(--text-on-primary);
  font-size: 11.5px; font-weight: 700; /* [design-ok] 글자 크기는 이번 결정(색) 밖 — 기존 값 그대로 */
  padding: 3px 10px; border-radius: 999px;
}
html.v2 .lecd-hcard-livebadge .lecd-pill-d {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: lecdPillPulse 1.6s infinite;
}
@keyframes lecdPillPulse { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.v2 .lecd-hcard-livebadge .lecd-pill-d { animation: none; } }

/* ─── [v2-03] 강의 상세 헤더 카드 — 레퍼런스 .lechead 픽셀 정합 ─────────────
   기존 .lecd-hcard 마크업을 v2-03 분기에서 .lecd-cover/.lecd-meta/.lecd-facts/.lecd-acts 구조로 렌더.
   좌 5px 파란 띠·64px 커버(hover 카메라 오버레이)·컬러칩 facts·세로 액션. 비-v2 는 적용 안 됨. */
html.v2 .lecd-hcard {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  /* [B] 컴팩트 — 세로 패딩 축소(레퍼런스 높이감) */
  padding: 16px 22px; box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden; margin-bottom: 14px;
}
/* [시범 1호 · 자리 미리 잡기] 불러오는 동안의 빈 카드가 52px 였다가 실제 카드(130px · 휴대폰 385px)로 바뀌며
   아래 탭과 회차 목록을 통째로 밀었다(밀림 점수 1024 0.09 · 390 0.25). 빈 카드에 실제 높이를 미리 준다.
   값은 그 폭에서 실제로 그려진 카드 높이다 — 머리 카드 줄 구성을 바꾸면 다시 잰다.
   [시범 1호 4차] 760 이하는 두 줄(그림·이름·요일/시간·다음 회차 + 단추 줄)이라 폭과 상관없이 한 값이다
   (실측 데모 과학 360~760 모두 147 · 다음 회차 안내는 비어 있어도 한 줄을 차지한다). */
html.v2 .lecd-hcard[aria-busy="true"] { min-height: var(--lecd-hcard-h, 200px); }   /* [2026-10-23] «진행한 회차 · 출석률» 두 칸을 넣고 다시 쟀다(데모 과학 1400·1180 = 200 · 1024 = 220 · 390 = 276) */
@media (max-width: 1099px) { html.v2 #lecdHeaderCard { --lecd-hcard-h: 220px; } }
@media (max-width: 760px) { html.v2 #lecdHeaderCard { --lecd-hcard-h: 276px; } }
/* [시범 1호 4차] 휴대폰 전용 — 이름 아래 «요일/시간» 줄. PC 는 정보 줄을 그대로 쓴다.
   (다음 회차 안내 칩은 2026-10-22 사용자 지시로 걷었다 — 다음 회차는 회차 목록의 파란 「수업 시작」이 가리킨다) */
html.v2 .lecd-hcard-when { display: none; }
html.v2 .lecd-hcard::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--primary-mid), var(--primary-grad-end));
}
/* [2026-10-23] 띠 바깥의 회색 1px 테두리를 띠 색으로 — 회차 카드처럼 띠가 카드 가장자리까지 닿아 둥근 모서리를 따라 휜다
   (머리 카드는 overflow:hidden 이라 띠가 테두리 «안»에서 잘린다 — 왼쪽 테두리를 띠 색으로 칠해 이어 붙인다). */
html.v2 #lecdHeaderCard.lecd-hcard { border-left-color: var(--primary-mid); }
/* 커버 — 64x64 라운드16, 그라데이션 bg, hover 시 box-shadow 링 + 하단 카메라 오버레이 */
html.v2 .lecd-cover {
  position: relative; width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  display: grid; place-items: center; font-size: 30px; flex-shrink: 0;
  border: 1px solid #e6eaf2; overflow: hidden; cursor: pointer; padding: 0;
  transition: box-shadow .14s;
}
html.v2 .lecd-cover:hover { box-shadow: 0 0 0 3px var(--primary-tint); }
html.v2 .lecd-cover .lecd-hcard-img,
html.v2 .lecd-cover .lecd-hcard-img--ph { width: 100%; height: 100%; border-radius: 0; }
html.v2 .lecd-cover .lecd-hcard-img { object-fit: cover; }
html.v2 .lecd-cover .lecd-hcard-img--ph {
  display: grid; place-items: center; color: #fff; font-size: 26px; font-weight: 800;
  background: var(--ph-hue, #4F7BF0);
}
html.v2 .lecd-cover-cam {
  position: absolute; inset: auto 0 0 0; height: 20px;
  background: rgba(15,23,42,.62); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .14s;
}
html.v2 .lecd-cover-cam .ui-ico { width: 14px; height: 14px; }
html.v2 .lecd-cover:hover .lecd-cover-cam,
html.v2 .lecd-cover:focus-visible .lecd-cover-cam { opacity: 1; }
/* 메타(중앙) */
html.v2 .lecd-meta { flex: 1; min-width: 0; }
html.v2 .lecd-hcard .lecd-hcard-title {
  font-size: var(--text-2xl); font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0; color: var(--text);
}
/* facts — 가로 flex, 컬러칩
   [시범 1호 2차] 아이콘 칸 4색은 그대로 둔다(다 걷으면 머리 카드가 회색 한 가지로 밋밋해진다 · §0-B R210 ③).
   글자 크기·대비만 고쳤다(«미설정» 흐린 글자 → 보조 글자색). */
html.v2 .lecd-facts { display: flex; gap: 18px; margin-top: 7px; flex-wrap: wrap; }
html.v2 .lecd-fact { display: flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--text-body); }
html.v2 .lecd-fact b { color: var(--text); font-weight: 700; }
html.v2 .lecd-fact--empty b { color: var(--text-muted); font-weight: 600; }
html.v2 .lecd-fi { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
html.v2 .lecd-fi .ui-ico { width: 14px; height: 14px; }
html.v2 .lecd-fi.soft-blue   { background: #eff6ff; color: #2563eb; }
html.v2 .lecd-fi.soft-teal   { background: #f0fdfa; color: #0d9488; }
html.v2 .lecd-fi.soft-purple { background: #f5f3ff; color: #7c3aed; }
html.v2 .lecd-fi.soft-amber  { background: #fffbeb; color: #d97706; }
html.v2 .lecd-fi.soft-green  { background: #f0fdf4; color: #16a34a; }
/* 액션(우측) — 세로 column. 라이브(accent) + [분석][설정] row */
html.v2 .lecd-acts { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-items: stretch; }
html.v2 .lecd-acts-row { display: flex; gap: 8px; }
/* [2026-10-22] 머리 카드 오른쪽은 「수업 전체 리포트」(테두리 단추) 하나 — 「수업 시작」은 걷었다(다음 회차 줄의 파란 단추가 맡는다).
   종전엔 작은 글자 단추라 눈에 띄지 않았다. 휴대폰(760 이하)은 아래 @media 의 줄 배치를 쓴다. */
@media (min-width: 761px) {
  html.v2 .lecd-acts { flex-direction: row; align-items: center; }
  html.v2 .lecd-acts .lecd-acts-row .btn { height: 40px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-body); font-size: var(--text-sm); font-weight: 700; }
  html.v2 .lecd-acts .lecd-acts-row .btn:hover { background: var(--bg-subtle); color: var(--text); }
}
/* 반응형 — [시범 1호 4차 · §0-B R212 · R213] 760 이하 머리 카드는 «두 줄»이다.
   위 줄 = 그림 + 이름 · 요일/시간 · 아래 줄 = 「수업 전체 리포트」(2026-10-22 머리 「수업 시작」 걷음)(누르는 곳 44px · 사이 8px).
   학기 · 강의실 · 수강 인원(정보 줄)은 휴대폰에서 눈에만 감춘다 — 화면낭독기는 그대로 읽고, PC 는 그대로다.
   .lecd-meta 는 display: contents 로 풀어 제목이 카드 격자의 칸이 되게 한다(뜻 없는 div 라 낭독은 그대로다). */
@media (max-width: 760px) {
  html.v2 .lecd-hcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px 16px 16px 20px; }
  html.v2 .lecd-meta { display: contents; }
  html.v2 .lecd-cover { grid-column: 1; grid-row: 1; width: 56px; height: 56px; border-radius: var(--radius); }
  html.v2 .lecd-hcard .lecd-hcard-title { grid-column: 2; grid-row: 1; font-size: var(--text-xl); line-height: 1.3; gap: 2px 8px; }
  html.v2 .lecd-facts { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  html.v2 .lecd-hcard-when { display: flex; align-items: center; gap: 5px; flex-basis: 100%; font-size: var(--text-sm); font-weight: 600; color: var(--text-body); }
  html.v2 .lecd-hcard-when .ui-ico { width: 14px; height: 14px; color: var(--text-muted); }
  html.v2 .lecd-acts { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 8px; }
  html.v2 .lecd-acts-row { flex: 1 1 auto; }   /* [2026-10-22] 「수업 시작」을 걷어 이 줄에는 「수업 전체 리포트」 하나다 */
  html.v2 .lecd-acts-row .btn { width: 100%; min-height: 44px; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text-body); }
  html.v2 .lecd-acts-row .btn:hover { background: var(--bg-subtle); color: var(--text); }
}

/* [v2-03 · D-MNG-01] facts 넓은 화면 1줄 — 메타가 남는 폭 차지 + 칩 nowrap(좁으면 자연 wrap) */
html.v2 .lecd-meta { flex: 1 1 auto; min-width: 0; }
html.v2 .lecd-facts { gap: 14px; row-gap: 8px; }
html.v2 .lecd-fact { white-space: nowrap; }
/* ★[2026-10-22] «넓은 화면은 강제로 한 줄»(min-width 1100px · nowrap)을 걷었다★ — 화면 폭이 아니라 «카드 안에 남은 폭»이
   문제인데, 왼쪽 메뉴가 폭을 먹어 1100~1250px 에서는 한 줄(587px)이 안 들어가 「수강 인원」이 단추 밑으로 숨었다
   (1100px 실측: 칸 441px · 필요 587px). 이제 들어가면 한 줄, 모자라면 저절로 줄을 바꾼다(위 flex-wrap: wrap). */

/* ─── [v2-03 · A] 상단 브레드크럼 (레퍼런스 .crumb) ───────────────────── */
html.v2 .lecd-crumb {
  display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted);   /* [감사 B 2026-09-25] 옛 muted 리터럴 → 토큰 · [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침 */
  margin: 0 0 10px; word-break: keep-all;
}
/* ★`hidden` 이 먹게 한다★ 바로 위 규칙의 `display:flex` 가 브라우저 기본
   `[hidden]{display:none}` 을 이긴다(선택자가 더 세다) — 그래서 상단바로 길을 옮긴 뒤에도
   본문 줄이 그대로 남아 **같은 빵부스러기가 두 번** 보였다(실화면).
   ★`!important` 를 쓰지 않는다★ 같은 클래스에 `[hidden]` 을 더하면 특이도가 한 칸 높아
   충분하다. 여기서만 통하는 예외를 만들면 다음 사람이 규칙을 못 읽는다. */
html.v2 .lecd-crumb[hidden] { display: none; }
html.v2 .lecd-crumb a { color: var(--text-muted); text-decoration: none; }   /* [감사 B 2026-09-25] 옛 muted 리터럴 → 토큰 */
html.v2 .lecd-crumb a:hover { color: var(--primary); }
html.v2 .lecd-crumb .lecd-crumb-sep { color: #9aa5b6; }
html.v2 .lecd-crumb b { color: #0f172a; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ★«왔던 곳»으로 들어온 화면은 빵부스러기가 아니라 «되돌아가기»다★
   「학생 리포트 › 과학」은 계층인 척하는데 둘은 나란한 화면이다(js lecture-detail 의 그 블록).
   그때는 구분자와 수업 이름을 감춘다 — 계층이 아니므로 그릴 것이 없다.
   ⛔ 이 클래스를 지우고 늘 「A › B」로 되돌리지 말 것. */
html.v2 .lecd-crumb--back .lecd-crumb-sep,
html.v2 .lecd-crumb--back b { display: none; }
/* [D-MNG-03] 브레드크럼이 백 동선을 대신하므로 기존 '강의 목록으로 돌아가기' 헤드 영역 숨김(버튼은 DOM 유지). */
html.v2 .lecd-head--v2hidden { display: none; }

/* ─── [v2-03 · C] 회차 관리 — 레퍼런스 .scard 카드 아코디언 ──────────────── */
html.v2 .lecd-scard-list { display: flex; flex-direction: column; gap: 12px; }
html.v2 .lecd-scard {
  border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); background: var(--surface);
  position: relative; transition: box-shadow .15s, border-color .15s;
}
/* [2026-10-23 사용자 「왼쪽 색상 막대가 하얀 카드 위로 겹쳐서 디자인돼야」] 띠를 카드 «위»에 얹는다.
   예전엔 폭 4px 짜리에 둥근 모서리를 주어 모서리가 펴진 채 테두리 안쪽에 따로 섰다(카드 옆에 붙은 막대처럼 보임).
   이제 ::before 가 카드 전체(테두리 포함)를 덮고 카드와 같은 둥근 모서리로 잘린 뒤, 마스크로 왼쪽 5px 만 남긴다
   — 띠가 카드 둥근 모서리를 그대로 따라 휜다. 상태별 색은 아래 background 규칙 그대로. */
html.v2 .lecd-scard::before {
  content: ""; position: absolute; inset: -1px; z-index: 1;
  background: transparent; border-radius: var(--radius-lg, 16px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, currentColor 5px, transparent 5px); mask-image: linear-gradient(90deg, currentColor 5px, transparent 5px);
}
html.v2 .lecd-scard:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
html.v2 .lecd-scard--new { box-shadow: 0 0 0 3px var(--primary-tint); }
/* 상태별 좌측 띠·배경(now/prep/draft/done/todo) */
/* [디자인감사 L-2] 좌측 스트라이프가 이미 상태를 말하는데 카드 본문에 대각 그라데이션
   워시가 겹쳐 있었다(§0-B 정제규칙 3 금지). 배경은 흰색 유지, 상태는 스트라이프 단색으로만.
   프렙(prep)의 보라(#7c3aed)는 브랜드 밖 색 → primary 계열로 교체. */
html.v2 .lecd-scard.now::before  { background: var(--danger); }
html.v2 .lecd-scard.now  { border-color: #fecaca; }
/* [시범 1호 2차] 상태 띠는 거르기 칩의 점 색과 «한 벌»이다(준비중 회색 · 수업 중 빨강 · 종료 초록 · §0-B R210 ②). */
html.v2 .lecd-scard.done::before  { background: var(--success); }
html.v2 .lecd-scard.todo::before  { background: var(--border-strong); }
/* [시범 1호 3차] 다음에 열 회차는 «지금 할 일» 색(테마 주 색 · §0-B R211 ③) — 같은 특이도라 .todo 줄보다 뒤에 둔다. */
html.v2 .lecd-scard.is-next::before { background: var(--primary); }
/* 카드 본문 행 */
html.v2 .lecd-scard-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; }
html.v2 .lecd-scard-grab { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
html.v2 .lecd-sno { width: 46px; height: 46px; border-radius: var(--radius-md, 12px); display: grid; place-items: center; flex-shrink: 0; background: var(--primary-light); color: var(--primary); line-height: 1; }
html.v2 .lecd-sno b { font-weight: 800; font-size: 17px; }
html.v2 .lecd-sno small { font-size: var(--text-xs); font-weight: 600; margin-top: 2px; }   /* 색은 번호 칸을 따른다(상태별 대비 4.5 이상) */
html.v2 .lecd-scard.now .lecd-sno  { background: #fef2f2; color: var(--danger); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
/* [시범 1호 2차] 번호 칸도 상태 색 — 옅은 면 + 진한 글자. 종전 초록 글자(대비 3.0)·준비중 흐린 회색(2.38)만
   읽히는 진한 쪽(4.8 이상)으로 고쳤다. */
html.v2 .lecd-scard.done .lecd-sno { background: var(--success-light); color: var(--success-dark); }
html.v2 .lecd-scard.todo .lecd-sno { background: var(--bg-subtle); color: var(--text-body); }
html.v2 .lecd-scard.is-next .lecd-sno { background: var(--primary-light); color: var(--primary); }   /* [시범 1호 3차] 4.75(일반) · 4.88(특수) */
/* [2026-10-22] 일시가 없는 회차는 번호 대신 「미정」(js/sessions-panel.js) — 두 글자라 번호보다 작게 */
html.v2 .lecd-sno--tbd b { font-size: var(--text-sm); }
html.v2 .lecd-sbody { flex: 1; min-width: 0; }
/* [시범 1호 · 결정 2A] 제목 15 → 14(기준 밖 값을 가장 가까운 단계로) · 메타 12 → 13 */
html.v2 .lecd-stitle { word-break: keep-all; overflow-wrap: anywhere; font-weight: 700; font-size: var(--text-base); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); }
html.v2 .lecd-smeta { display: flex; gap: 13px; margin-top: 6px; font-size: var(--text-sm); color: var(--text-muted); flex-wrap: wrap; align-items: center; }
html.v2 .lecd-si { display: inline-flex; align-items: center; gap: 5px; }
html.v2 .lecd-si b { color: var(--text-body); font-weight: 700; }
html.v2 .lecd-si .ui-ico { width: 13px; height: 13px; opacity: .7; }
/* [D-MNG-04] 진행중 카드 참여 진도 바(.sprog) */
html.v2 .lecd-sprog { display: inline-flex; align-items: center; gap: 7px; }
/* [시범 1호 · 자리 미리 잡기] 진도 줄은 응답 수를 받은 뒤에 채워진다 — 숨긴 채 자리를 비워 두면 채워지는 순간
   메타 줄이 두 줄로 꺾이며 카드가 16px 커졌다(1024 실측). 채워질 폭만큼 자리를 먼저 잡고 보이지만 않게 둔다. */
html.v2 .lecd-sprog[hidden] { display: inline-flex; visibility: hidden; min-width: 190px; height: 1em; }
/* [시범 1호 2차] 막대 = «양»이라 막대 하나는 한 색(§0-D D8 · 그라데이션 금지). 색은 상태 색이다 — 수업 중 빨강 · 끝남 초록
   (종전의 빨강·초록 그라데이션에서 그라데이션만 걷었다). 트랙은 회색 면. */
html.v2 .lecd-sprog-track { width: 74px; height: 6px; border-radius: var(--radius-xs); background: var(--bg-subtle); overflow: hidden; }
html.v2 .lecd-sprog-track i { display: block; height: 100%; border-radius: var(--radius-xs); background: var(--danger); }
html.v2 .lecd-sprog small { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
/* [2026-10-22] 끝난 회차 출석은 막대 없이 메타 한 칸(.lecd-si) — 숫자와 «/» 사이가 벌어지지 않게 글은 한 덩어리로 */
html.v2 .lecd-sprog.lecd-sprog--att { gap: 5px; }
html.v2 .lecd-sprog--att > span { white-space: nowrap; }
/* [시범 1호] 메타 줄 상태 한 줄(«슬라이드 준비됨» 등 · 끝난/곧 진행할 회차는 2026-10-20 부터 문구 없음) — 흐린 글자(대비 2.49)를 보조 글자색으로 */
html.v2 .lecd-si--note { color: var(--text-muted); }
html.v2 .lecd-scard.now .lecd-si--note  { color: #dc2626; font-weight: 600; }
/* 상태 배지 (.sstat) */
html.v2 .lecd-sstat { font-size: var(--text-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
html.v2 .lecd-sstat .ui-ico { width: 12px; height: 12px; }
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
html.v2 .lecd-sstat.now  { background: #dc2626; color: #fff; }
html.v2 .lecd-sstat.now .lecd-sstat-rec { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lecdPillPulse 1.1s infinite; }
html.v2 .lecd-sstat.done { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
html.v2 .lecd-sstat.todo { background: #f8fafc; color: var(--text-muted); border: 1px solid #e6eaf2; }   /* [감사 B 2026-09-25] 옛 muted 리터럴 → 토큰 · [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침 */
/* ★[2026-09-11] 「🔒 편집 잠김」 — 상태 칩 «옆»에 덧붙는다(상태를 갈아치우지 않는다).
   색은 잠금 배너·hero 칩과 같은 amber 로 모은다 — 같은 사실을 세 색으로 말하지 않기 위해서다
   (목업 62 §4). 빨강은 «지금 학생이 보고 있다»(진행중)에만 남긴다. */
html.v2 .lecd-sstat.lock { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; margin-left: 4px; }
/* 액션 영역 */
html.v2 .lecd-sacts { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
/* [2026-10-22] 단추 열 맞춤 — 주 단추(「수업 시작」·「수업 리포트」)의 폭을 같게 둔다. 종전엔 카드마다 주 단추의 왼쪽 끝이
   37px 어긋났다(1400px 실측 · 끝난 회차에만 달력 단추가 없었다 — 달력은 더보기 「편집」으로 들어갔다).
   ⚠높이는 건드리지 않는다 — 「수업 리포트」 34px 는 css/main-analysis.css ⑤ 의 결정이다. */
html.v2 .lecd-sacts .lecd-sa-primary { min-width: 116px; }
html.v2 .lecd-sa-primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--text-sm); line-height: 1; white-space: nowrap; border: 0; cursor: pointer; transition: background .14s, border-color .14s; }
html.v2 .lecd-sa-primary .ui-ico { width: 15px; height: 15px; }
/* [시범 1호 3차] «지금 할 일» 단추(수업 중 회차의 「진행 화면 열기」·다음에 열 회차의 「수업 시작」)는 머리의 「수업 시작」과
   «같은 모양»이다 — 테마 주 색 면 + 흰 글자(§0-B R202 ① · R211). 종전엔 「진행 화면 열기」만 밝은 주황 리터럴(흰 글자 2.80)이라
   같은 일을 두 색으로 말했다. */
html.v2 .lecd-sa-primary.go,
html.v2 .lecd-sa-primary.start  { background: var(--primary-fill); color: var(--text-on-primary); box-shadow: var(--shadow-sm); }
html.v2 .lecd-sa-primary.go:hover,
html.v2 .lecd-sa-primary.start:hover { background: var(--primary-dark); }
html.v2 .lecd-sa-primary.result { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-tint); }
html.v2 .lecd-sa-primary.result:hover { background: var(--primary-tint); }
html.v2 .lecd-sa-primary.edit   { background: #fff; color: #3a4861; border: 1px solid #cdd5e3; }
html.v2 .lecd-sa-primary.edit:hover { background: #f8fafc; }
/* [2026-10-16 · 목업 6] 조용한 단추 — 채운 단추는 «지금 할 일» 하나(수업 중 회차 또는 다음에 열 회차)뿐이고,
   나머지 준비중 회차의 단추와 끝난 회차의 「수업 리포트」는 이 모양이다(js/sessions-panel.js `_renderSessionsCardsV2`). */
html.v2 .lecd-sa-primary.quiet  { background: var(--surface); color: var(--text-body); border: 1px solid var(--border-strong); }
html.v2 .lecd-sa-primary.quiet:hover { background: var(--bg-subtle); color: var(--text); }
/* 끝난 회차 ⋯ 메뉴 맨 위 «편집 잠김» 한 줄 — 누르는 칸이 아니라 사실 한 줄(js/sessions-panel.js `_scardLockNote`) */
html.v2 .lecd-sa-div { width: 1px; height: 22px; background: #e6eaf2; flex-shrink: 0; }
/* 보조 아이콘 버튼 + 툴팁 */
html.v2 .lecd-sa-icon { position: relative; width: 38px; height: 38px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: background .14s, color .14s, border-color .14s; }
html.v2 .lecd-sa-icon .ui-ico { width: 16px; height: 16px; }
html.v2 .lecd-sa-icon:hover { background: #f8fafc; color: #3a4861; border-color: #cdd5e3; z-index: 5; }
/* [회차 삭제] 파괴적 액션 — 평소 회색, hover 시 빨강으로 위험 신호. */
html.v2 .lecd-sa-icon.lecd-sa-danger:hover { background: #fef2f2; color: var(--danger); border-color: #fecaca; }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
html.v2 .lecd-sa-icon[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px); background: #0f172a; color: #fff;
  font-size: 11.5px; font-weight: 600; line-height: 1.35; padding: 6px 11px; border-radius: 8px;
  white-space: nowrap; z-index: 60; box-shadow: 0 14px 40px rgba(16,24,40,.14);
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s, transform .12s;
}
html.v2 .lecd-sa-icon[data-tip]:hover::after,
html.v2 .lecd-sa-icon[data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
html.v2 .lecd-sacts .lecd-sa-icon:last-of-type[data-tip]::after { left: auto; right: 0; transform: translateX(0) translateY(4px); }
html.v2 .lecd-sacts .lecd-sa-icon:last-of-type[data-tip]:hover::after { transform: translateX(0) translateY(0); }
/* 셰브론 */
html.v2 .lecd-chev { width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--text-muted); font-size: var(--text-lg); background: none; border: 0; cursor: pointer; transition: transform .18s, background .12s; flex-shrink: 0; }
html.v2 .lecd-chev:hover { background: #f8fafc; color: #3a4861; }
html.v2 .lecd-scard.open .lecd-chev { transform: rotate(90deg); }
/* 슬라이드 미리보기(펼침) */
html.v2 .lecd-slides { border-top: 1px dashed #e6eaf2; margin: 0 16px; padding: 14px 0 16px 64px; }
html.v2 .lecd-slides[hidden] { display: none; }
html.v2 .lecd-slides-loading { font-size: 12.5px; color: var(--text-muted); }   /* [감사 B 2026-09-25] 옛 muted 리터럴 → 토큰 · [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침 */
html.v2 .lecd-slides-h { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
/* 머리줄에는 「슬라이드 편집기 열기」 하나만 있다(2026-10-21 「슬라이드 N개 · 미리보기」 걷음 —
   회차명 아래 메타 줄과 같은 숫자). 빈 회차는 머리줄을 통째로 안 그린다 — sessions-panel.js `_renderSlideStrip`.
   [2026-10-22] 단추를 왼쪽으로 — 옆 설명이 빠져 오른쪽 끝에 홀로 떨어져 있었다. 회차명·첫 타일과 같은 왼쪽 선에 둔다(사용자 지시). */
html.v2 .lecd-slide-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; }
/* [2026-10-22] 넘치는 줄은 오른쪽 끝을 흐리게(js/sessions-panel.js `_markStripOverflow`) — 더 있다는 표시 */
html.v2 .lecd-slide-strip.is-more { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }   /* [design-ok] 마스크는 «보이는 정도»만 쓴다 — #000 은 칠하는 색이 아니라 불투명 100% 라는 뜻 */
/* [2026-10-22] 좁은 창(1280px 이하)에서는 슬라이드 줄의 왼쪽 들여쓰기(64px)를 걷는다 — 1100px 에서 타일 6개째가 잘렸다 */
@media (max-width: 1280px) { html.v2 .lecd-slides { padding-left: 0; } }
html.v2 .lecd-sl { width: 124px; flex-shrink: 0; border: 1px solid #e6eaf2; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .12s, box-shadow .12s;
  /* [2026-09-15] 타일이 <button> 이 됐다(js/sessions-panel.js) — 버튼 기본 여백·글꼴·가운데정렬을 걷어 모양을 그대로 둔다. */
  padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  /* [2026-10-07] block 이면 버튼이 내용을 «세로 가운데»에 둔다 — 캡션이 한 줄인 타일(토론)은 줄 높이만큼 늘어난 채
     썸네일이 아래로 밀려 위에 흰 띠가 생겼다. 세로 flex 로 내용을 위에 붙인다. */
  display: flex; flex-direction: column; justify-content: flex-start; }
html.v2 .lecd-sl:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(16,24,40,.06); }
html.v2 .lecd-sl-th { height: 68px; display: grid; place-items: center; font-size: 22px; border-bottom: 1px solid #e6eaf2; position: relative; }
html.v2 .lecd-sl-ord { position: absolute; top: 5px; left: 6px; width: 18px; height: 18px; border-radius: 6px; background: rgba(15,23,42,.72); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
html.v2 .lecd-sl-cap { padding: 7px 9px; font-size: 11.5px; color: #3a4861; line-height: 1.3;
  /* [2026-09-15] 캡션이 «유형 이름」이 아니라 실제 제목이 되면서(js/sessions-panel.js) 줄바꿈이 생겼다.
     한글은 낱말 단위로 끊고(§0-A keep-all), 두 줄에서 자른다 — 안 자르면 타일 높이가 들쭉날쭉해진다. */
  word-break: keep-all; overflow-wrap: anywhere; }
html.v2 .lecd-sl-ttl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.v2 .lecd-sl-cap b { display: block; font-size: 10px; color: #9aa5b6; font-weight: 700; margin-bottom: 2px; }
html.v2 .lecd-sl-add { display: grid; place-items: center; color: var(--primary); font-weight: 600; font-size: 12px; border-style: dashed; cursor: pointer; background: var(--primary-light); min-height: 108px; }
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
/* 슬라이드 썸네일 타입색(soft-XXX) */
html.v2 .lecd-sl-th.soft-blue   { background: #eff6ff; }
html.v2 .lecd-sl-th.soft-green  { background: #f0fdf4; }
html.v2 .lecd-sl-th.soft-amber  { background: #fffbeb; }
html.v2 .lecd-sl-th.soft-rose   { background: #fef2f2; }
html.v2 .lecd-sl-th.soft-purple { background: #f5f3ff; }
html.v2 .lecd-sl-th.soft-teal   { background: #f0fdfa; }
/* '새 회차 만들기' add 버튼 */
@media (max-width: 760px) {
  /* [시범 1호 3차 · §0-B R212] 회차 카드는 두 줄 격자 — 위 줄 = 번호·제목·메타 + 펼침(›) · 아래 줄 = 단추 줄(폭 전체 · 44px).
     종전엔 줄바꿈(flex-wrap)에 맡겨 단추가 오른쪽에 몰리고 펼침(›)이 혼자 다음 줄 왼쪽에 떨어졌다. */
  html.v2 .lecd-scard-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; align-items: start; }
  html.v2 .lecd-scard-grab { grid-column: 1; grid-row: 1; }
  html.v2 .lecd-scard-row > .lecd-chev { grid-column: 2; grid-row: 1; }
  html.v2 .lecd-sacts { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  html.v2 .lecd-sacts .lecd-sa-primary { flex: 1 1 auto; height: 44px; }
  html.v2 .lecd-sacts .lecd-sa-icon { width: 44px; height: 44px; }
  html.v2 .lecd-sacts .lecd-sa-div { display: none; }
  html.v2 .lecd-slides { padding-left: 16px; }
  /* [시범 1호 4차 · §0-B R213 ③] 카드에는 번호 · 제목 · 슬라이드 수만 둔다. 날짜 · 상태 한 줄 · 응답 막대는 감추고,
     상태 글자(«준비중»)는 띠와 번호 칸이 말하므로 화면낭독기에만 남긴다. */
  html.v2 .lecd-stitle .lecd-sstat { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  html.v2 .lecd-smeta .lecd-si ~ .lecd-si,
  html.v2 .lecd-smeta .lecd-sprog { display: none; }
}
/* [시범 1호 4차 · §0-B R213 ④] 휴대폰에서는 탭마다 덧붙임 줄을 감춘다 — 요약 숫자 칸 · 설명 글 · 도움말 · 출처 줄.
   조작(단추 · 입력 칸 · 표)은 그대로 두고, PC 화면도 그대로다. */
@media (max-width: 760px) {
  /* 학생 · 출결: 요약 숫자 칸(총 학생 · 수강 중 · 팀 미배정 / 회차 출석률 · 전체 회차 · 전체 평균) */
  html.v2 #lecdPanel .lecd-stu-statstrip { display: none; }
  /* 학생: 팀 보드의 학생 칸은 이름 · 학번만(연동됨 · 출석률 감춤) */
  html.v2 #lecdPanel .lecd-ta-stu .lecd-linkstat,
  html.v2 #lecdPanel .lecd-ta-stu .lecd-ta-att { display: none; }
  /* 수업자료: 맨 위 설명 · 「AI가 만든 문제」 설명 · 문제 출처 줄 · 담기 안내 */
  html.v2 #lecdPanel .mat-head .mh-s,
  html.v2 #lecdPanel .pool-sub,
  html.v2 #lecdPanel .pool-src,
  html.v2 #lecdPanel .pab-lane-hint { display: none; }
  /* 출결: 기호 설명의 «칸을 눌러 선택»(기호와 뜻은 남긴다) */
  html.v2 #lecdPanel .lecd-attg-head-lbl { display: none; }
  /* 설정: 칸마다 붙은 도움말(「공통」 표시와 단추는 남긴다) */
  html.v2 #lecdPanel .lecd-set .sv-desc { display: none; }
  /* IEP 계획서(특수학교): 안내 상자 · 학생 줄의 장수와 상태 · 학생 머리 숫자 줄 · 계획서 이름 줄(바로 위 고르는 칸과 같은 말) */
  html.v2 #lecdPanel .lecd-report-tab .sm-callout,
  html.v2 #lecdPanel .rep-stuitem .rt-plan,
  html.v2 #lecdPanel .rep-stuitem .rt,
  html.v2 #lecdPanel .rep-dhero .row,
  html.v2 #lecdPanel .rep-planlabel { display: none; }
  /* 학생: 비어 있는 «미배정 학생» 칸(120px)을 낮게 */
  html.v2 #lecdPanel .lecd-ta-inline .lecd-ta-pool { min-height: 56px; }
  /* 수업자료: 문제 카드의 「담기」·「버리기」를 글 아래로 — 문제 글이 폭 전체를 쓴다(종전엔 세 줄로 접혀 잘렸다) */
  html.v2 #lecdPanel .pab-card { grid-template-columns: auto minmax(0, 1fr); }
  html.v2 #lecdPanel .pab-card .pab-acts { grid-column: 2; justify-self: end; }
  /* 출결: 고정 두 칸(이름 240 + 도구 104 = 344px)이 휴대폰 폭(358px)을 거의 다 차지해 회차 칸이 안 보였다.
     이름 칸 104px(이름만 · 학번은 학생 탭에서 본다) · 도구 칸 56px(아이콘만)로 줄여 회차 칸 두세 개가 보이게 한다.
     두 칸은 짝이다 — 도구 칸의 left 는 이름 칸 폭과 같아야 한다(main-homework.css 주석). */
  html.v2 #lecdPanel .lecd-attg .stuh { width: 104px !important; min-width: 104px !important; max-width: 104px !important; padding-left: var(--space-3); }
  html.v2 #lecdPanel .lecd-attg .lecd-attg-tool { left: 104px; width: 56px; min-width: 56px; max-width: 56px; padding: 4px; }
  html.v2 #lecdPanel .lecd-attg .nm small,
  html.v2 #lecdPanel .lecd-attg .lecd-att-rowtool-lbl { display: none; }
}
/* [반응형] 회차카드 375px 가로 스크롤 방지 — 액션 버튼이 좁은 폭에서 카드폭을 넘어
   가로 스크롤이 생기던 문제. 400px 이하에서 액션 묶음을 줄바꿈 허용·풀폭으로. 데스크톱 무변경. */
@media (max-width: 400px) {
  html.v2 .lecd-sacts { flex-wrap: wrap; flex: 1 1 100%; min-width: 0; }
}

/* ─── [v2-03 · 증분1] 강의 관리 — 2×2 카드+모달 → 인라인 4섹션 세로 스택 ─────
   레퍼런스 03_lecture_detail .mng-sec/.mng-sec-h 포팅. 각 섹션 본문은 모달과 동일한
   공용 렌더 함수(회차/수강생·팀/출결/설문)를 그대로 렌더 → 본문 내부 스타일은 기존 lecd-* 재사용. */


/* 섹션 본문 — 공용 렌더 함수의 첫 안내문/상단 여백을 섹션 헤더와 겹치지 않게 살짝 죈다(렌더 결과 무변경). */

/* 회차 상태 범례(공용 함수가 v2 일 때 자체 출력) — 섹션 안에서도 그대로 보이게 */

/* ─── [v2-03 · 증분2] 수강생·팀 배정 — 30/70 인라인 드래그 보드 + 탭바 컨텍스트 액션 ─────
   기존 모달 보드(.lecd-ta-*)·증분1 v2-03 톤을 그대로 쓰되, 인라인 컨테이너용 레이아웃만 보강.
   비-v2 는 이 블록이 적용되지 않으므로 기존 모달 방식 그대로(회귀 0). */

/* 탭바 = 탭(좌) + 컨텍스트 액션(우). 비-v2 에서도 래퍼는 있으나 ctx 가 display:none → 레이아웃 동일. */
html.v2 .lecd-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
/* ★탭 줄은 «긴 막대»다★ — 전폭으로 늘리고, 그 «안» 오른쪽 끝에
   도움말을 둔다. 그러면 빈 회색이 남지 않으면서(§0 4 공간 효율) 도움말도 «이 줄의 것»으로 읽힌다.
   <details 지우지 말 것 — 이 자리는 하루에 세 번 바뀌었다>
     ① 오전 a0a2543c2 : 전폭이면 ? 가 799px 밀려 「무엇의 설명인지」가 사라진다 → 막대를 내용 폭으로
        줄여 ? 를 탭 바로 옆에 붙였다.
     ② 오후 20260828-40 : 그러자 ? 가 마지막 탭(설정) 뒤에 붙어 «6번째 탭»으로 읽혔다
        → 막대 «밖» 오른쪽 끝으로 빼고, 거리 문제는 «라벨»(.alc-tour-btn--labeled)로 풀었다.
     ③ 지금 : *"이 줄 탭은 긴 막대여야해 그 안에 이 탭 사용법 넣기로 했잖아"* → 막대를 전폭으로
        되돌리되 도움말을 그 «안»에 둔다. ①의 빈칸 문제는 도움말이 그 자리를 채워 사라지고,
        ②의 «탭처럼 보임» 문제는 라벨 + tablist 밖 + margin-left:auto 로 떨어뜨려 사라진다.
   </details> */
html.v2 .lecd-tabbar .lecd-tabs-wrap { flex: 1 1 auto; min-width: 0; }
/* ★탭 칸 «안쪽» 아래 여백을 없앤다★ — .lecd-tabs 의 margin-bottom(10px)은 원래
   «알약 바깥» 여백이었는데, 칸을 .lecd-tabs-wrap 으로 올리면서 그대로 «알약 안쪽»으로 들어가
   칸 높이가 42→52px 로 늘고 아래가 비어 보였다. 여백은 탭바 자신이 갖는다(위 줄). */
html.v2 .lecd-tabs-wrap > .lecd-tabs { margin-bottom: 0; }
/* 팀 머리줄 오른쪽 액션 묶음 — ＋ 팀 추가 · 취소 · 저장.
   종전엔 탭 줄 오른쪽(.lecd-tab-ctx)에 있어 «무엇을 저장하는지» 안 보였다. */
html.v2 .lecd-ta-headacts { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
html.v2 .lecd-ta-headacts .btn { white-space: nowrap; }
html.v2 .lecd-ta-headacts .btn:disabled { opacity: .5; cursor: default; }
@media (max-width: 900px) {
  html.v2 .lecd-ta-righthead { flex-wrap: wrap; gap: 8px; }
  html.v2 .lecd-ta-headacts { flex-wrap: wrap; }
}

/* [생활기록부 v2] 탭 줄 우측 «범용» 슬롯 — 탭 칸(.lecd-tabs-wrap)의 형제.
   ★플래그 밖에 둔다★ v2-03 이 꺼진 환경에서는 .lecd-tabbar 가 flex 가 아니라 이 슬롯이
   탭 아래로 내려간다 — 자리가 어긋날 뿐 «사라지지는» 않는다(조작 수단이 사라지는 것이 제일 나쁘다). */
.lecd-tab-slot { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* 아무도 안 채우면 자리를 차지하지 않는다 — 6개 탭이 함께 쓰는 공용 크롬이다. */
.lecd-tab-slot:empty { display: none; }

/* 도움말 자리 — 탭 «막대 안» 오른쪽 끝.
   ★margin-left:auto★ 로 탭 무리에서 떼어 놓는다 — 붙여 두면 마지막 탭 뒤에 이어져 «6번째 탭»으로
   읽힌다(그것이 이 자리를 두 번 옮긴 이유다). 막대 안이되 «멀리»가 정답이다.
   ★:empty 로 숨기지 않는다★ — 이 칸은 투어 엔진이 «나중에» 채우는데, 숨겨 두면 mount 시점에
   자리가 없어 버튼이 폴백 위치로 떨어진다(공지사항에서 겪은 그 사고). */
.lecd-tabbar-help { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; padding-right: 2px; }

/* 버튼 «생김새»(.alc-tour-btn--labeled)는 css/tour.css 가 정본이다 — 여기서는 «자리»만 잡는다.
   (그 파일 주석: 「생김새는 공용 .alc-tour-btn(css/tour.css) 이 정한다」) */

/* 인라인 보드 래퍼 + 헤더(레퍼런스 .tasn-head 톤) */
html.v2 .lecd-team-board-host { margin-top: 4px; }
/* [IA] 수강생 목록 탭 = 보드 단독 — 여백 정리 + 좌 풀 최소 높이 키워 가독성 */
html.v2 .lecd-team-board-host--solo { margin-top: 0; }
html.v2 .lecd-team-board-host--solo .lecd-ta-pool { min-height: 200px; }
html.v2 .lecd-ta-inline { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: hidden; }
html.v2 .lecd-ta-inline-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(100deg, var(--primary-light), #f5f3ff); flex-wrap: wrap; }

/* [IA] 학생 상세 액션 시트(IEP·리포트·비고·수강취소) — 카드 클릭 단일 진입 */
html.v2 .lecd-stu-sheet { width: min(420px, 94vw); max-width: min(420px, 94vw); }
html.v2 .lecd-stu-sheet .lecd-stu-sheet-sub { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
html.v2 .lecd-stu-sheet-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
html.v2 .lecd-stu-sheet-act {
  display: inline-flex; align-items: center; gap: 9px; width: 100%;
  padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border);
  background: #fff; color: var(--text-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .12s, border-color .12s;
}
html.v2 .lecd-stu-sheet-act:hover { background: #f8fafc; border-color: var(--border-strong); }
html.v2 .lecd-stu-sheet-act .ui-ico { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
html.v2 .lecd-stu-sheet-act.danger { color: var(--danger); }
html.v2 .lecd-stu-sheet-act.danger:hover { background: #fef2f2; border-color: #fecaca; }
html.v2 .lecd-stu-sheet-act.danger .ui-ico { color: var(--danger); }
html.v2 .lecd-ta-inline-ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--primary-tint); color: var(--primary); flex-shrink: 0; }
html.v2 .lecd-ta-inline-ti .ui-ico { width: 18px; height: 18px; }
html.v2 .lecd-ta-inline-htx { min-width: 0; }
html.v2 .lecd-ta-inline-htx b { font-size: 14.5px; font-weight: 800; display: block; word-break: keep-all; color: var(--text-strong, #0f2c54); }
html.v2 .lecd-ta-inline-htx span { font-size: 12px; color: var(--text-muted); display: block; line-height: 1.45; word-break: keep-all; max-width: 620px; margin-top: 2px; }

/* 인라인 보드 본문 = 30/70 그리드(모달의 60vh/74vh 고정 높이를 인라인에서 해제). */
html.v2 .lecd-ta-inline .lecd-tadrag-body {
  display: grid; grid-template-columns: 30% 70%; gap: 0;
  min-height: 0; max-height: none; padding: 14px 16px;
}
html.v2 .lecd-ta-inline .lecd-ta-left,
html.v2 .lecd-ta-inline .lecd-ta-right { flex: none; min-width: 0; }
html.v2 .lecd-ta-inline .lecd-ta-pool { max-height: none; min-height: 120px; overflow: visible; }
html.v2 .lecd-ta-inline .lecd-ta-teams { max-height: none; overflow: visible; }

/* 학생 칩(인라인) — 이름 + 학번(.sid) + 출석률(.lecd-ta-att). 모달 .lecd-ta-stu 톤 위에 spans 정렬. */
html.v2 .lecd-ta-stu--rich { gap: 8px; flex-wrap: wrap; }
html.v2 .lecd-ta-stu-nm { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.v2 .lecd-ta-stu .sid { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-muted); font-weight: 600; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
html.v2 .lecd-ta-att { font-size: 10.5px; font-weight: 700; color: var(--success-dark); background: #f0fdf4; padding: 1px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
html.v2 .lecd-ta-att.low { color: var(--warning-dark); background: #fffbeb; }   /* [다크 ④ 수업 상세] 3.15 · 3.07 → 짝 글자(밝은 판도) */

/* [폴리시 P2] 학생 칩 이니셜 원 아바타 — 이름 기반 색(인라인 style) + 첫 글자. */
html.v2 .lecd-ta-stu-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

/* [폴리시 P2] 보드 헤더 미배정/배정 카운트 뱃지 — 미배정=앰버, 배정=그린. */
html.v2 .lecd-ta-inline-hsp { flex: 1; min-width: 8px; }
html.v2 .lecd-ta-inline-counts { display: flex; gap: 7px; flex-wrap: wrap; flex-shrink: 0; }
html.v2 .lecd-ta-count {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--text-body);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
/* ★색점을 뺐다★ — 이 뱃지(팀 배정)와 안내 칸·학생 카드의 «연동 상태» 칩이
   같은 앰버·그린 점을 써서 서로 다른 뜻이 같은 신호로 보였다("미연동 관련
   배지랑 미배정 배정됨 칩이랑 헷갈려"). 색은 «연동 상태» 쪽에 남기고, 팀 배정은 라벨에
   「팀」을 붙여 «말»로 구분한다. ⛔여기에 색점을 다시 넣지 말 것. */
html.v2 .lecd-ta-count { background: var(--surface-2, #f8fafc); color: var(--text-muted); }
html.v2 .lecd-ta-count b { color: var(--text-strong, #0f2c54); }

/* '전체 명단에서 불러오기' — 칸 «맨 아래»에서 «머리줄 오른쪽»으로 올라왔다.
   그래서 전폭 점선 버튼이 아니라 머리줄에 맞는 작은 버튼이다(학생이 많아도 항상 보인다). */
/* [2026-09-25 겹침 점검] 30% 칸(1280 에서 260px)에 글 + 단추 둘(149·84px, 줄바꿈 금지)이 한 줄로 서서 「미배정 학생」이
   12px 로 눌려 한 글자씩 세로로 섰고, 1024 에서는 단추가 칸 밖 팀 쪽으로 65px 삐졌다. 글은 basis 를 제 폭(auto)으로 잡아 단추가 먼저 아랫줄로
   내려가고, 「초대 N」 알약까지 붙어 칸보다 길면 낱말 단위로만 접힌다(keep-all · 한 글자씩 서지 않는다). */
html.v2 .lecd-ta-colhead--row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.v2 .lecd-ta-colhead--row .lecd-ta-colhead-tx { flex: 1 1 auto; min-width: 0; word-break: keep-all; }
/* 두 단추는 «한 묶음»(js/team-assign-panel.js .lecd-ta-pooladd-grp)이다 — 묶음째 아랫줄로 내려가고, 그 줄보다 넓으면 안에서 접힌다.
   ⛔폭 경계값(컨테이너 쿼리 349px)으로 풀지 말 것 — 「초대 N」 알약·세 자리 수로 글 길이가 바뀌면 경계가 틀린다(코드리뷰 4라운드). */
html.v2 .lecd-ta-pooladd-grp { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
/* ★채운 버튼으로 강조★ — 이 화면에서 «수강생을 넣는» 유일한 입구다.
   종전엔 흰 바탕 외곽선이라 머리줄 글자에 묻혀 처음 쓰는 교사가 못 찾았다. 색을 채워 그 자리에서
   가장 눈에 띄게 둔다(같은 줄에 경쟁하는 버튼이 없어 강조가 어지럽지 않다). */
html.v2 .lecd-ta-pooladd {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--primary-fill); border-radius: 9px; padding: 6px 12px;
  font-weight: 700; font-size: 11.5px; color: var(--text-on-primary); background: var(--primary-fill);
  white-space: nowrap; word-break: keep-all; cursor: pointer;
  box-shadow: 0 1px 3px rgba(37,99,235,.28);
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
html.v2 .lecd-ta-pooladd:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
html.v2 .lecd-ta-pooladd:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 3px 8px rgba(37,99,235,.34); }
html.v2 .lecd-ta-pooladd:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(37,99,235,.28); }
html.v2 .lecd-ta-pooladd .ui-ico { width: 13px; height: 13px; flex-shrink: 0; }

/* 좁은 화면: 30/70 → 세로 스택(미배정 위, 팀 아래) */
@media (max-width: 980px) {
  html.v2 .lecd-ta-inline .lecd-tadrag-body { grid-template-columns: 1fr; }
}

/* ─── [F87→F99] 강의 관리 통합 대시보드 (1×4 요약 카드 · 도넛 정밀화) ───── */


/* 1번 — 다음 예정 회차 박스(파란 틀) */


/* 도넛 차트(수강생·설문 카드 공용) */


/* 3번 — 출결: 최근 진행 회차 박스 + 4배지 2×2 */


/* [D-04] 공결 배지 아이콘 색 명시(다른 3배지와 정합·대비 확보). 현 아이콘은 이모지(👤)라 글리프 자체색이 우선이나, 이모지 미지원·텍스트 글리프 대체 시 #374151(bg-subtle 위 9.4:1 AA) 보장. */

/* 4번 — 설문: 진행 중인 설문 박스 */

/* [F87] 관리 모달 — 기존 4탭 화면을 그대로 담는 큰 모달 (LOCAL 통합 대시보드 전용) */
.lecd-mng-overlay { z-index: 1200; padding: 24px; }
/* [연구소] 매니지 모달(z 1200) '위'에서 열리는 보조 모달 — 기본 .dialog-overlay(z 400)라
   매니지 모달에 가려지던 버그(수강생 관리 → '전체 명단에서 불러오기'가 뒤에 깔림). 1300으로 올림. */
.lecd-imp-overlay,
.lecd-att-cell-overlay,
.lecd-inv-overlay,
.lecd-addstu-overlay { z-index: 1300; }
/* [B3/B-5~7] '상세보기' 모달 가로 확대 — 회차/출석 ×2, 수강생 ×2.5.
   ⚠️회귀원인: .dialog-modal{max-width:520px} 가 width 를 덮어 520px 로 잘렸음 → max-width 도 함께 오버라이드. */
/* [#3] IEP·결과리포트 모달이 수강생 관리 모달(z-index 1200) 위로 — 뒤로 깔림 방지 */
#iepDlg, #lecdReportModal { z-index: 1400; }
/* [B3-5] 수강생 추가/초대 모달은 수강생 관리 모달(z-index 1200) '앞'에 떠야 함. */
.lecd-addstu-overlay, .lecd-inv-overlay { z-index: 1300; }
@media (max-width: 720px) {
  /* 좁은 화면 — 과확대 방지: 본문 최소높이 해제, 패딩 축소, 전체 높이 사용. */
  .lecd-mng-overlay { padding: 0; }
}

/* [F59b] 설정 탭 — 「공통」/「이 수업만」 배지(자동 종료 칸 제목 옆) */
.lecd-set-badge {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.lecd-set-badge--inherit { background: var(--bg-muted, #eef1f5); color: var(--text-muted); border-color: var(--border); }
.lecd-set-badge--own { background: rgba(37, 99, 235, .12); color: var(--primary); border-color: rgba(37, 99, 235, .35); }

/* [2026-10-23] 자동 종료 칸 제목 줄 = 제목 · 배지 · (이 수업만 다를 때) 「공통으로 되돌리기」 — 맨 위 상태 줄을 걷고 여기로 모았다. */
.lecd-set .sv-group h3.lecd-set-h3row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lecd-set h3.lecd-set-h3row .lecd-set-reset { margin-left: auto; }
.lecd-set h3.lecd-set-h3row .lecd-set-reset[hidden] { display: none; }
/* [2026-10-23] 수업 삭제 칸 — 단추만 빨간 글씨(되돌리기 어려운 동작) */
.lecd-set-del { color: var(--danger); border-color: var(--danger-light); flex-shrink: 0; }
.lecd-set-del:hover { background: var(--danger-light); color: var(--danger); }
/* [2026-09-23] 「공통」 배지를 자동 종료 카드 제목 옆에도 단다 — 어느 칸이 공통인지 붙여 보인다. */
.lecd-set .sv-group h3 .lecd-set-badge { margin-left: 6px; vertical-align: 2px; }
/* 카드 머리 아래 한 줄 설명 — 줄 안 설명(.sv-row .sv-desc)과 같은 크기·색. 이 화면엔 규칙이 없어 본문 크기로 떴다. */
.lecd-set .sv-group > .sv-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; word-break: keep-all; }
/* 「지각 사용」을 켰을 때만 보이는 아래 줄. ★.sv-row 가 display:flex 라 [hidden] 이 진다★ — 따로 꺼 준다. */
.lecd-set-subrow { margin-left: var(--space-3, 12px); padding-left: var(--space-3, 12px); border-left: 3px solid var(--border); }
.lecd-set-subrow[hidden] { display: none; }

/* [F4] 회차 목록 상단 바 — 안내문(좌) + '회차 신규 추가'(우) */
/* 안내 문구를 뺀 뒤 이 줄에 남는 것은 「＋ 회차 신규 추가」 하나뿐이다 —
   space-between 은 «홀로 남은 것»을 왼쪽에 붙이므로 종전 자리(오른쪽)를 지키도록 flex-end 로. */
.lecd-sess-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.lecd-sess-bar #lecdAddSess { flex: 0 0 auto; margin-bottom: 12px; white-space: nowrap; }
/* 상태 칩과 「＋ 회차 신규 추가」를 «한 줄»로 — 종전엔 버튼만 한 줄, 칩이 그 아래
   한 줄로 두 줄을 썼다. 칩 왼쪽 · 버튼 오른쪽. ★모디파이어로만 바꾼다★ —
   .lecd-sess-bar 는 옛 표 화면도 쓰는데 거기선 버튼 하나뿐이라, 공용 규칙을 space-between 으로
   바꾸면 그 화면의 버튼이 오른쪽에서 왼쪽으로 튄다. */
html.v2 .lecd-sess-bar--split { justify-content: space-between; align-items: center; margin-bottom: 13px; }
html.v2 .lecd-sess-bar--split .lecd-sess-legend { margin: 0; flex: 1 1 auto; }
html.v2 .lecd-sess-bar--split #lecdAddSess { margin-bottom: 0; }
/* [시범 1호 3차 · §0-B R212 ④] 600 이하에서는 칩 셋과 「＋ 회차 추가」가 한 줄에 다 들어가지 않는다(약 420px). 종전엔 칩만 왼쪽에
   남고 단추가 다음 줄 왼쪽에 혼자 놓여 둘 다 떠 보였다. 칩은 폭 전체를 세 칸으로 나누고, 단추도 폭 전체를 쓴다(누르는 곳 44px · 사이 8px). */
@media (max-width: 600px) {
  html.v2 .lecd-sess-bar--split { flex-direction: column; align-items: stretch; gap: 8px; }
  html.v2 .lecd-sess-bar--split .lecd-sess-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.v2 .lecd-sess-bar--split .lecd-sess-legend .lgl { justify-content: center; min-height: 44px; }
  html.v2 .lecd-sess-bar--split #lecdAddSess { width: 100%; min-height: 44px; }
}

/* ⛔[F-20260925-09-1 · 2026-09-29] 「회차 목록 탭 표」 CSS 76줄을 지웠다 —
     `.lecd-table-wrap` · `.lecd-sess-table/row/week/num/go/date/editdate/status/rec/statuscell/editrow`
     와 짝인 `@keyframes lecdSessRec`·`lecdSessNewPulse`. 그 표를 그리던 JS 갈래는 2026-09-25 에
     걷혔고(`57819b5cb` · 결정 5A), 오늘 다시 재니 저장소 전체에서 그 클래스를 붙이는 코드가 **0곳**이다.
   ★살아 있어서 남긴 것★ — `.lecd-sess-bar`·`.lecd-sess-legend`(범례는 `js/sessions-panel.js` 가 그린다)
     와 `.lecd-sched-editrow--card`(오늘도 쓰는 인라인 편집 카드). 되살리려면 그리는 화면이 먼저다. */

/* [DC-5] v2-03 카드 안 인라인 편집(div 형태) — 테이블 td 와 동일 톤·여백을 카드 내부에 부여 */
.lecd-sched-editrow--card {
  background: var(--bg-subtle);
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  cursor: default;
}
.lecd-sched-form { display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.lecd-sched-fields { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.lecd-sched-field { display: flex; flex-direction: column; gap: 4px; }
.lecd-sched-lbl { font-size: 12px; font-weight: 700; color: var(--text-body); }
/* [CE-5] 회차별 임의 날짜 override 입력 */
.lecd-sched-field--date { flex: 0 0 auto; }
.lecd-sched-date { width: 168px; }
/* [시안 84 2차] 시각은 «한 범위»다 — 라벨 하나 아래 [시작] ~ [끝] */
.lecd-sched-range { display: inline-flex; align-items: center; gap: 6px; }
/* ★시각 칸에 폭을 «주지 않는다»★ — 브라우저가 스스로 「오전 12:24 🕐」에 맞춰 잡는다.
   116px 로 못박았다가 한국어 12시간 표기가 「오전 12:2…」로 잘렸다(2026-09-22 실화면에서 잡음). */
.lecd-sched-tilde { color: var(--text-muted); font-size: var(--text-sm); font-weight: 700; }
/* 「날짜 미정으로」와 「취소·저장」 사이 — 결과가 다른 동작은 붙이지 않는다(R068) */
.lecd-sched-adiv { width: 1px; height: 22px; background: var(--border-strong); flex-shrink: 0; }
/* 미리보기 줄이 버튼과 «같은 줄»에 서므로 어절 단위로 접는다(R069) */
.lecd-sched-actions .lecd-sched-preview { word-break: keep-all; }
/* ⚠두 구분선은 `--border` 가 아니라 `--border-strong` 이다 — 폼 바탕이 `--bg-subtle` 계열이라
   `--border` 로는 바탕과 붙어 «보이지 않는다»(2026-09-22 실화면에서 확인 · R011). */
/* ★줄이 접히면 구분선은 «허공에 선 한 줄»이 된다★ — 그래서 뷰포트가 아니라 «그 폼의 폭»으로
   끈다(R015 「접는 지점은 칸이 실제로 좁아지는 지점에서」 · R129 컨테이너 쿼리).
   뷰포트 기준(@media)으로 걸었다가 420px 짜리 카드 안에서 선만 남는 것을 실화면에서 봤다. */
@container (max-width: 700px) { .lecd-sched-adiv { display: none; } }
/* [시안 84 · 2026-09-22] `.lecd-sched-datehint` 규칙을 지웠다 — 그 안내문 세 문장을 화면에서
   걷어내며 함께 걷은 «내가 만든 고아»다(R137 설정 줄 = 제목 + 조작). 그 말은 사용설명서
   `manual-topic-sessions.html` §2 로 옮겼다 — 지우지 않고 옮겼다(R137ⓓ). */
.lecd-sched-preview { margin: 0; font-size: 13px; font-weight: 600; color: var(--primary); }
.lecd-sched-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lecd-sched-actions .btn { min-height: 40px; }
/* [F140] '날짜 미정으로'는 좌측, 취소/저장은 우측으로 밀어내는 스페이서 */
.lecd-sched-actions-spacer { flex: 1 1 auto; }
/* [F140] '날짜 미정으로' 버튼 — 보조 액션 톤(은은한 경고색 텍스트).
   ★2026-09-22 이름이 「미일시로 설정」에서 바뀌었다★ — 「미일시」는 사전에 없는 개발자 말이다(R065). */
.lecd-sched-unset { color: var(--text-muted); }
.lecd-sched-unset:hover { color: var(--danger); }

/* ═══ [2026-10-22 사용자 지적 「전체적으로 글씨가 너무 작고 직관적이지 않아」] 회차 상세 글씨 크기 ═══
   기준 = 맞춤 학습 화면(css/adaptive-rec.css — 카드 제목 --text-lg 17 · 본문 --text-base/--text-md).
   실측 전(1400px): 회차명 14 · 메타 13 · 상태 배지 12 · 주 단추 13 · 정보 칸 13 · 거르기 12 ·
   슬라이드 타일 유형 10(옅은 회색 · 흰 바탕 대비 2.4) · 타일 제목 11.5.
   ★맨 끝에 한 덩어리로 둔다★ — 흩어진 옛 규칙(main-analysis.css 의 밀도 조정 포함)을 하나하나 고치지 않고
   여기서 덮는다. 머리 카드 #lecdHeaderCard · 회차 목록 #lecdPanel 안쪽에만 건다(다른 화면 무변경).
   ⚠「수업 리포트」 34px(main-analysis.css ⑤)도 여기서 40px 로 덮는다 — 글씨를 키우면 34px 칸에 안 맞는다. */
html.v2 #lecdHeaderCard .lecd-fact { font-size: var(--text-base); }
html.v2 #lecdHeaderCard .lecd-acts-row .btn { font-size: var(--text-base); }
html.v2 .lecd-tab { font-size: var(--text-md); }
html.v2 #lecdPanel .lecd-sess-legend .lgl { font-size: var(--text-sm); padding: 6px 12px; }
html.v2 #lecdPanel #lecdAddSess { font-size: var(--text-base); }
html.v2 #lecdPanel .lecd-stitle { font-size: var(--text-lg); }
html.v2 #lecdPanel .lecd-smeta { font-size: var(--text-base); margin-top: 8px; }
/* [2026-10-23 사용자 「수업 시작·수업 리포트 단추 너비 맞춘 것처럼 슬라이드 개수랑 일시도 간격 맞춰서」]
   메타 줄의 앞 두 칸(슬라이드 수 · 일시)에 최소 폭을 주어 카드마다 같은 자리에서 시작한다 — 출석이 한 세로줄에 선다.
   글자 크기를 따라가도록 em 으로 잡았다(가장 긴 「슬라이드 11개」 · 「10/25(일) 09:00 · 09:00~09:50」 기준). 숫자는 같은 폭. */
html.v2 #lecdPanel .lecd-smeta { font-variant-numeric: tabular-nums; }
html.v2 #lecdPanel .lecd-smeta > .lecd-si:nth-child(1) { min-width: 8em; }
html.v2 #lecdPanel .lecd-smeta > .lecd-si:nth-child(2) { min-width: 16em; }
/* [2026-10-23 사용자 「칸마다 세로 여백 좀 더 줘도 될 것 같아」] 회차 카드 위아래 10 → 14 · 카드 사이 12 (10-23 18 로 늘렸다가 «좀 더 줄여도» 로 14)
   (main-analysis.css ④ 의 밀도 조정 10px 을 여기서 덮는다) */
html.v2 #lecdPanel .lecd-scard-row { padding-top: 14px; padding-bottom: 14px; }
/* [2026-10-23 사용자 「시안 A · 왼쪽 여백만 더」] 카드 왼쪽 여백 18 → 32 · 번호와 제목 사이 14 → 22.
   휴대폰은 폭이 좁아 제목이 한 줄 더 꺾이므로 왼쪽 여백만 조금(24) 늘린다. */
html.v2 #lecdPanel .lecd-scard-row { padding-left: 32px; }
html.v2 #lecdPanel .lecd-scard-grab { gap: 22px; }
@media (max-width: 760px) {
  html.v2 #lecdPanel .lecd-scard-row { padding-left: 24px; }
  html.v2 #lecdPanel .lecd-scard-grab { gap: 14px; }
}
html.v2 #lecdPanel .lecd-si .ui-ico { width: 15px; height: 15px; }
html.v2 #lecdPanel .lecd-sstat { font-size: var(--text-sm); }
/* [2026-10-23 사용자 「시안 C 에서 숫자는 크게 회차는 작게 표시한 부분 채택」] 번호 칸 = 색 상자 없이 «큰 숫자 + 옆에 작은 회차».
   상태 색은 왼쪽 띠(.lecd-scard::before)가 계속 말한다. */
html.v2 #lecdPanel .lecd-sno {
  width: auto; min-width: 64px; height: auto; background: transparent; color: var(--text);
  display: flex; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 2px;
}
html.v2 #lecdPanel .lecd-sno b { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
html.v2 #lecdPanel .lecd-sno small { font-size: var(--text-md); font-weight: 700; margin-top: 0; }
html.v2 #lecdPanel .lecd-sno--tbd b { font-size: var(--text-xl); color: var(--text-body); letter-spacing: 0; }
@media (max-width: 760px) {
  html.v2 #lecdPanel .lecd-sno { min-width: 48px; }
  html.v2 #lecdPanel .lecd-sno b { font-size: var(--text-2xl); }
  html.v2 #lecdPanel .lecd-sno small { font-size: var(--text-sm); }
}
html.v2 #lecdPanel .lecd-sacts .lecd-sa-primary { font-size: var(--text-base); height: 40px; min-height: 40px; min-width: 124px; padding: 0 16px; }
html.v2 #lecdPanel .lecd-sacts .lecd-sa-icon { width: 40px; height: 40px; }
html.v2 #lecdPanel .lecd-sa-mi { font-size: var(--text-base); }
html.v2 #lecdPanel .lecd-slides-edit { font-size: var(--text-base); }
html.v2 #lecdPanel .lecd-sl { width: 150px; }
html.v2 #lecdPanel .lecd-sl-cap { font-size: var(--text-sm); padding: 8px 10px; }
html.v2 #lecdPanel .lecd-sl-cap b { font-size: var(--text-xs); color: var(--text-muted); }
html.v2 #lecdPanel .lecd-sl-add { font-size: var(--text-base); }
html.v2 #lecdPanel .lecd-sched-lbl { font-size: var(--text-sm); }
/* ═══ [2026-10-23 사용자 「상단 카드를 가장 크게 해줘」] 머리 카드 = 이 화면에서 가장 큰 칸 ═══
   회차 카드(위아래 18 · 번호 칸 52 · 회차명 17)보다 한 단계 크게 둔다.
   실측 전(1400px): 위아래 12(main-analysis.css ①) · 그림 64 · 수업 이름 24 · 정보 14. */
html.v2 #lecdHeaderCard.lecd-hcard { padding: 28px 32px 28px 34px; gap: 24px; margin-bottom: 18px; }
html.v2 #lecdHeaderCard .lecd-cover { width: 96px; height: 96px; border-radius: var(--radius-lg); font-size: var(--text-3xl); }
html.v2 #lecdHeaderCard .lecd-cover .lecd-hcard-img--ph { font-size: var(--text-3xl); }
html.v2 #lecdHeaderCard .lecd-hcard-title { font-size: var(--text-3xl); }
html.v2 #lecdHeaderCard .lecd-facts { margin-top: 14px; gap: 22px; row-gap: 10px; }
html.v2 #lecdHeaderCard .lecd-fact { font-size: var(--text-md); gap: 9px; }
html.v2 #lecdHeaderCard .lecd-fi { width: 30px; height: 30px; border-radius: 8px; }
html.v2 #lecdHeaderCard .lecd-acts-row .btn { height: 44px; min-height: 44px; padding: 0 18px; font-size: var(--text-md); }
@media (max-width: 760px) {
  html.v2 #lecdHeaderCard.lecd-hcard { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 22px 18px 22px 22px; }
  html.v2 #lecdHeaderCard .lecd-cover { width: 72px; height: 72px; }
  html.v2 #lecdHeaderCard .lecd-hcard-title { font-size: var(--text-2xl); }
  html.v2 #lecdHeaderCard .lecd-hcard-when { font-size: var(--text-md); }
}
/* [2026-10-23] 대표 이미지 «변경·삭제» 메뉴 — 카드(overflow:hidden) 밖으로 나가야 해서 화면 기준으로 띄운다(자리는 js). */
html.v2 #lecdHeaderCard .lecd-cover-menu { position: fixed; right: auto; min-width: 210px; z-index: 60; }
html.v2 #lecdHeaderCard .lecd-cover-menu .lecd-sa-mi { font-size: var(--text-base); min-height: 40px; }
/* [2026-10-23] 「🔒 편집 잠김」 배지 말풍선 — 마우스를 올리거나 키보드로 오면 «더보기 → 복제»를 알린다.
   배지 아래로 띄운다(위로 띄우면 앞 회차 줄을 가린다). 긴 문장이라 줄을 바꾼다.
   펼치기 단추에 키보드로 오면(focus-visible) 함께 뜬다 — 배지 자체는 단추 안이라 포커스를 받지 않는다. */
html.v2 .lecd-sstat.lock[data-tip] { position: relative; cursor: help; }
html.v2 .lecd-sstat.lock[data-tip]::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: max-content; max-width: 280px; white-space: normal; word-break: keep-all; text-align: left;
  background: var(--text); color: var(--surface); font-size: var(--text-sm); font-weight: 600; line-height: 1.45;
  padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-md);
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s;
}
html.v2 .lecd-sstat.lock[data-tip]:hover::after,
html.v2 .lecd-scard-grab:focus-visible .lecd-sstat.lock[data-tip]::after { opacity: 1; visibility: visible; }
/* ═══ [2026-10-23 사용자 「E1 좋다 · 휴강보강은 일정 상자에 · D1」] 회차 편집 칸 = 흰 상자 둘 + 아래 확인 줄 ═══
   왼쪽 «회차 정보»(회차명) · 오른쪽 «일정»(휴강·보강 · 날짜 + 빠른 칩 · 시각).
   칸 높이는 44px 로 맞춘다. 폼의 폭으로 접는다(컨테이너 쿼리 — 폼에 container-type 이 이미 있다). */
html.v2 .lecd-sched-editrow--card { padding: 16px 20px 16px 32px; }
.lecd-sched-form { gap: 14px; }
.lecd-sched-boxes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
@container (max-width: 760px) { .lecd-sched-boxes { grid-template-columns: minmax(0, 1fr); } }
.lecd-sched-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lecd-sched-boxh { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--text-base); font-weight: 800; color: var(--text); }
.lecd-sched-boxh .ui-ico { width: 24px; height: 24px; padding: 5px; border-radius: 8px; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.lecd-sched-lbl { font-size: var(--text-sm); }
.lecd-sched-box .form-control { min-height: 44px; font-size: var(--text-base); }
.lecd-sched-field--name { width: 100%; }
/* 휴강·보강 — 칸마다 캘린더와 같은 색 점 */
.lecd-sched-kdot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; background: var(--primary); }
.lecd-sched-kindopt[data-kind="cancelled"] .lecd-sched-kdot { background: var(--text-muted); }
.lecd-sched-kindopt[data-kind="makeup"] .lecd-sched-kdot { background: var(--warning-dark); }
.lecd-sched-kindopt.is-on[data-kind="cancelled"] .lecd-sched-kdot,
.lecd-sched-kindopt.is-on[data-kind="makeup"] .lecd-sched-kdot { background: var(--text-on-primary); }
.lecd-sched-kindopt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.lecd-sched-fields { gap: 14px 18px; align-items: flex-start; transition: opacity .15s; }
.lecd-sched-fields.is-dim .lecd-sched-lbl { color: var(--text-muted); }   /* [다크 ④ 수업 상세] 흐림(.5 · 2.52) 대신 보조 글자색 — 칸은 그대로 고칠 수 있다 */
/* 빠른 날짜 칩(D1) */
.lecd-sched-qchips { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin-top: -4px; }
.lecd-sched-qchips[hidden], .lecd-sched-qchip[hidden] { display: none; }
.lecd-sched-qchip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--text-body); cursor: pointer; }
.lecd-sched-qchip:hover { border-color: var(--primary); color: var(--primary); }
.lecd-sched-qchip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#lecdSchedDateReset { background: var(--primary-light); border-color: var(--primary-tint); color: var(--primary); }
/* 아래 확인 줄 — «변경 전 → 후» 알약 */
.lecd-sched-preview { font-size: var(--text-sm); }
.lecd-sched-preview.is-on { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--primary-tint); border-radius: 999px; padding: 6px 14px; }
.lecd-sched-preview s { color: var(--text-muted); font-weight: 500; }
.lecd-sched-chg-k { color: var(--text-body); }
.lecd-sched-actions .btn { min-height: 44px; }
/* ═══ [2026-10-23 사용자 「1번 A(디자인 더 예쁘게)」] 머리 카드 «수업 전체 리포트» 아래 «진행한 회차 · 출석률» ═══
   단추와 같은 폭의 두 칸. 칸마다 큰 숫자 + 얇은 진행 막대(진행 = 주 색 · 출석 = 초록). 테두리 대신 옅은 바탕.
   막대는 꾸밈이다(aria-hidden) — 숫자가 같은 말을 글로 한다. */
html.v2 #lecdHeaderCard .lecd-acts { flex-direction: column; align-items: stretch; gap: 10px; min-width: 300px; }
html.v2 #lecdHeaderCard .lecd-acts-row .btn { width: 100%; justify-content: center; }
.lecd-hstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lecd-hstat { background: var(--bg-subtle); border-radius: 8px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lecd-hstat-k { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.lecd-hstat-v { font-size: var(--text-2xl); font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lecd-hstat-v small { font-size: var(--text-md); font-weight: 700; color: var(--text-muted); letter-spacing: 0; }
.lecd-hstat-bar { display: block; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 6px; }
.lecd-hstat-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width .4s ease; }
/* [keep-css] .lecd-hstat--att — js/lecture-hcard-stats.js 가 `lecd-hstat--${kind}` 로 만든다 */
.lecd-hstat--att .lecd-hstat-bar i { background: var(--success); }
@media (prefers-reduced-motion: reduce) { .lecd-hstat-bar i { transition: none; } }
@media (max-width: 760px) {
  html.v2 #lecdHeaderCard .lecd-acts { min-width: 0; }
}

/* ═══ [다크 ④ 수업 상세 2026-10-24] 다크에서만 — 흰 판 · 옅은 칩 · 옛 남색 글자가 밝게 남지 않게 색 이름을 가리킨다 ═══
   밝은 판 · 고대비 값은 그대로다(고대비가 붙으면 이 블록이 꺼진다 · common.css 다크 블록과 같은 조건).
   머리 카드 · 슬라이드 칸의 네 색(파랑 · 청록 · 보라 · 주황 · 초록 · 분홍)은 «값을 구분하는 색»(R104)이라 뜻 색으로 바꾸지 않고
   요일 색의 다크 짝(--day-N · main-lecture-list.css)을 쓴다 — 청록은 수업 색 청록 면(--course-5-bg) + 청록 글자(--info-dark). */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-fi.soft-blue,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-blue { background: var(--day-0-bg); color: var(--day-0-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-fi.soft-green,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-green { background: var(--day-1-bg); color: var(--day-1-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-rose { background: var(--day-2-bg); color: var(--day-2-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-fi.soft-amber,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-amber { background: var(--day-3-bg); color: var(--day-3-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-fi.soft-purple,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-purple { background: var(--day-4-bg); color: var(--day-4-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-fi.soft-teal,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th.soft-teal { background: var(--course-5-bg); color: var(--info-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sess-legend .lgl:hover:not(:disabled):not(.is-on) { background: var(--bg-subtle); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sess-legend .lgl-n { background: color-mix(in srgb, var(--text) 12%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sess-legend .lgl.is-on:hover { background: var(--primary-fill-hover); border-color: var(--primary-fill-hover); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sstat.todo { background: var(--bg-subtle); border-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sstat.lock { background: var(--warning-light); color: var(--warning-dark); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-scard.now { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-scard.now .lecd-si--note { color: var(--danger); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sa-primary.go:hover,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sa-primary.start:hover { background: var(--primary-fill-hover); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-chev:hover { background: var(--surface-hover); color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sa-div { background: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sa-icon:hover { background: var(--surface-hover); color: var(--text-body); border-color: var(--border-strong); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-slides { border-top-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl { background: var(--surface); border-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-th { border-bottom-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sl-cap { color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-inline-head { background: linear-gradient(100deg, var(--primary-light), var(--surface-2)); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-inline-ti { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-inline-htx b,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-colhead,
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-count b { color: var(--text); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-left { background: var(--bg-subtle); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-stu { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-stu::before { color: var(--text-faint); }   /* [design-ok] 장식 — 끌기 손잡이 점(읽는 글자 아님 · D4) */
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-att { background: var(--success-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-att.low { background: var(--warning-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-ta-pooladd:hover { background: var(--primary-fill-hover); border-color: var(--primary-fill-hover); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stu-sheet-act { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stu-sheet-act:hover { background: var(--surface-hover); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stu-sheet-act.danger:hover { background: var(--danger-light); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-set-badge--inherit { background: var(--bg-subtle); }
}

/* ═══ [다크 ④ 수업 상세 2026-10-24] 다크에서만 — 잠김 배지 말풍선(글자색 면 = 다크에서 밝은 면) ═══
   밝은 판 · 고대비 값은 그대로다(고대비가 붙으면 이 블록이 꺼진다 · common.css 다크 블록과 같은 조건). */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-sstat.lock[data-tip]::after { background: var(--bg-subtle); color: var(--text); border: 1px solid var(--border-strong); }
}

/* ════════════════════════════════════════════════════════════════════════════
   [R246 · 2026-10-31] 수업 상세(머리 · 회차 탭 · 학생 탭) = 마디아 디자인 법칙(R242) 3번째 화면 — 사용자 «이대로 전부다 반영하자»
   정본 = docs/10_디자인/마디아_디자인법칙.md · 결정 = §0-B R246 · 회귀 가드 = tests/frontend/lecture_madia_rules.spec.js
   목록 쪽은 css/main-lecture-list.css 끝. 수업자료·출결·설정 탭은 다음 차례라 건드리지 않는다.
   남기는 것: 회차 카드 상태 띠 · 거르기 칩 색(R210) · 출석 낮음 주황(뜻 있는 색) · 휴대폰 머리 배치(R212).
   ════════════════════════════════════════════════════════════════════════════ */
html.v2:not(.role-student) .lecd-view { --text-xs: 12px; --text-sm: 13px; --lec-title-fs: 18px; --lecd-title-fs: 28px; --lecd-kpi-fs: 32px; }
/* 1. 글자 단계 — 12 아래 없음. 머리 카드 «가장 크게»(10-23)는 수업 이름 28 · 그림 96 으로 지킨다 */
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-hcard-title { font-size: var(--lecd-title-fs); }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-fact b { font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-tab { font-size: var(--text-base); }
/* 회차 번호 — 위 «#lecdPanel .lecd-sno b»(30 · 15)를 이기려면 id 가 있어야 한다 · 휴대폰(24 · 13)과 «미정»(20)은 이미 단계 안이라 그대로 */
@media (min-width: 761px) {
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sno:not(.lecd-sno--tbd) b { font-size: var(--lecd-title-fs); }
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sno:not(.lecd-sno--tbd) small { font-size: var(--text-base); }
}
html.v2:not(.role-student) .lecd-view .lecd-stitle-name { font-size: var(--lec-title-fs); word-break: keep-all; overflow-wrap: anywhere; }
html.v2:not(.role-student) .lecd-view .lecd-ta-inline-htx b { font-size: var(--text-xl); }
html.v2:not(.role-student) .lecd-view .lecd-ta-count,
html.v2:not(.role-student) .lecd-view .lecd-ta-count b,
html.v2:not(.role-student) .lecd-view .lecd-ta-pooladd { font-size: var(--text-sm); }
html.v2:not(.role-student) .lecd-view .lecd-ta-cnt,
html.v2:not(.role-student) .lecd-view .lecd-ta-teamcnt,
html.v2:not(.role-student) .lecd-view .lecd-ta-stu-av,
html.v2:not(.role-student) .lecd-view .lecd-ta-stu .sid,
html.v2:not(.role-student) .lecd-view .lecd-linkstat,
html.v2:not(.role-student) .lecd-view .lecd-ta-att { font-size: var(--text-xs); }
html.v2:not(.role-student) .lecd-view .lecd-ta-stu-nm,
html.v2:not(.role-student) .lecd-view .lecd-ta-teamname { font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-ta-teamname { flex-shrink: 0; white-space: nowrap; }   /* 좁은 폭에서 «1팀»이 «1»로 잘렸다(시안 실측) */
/* 2. 단추 높이 — 머리 40 · 줄 안 36. height 로 준다: 손가락 기기 44 바닥(R152)이 그대로 이긴다 */
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-acts-row .btn { height: 40px; padding-top: 0; padding-bottom: 0; font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-sess-legend .lgl { height: 36px; }
html.v2:not(.role-student) .lecd-view #lecdAddSess { height: 36px; padding-top: 0; padding-bottom: 0; }
html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-primary { height: 36px; padding-top: 0; padding-bottom: 0; }   /* 위 «#lecdPanel … height 40 · min-height 40» 을 이기려면 id 가 있어야 한다 */
html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-morebtn { height: 36px; width: 36px; }
/* 바닥(min-height)은 마우스에서만 내린다 — 손가락 기기는 44(R152). 줄 안 단추는 원래 id 규칙의 min-height 40 에 막혀 44 바닥이 안 닿았다 */
@media (pointer: fine) {
  html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-acts-row .btn,
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-primary,
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-morebtn { min-height: 0; }
}
@media (pointer: coarse) {
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-primary { min-height: 44px; }
  html.v2:not(.role-student) .lecd-view #lecdPanel .lecd-sacts .lecd-sa-morebtn { min-height: 44px; min-width: 44px; }
}
html.v2:not(.role-student) .lecd-view .lecd-scard-chev { height: 36px; width: 36px; }
html.v2:not(.role-student) .lecd-view .lecd-ta-pooladd { height: 36px; padding: 0 12px; }
html.v2:not(.role-student) .lecd-view #lecdTaAddTeam,
html.v2:not(.role-student) .lecd-view #lecdTaCtxReset,
html.v2:not(.role-student) .lecd-view #lecdTaCtxSave { height: 36px; padding-top: 0; padding-bottom: 0; }
html.v2:not(.role-student) .lecd-view .lecd-ta-teamrename,
html.v2:not(.role-student) .lecd-view .lecd-ta-teamdel { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
html.v2:not(.role-student) .lecd-view .lecd-ta-teamrename:hover,
html.v2:not(.role-student) .lecd-view .lecd-ta-teamdel:hover { background: var(--surface-2); }
html.v2:not(.role-student) .lecd-view .lecd-ta-teamhead { padding-top: 2px; padding-bottom: 2px; }
@media (max-width: 600px) {
  html.v2:not(.role-student) .lecd-view .lecd-ta-teamrename,
  html.v2:not(.role-student) .lecd-view .lecd-ta-teamdel { width: 28px; }   /* 팀 이름에 폭을 양보 — 높이 바닥은 R152 그대로 */
}
/* 3. 뜻 없는 색 걷기 — «편집 잠김»은 주의가 아니라 상태다 · 머리 정보 아이콘 네 색은 값을 가르지 않는다 */
html.v2:not(.role-student) .lecd-view .lecd-sstat.lock { background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-fi { background: var(--surface-2); color: var(--text-muted); }
/* 5. 머리 숫자 — 회색 상자 없이 숫자 32 + 단위 20(대시보드 R244 와 같은 꼴) · 진행 막대는 남긴다 */
html.v2:not(.role-student) .lecd-view .lecd-hstat { background: none; border: 0; box-shadow: none; padding-left: 4px; padding-right: 4px; }
html.v2:not(.role-student) .lecd-view .lecd-hstat-v { font-size: var(--lecd-kpi-fs); line-height: 1.1; }
html.v2:not(.role-student) .lecd-view .lecd-hstat-v small { font-size: var(--text-xl); }
/* 6. 회차 줄 «수업 리포트» — 테두리 단추 15개 → 글자 단추 «수업 리포트 ›». 채운 단추는 «수업 시작» 하나 */
html.v2:not(.role-student) .lecd-view .lecd-sacts .lecd-sa-primary.quiet { background: none; border-color: transparent; box-shadow: none; color: var(--primary); padding-left: 10px; padding-right: 10px; }
html.v2:not(.role-student) .lecd-view .lecd-sacts .lecd-sa-primary.quiet svg { display: none; }
html.v2:not(.role-student) .lecd-view .lecd-sacts .lecd-sa-primary.quiet::after { content: "›" / ""; margin-left: 6px; font-size: 1.15em; line-height: 1; }
html.v2:not(.role-student) .lecd-view .lecd-sacts .lecd-sa-primary.quiet:hover { background: var(--primary-soft); }
/* 7. 학생 탭 — 학생 줄 상자 걷기(팀 카드가 묶음을 보여 준다) · 모두 같은 «연동됨»은 걷고 «미연동»만 · 채운 단추는 «팀 배정 저장» 하나
      위쪽 숫자 칸 셋(총 학생 · 수강 중 · 팀 미배정)은 바로 아래 보드 머리와 같은 숫자라 감춘다 — 요소는 남긴다(투어 준비 신호 · 명단 시험이 읽는다) */
html.v2:not(.role-student) .lecd-view .lecd-ta-stu { background: transparent; border-color: transparent; box-shadow: none; }
html.v2:not(.role-student) .lecd-view .lecd-ta-stu:hover { background: var(--surface-2); }
html.v2:not(.role-student) .lecd-view .lecd-ta-team .lecd-ta-stu + .lecd-ta-stu,
html.v2:not(.role-student) .lecd-view .lecd-ta-pool .lecd-ta-stu + .lecd-ta-stu { border-top-color: var(--border); border-radius: 0; }
html.v2:not(.role-student) .lecd-view .lecd-linkstat.linked { display: none; }
html.v2:not(.role-student) .lecd-view .lecd-ta-pooladd { background: var(--surface); color: var(--text-body); border-color: var(--border-strong); }
html.v2:not(.role-student) .lecd-view .lecd-ta-pooladd:hover { background: var(--surface-2); }
html.v2:not(.role-student) .lecd-view #lecdStuV2Summary { display: none; }
/* 8. 머리 카드 위아래 여백 — 28 → 18(사용자 «위아래 여백이 너무 많다») · 크기(그림 · 이름)는 그대로 */
html.v2:not(.role-student) .lecd-view #lecdHeaderCard.lecd-hcard { padding: 18px 28px 18px 30px; margin-bottom: 14px; }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-acts { gap: 6px; }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-hstat { padding-top: 4px; padding-bottom: 2px; }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-hstat-bar { margin-top: 4px; }
html.v2:not(.role-student) .lecd-view #lecdHeaderCard .lecd-facts { margin-top: 10px; }
@media (max-width: 760px) {
  html.v2:not(.role-student) .lecd-view #lecdHeaderCard.lecd-hcard { padding: 16px 16px 16px 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   [R247 · 2026-11-01] 수업 상세 «수업자료 · 출결 · 설정» 탭 = 마디아 디자인 법칙(R242) 4번째 화면 — 사용자 «전부 추천대로»
   (눌러 보는 시안에서 1~13 전부 · 3번 A «회차로 보내기»만 채움 · 설정 절 제목 20 · 출결 위쪽 숫자 칸 감춤)
   + 2차 회신(같은 날): 반응 이모지 절 감춤 · 지각 기준 세로선 · 설정 줄 높이 · 미리보기 창 키우기 · 끌기 효과 · 끝난 회차 빼기(14~18)
   정본 = docs/10_디자인/마디아_디자인법칙.md · 결정 = §0-B R247 · 회귀 가드 = tests/frontend/lecture_tabs_madia_rules.spec.js
   남기는 것: 출결 칸 선택 메뉴(R240) · 출석·지각·결석·공결 색 · 범례 띠 옅은 파란 면(10-08) · «전체 출석»은 줄마다(F79) ·
             끌어다 놓는 «아직 없어요» 점선 칸 · 설정 풀폭(F97).
   ════════════════════════════════════════════════════════════════════════════ */
/* ── 수업자료 ── */
/* 1. 글자 — 12 아래 없음 · 문제 목록 제목 20 · 단추·칩 글자 13 */
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-badge { font-size: var(--text-xs); padding: 1px 8px; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-h { font-size: var(--text-xl); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-cnt { font-size: var(--text-xs); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-fchip,
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-reject,
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-put,
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-add { font-size: var(--text-sm); }
/* 2. 단추 높이 — 머리 40(파일 올리기 · 문제 만들기 · 회차로 보내기) · 줄 안 36(담기 · 버리기 · 거르기 칩 · 회차 추가 · ✕). height 로 준다: 손가락 기기 44 바닥(R152)이 이긴다 */
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-add,
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-gen-top,
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-import { height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; justify-content: center; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-put,
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-reject,
html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-fchip,
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-add { height: 36px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-add { padding: 0 10px; border-radius: var(--radius-sm); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-reject { padding: 0 10px; }
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-del { width: 36px; height: 36px; }
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-chip { height: 48px; }
@media (pointer: fine) {
  html.v2:not(.role-student) .lecd-view .lecd-mat .mat-add, html.v2:not(.role-student) .lecd-view .lecd-mat .mat-gen-top, html.v2:not(.role-student) .lecd-view .lecd-mat .pab-import,
  html.v2:not(.role-student) .lecd-view .lecd-mat .pab-put, html.v2:not(.role-student) .lecd-view .lecd-mat .pool-reject, html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-fchip,
  html.v2:not(.role-student) .lecd-view .lecd-mat .pab-add, html.v2:not(.role-student) .lecd-view .lecd-mat .mat-del { min-height: 0; min-width: 0; }
}
/* 3. 강조 하나 — 채운 단추는 일을 확정하는 «회차로 보내기» 하나(결정 3 A) · 고른 칩 = 옅은 면 + 주 색 글자 · 개수 배지 = 회색 */
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-gen-top { background: var(--surface); color: var(--text-body); border: 1px solid var(--border-strong); }
html.v2:not(.role-student) .lecd-view .lecd-mat .mat-gen-top:not([disabled]):hover { background: var(--surface-2); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-fchip.on { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pool-cnt { background: var(--surface-2); color: var(--text-body); }
/* 4. 문제 줄 상자 걷기 — 테두리 상자 → 줄 + 헤어라인 · «담기 ▾»는 테두리 없는 파란 글자 단추(R246 ⑥ «수업 리포트 ›»와 같은 꼴) · 끌기 손잡이는 그대로 */
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-card { border-color: transparent; border-radius: var(--radius-sm); box-shadow: none; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-card:hover { background: var(--surface-2); box-shadow: none; border-color: transparent; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-list.pab-drop { gap: 0; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-drop .pab-card + .pab-card { border-top-color: var(--border); border-radius: 0; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-put { border-color: transparent; background: none; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-put:not(:disabled):hover { background: var(--primary-soft, var(--primary-light)); }
/* 5. 휴대폰 — «AI가 만든 문제»가 «문 / 제»로 갈라졌다 → 거르기 칩을 다음 줄로 */
@media (max-width: 560px) {
  html.v2:not(.role-student) .lecd-view .lecd-mat .pool-h { flex-wrap: wrap; word-break: keep-all; row-gap: 8px; }
  html.v2:not(.role-student) .lecd-view .lecd-mat .pool-h .pab2-filter { flex-basis: 100%; margin: 0; justify-content: flex-start; }
}
/* ── 출결 ── */
/* 6. 위쪽 숫자 칸 넷 감춤 — 머리 «진행한 회차 · 출석률»과 표 아래 «회차별 출석률»에 같은 숫자가 있다(R246 학생 탭 결정 2A 와 같은 이유) */
html.v2:not(.role-student) .lecd-view .lecd-attg-statstrip { display: none; }
/* 7. 표 — 칸 36 · 기호 18(이 화면 «목록 제목» 토큰) · 이름 14 · 학번 알약 걷기 · 칸이 커진 만큼 줄 위아래 여백을 줄인다 */
html.v2:not(.role-student) .lecd-view .lecd-attg-ac { width: 36px; height: 36px; font-size: var(--lec-title-fs); }
html.v2:not(.role-student) .lecd-view .lecd-attg-head .lecd-attg-ac.lecd-att-legend-sym { width: 30px; height: 30px; font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-attg tbody td { padding-top: 6px; padding-bottom: 6px; }
html.v2:not(.role-student) .lecd-view .lecd-attg .nm b { font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-attg .nm small { background: none; padding: 0; color: var(--text-muted); font-weight: 500; }
/* 8. «전체 출석» — 줄마다 되풀이되는 테두리 단추 → 테두리 없는 글자 단추(자리는 줄마다 그대로 · F79) */
html.v2:not(.role-student) .lecd-view .lecd-att-rowtool { border-color: transparent; background: none; height: 36px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: var(--text-sm); color: var(--text-body); }
html.v2:not(.role-student) .lecd-view .lecd-att-rowtool:hover { background: var(--surface-2); border-color: transparent; color: var(--primary); }
@media (pointer: coarse) { html.v2:not(.role-student) .lecd-view .lecd-att-rowtool { min-height: 44px; } }
/* 9. 출석률 — 80% 이상 초록은 걷고(기본 글자색) 주의(주황 · 빨강)만 색 · 엑셀 단추 40
   [keep-css] .lecd-attg-rate--good .lecd-attg-foot--good — js/attendance-panel.js 가 «lecd-attg-rate--» · «lecd-attg-foot--» + 단계(_attRateTier)로 조립한다 */
html.v2:not(.role-student) .lecd-view .lecd-attg-rate--good b,
html.v2:not(.role-student) .lecd-view .lecd-attg-foot--good { color: var(--text); }
html.v2:not(.role-student) .lecd-view #lecdAttCsvBtn { height: 40px; padding-top: 0; padding-bottom: 0; }
@media (pointer: fine) { html.v2:not(.role-student) .lecd-view #lecdAttCsvBtn { min-height: 0; } }
/* ── 설정 ── */
/* 10. 글자 · 높이 — 절 제목 20 · 설명 13 · 입력칸 40(손가락 기기 44) · «수업 삭제» 40 · «공통으로 되돌리기» 36 */
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group h3 { font-size: var(--text-xl); }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-desc { font-size: var(--text-sm); }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row .sv-name { font-size: var(--text-base); }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row input[type="number"],
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row input[type="text"] { height: 40px; }
html.v2:not(.role-student) .lecd-view .lecd-set .lecd-set-del { height: 40px; padding-top: 0; padding-bottom: 0; }
html.v2:not(.role-student) .lecd-view .lecd-set .lecd-set-reset { height: 36px; padding-top: 0; padding-bottom: 0; }
html.v2:not(.role-student) .lecd-view .lecd-set .lecd-emoji-base { font-size: var(--text-base); }
@media (pointer: fine) {
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-row input, html.v2:not(.role-student) .lecd-view .lecd-set .lecd-set-del, html.v2:not(.role-student) .lecd-view .lecd-set .lecd-set-reset { min-height: 0; }
}
@media (pointer: coarse) {
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-row input[type="number"],
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-row input[type="text"] { height: 44px; }
}
/* 11. 제목 아이콘 걷기 — 이모지 다섯(🏫 ⏱ ⏲ 😀 🌙)과 휴지통 선 아이콘이 한 가족이 아니다. 제목 글자만 남긴다 */
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group > h3 > span[aria-hidden="true"],
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group > h3 > svg { display: none; }
/* 12. 카드 여섯 장 → 한 장 · 절 사이는 헤어라인과 여백(24) */
html.v2:not(.role-student) .lecd-view .lecd-set { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); padding: 4px 24px; }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group { background: none; border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 24px 0; }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group + .sv-group { border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  html.v2:not(.role-student) .lecd-view .lecd-set { padding: 0 16px; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group { padding: 20px 0; }
}
/* 12-2. 두 열 · 절 단위(3차 회신 «1줄에 2개씩 · 좌우 간격이 너무 커서 한눈에 안 들어오고 스크롤을 너무 내려야» · 결정 A)
       왼쪽 «수업 정보 · 수업 자동생성» · 오른쪽 «지각 기준 · 수업 자동 종료» · 아래 «수업 삭제»는 폭 전체.
       절 사이는 선 대신 여백(M03) — «수업 삭제» 위에만 선. 휴대폰(760 이하)은 한 열 그대로 */
@media (min-width: 761px) {
  html.v2:not(.role-student) .lecd-view .lecd-set { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; padding: 8px 24px 16px; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group,
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group + .sv-group { border-top: 0; padding: 16px 0 8px; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group:has(#lecdInfoSchool) { grid-column: 1; grid-row: 1; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group:has(#lecdSetLateOn) { grid-column: 2; grid-row: 1; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group:has(#lecdSetNextPrep) { grid-column: 1; grid-row: 2; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group:has(#lecdSetAutoOn) { grid-column: 2; grid-row: 2; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-group.lecd-set-danger { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--border); margin-top: 8px; }
  html.v2:not(.role-student) .lecd-view .lecd-set .sv-row .sv-info { max-width: none; }
}
/* 13. «학생 반응 이모지» 절은 감춘다 — 고칠 수 없는 고정 목록이라 «왜 있는지 모르겠다»(사용자 2026-11-01).
       이모지 편집(긍정 · 부정 · 의견 역할별)은 전체 기능 개선 뒤에 다시 넣는다 · 마크업은 남긴다(settings-panel.js _fixedEmojiRow) */
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group:has(.lecd-emoji-base-row) { display: none; }
/* 14. «지각 기준(분)» 왼쪽 세로선 걷기 — 하위 줄 표시가 «살짝 이상하다»(사용자 2026-11-01). 들여쓰기도 함께 걷는다 */
html.v2:not(.role-student) .lecd-view .lecd-set .lecd-set-subrow { margin-left: 0; padding-left: 0; border-left: 0; }
/* 15. 설정 줄 높이 한 가지 — 켜고 끄기 줄 · 입력칸 줄 · 설명 있는 줄이 64 · 65 · 75 로 달랐다(2차 회신 → 76 하나).
       3차 회신 «세로 간격이 너무 크다» · 결정 56: 줄 안 설명을 감추고(R162 · 설명은 설명서 · «? 도움» · 삭제 설명은 확인 창이 같은 말을 한다)
       입력칸 40 + 위아래 8 = 56 하나. 절 머리 아래 설명(수업 자동 종료)은 남긴다 */
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row { min-height: 56px; box-sizing: border-box; padding-top: 8px; padding-bottom: 8px; }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row + .sv-row { padding-top: 7px; }   /* 줄 사이 헤어라인 1px 만큼 — 선이 있는 줄도 56 */
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row .sv-desc { display: none; }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-row .sv-name { margin-bottom: 0; }
html.v2:not(.role-student) .lecd-view .lecd-set .sv-group > h3 { margin-bottom: 4px; }
/* 16. 문제 미리보기 · 편집 창 키우기 — 640×560 이 작았다(사용자 2026-11-01). 크기는 고정(내용이 넘치면 창 안에서 스크롤)
       창 = js/materials-panel.js 의 #quizDetail(공용 .dialog-modal) — 새 창 종류를 만들지 않는다 */
html.v2:not(.role-student) #quizDetail .dialog-modal { width: 880px; max-width: calc(100vw - 32px); height: min(720px, calc(100vh - 48px)); }
/*     창만 키우면 빈 곳만 넓어진다 → 안의 글자도 단계에 맞춰 키운다: 문제 글 20 · 보기 · 입력 18 · O/X 기호 48 · 작은 글자 12 · 13(이 창 범위 토큰) */
html.v2:not(.role-student) #quizDetail .dialog-modal { --text-xs: 12px; --text-sm: 13px; --qd-opt-fs: 18px; --qd-ox-fs: 48px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-frame { padding: 24px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-q { font-size: var(--text-xl); line-height: 1.5; margin-bottom: 20px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-opt,
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-order li,
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-left,
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-right,
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-input,
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-textarea { font-size: var(--qd-opt-fs); padding: 14px 16px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-optno { width: 32px; height: 32px; font-size: var(--text-base); }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-oxbtn { font-size: var(--qd-ox-fs); padding: 28px 20px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .qs-oxbtn small { font-size: var(--text-base); }
html.v2:not(.role-student) #quizDetail .dialog-modal .qd-expl { font-size: var(--text-base); }
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-card { padding: 24px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field { margin-bottom: 20px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field > label,
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field > .aig-rv-lb { font-size: var(--text-base); }
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field textarea,
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field input[type="text"] { font-size: var(--qd-opt-fs); padding: 12px 14px; }
html.v2:not(.role-student) #quizDetail .dialog-modal .aig-rv-field textarea { min-height: 96px; }
/* 17. 끌기 효과 — «어디에 놓이는지 · 오른쪽으로 끌어야 한다»가 안 보였다(사용자 2026-11-01)
       ① 문제 줄에 마우스를 올리면 손잡이가 파랗게, 비어 있는 회차 칸이 옅은 파란 점선으로 «여기로 끈다»를 미리 보인다
       ② 끄는 동안 놓을 수 있는 회차 칸은 모두 파란 점선 + 옅은 면 · 빈 칸 글자는 «여기에 놓기»
       ③ 칸 위에 올리면 진한 파란 실선 + 회차 이름 파랑 ④ 이미 담긴 문제를 끌면 원래 칸 이름 옆에 «지금 여기» */
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-grip { opacity: 1; color: var(--text-muted); }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-card:hover .pab-grip { color: var(--primary); }
html.v2:not(.role-student) .lecd-view .lecd-mat:has(.pab2-list .pab-card:hover) .pab-bucket .pab-drop:empty { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
html.v2:not(.role-student) .lecd-view .lecd-mat:has(.pab-card.dragging) .pab-bucket .pab-drop { border: 1.5px dashed var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); min-height: 40px; }
html.v2:not(.role-student) .lecd-view .lecd-mat:has(.pab-card.dragging) .pab-bucket .pab-drop:empty::after { content: "여기에 놓기"; color: var(--primary); font-weight: 600; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-bucket .pab-drop.over,
html.v2:not(.role-student) .lecd-view .lecd-mat:has(.pab-card.dragging) .pab-bucket .pab-drop.over { border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }   /* :has(…dragging) 규칙보다 앞서야 «올린 칸»이 실선이 된다 */
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-bucket:has(.pab-drop.over) .pab-lane-h { color: var(--primary); font-weight: 700; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab2-list.pab-drop.over { outline: 2px solid var(--primary); outline-offset: -2px; }
html.v2:not(.role-student) .lecd-view .lecd-mat .pab-bucket:has(.pab-card.dragging) .pab-lane-h::after { content: "지금 여기"; margin-left: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-pill); padding: 1px 8px; }
