/* css/main-analysis.css — css/main.css 가족의 한 조각(옮기기만 · 순서의 정본 = js/script-families.json · 코드 구조 4계단④ · 2026-10-10) · 팀 스위치 · 회차 툴팁 · 기타 도넛 · 학생별 통계 · 확인 필요 창 · 만족도 · 참여도 */
/* ── [팀 스위치] 범례를 '설명'에서 '조작'으로 ──────────────────
   *"각 조를 클릭하면 그 조별로 워드클라우드를 볼 수 있게, 다시 전체로도"*
   ★`pointer-events: none` 을 걷었다★ 종전에는 드래그 이동을 막지 않으려고 통째로 꺼 뒀다.
     이제 눌러야 하므로 켜되, **칩에서 이벤트 전파를 끊어**(JS) 팬 제스처와 싸우지 않게 했다.
   ★누를 수 있게 보여야 누른다★ 테두리·hover·포커스 링을 준다. 지금 보는 범위는 `.is-on`
     (진한 테두리 + 굵은 글자)로 표시하고, 상태는 `aria-pressed` 로도 알린다(색만으로 알리지 않는다). */
.dsw-kwleg-i { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; margin: 0; padding: 2px 7px; border: 1px solid var(--surface-3, #e2e8f0); border-radius: 999px; background: var(--surface); color: inherit; font: inherit; line-height: 1.5; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.dsw-kwleg-i i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dsw-kwleg-i:hover { border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); }
.dsw-kwleg-i:focus-visible { outline: 2px solid var(--brand, #2563eb); outline-offset: 1px; }
.dsw-kwleg-i.is-on { border-color: var(--text-1, #0f172a); color: var(--text-1, #0f172a); font-weight: 700; background: var(--surface-2, #f8fafc); }
.dsw-kwleg-all { font-weight: 600; }
/* 줌 컨트롤 오버레이(줌 레이어 밖 — 함께 확대되지 않는다) */
.dsw-cloud-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.dsw-cloud-zoom button { width: 26px; height: 26px; border: 1px solid var(--surface-3, #e2e8f0); background: rgba(255,255,255,.92); border-radius: 7px; font-size: 15px; line-height: 1; color: var(--text-2, #475569); cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.08); display: flex; align-items: center; justify-content: center; padding: 0; transition: background .12s, transform .12s; }
.dsw-cloud-zoom button:hover { background: #fff; color: var(--brand, #2563eb); transform: translateY(-1px); }
.dsw-cloud-zoom button:active { transform: translateY(0) scale(.94); }
/* [막대 패널] 막대 위가 허전하다는 지적 — 제목 + 통계 스트립 + 안내 한 줄로 채운다.
   카드 제목('수업 키워드 분석')과 겹치지 않게 이쪽은 '키워드 TOP 10' 으로 역할을 나눈다. */
.dsw-kwbarpane { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.dsw-kwbars-hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dsw-kwbars-t { font-size: var(--text-base, 14px); font-weight: 700; color: var(--text-1, #0f172a); }
.dsw-kwbars-sub { font-size: var(--text-xs, 11px); color: var(--text-muted); word-break: keep-all; }
.dsw-kwstats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.dsw-kwstat { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; border-radius: var(--radius-sm, 8px); background: var(--surface-2, #f8fafc); }
.dsw-kwstat b { font-size: var(--text-base, 14px); font-variant-numeric: tabular-nums; color: var(--text-1, #0f172a); }
.dsw-kwstat span { font-size: var(--text-xs, 11px); color: var(--text-muted); white-space: nowrap; }
/* ★[리뷰 7회차] «덜 센 수»임을 눈으로도 알린다★ — 「말한 학생 N」은 학번을 정할 수
   있었던 화자만 센다. 이름이 명단과 다르거나 동명이인이면 그 학생이 조용히 빠져, 교사에게는
   「우리 반이 8명인데 왜 6명이지」로 보인다. 툴팁만으로는 마우스를 올려야 알 수 있으므로
   점선 밑줄로 «더 볼 것이 있다»를 알린다(이 저장소가 등급 칩에 쓰는 것과 같은 문법). */
.dsw-kwstat.is-partial b { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.dsw-kwbars { display: flex; flex-direction: column; gap: 6px; }
/* [팀 스택 막대] 트랙 안의 채움(--fillw = 총빈도 비율)을 조별 구간으로 나눈다.
   ★막대 길이는 여전히 총빈도★(단어 간 비교 유지) · 구간 비율은 조별 발화 수.
   오른쪽 '1조 33%' 칸을 없앴다 — 가로를 크게 잡아먹었고, 조 비율은 구간 위 숫자와
   마우스 오버 툴팁에 있다. 그만큼 막대가 길어져 구간 구분도 더 잘 보인다. */
.dsw-kwbar { display: grid; grid-template-columns: 64px minmax(0,1fr) 54px; align-items: center; gap: 8px; font-size: 13px; padding: 2px 4px; }
.dsw-kwbar-l { text-align: right; color: var(--text-2, #475569); word-break: keep-all; }
/* 높이 12→18px: 구간 안에 % 숫자를 읽히게 넣으려면 이 정도는 필요하다. */
.dsw-kwbar-t { position: relative; height: 18px; background: var(--surface-3, #e2e8f0); border-radius: var(--radius-sm, 8px); }
.dsw-kwbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fillw, 0%); display: flex; border-radius: var(--radius-sm, 8px); overflow: hidden; }
.dsw-kwbar-seg { display: flex; align-items: center; justify-content: center; height: 100%; flex: 0 0 auto; overflow: hidden; }
/* 구간 위 비율 — 글자색은 JS(KgPalette.inkOn)가 배경 밝기로 정한다(4조 노랑 대비). */
.dsw-kwbar-pct { font-size: 10px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.dsw-kwbar-pct[hidden] { display: none; }
.dsw-kwbar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-1, #0f172a); white-space: nowrap; }
.dsw-kwbar-n i { font-style: normal; font-size: var(--text-xs, 11px); color: var(--text-muted); margin-left: 1px; }
/* 조별 상세는 막대에 마우스를 올렸을 때만 — 5개 조 숫자를 늘 띄우면 화면이 시끄럽다. */
/* ★말풍선은 막대(트랙) 폭을 넘지 않는다★ (2026-09-27 운영 스윕 390 — 긴 안내가 한 줄로 187px 화면 밖까지 나갔다)
   짧은 말은 종전처럼 한 줄(max-content), 트랙보다 길면 그 폭 안에서 어절로 접힌다. 트랙이 화면 안이면 말풍선도 화면 안이다. */
.dsw-kwbar-tip { position: absolute; left: 0; bottom: 24px; z-index: 4; display: none; padding: 6px 9px; border-radius: 7px; background: rgba(15,23,42,.92); color: #fff; font-size: 11px; white-space: nowrap; pointer-events: none; }
.dsw-kwbar-tip { width: max-content; max-width: 100%; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.dsw-kwbar-t:hover .dsw-kwbar-tip { display: block; }
/* 워드클라우드에서 그 낱말을 가리키면 같은 단어 행을 강조 — 두 표현을 눈으로 잇는다. */
.dsw-kwbar.is-hi { background: var(--surface-2, #f8fafc); border-radius: 8px; }
.dsw-kwbar.is-hi .dsw-kwbar-l { font-weight: 700; color: var(--text-1, #0f172a); }
/* ② 만족/집중/참여 — 평균막대(그리드라인) + 회차별 추이 나란히 (출결 도넛은 2026-07-29 제거) */
.dsw-metric { display: flex; flex-direction: column; }
.dsw-mwrap { max-width: 440px; width: 100%; margin: auto; }   /* 넓어진 카드에서 막대 그룹을 가로·세로 중앙에 배치 */
.dsw-trend-leg { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-2, #475569); margin-bottom: 4px; }
.dsw-trend-top { margin: 2px 0 14px; }   /* 회차별 비교 영역 상단 추이 그래프 */
.dsw-trend-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 3px; }
/* 범례 스와치 = 실제 선 모양(색만으로 알리지 않는다 · UI_GUIDELINES §0-A). */
.dsw-leg-sw { vertical-align: middle; margin-right: 4px; }
/* 「그래프가 가로로 너무 늘려져서 글자가 눌린 것처럼 보인다」
   ★★이 값은 «svg viewBox 폭»과 같아야 한다★★ — 여기서 멈춰야 최대 크기에서 배율 1.0
   (픽셀 등가)이 되고, 그보다 좁아질 때도 `height:auto` 라 가로·세로가 «같은 배율»로 준다
   (글자 왜곡 0). 정본은 js 의 `const W` 다 — **한쪽만 고치면 글자 크기가 어긋난다**
   (viewBox 만 키우면 그림이 카드를 안 채우고, 여기만 키우면 글자까지 확대된다).
   720 → **1040** (js `_dswTrendSvg` 의 W 와 같은 값 · 그 주석에 경위).
   ⛔svg 에 `preserveAspectRatio="none"` 을 되붙이지 말 것 — 그것이 원래 원인이었다(js 주석). */
/* ★position 이 «툴팁의 자리»다★ [회차 짚기] 툴팁을 이 상자 기준으로 세운다 —
   페이지 기준(fixed)으로 두면 카드가 안쪽 스크롤을 할 때 툴팁만 제자리에 남는다. */
.dsw-trend { max-width: 1040px; margin-inline: auto; position: relative; }   /* 카드 폭에 맞춘다(아래 표와 좌우 정렬) */
.dsw-trend-svg { display: block; width: 100%; height: auto; }
.dsw-ax { fill: var(--text-muted); }   /* [밝은 판 ⑩] 눈금 숫자 · 회차 글자(종전 옅은 회색 = 흰 면 2.56) */
.dsw-trend-unit { margin-left: auto; color: var(--text-muted); }
/* 회차 세로 띠 — 가리키거나(hover) 키보드로 짚으면(focus) 그 회차만 옅게 서고 툴팁이 뜬다.
   ★초점 표시를 지우지 말 것★ `tabindex="0"` 으로 키보드가 짚을 수 있게 해 둔 자리다. */
.dsw-tp { cursor: pointer; }
.dsw-tp rect { transition: fill .12s; }
.dsw-tp:hover rect, .dsw-tp:focus-visible rect { fill: rgba(148, 163, 184, .16); }
.dsw-tp:focus-visible rect { stroke: var(--primary); stroke-width: 2; }
/* 고른 회차 — ★띠에 «남는» 표시★ 아래 표의 배경색과 짝이라, 위아래가 같은 회차를 가리킨다. */
.dsw-tp[aria-pressed="true"] rect { fill: rgba(37, 99, 235, .10); }

/* ── 회차 상세 툴팁 — 손으로 만든다(브라우저 기본 <title> 은 걷어냈다 · js 주석) ────────
   ★즉시 뜬다★ 그것이 이 툴팁이 생긴 이유다(기본 툴팁의 1초 지연이 «안 나온다»로 읽혔다).
   ★가리키는 것을 가리지 않는다★ `pointer-events:none` 이라 툴팁 위로 마우스가 들어가
     mouseleave 가 터지고 툴팁이 깜빡이는 일이 없다(자기 자신이 만드는 깜빡임). */
.dsw-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 132px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
  font-size: 11.5px; line-height: 1.5; }
.dsw-tip[hidden] { display: none; }
.dsw-tiphead { font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-1, #0f172a);
  word-break: keep-all; }
.dsw-tiprow { display: flex; align-items: center; gap: 6px; color: var(--text-2, #475569); }
.dsw-tiprow b { margin-left: auto; font-weight: 800; color: var(--text-1, #0f172a);
  font-variant-numeric: tabular-nums; }
/* 계열 스와치 — 있을 때만 색이 찬다(이모지·출석률 줄은 빈 칸이라 글자가 같은 자리에서 시작한다). */
.dsw-tiprow i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dsw-mchart { position: relative; display: grid; grid-template-columns: 22px repeat(3, minmax(0,1fr)); gap: 8px; height: 200px; align-items: end; }
.dsw-maxis { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--text-muted); text-align: right; line-height: 1; }
.dsw-mcol { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
/* 칸마다 z-index:1 이라 뒤 칸이 앞 칸의 풍선(.dsw-mtip)을 덮었다 — 가리킨 칸만 한 단 올린다. */
.dsw-mcol:hover { z-index: 2; }
.dsw-mbar { position: relative; width: 52%; max-width: 88px; min-height: 2px; border-radius: 8px 8px 0 0; transition: filter .15s; }
.dsw-mbar.par { background: var(--metric-par); } .dsw-mbar.foc { background: var(--metric-foc); } .dsw-mbar.sat { background: var(--metric-sat); }   /* 지표 색 한 벌(R284 ④) */
.dsw-mbar:hover { filter: brightness(1.08); }
/* [R284 ⑦ · 2026-11-12] 휴대폰(760 이하 · 화면만) 수업 전체 = 절마다 «제목 + 한 줄 요약» → 눌러 펼치기(js/demo-sci-panel-view.js _wireDswFold).
   넓은 화면 · 인쇄에서는 접기 단추가 없고 절은 다 펼쳐진다. 회차별 비교는 표만(꺾은선 눈금이 390 폭에서 읽히지 않는다) · 표가 오른쪽에서 잘리지 않게 칸을 줄인다. */
.dsw-fold { display: none; }
@media screen and (max-width: 760px) {
  .dsw-foldable:not(.is-open) > :not(h4) { display: none !important; }
  .dsw-foldable:not(.is-open) > h4 > :not(.lecd-an-subico):not(.dsw-fold) { display: none !important; }
  .dsw-foldable > h4.lecd-an-subh { position: relative; flex-wrap: wrap; align-items: center; min-height: 28px; }
  .dsw-foldable:not(.is-open) > h4.lecd-an-subh { margin-bottom: 0; }
  .dsw-foldable.is-open > h4 .dsw-ai-seg { position: relative; z-index: 1; }
  .dsw-fold { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin-left: auto; cursor: pointer; }
  .dsw-fold::before { content: ''; position: absolute; inset: -12px -8px; }   /* 제목 줄 전체가 누름 자리 */
  .dsw-foldable:not(.is-open) .dsw-fold { order: 9; flex: 1 1 100%; margin-left: 0; padding: 0 24px 0 32px; }
  .dsw-fold-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-base); font-weight: 400; color: var(--text-body); }
  .dsw-fold-ch { flex: none; width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--dur-fast) var(--ease); }
  .dsw-foldable.is-open .dsw-fold-ch { transform: rotate(180deg); }
  .dsw-foldable:not(.is-open) .dsw-fold-ch { position: absolute; right: 0; top: 4px; }
  .dsw-fold:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-sm); }
  .dsw-stab-box .dsw-trend { display: none; }
  .dsw-stab-box .dsw-stab th, .dsw-stab-box .dsw-stab td { padding-left: 3px; padding-right: 3px; }
  .dsw-stab-box .dsw-stab .dsw-wk-topic { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .dsw-stab-box .dsw-stab .dsw-cell { min-width: 0; padding: 3px 6px; }
}
/* 가로 그리드라인: 막대 영역(축 28px + gap 12px = 40px 오른쪽)에 40px 간격 6줄(레벨 5~0).
   ★absolute 로 그리드 흐름에서 빼야 한다 — grid-column 배치로 두면 자동배치가 막대를 다음 행으로 밀어 깨진다. */
.dsw-mgridlines { position: absolute; left: 30px; right: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none; border-top: 1px solid var(--surface-3, #e2e8f0); border-bottom: 1px solid var(--border); background-image: linear-gradient(to top, var(--surface-3, #e2e8f0) 1px, transparent 1px); background-size: 100% 40px; background-position: 0 bottom; }
.dsw-mtip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; padding: 8px 11px; background: #0f172a; color: #fff; font-size: 12px; border-radius: 8px; white-space: normal; width: max-content; max-width: 264px; text-align: center; display: flex; flex-direction: column; gap: 3px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; box-shadow: 0 6px 18px rgba(15,23,42,.28); }
.dsw-mtip b { font-size: 12.5px; }
/* 집계 근거 줄이 «% 랑 + 가 작아서 잘 안 보인다» — 11px 에서는 기호가 뭉갠다.
   윗줄 제목과 같은 12.5px 로 올리고 글자색도 한 단계 밝게(#cbd5e1 → #e2e8f0).
   글자가 커진 만큼 툴팁 폭(.dsw-mtip)도 230 → 264px — 안 넓히면 줄바꿈만 늘어 더 읽기 나빠진다. */
.dsw-mtip-basis { font-weight: 400; color: #e2e8f0; font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.dsw-mbar:hover .dsw-mtip { opacity: 1; }
/* [F-20260921-72-1] 좁은 화면(430·390px)에서 문서가 옆으로 13~19px 넓어졌다 — 범인은 이 풍선.
   ① opacity:0 은 «안 보일 뿐» 자리를 차지해 스크롤 영역에 들어간다 → 숨김 땐 display:none(자리 0).
      나타날 때 흐려지는 효과는 @starting-style 로 살린다(모르는 브라우저는 효과 없이 바로 뜬다).
   ② 가운데 정렬이라 맨 오른쪽 막대의 풍선이 화면 밖으로 나갔다 → 양 끝 막대만 안쪽 기준으로 붙인다.
      ★칸 순서★ 축(.dsw-maxis) · 막대 칸 3개 · 그리드라인(맨 끝) — 그래서 끝 막대는 nth-last-child(2). */
.dsw-mtip { display: none; transition: opacity .15s, display .15s allow-discrete; }
.dsw-mbar:hover .dsw-mtip { display: flex; }
@starting-style { .dsw-mbar:hover .dsw-mtip { opacity: 0; } }
.dsw-mchart > .dsw-maxis + .dsw-mcol .dsw-mtip { left: 0; transform: none; }
.dsw-mchart > .dsw-mcol:nth-last-child(2) .dsw-mtip { left: auto; right: 0; transform: none; }
.dsw-mlabels { display: grid; grid-template-columns: 22px repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 6px; }
.dsw-mlabelcol { text-align: center; }
.dsw-mval { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.dsw-mlabel { font-size: 12px; color: var(--text-2, #475569); }
/* ④ 이모지 반응 — B안 링 카드(큰 이모지 + 두꺼운 게이지, 링 안: 이모지·이름·%, 링 밖: 숫자) */
.dsw-rx { display: flex; flex-direction: column; }
/* 5종이면 «상단 2 / 하단 3». 종전 `repeat(2,1fr)` 은 5종에서 2/2/1 이 되어
   가장 많은 「도와줘」가 혼자 왼쪽에 남았다(운영 과학302 실측 — 좋아요·어려워·의견·질문 + 옛 도와줘).
   ★바탕을 6열로 깔고 «몇 칸을 차지하나»만 정한다★ — 기본 span 3 = 한 줄에 2개라 4종·8종은 종전 그대로다. */
/* data-n 은 1~5 만 온다 — 6칸 이상은 JS(_dswFitCards)가 「기타」로 접어 넘긴다. */
.dsw-rxgrid { display: grid; grid-template-columns: repeat(6, 1fr); justify-items: center; gap: 18px 8px; margin: auto 0; }
.dsw-rxgrid > .dsw-rxcard { grid-column: span 3; }
.dsw-rxgrid[data-n="5"] > .dsw-rxcard { grid-column: span 2; }                    /* 하단 3개 */
.dsw-rxgrid[data-n="5"] > .dsw-rxcard:nth-child(-n+2) { grid-column: span 3; }    /* 상단 2개 */

/* ── 「기타」 관문 + 도넛 모달 (특수학교) ────────────────────────────────────
   학생 화면에서 「기타」는 프리셋(화장실·물·아파요·쉬고싶어요)과 자유 입력이 열리는 **관문**이다.
   분석 화면도 같은 계층으로 접고, 누르면 그 안을 같은 도넛링으로 보여준다. */
.dsw-rxgate .dsw-rxring { cursor: pointer; box-shadow: 0 0 0 3px var(--primary-light); }
.dsw-rxgate .dsw-rxring:hover { box-shadow: 0 0 0 4px var(--primary-light); }
.dsw-rxgate .dsw-rxring:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* ★라벨 뒤에 화살표(›)를 붙이지 않는다★ — CSS 이스케이프로 넣었다가 제어문자가
   섞여 «이상한 특수문자»로 찍혔다. 누를 수 있다는 신호는 아래 «눌러서 자세히»
   문구와 링의 테두리 강조가 이미 한다 — 글자에 기호를 덧붙일 이유가 없다. */
.dsw-rxgate-hint { font-size: 11px; color: var(--primary); margin-top: 2px; }

/* ★크기는 «칸 수»가 정하고, 열린 뒤엔 안 바뀐다★ (고정 모달 규칙 — .claude/skills/fixed-size-modals)
   내용이 늘었다 줄었다 해서 닫기 버튼이 움직이면 안 된다. 예상 밖으로 많으면 본문만 스크롤. */
.dsw-rx { position: relative; }
.dsw-rxmodal { box-sizing: border-box;   /* 선언한 px 가 곧 «보이는» 크기 — 테두리가 더해지면 고정이 아니다 */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -42%);
  width: 340px; height: 362px; background: var(--surface); border: 1px solid var(--primary-light);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.18); z-index: 20;
  display: flex; flex-direction: column; overflow: hidden; }
.dsw-rxmodal[hidden] { display: none; }
.dsw-rxmodal[data-n="2"] { width: 236px; height: 220px; }
.dsw-rxmodal[data-n="3"] { width: 340px; height: 220px; }
.dsw-rxm-h { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
/* ★제목은 줄바꿈하지 않는다★ — 고정폭 모달이라 옆의 개수 문구가 길어지면
   flex 가 제목부터 줄인다. 실측: 합계가 2,247 인 수업에서 「기타」가 「기」/「타」 두 줄로 쪼개졌다.
   개수 문구가 대신 접히게 두는 편이 낫다 — 그쪽은 두 줄이어도 읽힌다. */
.dsw-rxm-t { font-size: 13px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.dsw-rxm-c { font-size: 12px; color: var(--text-2, #475569); min-width: 0; }
.dsw-rxm-x { margin-left: auto; width: 26px; height: 26px; border: none; background: var(--surface-3, #f1f5f9);
  border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text-2, #475569); line-height: 1; flex-shrink: 0; }
.dsw-rxm-b { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.dsw-rxmgrid { display: grid; justify-items: center; gap: 14px 8px; grid-template-columns: repeat(6, 1fr); }
.dsw-rxmgrid > .dsw-rxmcard { grid-column: span 3; }                                 /* 2칸·4칸 = 한 줄에 2개 */
.dsw-rxmgrid[data-n="3"] > .dsw-rxmcard { grid-column: span 2; }                     /* 1행 3개 */
.dsw-rxmgrid[data-n="5"] > .dsw-rxmcard { grid-column: span 2; }                     /* 하단 3개 */
.dsw-rxmgrid[data-n="5"] > .dsw-rxmcard:nth-child(-n+2) { grid-column: span 3; }     /* 상단 2개 */
.dsw-rxmcard { text-align: center; width: 100%; min-width: 0; height: 132px; }
.dsw-rxmring { position: relative; width: 92px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
.dsw-rxmring-in { position: absolute; inset: 9px; background: var(--surface); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px; }
.dsw-rxmr-e { font-size: 20px; line-height: 1; }
.dsw-rxmr-l { font-size: 10px; color: var(--text-2, #475569); word-break: keep-all; margin-top: 2px; }
.dsw-rxmr-n { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dsw-rxmc-p { font-size: 13px; font-weight: 700; margin-top: 6px; color: var(--text-2, #475569); }
.dsw-rx-total { margin-left: auto; font-size: 12px; color: var(--text-2, #475569); }
.dsw-rx-total b { font-size: 14px; color: var(--text-1, #0f172a); }
.dsw-rxcard { text-align: center; width: 100%; min-width: 0; }   /* 셀 폭을 채워야 링의 max-width:100% 가 셀 기준으로 줄어든다(안 하면 max-content=112px 라 좁은 카드에서 넘침) */
.dsw-rxring { position: relative; width: 112px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; }
.dsw-rxring-in { position: absolute; inset: 11px; background: var(--surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; }
.dsw-rxr-e { font-size: 24px; line-height: 1; }
.dsw-rxr-l { font-size: 11px; color: var(--text-2, #475569); word-break: keep-all; margin-top: 3px; }
.dsw-rxr-n { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }  /* 링 안: 개수(색상별) */
.dsw-rxc-p { font-size: 15px; font-weight: 700; margin-top: 8px; color: var(--text-2, #475569); }  /* 링 밖: 비율% */
/* ⑤ 회차별 비교 표 */
.dsw-stab-scroll { overflow-x: auto; }
.dsw-stab { width: 100%; border-collapse: collapse; font-size: 12px; }
.dsw-stab th, .dsw-stab td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--surface-3, #e2e8f0); white-space: nowrap; }
.dsw-stab th { color: var(--text-2, #475569); font-weight: 600; background: var(--surface-2, #f8fafc); }
/* 열 머리의 단위(5점 · 건) — 값의 뜻을 열마다 밝힌다(폐지된 「색이 진할수록 높음」의 자리). */
.dsw-stab-unit { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); }
.dsw-stab .dsw-wk { text-align: left; font-weight: 600; white-space: nowrap; }
/* ── [회차 짚기] 위 그래프에서 짚은 회차를 «이 줄»이 받는다 ──────────────
   ★두 단계다★ `.is-hot` = 지금 «가리키는» 중(손을 떼면 사라진다) · `.is-pick` = «고른» 것(남는다).
     둘이 같은 색이면 마우스를 치운 순간 무엇이 고른 것인지 알 수 없다 — 진하기를 가른다.
   ★색«만»으로 말하지 않는다★ 고른 줄은 왼쪽에 굵은 띠가 서고, 보조기술은 `aria-current` 를 읽는다.
   ★셀 배경을 덮지 않는다★ 값 칸은 저마다 파스텔 배경(진할수록 높음)을 갖는다 — 줄 배경은
     그 아래 깔리는 것이지 그것을 지우는 것이 아니다(`tr` 에만 칠하고 `td` 는 그대로 둔다). */
.dsw-stab tbody tr { cursor: pointer; transition: background .12s; }
.dsw-stab tbody tr.is-hot { background: var(--surface-2, #f8fafc); }
.dsw-stab tbody tr.is-pick { background: var(--primary-tint); }
.dsw-stab tbody tr.is-pick .dsw-wk-no,
.dsw-stab tbody tr.is-pick .dsw-wk-topic { color: var(--primary-dark); font-weight: 700; }
.dsw-stab tbody tr.is-pick .dsw-wk { box-shadow: inset 3px 0 0 var(--primary); }
/* ★고른 줄에서도 값 칸이 «칸»으로 보여야 한다★ [실측] 값 칸의 파스텔 배경은 값이
   낮을수록 옅어지는데(진할수록 높음), 줄 배경이 연파랑(primary-tint)이면 «낮은 파랑 값»이
   그 배경과 겹쳐 칸이 통째로 사라진다 — 4회차 집중도 2.6 이 실제로 그렇게 지워졌다.
   흰 테두리 한 겹으로 칸의 경계를 되살린다(색은 그대로 두고 «윤곽»만 준다). */
.dsw-stab tbody tr.is-pick .dsw-cell { box-shadow: 0 0 0 1.5px var(--surface); }
/* 회차 셀 = 번호(진하게) + 소제목(옅게, AI 종합의 회차 주제와 일치) */
.dsw-wk-no { display: inline-block; color: var(--text-1, #0f172a); }
.dsw-wk-topic { display: inline-block; margin-left: 6px; color: var(--text-2, #475569); font-weight: 500; }
.dsw-cell { display: inline-block; min-width: 36px; padding: 3px 8px; border-radius: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 값 칸 색 — JS(cellStyle)가 칸마다 색상(--ch) · 채도(--cs · 글자 --cts) · 면 밝기(--cl 95 옅음 → 79 진함 = 높음)만 넘긴다.
   [밝은 판 ⑩] 글자 밝기 36% → 26%(옅은 청록 면 위 2.78 → 4.73 · 세 색 모두 4.5 이상) */
.dsw-cell { background: hsl(var(--ch, 0) calc(var(--cs, 0) * 1%) calc(var(--cl, 95) * 1%)); color: hsl(var(--ch, 0) calc(var(--cts, 0) * 1%) 26%); }
/* ⑥ AI 수업 종합 */
/* 태그를 그리드 위로 빼서 본문(왼쪽)과 3개 카드(오른쪽)가 같은 높이에서 시작하도록. 그리드 stretch 로 두 열 높이 동일. */
.dsw-ai { display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 16px; align-items: stretch; }
.dsw-ai-tag { display: inline-block; background: #eef2ff; color: #4338ca; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; margin-bottom: 8px; }
/* [들여쓰기] "내용 들여쓰기 해줘 가독성 떨어져" — 문단 간격이 5px 로 좁아(아래 확정값)
   문단 경계가 약했다. 간격을 다시 벌리는 대신 한글 문서 관례대로 **첫 줄 한 글자(1em) 들여쓰기**로
   시작을 표시한다(간격 5px 는 그대로). */
.dsw-ai-text { font-size: 16px; line-height: 1.9; color: var(--text-1, #0f172a); margin: 0; text-indent: 1em; }  /* 카드 여백 많아 키움 2026-07-29 */
/* [문단] 한 덩어리 글이라 '한눈에 안 들어온다'는 지적 — 논지가 바뀌면 줄을 바꾼다.
   ★간격은 5px★ 처음엔 15px 로 뒀는데 "문단이 너무 떨어져 있다"는 지적을 받았다.
   본문 행간이 이미 1.9(≈30px)라 5px 만 더해도 문단 경계는 충분히 읽힌다 — 더 벌리면 한 덩어리로
   읽히던 글이 이번엔 조각조각 흩어져 보인다. 이 값을 다시 키우려면 사용자에게 확인할 것. */
.dsw-ai-body { min-width: 0; }
.dsw-ai-text + .dsw-ai-text { margin-top: 5px; }
.dsw-ai-badges { display: flex; flex-direction: column; gap: 8px; }
/* 3개 카드가 본문 높이를 균등하게 나눠 채워 서로 높이가 같아진다. */
.dsw-ai-badge { flex: 1; display: flex; flex-direction: column; justify-content: center; background: var(--surface-2, #f8fafc); border: 1px solid var(--surface-3, #e2e8f0); border-radius: 10px; padding: 8px 10px; }
.dsw-ai-badge-v { font-size: 18px; font-weight: 800; }
.dsw-ai-badge-l { font-size: 11px; color: var(--text-2, #475569); }
/* [수업/학생 토글] AI 종합 보고서 뷰 전환 */
.dsw-ai-seg { display: inline-flex; margin-left: auto; background: var(--surface-2, #f8fafc); border: 1px solid var(--surface-3, #e2e8f0); border-radius: 999px; padding: 2px; gap: 2px; }
.dsw-ai-segbtn { border: 0; background: transparent; color: var(--text-2, #475569); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 999px; cursor: pointer; transition: background .12s, color .12s; }
.dsw-ai-segbtn.on { background: var(--brand, #2563eb); color: #fff; }
.dsw-ai-view[hidden] { display: none; }
.dsw-ai-stu-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.dsw-ai-stu-pick { display: inline-flex; align-items: center; gap: 6px; }
.dsw-ai-stu-sel { font-size: 14px; font-weight: 700; color: var(--text-1, #0f172a); background: var(--surface-2, #f8fafc); border: 1px solid var(--border-input); border-radius: 8px; padding: 5px 30px 5px 10px; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.dsw-ai-stu-sel:hover { border-color: var(--brand, #2563eb); }
.dsw-ai-stu-sel:focus-visible { outline: 2px solid var(--brand, #2563eb); outline-offset: 1px; }
/* 다크 화살표(R271 · 결정 6A) — 위 그림은 밝은 화면 색이라 제 바탕(--surface-2) 위 2.0. :where 로 감싸 원래 규칙보다 세지지 않게 한다 */
@media screen { :where(html.theme-dark:not(:has(body[data-contrast="high"]))) .dsw-ai-stu-sel { background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3aab5' stroke-width='2.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e"); } }
.dsw-ai-stu-body { margin: 0; }
.dsw-ai-stu-foot { margin-top: 10px; font-size: 11px; color: var(--text-muted); }
/* 반응형 — 좁은 화면에서 카드 전폭 + KPI 3열 */
@media (max-width: 900px) {
  .dsw-grid > .dsw-c4, .dsw-grid > .dsw-c5, .dsw-grid > .dsw-c6, .dsw-grid > .dsw-c7, .dsw-grid > .dsw-c8 { grid-column: 1 / -1; }
  .dsw-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dsw-kwwrap { grid-template-columns: 1fr; }
  .dsw-ai { grid-template-columns: 1fr; }
}

/* [분모 표기] ① 슬라이드별 정답률 막대의 '21명 중 7' — 비율만 찍으면 오해가 난다는
   지표 사전 §2-3 규칙. 숫자 아래 한 줄로 붙여 행 높이(32px)를 늘리지 않는다. */
/* [2차] 종전 display:block 은 숫자 칸을 2줄로 만들어 **행 높이가 늘고 맞춰 둔 카드가
   깨졌다**. 같은 줄 인라인으로 되돌린다 — 막대(1fr)가 그만큼 짧아져 자리를 내준다. */
.anm-ach-den { font-size: 10px; font-weight: 600; color: #64748b; margin-left: 5px; white-space: nowrap; }

/* [행 높이 정합] ①(<button>)과 ③(<div>)은 **기본 line-height 가 다르다** — 실측으로
   같은 내용인데 숫자 칸이 25.4px vs 30.4px 였다(버튼의 UA 정규화). 두 칸 모두 값을 명시해 고정한다.
   이걸 안 잡으면 분모 한 줄을 붙이는 순간 두 카드의 줄 간격이 다시 어긋난다. */
.anm-ach-slrow .anm-eng-choice-num, .anm-ach-typerow .anm-eng-choice-num,
.anm-ach-slrow .anm-eng-choice-text, .anm-ach-typerow .anm-eng-choice-text { line-height: 1.2; }
.anm-ach-typerow .anm-eng-choice-text small { line-height: 1; }

/* ── [학생별 통계] 문항 분석 2차 상세 하단 표 ─────────────────
   종전 '학생별 정답·오답'(이름 + ✓/✗ 두 칸)을 학번·제출 답안·이 회차 성적·누적까지 6칸으로 넓힌다.
   표 기본 골격(.anm-eng-sttable)은 그대로 두고 **이 표의 칸 성격만** 여기서 정한다. */
/* 학번 — 숫자 폭을 고정(tabular-nums)해야 세로로 자릿수가 맞아 '학번순'이 눈으로 읽힌다.
   ★.anon-name 을 함께 달아 익명화 토글에 학번도 같이 가려진다★ — 학번은 이름 못지않은 개인정보다. */
/* ★[열 폭] "학번 2줄로 표기되니까 가로열값좀 늘려서"
   원인: `width:1%`(= 내용에 맞춰 최소로) 는 **표 전체가 좁아지면 제일 먼저 짜부라지는 열**이 된다.
   `white-space:nowrap` 은 글자를 안 접을 뿐 **열이 좁아지는 것 자체는 못 막는다** — 그래서
   `S0001` 같은 값이 셀 밖으로 밀리거나 머리글 '학번'이 두 줄로 접혔다.
   → 최소 폭을 값 기준으로 못 박는다(6~8자 학번 + 좌우 패딩). 늘어나지는 않게 width 는 그대로 최소. */
.anm-ach-stutable .anm-ach-sno,
.anm-ach-stutable th:first-child { min-width: 92px; white-space: nowrap; }
.anm-ach-stutable .anm-ach-sno { font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--text-body); width: 1%; }
/* 제출 답안 — 길면 줄바꿈 대신 말줄임(행 높이가 학생마다 들쭉날쭉하면 훑기가 안 된다). 전문은 title. */
.anm-ach-stutable .anm-ach-anscell { max-width: 320px; }
.anm-ach-ansv { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anm-ach-stutable .anm-ach-numcell { white-space: nowrap; }
/* 오답 줄 강조 — 정렬은 학번순으로 바뀌었지만 '틀린 학생부터 눈에 들어오는' 종전
   정렬의 쓸모는 색으로 남긴다. ★배경만 옅게★ — 글자색까지 바꾸면 ✓/✗ 배지와 신호가 겹친다. */
.anm-ach-stutable tr.is-wrong { background: #fef2f2; }
.anm-ach-stutable tr.is-wrong td { border-bottom-color: #fecaca; }
.anm-ach-stutable tr.is-wrong .anm-ach-den { color: var(--text-body); }   /* 옅은 빨강 면 위 4.35 → 7.4(R222 ⑨) */

/* ══════════════════════════════════════════════════════════════════════════
   [라이브 수업 시작 — 수업 설정]

   왜 바꿨나 — 이 창의 목적은 두 가지다: ①맞는 회차인가 확인 ②기능 몇 개 고르기.
   종전에는 여섯 항목이 전부 같은 무게로 세로 나열돼 둘이 섞였고, 그래서
   회차를 잘못 고른 채 시작하는 사고를 막지 못했다("너무 없어 보인다").
   ★동작·저장 구조는 그대로★ — 화면만 바꾼다.
   ★인라인 스타일을 걷어낸다★ — 종전 모달은 전체가 style="..." 이라 토큰 밖에 있었고,
     다음 사람이 손대려면 문자열을 파헤쳐야 했다.
   ────────────────────────────────────────────────────────────────────────── */
.lss {
  background: #fff; border-radius: 16px; width: min(96vw, 760px);
  box-shadow: 0 20px 56px rgba(15, 23, 42, .26); overflow: hidden;
  /* ★고정 크기★ — 미니게임 미리보기가 바뀌어도 버튼 자리가 흔들리지 않게(fixed-size-modals). */
  height: min(94vh, 510px); display: flex; flex-direction: column;
}
.lss-head {
  padding: 14px 20px 13px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f5f7ff, #eef2ff);
  display: flex; align-items: center; gap: 9px; flex: none;
}
.lss-head-ico {
  width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none;
}
.lss-head-tx { display: block; min-width: 0; }
.lss-head-tx b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.lss-head-tx s {
  display: block; text-decoration: none; margin-top: 1px;
  font-size: 11.5px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.lss-body { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.lss-col-l { padding: 15px 16px 15px 20px; border-right: 1px solid var(--border); }
.lss-col-r { padding: 15px 20px 15px 16px; }
.lss-sec {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-size: 11px; font-weight: 800; color: var(--text-muted); letter-spacing: -.02em;
}
.lss-sec em {
  font-style: normal; width: 16px; height: 16px; border-radius: 5px;
  background: var(--text); color: #fff; font-size: 9.5px;
  display: flex; align-items: center; justify-content: center; flex: none;
}

.lss-fld { display: block; margin-bottom: 11px; }
.lss-fld-l { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.lss-fld-l s { text-decoration: none; color: var(--text-muted); font-weight: 400; font-size: 11px; margin-left: 4px; }
.lss-sel,
.lss-inp {
  width: 100%; height: 38px; border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 0 11px; font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.lss-sel:focus-visible,
.lss-inp:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 회차 라벨 옆 슬라이드 수. 0장 — ★막지 않는다★(전자칠판만으로 여는 수업이 실제로 있다). 색으로만 알린다. */
.lss-fld-l s.warn { color: var(--warn, #d97706); font-weight: 700; }
.lss-sec-2 { margin-top: 16px; }

/* 대기 미니게임 미리보기 — 16:10 고정 칸. 그림이 없으면(새 게임) 칸만 비어 있다. */
.lss-prev {
  aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-subtle);
}
.lss-prev img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lss-grp { margin-bottom: 12px; }
.lss-tg {
  display: flex; align-items: center; gap: 9px; height: 56px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  margin-bottom: 6px; cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.lss-tg:last-child { margin-bottom: 0; }
.lss-tg-ico {
  width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.lss-tg-tx { display: block; min-width: 0; flex: 1 1 auto; }
.lss-tg-tx b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.lss-tg-tx s {
  display: block; text-decoration: none; font-size: 11px; color: var(--text-muted);
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ★체크박스 → 스위치★ — 체크박스는 '동의'의 기호다. 라이브 설정은 켜고 끄는 것이라
   켜짐/꺼짐이 색과 위치 두 가지로 보여야 한다. */
.lss-sw {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative;
  transition: background var(--dur-fast) var(--easing);
}
.lss-sw::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .28);
  transition: left var(--dur-fast) var(--easing);
}
.lss-sw:checked { background: var(--primary); }
.lss-sw:checked::after { left: 18px; }
.lss-sw:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lss-tg:has(.lss-sw:checked) { border-color: #c7d2fe; background: #fbfcff; }
.lss-tg:has(.lss-sw:checked) .lss-tg-ico { background: var(--primary-light); }

.lss-foot {
  border-top: 1px solid var(--border); padding: 12px 20px; background: #fbfcfe;
  display: flex; align-items: center; gap: 12px; flex: none;
}
.lss-btns { display: flex; gap: 7px; flex: none; margin-left: auto; }
.lss-btn {
  height: 38px; padding: 0 15px; border-radius: 9px; font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-body);
}
.lss-btn:hover { background: #f8fafc; }
.lss-btn.go {
  background: var(--primary); border-color: var(--primary); color: #fff; padding: 0 20px;
  box-shadow: 0 3px 10px rgba(79, 110, 247, .32);
}
.lss-btn.go:hover { background: #3b55d9; }
.lss-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 좁은 화면 — 2단을 1단으로. 폭을 억지로 유지하면 가로 스크롤이 생긴다. */
@media (max-width: 720px) {
  .lss-body { grid-template-columns: 1fr; }
  .lss-col-l { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .lss-col-r { padding: 14px 16px; }
  .lss-foot { flex-direction: column; align-items: stretch; }
  .lss-btns { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .lss-sw,
  .lss-sw::after,
  .lss-tg { transition: none; }
}

/* ═══ [분석 모달 세로 압축] ═══════════════════════════════════════
   *"불필요한 세로값을 조정하고 싶어 … 6Tab 세로 값을 한 70%만 축소 … 여백의 미를 확보"*

   실측(1440×900 · 운영): 모달 top 36 → iframe top **171** = **135px** 이 이동·머리글에 쓰였다.
   그만큼 지식대화구조가 아래로 밀린다. 값을 줄이되 **누르는 영역(34px)은 지키고**
   여백만 깎는다(§0-A 2 터치 타깃).                                                        */

/* ① 모달 머리글 — 20px 상하 패딩이 컸다(높이 77) */
/* 머리글 안의 조작은 「인쇄·PDF」(34px) 를 기준 높이로 통일 — 그 크기를 적당하다고 하셨다 */

/* ② 6탭 — 높이 58 → 약 70%(≈41). 글자·터치 타깃은 그대로, 위아래 여백만 깎는다 */
html.v2 .lecd-anm-tabs { padding: 4px 16px 5px; }
html.v2 .lecd-anm-tab { padding: 6px 12px; }

/* ④ 회차별 하위탭 — 아래 여백 16 → 7 */
html.v2 .lecd-ses-subtabs { margin: 0 0 7px; }
html.v2 .lecd-ses-subtabs .lecd-anm-tab { min-height: 34px; padding: 5px 8px; }

/* ═══ [강의 상세 크기·세로 정리] ═══════════════════════════════
   *"[시연] 과학 제일 상단 폰트 크기에 맞춰서 수업전체/회차별/회차 안에 내용 칸/회차 편집
     부분도 전부다 크기 조절 … '인쇄·PDF' 버튼 크기가 적당한것같은데?"*

   기준 두 개로 정리한다.
     · 제목 = 「[시연] 과학」 **22px** (그대로 둔다 — 화면의 기준점)
     · 조작 = 「인쇄·PDF」 **높이 34px · 글자 12.5~13px**
   글자를 더 줄이지 않는다 — 줄이면 밀도가 아니라 가독성을 깎는다(§0-A 2·7).
   실측(1440×900 · 운영): 히어로 128 · 탭줄 40(아래 16) · 범례 28(아래 13) · 회차 카드 76 ·
   분석 버튼 38 → 문서 높이 1209. 아래는 **세로 여백과 조작 높이만** 맞춘 값이다. */

/* ★선택자 주의★ 이 화면 규칙은 전부 `html.v2 .*`(0,2,1) 로 잡혀 있다.
   클래스만 쓰면(0,1,0) 져서 **아무 일도 일어나지 않는다** — 실제로 1차 시도에서 탭만 먹었다. */

/* ① 히어로 카드 — 위아래 여백만 */
html.v2 .lecd-hcard { padding: 12px 18px; margin-bottom: 10px; }
html.v2 .lecd-facts { margin-top: 5px; }

/* ② 6탭 — 아래 여백 16 → 10, 버튼은 조작 표준 34px */
.lecd-tabs { margin-bottom: 10px; }
.lecd-tab { min-height: 34px; padding: 6px 14px; }

/* ③ 상태 범례 — 아래 여백 13 → 8 */
html.v2 .lecd-sess-legend { margin-bottom: 8px; }

/* ④ 회차 카드 — 8장이 세로로 쌓이므로 한 장에서 8px 만 줄여도 64px 이 돌아온다 */
html.v2 .lecd-scard-row { padding: 10px 16px 10px 18px; }
html.v2 .lecd-smeta { margin-top: 4px; }

/* ⑤ 카드 안 조작 = 「인쇄·PDF」 와 같은 34px (지금 38px 로 혼자 크다) */
html.v2 .lecd-scard-analyze { min-height: 34px; height: 34px; padding: 0 14px; }

/* ═══ [분석 머리줄 규격 통일] ═══════════════════════════════════
   *"[시연] 과학 수업분석 이후 수업전체/회차별 · 회차명 · 회차편집 · 인쇄PDF 버튼 크기가 다
     제각각 … 전체적인 세로 사이즈는 인쇄 PDF 크기에 맞춰서 통일"*

   ★실측(운영 1440×900)★ 높이는 이미 34px 로 같았다. **커 보이던 진짜 이유는 셋이다.**
     ① 토글 컨테이너(.lecd-an-vtabs)가 padding 3 + 테두리 → 줄 높이 **42px**(버튼보다 8 큼)
     ② 토글 아이콘 **20×20** (인쇄·PDF 의 15px 대비 크다)
     ③ 글자 13px vs 12.5px
   → **인쇄·PDF(34px · 12.5px · 아이콘 15px)** 를 기준으로 셋을 맞춘다. 높이를 더 줄이지 않는다
     (누르는 영역 34px 유지 — §0-A 2). */

/* ① 줄 높이를 버튼 높이에 맞춘다 — 컨테이너가 8px 을 더 먹고 있었다 */
html.v2 .lecd-an-vtabs { padding: 2px; border-radius: 10px; }
html.v2 .lecd-an-vtabrow { margin-bottom: 10px; gap: 10px; }
/* ② 아이콘 20 → 15 (인쇄·PDF 와 같게) · ③ 글자 13 → 12.5 · 좌우 여백 14 → 12 */
/* ★바깥 상자를 34px 로★ 기준은 「인쇄·PDF」의 **보이는 크기**다.
   컨테이너 = 알약(28) + 위아래 패딩(2+2) + 테두리(1+1) = **34px** — 인쇄·PDF 와 정확히 같다.
   (알약 자체는 28px 이지만 WCAG 최소 24×24 를 넘고, 실제로 누르는 면적은 컨테이너다.) */
html.v2 .lecd-an-vtab { height: 28px; padding: 0 12px; font-size: 12.5px; }
html.v2 .lecd-an-vtab .ui-ico,
html.v2 .lecd-an-vtab svg { width: 15px; height: 15px; }
/* ④ 회차별 뷰의 회차 드롭다운 — 실측 **40px / 13px** 로 혼자 컸다.
      (클래스는 `.lecd-ses-sel` — `.btn-sm` 이 아니라 앞선 규칙이 안 걸렸다.)
      ★같이 적혀 있던 `.lecd-ses-edit` 는 2026-09-16 에 사라졌다★ — 그 자리는 이제
        「수업 관리」(.lecd-an-goto)이고, 그쪽은 `.btn-sm` 이라 아래 「상단 보조 버튼」 규칙(.lecd-an-vtabrow .btn-sm)이 이미 맞춘다. */
html.v2 .lecd-an-sesctx .lecd-ses-sel { height: 34px; min-height: 34px; font-size: 12.5px; }
html.v2 .lecd-an-sesctx .lecd-ses-sel { padding-top: 0; padding-bottom: 0; }
/* ⑤ 회차별 하위탭 줄도 같은 리듬으로(45 → 40) */
html.v2 .lecd-ses-subtabs .lecd-anm-tab { min-height: 32px; }
/* 상단 보조 버튼(있을 때만) */
html.v2 .lecd-an-vtabrow .btn-sm { height: 34px; font-size: 12.5px; }

/* ═══ [지표 배지 색·통일] ═══════════════════════════════════════
   *"만족도랑 제출률 이런 지수가 낮으면 빨강, 높으면 초록색"* → 처음엔 카드 배경·테두리까지
   물들였는데 **"카드 색까지 전부 바꿔버리지 말고 그냥 그 33%의 % 부분 텍스트 색만 넣어줘,
   너무 색깔이 들어가서 눈에 피로도를 유발해"** 로 정정 →
   ★색은 **숫자 글자에만**★ 카드는 원래의 중립 배경 그대로 둔다. 배지가 21개(수업 3 + 학생 6×3)
   나 되는 화면이라 면(面)을 물들이면 눈이 쉴 곳이 없다. 글자 색만으로도 좋고 나쁨은 읽힌다.
   ★색만으로 알리지 않는다(§0-A 1)★ 숫자가 18px 로 크게 적혀 있고 색은 보조다.
   ★네 색 모두 흰 배경에서 대비 4.5:1 이상★ — 옅게 만들지 말 것. */
.dsw-ai-badge.is-hi  .dsw-ai-badge-v { color: #15803d; }   /* ≥80%  좋음 */
.dsw-ai-badge.is-mid .dsw-ai-badge-v { color: #4d7c0f; }   /* 60~80 보통 */
.dsw-ai-badge.is-low .dsw-ai-badge-v { color: #b45309; }   /* 40~60 주의 */
.dsw-ai-badge.is-bad .dsw-ai-badge-v { color: #b91c1c; }   /* <40   낮음 */

/* ── 수업 뷰 ↔ 학생 뷰 크기 통일 ──────────────────────────────────────────────
   ★실측된 문제★ 배지가 `flex:1` 로 **왼쪽 글 높이를 나눠 가져** 같은 지표인데도 크기가 달랐다:
     수업 146px · 이지혜 91px · 김도현 113px … (브라우저 실측). 학생을 바꿀 때마다
     카드가 커졌다 작아지며 눈이 다시 찾아가야 했다.
   ★해결★ 높이를 **92px 로 못 박고 위로 정렬**한다 — 수업이든 학생이든, 누구를 골라도 같은 크기·
     같은 자리. (모달 고정크기 원칙과 같은 이유: 보는 사람이 위치를 다시 익히지 않게.)
   왼쪽 글이 길면 오른쪽 아래가 비지만, 그 여백이 카드가 들쭉날쭉한 것보다 낫다. */
.dsw-ai-badges { align-self: start; }
.dsw-ai-badge { flex: 0 0 auto; height: 92px; }

/* ── [문단 정리] "진짜 보고서 느낌으로 문단 정리" ──────────────
   들여쓰기(1em)·문단 나누기·간격 5px 는 이미 있었다. 남은 건 **글 덩어리의 모양**이다.
   ★양쪽 정렬★ 오른쪽 끝이 들쭉날쭉하면 화면 글로 읽히고, 가지런하면 인쇄된 보고서로 읽힌다.
   ★`word-break: keep-all`★ 한글은 아무 글자에서나 줄이 바뀌면 낱말이 두 줄에 걸쳐 잘린다
     ("보입니 / 다"). 낱말 단위로 넘겨야 보고서 조판이 된다.
   ★`overflow-wrap: break-word` 는 안전장치★ keep-all 만 두면 긴 영문·URL 한 덩어리가
     칸을 뚫고 나간다. 두 줄은 짝이니 함께 둘 것.
   수업 뷰·학생 생기부 뷰가 같은 클래스를 쓴다 — 한 곳만 고쳐도 둘 다 바뀐다. */
.dsw-ai-text { text-align: justify; word-break: keep-all; overflow-wrap: break-word; }
/* ═══════ [확인 필요 모달] 행동 분석 검토 모달 ═══════
   ★고정 크기★(§0-A 5) — 항목이 3건이든 300건이든 「닫기」 좌표가 그대로다.
   뷰포트가 작으면 그에 맞춰 줄지만 **내용량으로는 절대 변하지 않는다**. */
.behx-nm-ov { position: fixed; inset: 0; background: rgba(15,23,42,.62); display: flex;
  align-items: center; justify-content: center; z-index: 1300; padding: 20px; }
/* [좌우 2단] 760×640 → 1040×660. 오른쪽 무대(316px)가 들어갈 폭이 필요하다.
   고정 크기 규칙(§0-A 5)은 그대로 — 항목 수와 무관하게 「닫기」 좌표가 움직이지 않는다.
   ★`--bx-surface` 에 반드시 폴백을 둔다★ — 이 토큰은 `.behx` 팔레트에 선언돼 있지 않다.
     폴백 없이 쓰면 값이 무효가 되어 배경이 투명해지고, 어두운 오버레이 위에서 모달 판이
     통째로 사라진 것처럼 보인다. */
.behx-nm { position: relative; display: grid; grid-template-rows: auto 1fr auto;
  width: min(1040px, calc(100vw - 32px)); height: min(660px, calc(100vh - 32px));
  background: var(--bx-surface, var(--surface)); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .4); }
.behx-nm-head-bar { position: relative; padding: 16px 52px 12px 20px; border-bottom: 1px solid var(--bx-border-soft); }
.behx-nm-head-bar h4 { margin: 0 0 2px; font-size: 16px; font-weight: 900; color: var(--bx-text); }
.behx-nm-sub { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--bx-sub); word-break: keep-all; }
/* [고대비 리뷰 C1-b] 트랙 색 사유는 `.behx-donepill__bar`(5885번 줄)와 동일 —
   고대비에서 트랙과 채움이 둘 다 검정에 가까워져(1.41:1) **0% 가 꽉 찬 막대로 읽혔다**. */
.behx-nm-bar { height: 6px; border-radius: 999px; background: var(--bx-gray-soft, #f1f5f9); overflow: hidden; }
.behx-nm-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--bx-primary); }
.behx-nm-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0;
  background: #f1f5f9; border-radius: 8px; font-size: 16px; cursor: pointer; color: #475569; }
.behx-nm-badge { font-size: 12px; font-weight: 800; color: var(--bx-green); white-space: nowrap; }
.behx-nm-q { font-size: 12.5px; font-weight: 800; color: var(--bx-text); }
.behx-nm-chip { height: 30px; padding: 0 10px; border: 1px solid var(--bx-border-soft); border-radius: 999px;
  background: #fff; font-size: 12.5px; font-weight: 800; color: var(--bx-text); cursor: pointer; white-space: nowrap; }
.behx-nm-chip:hover:not(:disabled) { border-color: var(--bx-primary); background: var(--bx-primary-soft); }
.behx-nm-chip:focus-visible { outline: 2px solid var(--bx-primary); outline-offset: 2px; }
.behx-nm-chip:disabled { opacity: .5; cursor: default; }
.behx-nm-err { font-size: 12px; font-weight: 800; color: var(--danger); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «죽은 hex 폴백»만 걷었다(2026-10-03) */
.behx-nm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--bx-border-soft); font-size: 12.5px; font-weight: 800; color: var(--bx-sub); }
/* 모션 — 등장 1회만(§0-F L3). 반복 없음. */
.behx-nm { animation: behxNmIn var(--dur-slow, 280ms) ease 1; }
@keyframes behxNmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .behx-nm { animation: none; } }

/* ── 「확인 필요」 모달 본문 = 좌 목록 / 우 무대 ──────────────────
   ★본문(.behx-nm-body2)만 1fr★ — 헤더·푸터는 고정이라 「닫기」가 움직이지 않는다.
   넘치는 것은 본문 **안에서만** 스크롤한다(§0-A 5) — 왼쪽 `.behx-nm-rows`만 항상 스크롤한다.
   [무대 넘침 수정] 처음 배선했을 때 6축 칩이 공용 `.behx-chips` 그리드(널찍한 Depth3용
   박스)를 그대로 써 두 줄로 접혀 무대 내용 604px vs 칸 510px 로 넘쳤다(「이 장면이 목록에 있는
   이유」 문단이 접힘 아래로, 「맞나요?」 줄은 0px 여유). 관찰 칩을 이 모달 안에서만 알약 한 줄로
   압축(아래 `.behx-nm-chips .behx-chip`)하고 무대 자체 padding/margin 을 다듬어 604→510px 로
   맞췄다 — 무대 높이(316px)·문단은 그대로 둔다. `overflow-y: auto` 는 안전망으로 남긴다
   (극단적으로 좁은 뷰포트 등에서까지 절대 안 넘친다고는 보장 못 하므로). */
.behx-nm-body2 { display: grid; grid-template-columns: 264px 1fr; min-height: 0; }
.behx-nm-body2--empty { grid-template-columns: 1fr; place-items: center; }

.behx-nm-list { border-right: 1px solid var(--bx-border-soft); background: var(--bx-surface-sub, #fbfcfe);
  display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.behx-nm-lhd { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px 7px;
  border-bottom: 1px solid var(--bx-border-soft);
  font-size: 11px; font-weight: 800; color: var(--bx-sub); }
.behx-nm-rows { overflow-y: auto; overscroll-behavior: contain; padding: 6px; min-height: 0; }
.behx-nm-rows:focus-visible { outline: 2px solid var(--bx-primary); outline-offset: -2px; }

/* ★행 높이를 값으로 못박는다★ — 이름이 길어도 34px. 한 화면에 몇 건이 들어오는지가
   이 화면의 설계 근거라(201건 → 15화면) 리듬이 흔들리면 안 된다. */
.behx-nm-row { width: 100%; height: 34px; display: grid; grid-template-columns: 8px 1fr auto;
  align-items: center; gap: 8px; padding: 0 9px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer; text-align: left; font: inherit; }
/* [고대비 리뷰 C1] `--bx-border-soft` 를 쓰지 않는다 — 이 토큰은 고대비 모드에서
   `--border-strong`(#1e293b, 거의 검정)으로 재정의되는데(css/main.css 6242번 줄) 글자색은
   어두운 채로 남아, 가리키고 있는 그 줄이 **글자 없는 검은 띠**가 됐다(실측 이름 1.44:1 ·
   오른쪽 `0:05 · 25%` 메타 1.09:1 로 소멸). 종전 사용처는 전부 글자 없는 막대 트랙이라
   문제가 없었고, 이 브랜치가 처음으로 **그 위에 글자를 올렸다.**
   → 고대비가 건드리지 않는 `--bx-gray-soft`(#f1f5f9)로 바꾼다. 같은 모달의 관찰 칩이 이미
     쓰는 값이라 새 색을 만들지 않는다(실측 후: 이름 19.17:1 · 메타 14.52:1). */
.behx-nm-row:hover { background: var(--bx-gray-soft, #f1f5f9); }
.behx-nm-row.is-sel { background: var(--bx-primary-soft); box-shadow: inset 2px 0 0 var(--bx-primary); }
.behx-nm-row.is-sel .behx-nm-rname { color: var(--bx-primary); }
/* ★색만으로 알리지 않는다★ — 확인된 행은 가라앉는 동시에 이름 앞에 ✓ 가 붙는다.
   [대비 리뷰] `opacity:.45` 는 글자를 **읽을 수 없게** 만들었다 — 실측 이름 2.82:1 ·
   메타 1.89:1(일반) / 3.34 · 2.75(고대비). 201건을 훑는 교사는 **이미 처리한 줄의 이름도 읽어야**
   한다(무엇을 처리했는지 확인하려고). 그런데 opacity 만으로는 두 조건을 같이 만족할 수 없다 —
   4.5:1 을 지키는 최소 opacity 가 실측상 목록 배경 위 메타 .927, **선택된 줄 이름 .992** 라
   흐리게 할 여지가 사실상 없다(`--bx-sub` 가 이미 5.26:1, 선택 줄 이름은 4.56:1).
   → **글자는 100% 로 두고 배경만 한 단계 가라앉힌다.** 색은 ✓ 와 같은 초록 계열(`--bx-green-soft`)
     이라 "확인함"이라는 같은 말을 두 번 한다(색만으로 알리지 않음 — ✓ 기호가 정본 단서).
     `--bx-green-soft` 는 고대비 오버라이드가 건드리지 않아 두 모드 모두 밝다.
   ★선택된 줄에는 적용하지 않는다★ — 지금 보고 있는 줄은 파란 선택 표시가 우선이고,
     `.is-sel` 조합에서 초록 배경이 이기면 "어디를 보고 있는지"가 사라진다. */
.behx-nm-row.is-done:not(.is-sel) { background: var(--bx-green-soft, #e8f8ee); }
.behx-nm-row.is-done:not(.is-sel):hover { background: var(--bx-gray-soft, #f1f5f9); }
.behx-nm-row.is-done .behx-nm-rname::before { content: "✓ "; color: var(--bx-green); }
.behx-nm-row:focus-visible { outline: 2px solid var(--bx-primary); outline-offset: -2px; }
.behx-nm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bx-cat, var(--bx-sub)); }
.behx-nm-rname { font-size: 12.5px; font-weight: 800; color: var(--bx-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.behx-nm-rmeta { font-size: 11px; font-weight: 700; color: var(--bx-sub); white-space: nowrap;
  font-feature-settings: 'tnum'; }

.behx-nm-stage { display: grid; grid-template-rows: auto auto 1fr; min-height: 0;
  padding: 8px 18px; overflow-y: auto; overscroll-behavior: contain; }
/* [무대 넘침 수정] 위 padding(14→8px)과 아래 smeta/sbody/chips/why 의
   margin·padding 을 함께 줄여 무대 내용을 칸(510px) 안에 맞췄다 — 칩 압축(위 10897 근처)만으론
   544px 로 여전히 34px 초과했다. 무대 높이(316px)·문단 삭제는 손대지 않는다(요구사항). */
/* ★무대 높이 316px 고정★ — 사진이 있든(원본 비율 유지) 자세 아이콘이든 같은 높이.
   항목을 바꿀 때 아래 버튼들이 위아래로 튀면 연속 검토가 끊긴다.
   ★`color` 를 밝게 준다★ — 자세 아이콘(.behx-pose)은 fill/stroke 가 currentColor 인데,
     `.behx` 의 기본 글자색(#0f1f36)을 그대로 물려받으면 이 어두운 판(#0f172a) 위에서
     그림이 통째로 안 보인다(측정은 통과하는데 눈으로는 사라진 상태). */
.behx-nm-hero { position: relative; height: 316px; border-radius: 12px; background: #0f172a;
  color: #cbd5e1; display: grid; place-items: center; overflow: hidden; }
.behx-nm-hero img { max-width: 100%; max-height: 100%; object-fit: contain; }
.behx-nm-hero .behx-pose { width: auto; height: 60%; }
.behx-nm-play { position: absolute; left: 12px; bottom: 12px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(15, 23, 42, .55);
  color: #e2e8f0; font-size: 11px; font-weight: 800; cursor: pointer; }
.behx-nm-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.behx-nm-frameinfo { position: absolute; right: 12px; bottom: 12px; font-size: 11px; color: #94a3b8; }

.behx-nm-smeta { margin: 6px 0 0; display: flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--bx-border-soft); }
.behx-nm-smeta b { font-size: 15px; font-weight: 900; color: var(--bx-text); }
.behx-nm-smeta em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--bx-sub);
  font-feature-settings: 'tnum'; }
.behx-nm-smeta > .behx-catbadge, .behx-nm-smeta > .behx-nm-badge { margin-left: auto; }

.behx-nm-sbody { padding-top: 6px; }
.behx-nm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
/* [정리 리뷰] 여기 있던 `.behx-nm-chips > .behx-chips { flex: 1 1 100%; }` 는 삭제했다.
   첫 커밋에선 안쪽 `.behx-chips` 가 공용 auto-fill 그리드라 폭을 확정해 줘야 했지만, 바로 아래에서
   그 그리드를 flex 로 덮은 뒤로는 조건 자체가 사라졌다(중화 후 실측 449×26 · 넘침 0 으로 동일). */
/* [무대 넘침 수정] 공용 .behx-chips/.behx-chip(6193번 줄, Depth3 상세 모달의
   널찍한 그리드 칩)을 이 모달 안에서만 알약(pill) 한 줄로 압축한다. 6축이 그리드 그대로면
   두 줄(≈88px)로 접혀 무대가 604px vs 칸 510px 로 넘쳤다(「맞나요?」·문단이 접힘 아래로).
   공용 규칙 자체는 건드리지 않는다 — 다른 화면(Depth3)은 그대로 큰 칩을 쓴다. */
.behx-nm-chips .behx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.behx-nm-chips .behx-chip { display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--bx-border-soft);
  background: #f1f5f9; font-size: 11px; font-weight: 700; color: var(--bx-text); }
.behx-nm-chips .behx-chip__ax { font-size: 11px; font-weight: 700; color: var(--bx-sub); }
.behx-nm-chips .behx-chip__v { font-size: 11px; font-weight: 700; color: var(--bx-text); text-align: left; }
.behx-nm-ask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.behx-nm-ask .behx-nm-chip { height: 36px; padding: 0 16px; font-size: 14px; }
/* [분류 버튼 색] 호출부가 이미 세 버튼에 .behx-c-blue/orange/gray 를 붙여 --bx-cat 을
   채워주는데(5586번 줄), .behx-nm-chip 자체 규칙은 그 값을 읽지 않아 셋 다 똑같은 흰 알약이었다.
   테두리만 카테고리색을 쓰고 배경은 흰색 그대로 둔다(§0-A 색으로만 구분 금지 — 이모지·한글
   라벨은 그대로라 색은 보조 단서일 뿐). 새 색을 만들지 않고 기존 --bx-cat-line 토큰만 읽는다.
   .behx-nm-ask 안에서만 적용 — 다른 화면의 .behx-nm-chip 에는 영향 없다.
   [대비 정정] 처음엔 목업대로
   글자색도 --bx-cat 으로 칠했는데, 주황(--bx-orange #ea580c)이 흰 배경에서 3.56:1 로 WCAG AA
   (4.5:1) 미달 — 특수학생 접근성이 목업 재현보다 우선이라는 디자인 헌장(§0)에 걸려 되돌렸다.
   글자색은 다시 기본 `color: var(--bx-text)`(위 .behx-nm-chip 규칙에서 상속, #0f1f36 — 흰
   배경 대비 15:1↑)로 두고, 카테고리 구분은 테두리 색 + 이모지(🟠/⚪/🔵)가 맡는다. */
.behx-nm-ask .behx-nm-chip { border-color: var(--bx-cat-line, var(--bx-border-soft)); }
/* [고대비 리뷰 C1] 위 `.behx-nm-row:hover` 와 같은 사유 — `--bx-border-soft` 는
   고대비에서 검정에 가까워지는데 이 문단은 그 위에 글을 올린다. 실측(수정 전) 1.09:1 로
   「이 장면이 목록에 있는 이유」가 통째로 검은 띠였다. `--bx-gray-soft` 로 바꿔 두 모드 모두
   통과시킨다(수정 후 14.52:1 · 굵은 글씨 19.17:1). */
.behx-nm-why { margin: 8px 0 0; padding: 6px 12px; border-radius: 8px;
  background: var(--bx-gray-soft, #f1f5f9); font-size: 12.5px; color: var(--bx-sub);
  line-height: 1.55; word-break: keep-all; }
.behx-nm-why b { color: var(--bx-text); font-weight: 800; }

/* ── 좁은 화면 ──────────────────────────────────────
   ★접지 않는다★ — 종전엔 무대를 위·목록을 아래로 쌓았는데(1fr / max-height 180px),
   좁은 화면에서 먼저 부족해지는 것은 **가로가 아니라 세로**라서 그 배치가 무너졌다.
   실측(수정 전): 1024×768 무대 칸 330px 에 내용 483px(사진 316 중 171 만 보임),
   800×600 은 칸 238px 에 내용 502px(사진이 60px 조각으로 남고 자세 아이콘은 사라짐).
   게다가 30ms 자동포커스가 「맞나요?」 줄을 보이게 스크롤해 사진을 위로 밀어내므로
   무엇이 잘려 보이는지도 그때그때 달랐다.
   → 2단을 **유지**하고 목록만 좁힌다(264→216px). 목록은 무대와 같은 행이라 세로를 한 줄도
     쓰지 않으므로 남는 높이를 사진이 전부 가져간다. 사진은 고정 316px 대신 **남는 높이만큼**:
     실측 1024×768 → 324×732px, 800×600 → 232×508px. 썸네일이 아니라 '크게 보는 사진'이다.
   무대 행을 `1fr auto auto` 로 바꿔 사진 칸이 잔여 높이를 먹는다(넓은 화면에선 잔여가 문단
   아래로 갔다 — 그 배치는 검증돼 있으므로 1081px 이상은 손대지 않는다). */
@media (max-width: 1080px) {
  .behx-nm-body2 { grid-template-columns: 216px 1fr; }
  .behx-nm-stage { grid-template-rows: 1fr auto auto; }
  /* min-height = 이 아래로는 사진이라 부르기 어렵다는 바닥값. 여기에 걸리면(예: 세로 400px)
     안전망인 무대 스크롤이 대신 돈다 — 사진을 뭉개는 것보다 낫다. */
  .behx-nm-hero { height: auto; min-height: 160px; }
}

/* ── 세로가 짧은 화면 ───────────────────────────────────
   ★위 규칙은 **가로**로만 걸려 있었는데 무대가 모자란 것은 **세로**다★ — 그래서 가로가 넉넉한
   노트북에서 그대로 넘쳤다. 실측(수정 전 · 등장 애니메이션 400ms 뒤):
     1366×768 넘침 0(정상) · 1366×660 넘침 24px(「…이유」 문단 16px 잘림) ·
     1440×640 넘침 44px · 1200×600 넘침 84px+무대 스스로 17px 스크롤(사진 상단 9px 잘림) ·
     1366×560 넘침 124px+스크롤 124px(사진이 머리 잘린 조각으로 남음).
   1080×600 은 멀쩡한데 1090×600 이 깨지는 **1081px 낭떠러지**도 같은 원인이었다.
   ★1366×768 물리 노트북이 작업표시줄·브라우저 크롬을 빼면 뷰포트 640~660px★ 이라
   이 구간이 곧 주 사용 기기다.
   → 가로 조건과 **같은 처방**(사진이 잔여 높이를 먹는 배치)을 세로 조건으로도 건다.
     목록 폭(216px)은 가로 문제라 여기서 건드리지 않는다 — 세로만 모자란 화면에서 목록까지
     좁히면 이름이 이유 없이 잘린다. 700px 는 위 실측에서 정상(768)과 파손(660) 사이의 값이다. */
@media (max-height: 700px) {
  .behx-nm-stage { grid-template-rows: 1fr auto auto; }
  .behx-nm-hero { height: auto; min-height: 160px; }
}

/* ── [수업 후 만족도 1문항] 만족도 근거 한 줄 + 분포 막대 ────────────────
   만족도는 설문에 0.70 이라는 큰 무게를 준다. 숫자만 보이면 «5명이 답한 4.2» 와
   «30명이 답한 4.2» 가 같은 얼굴이 되므로 표본과 분포를 함께 보여준다.
   ★평균만으로는 «모두 보통» 과 «절반씩 극단» 이 구분되지 않는다★ — 그 둘은 수업을 다르게 고쳐야 한다.
   ★가로 폭을 지표 막대 그룹(.dsw-mwrap 440px)에 맞춘다★ — 같은 카드 안에서 두 폭이 어긋나면 산만하다. */

/* [특수학교 행동] 소리 근거 카드 — 사진이 «원래 없는» 이벤트 자리(source='audio').
   사진 없는 프레임 이벤트(자세 아이콘)와는 다른 상태라 표시도 다르다.
   자세 아이콘(.behx-pose)과 **같은 자리·같은 정렬**로 채운다 — 하나는 가운데, 하나는
   왼쪽 위에 붙으면 같은 그리드 안에서 카드가 서로 어긋나 보인다.
   색은 고정값이 아니라 카드의 대분류 색(--bx-cat)을 그대로 받는다. */
.behx-frame__audio { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; }
.behx-frame__wave { display: block; width: 60%; max-width: 150px; height: 34px; opacity: .7;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.behx-frame__srcko { font-size: 11px; font-weight: 800; }
/* 사진이 있는 소리 이벤트 — 사진을 꽉 채우고 「소리로 감지」만 아래에 얹는다 */
.behx-frame__audio--photo { display: block; }
.behx-frame__audio--photo > img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%; }
.behx-frame__audio--photo > .behx-frame__srcko { position: absolute; left: 6px; top: 5px;
  padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.88); }

/* ── [참여 분석] 회차 참여도 헤더 · 3성분 막대 · 학생 표 ── */
/* ★--brand 는 정의되지 않은 토큰이라 --primary(파랑, 회귀 감사에서 실측 확인)로 바꿔 썼다★ */
.anm-eng-parthead{border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin:0 0 12px}
/* 등급 색 견본 — 진입 화면 «슬라이드 통계» 머리 범례(.lg-sw)가 쓴다 · 막대 색(.anm-eng-rkfill--*)과 같은 4색(css/common.css --eng-grade-*).
   (옛 학생표 «슬라이드별 점수 띠» · 띠 칸 말풍선은 2026-11-12 첫 화면 개편(R288)으로 학생표와 함께 걷었다.) */
.anm-eng-sl--exc{background:var(--eng-grade-exc)}
.anm-eng-sl--good{background:var(--eng-grade-good)}
.anm-eng-sl--warn{background:var(--eng-grade-warn)}
.anm-eng-sl--bad{background:var(--eng-grade-bad)}

/* ═══ [참여 분석 진입 화면] 위 «회차 타임라인» + 아래 «슬라이드 통계»(R288 · 2026-11-12 · 옛 좌우 2열 학생표는 걷었다 · 이름 R289) ═══
   «슬라이드 통계» 칸은 높이를 못박고 안에서 스크롤한다(모달 규칙과 같은 원리 · 내용 길이에 따라 칸이 들쭉날쭉하지 않게). */
.anm-eng-land { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.anm-eng-pane { border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column; height: 460px; }
/* 칸 머리줄 = 제목 · (오른쪽 끝) 색 범례 + 정렬 드롭다운(R289 · 2026-11-12 «상단 여백이 좁다 · 범례는 번호순 옆으로»).
   안쪽 여백은 위 회차 타임라인 카드(.rss)와 같은 12 · 16 — 36 짜리 드롭다운이 38 줄에 꽉 끼어 있었다. */
.anm-eng-paneh { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); flex: none;
  border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.anm-eng-panet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anm-eng-panet small { font-weight: 400; color: var(--text-muted); font-size: 11.5px; margin-left: 4px; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
.anm-eng-glegend.anm-eng-glegend--head { margin: 0 0 0 auto; gap: var(--space-2); font-weight: 400;
  white-space: nowrap; overflow: hidden; }
.anm-eng-glegend--head > span { display: inline-flex; align-items: center; }
/* 정렬 드롭다운 — 기본 <select>(키보드·스크린리더가 그대로 쓴다)를 입력칸 고르개(select.form-control)와 같은 꼴로(R289):
   운영체제 화살표를 지우고 토큰 화살표(--select-arrow · 다크는 다크 그림) · 입력칸 테두리 · 마우스 올림 · 초점 고리. */
.anm-eng-sortsel { appearance: none; -webkit-appearance: none; width: auto; min-width: 0; height: 26px; padding: 0 30px 0 var(--space-3);
  border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  background: var(--surface) var(--select-arrow) no-repeat right 10px center; color: var(--text); font: inherit; font-size: var(--text-xs); font-weight: 500; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.anm-eng-sortsel:hover { border-color: var(--border-input-hover); }
.anm-eng-sortsel:focus-visible { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); }
/* 「유형별」 정렬의 묶음 제목 줄 — 구분선(.anm-eng-rksep)과 같은 바탕, 글자는 진하게. */
.anm-eng-rkgrp { margin: 0; padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: 700; color: var(--text);
  background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.anm-eng-rkgrp small { margin-left: var(--space-2); font-weight: 400; color: var(--text-muted); }
/* ★무슨 순서로 정렬돼 있는지 항상 보인다★ — 안 적으면 순서가 조용히 바뀐 결함으로 읽힌다. */
.anm-eng-sort { margin-left: 0; font-size: 11px; font-weight: 400; color: var(--text-muted); white-space: nowrap; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
.anm-eng-paneb { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.anm-eng-paneb--right { padding: 0; }


/* ── 오른쪽 칸 — 슬라이드 목록 한 줄 ──────────────────────────────────────── */
/* ★제목과 유형을 «한 줄»에 둔다★ 두 줄로 쌓으면 좁은 칸에서 아랫줄이 잘려 겹쳐 보인다
   (33안 목업이 같은 함정을 주석으로 남겼다). 유형은 같은 줄 오른쪽에 작게, nowrap 으로 못박는다.
   ★칸 고정 표 — 머리줄과 모든 줄이 «같은 격자 한 벌»★ (2026-09-23 · 게시판처럼 같은 세로선)
   종전 flex 는 유형 칩 길이·「가장 높음」 칩 유무에 따라 칩 시작점이 줄마다 최대 138px,
   막대·% 가 64px 흔들렸다(운영 실측). 칸: 번호 | 제목(나머지) | 유형 | 막대+참여도 | 집중도(R288) | 비고 | ▶.
   ⛔ 칸 폭을 한 줄에만 따로 주지 말 것 — 그 순간 세로선이 다시 깨진다. */
.anm-eng-rk, .anm-eng-rkhead { display: grid; grid-template-columns: 18px minmax(0, 1fr) 116px 104px 84px 60px 10px;
  align-items: center; column-gap: 8px; width: 100%; padding: 7px 12px; }
.anm-eng-rk { border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left;
  font: inherit; cursor: pointer; }
.anm-eng-rkhead { position: sticky; top: 0; z-index: 1; padding-top: 5px; padding-bottom: 5px;
  background: var(--bg-subtle); border-bottom: 1px solid var(--border);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.anm-eng-rkhead-v, .anm-eng-rkhead-a { text-align: right; }
.anm-eng-rkhead-bd { text-align: center; }
.anm-eng-rk:hover { background: var(--primary-light); }
.anm-eng-rk:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.anm-eng-rk.is-off { background: var(--bg-subtle); }
.anm-eng-rk.is-off .anm-eng-rkt, .anm-eng-rk.is-off .anm-eng-rkv { color: var(--text-muted); }
.anm-eng-rkno { text-align: right; font-size: var(--text-xs); color: var(--text-muted);
  font-variant-numeric: tabular-nums; }
.anm-eng-rkt { display: block; min-width: 0; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* [디자인 한 벌 2026-09-17 · R134] 유형은 글이 아니라 칩(.qtc)이다 — 제목 오른쪽 한 칸. 종전 «제목 밑 10.5px 회색 글»은 부가설명인지 유형인지 안 갈렸다. */
.anm-eng-rkty { display: flex; justify-content: flex-start; min-width: 0; overflow: hidden; white-space: nowrap; }
.anm-eng-rkval { display: flex; align-items: center; gap: 6px; }
.anm-eng-rkbar { flex: none; width: 48px; height: 7px; border-radius: 999px;
  background: var(--surface-2, #f1f5f9); overflow: hidden; }
.anm-eng-rkbar--empty { background: none; }
.anm-eng-rkbar > i { display: block; height: 100%; }
/* 막대 색 = 등급색 — 상태 칩과 같은 4색(css/common.css --eng-grade-*) */
.anm-eng-rkfill--exc { background: var(--eng-grade-exc); }
.anm-eng-rkfill--good { background: var(--eng-grade-good); }
.anm-eng-rkfill--warn { background: var(--eng-grade-warn); }
.anm-eng-rkfill--bad { background: var(--eng-grade-bad); }
.anm-eng-rkv { flex: 1; text-align: right; font-size: var(--text-sm); font-weight: 700;
  font-variant-numeric: tabular-nums; }
/* 집중도 칸(R288) = 그 슬라이드 반 평균 집중도 · 시선 분석 «전체 평균»과 같은 값 · 받는 동안 «…» · 못 잼 «—» */
.anm-eng-rkatt { text-align: right; font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.anm-eng-rkbdcell { display: flex; justify-content: center; }
.anm-eng-rkbd { width: 56px; text-align: center; font-size: var(--text-xs); line-height: 1.3;
  padding: 2px 0; border-radius: 999px; white-space: nowrap; }
.anm-eng-rkbd.is-hi { background: #dcfce7; color: #166534; }
.anm-eng-rkbd.is-lo { background: #fee2e2; color: #991b1b; }
.anm-eng-rkgo { font-size: var(--text-xs); color: var(--text-faint); } /* [design-ok] 장식 화살표 ▶ aria-hidden — 읽는 글자 아님(D4) */
/* 「아래는 잰 학생이 없는 슬라이드입니다」 구분선 — 33안이 유튜브의 「가장 낮음」 딱지를
   없앤 자리다(0% 로 순위에 섞이면 «못 푼 문항»으로 읽힌다). 2026-09-23 부터 기준이
   「답안을 받나」가 아니라 «잰 학생이 있나»다(참여도는 설명형 슬라이드도 잰다). */
.anm-eng-rksep { margin: 0; padding: 4px 12px; font-size: 10.5px; color: var(--text-muted); /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
  background: var(--bg-subtle); border-bottom: 1px solid var(--border); }

/* ★반응형★ 1100px 이하에서는 칸 높이를 줄여 타임라인 아래 목록이 한 화면에 들어오게 한다. */
@media (max-width: 1100px) {
  .anm-eng-pane { height: 360px; }
}
/* [R213 · 휴대폰 599px 이하 — 폭 기준 3단의 폰 경계] 슬라이드 목록은 번호 · 유형 · 값 · 비고만 — 제목 칸을 감춘다.
   고정 칸 합이 줄 폭보다 커서 제목 칸이 0px 로 눌리고 머리줄 «슬라이드»가 «유형» 위에 겹쳤다(2026-10-22 390px 실측).
   휴대폰에서 둘 중 하나만 남긴다면 «유형»이다(2026-10-22 결정).
   제목은 줄 단추의 aria-label 에 그대로 있어 화면 읽기에는 남는다.
   값 칸의 작은 막대(옆 % 와 같은 값)도 감추고 그 칸을 104 → 64px 로 줄인다 — 유형 칸이 360px 에서도
   가장 긴 칩(그때 「웹페이지(HTML)」 113px)을 담는다(78 → 118px · 2026-10-22 실측 · 2026-11-10 「활동수업」으로 바뀌어 더 짧아졌다 · 너비는 그대로 둔다).
   머리줄과 줄은 같은 격자 한 벌이라 둘을 함께 바꾼다(위 «칸 고정 표» 주석). */
/* [R288] 집중도 칸이 늘어 휴대폰에서는 비고 칸(가장 낮음 · 높음)도 감춘다 — 두 값은 위 타임라인 칸에 있다. */
@media (max-width: 599px) {
  .anm-eng-rk, .anm-eng-rkhead { grid-template-columns: 18px minmax(0, 1fr) 64px 56px 10px; }
  .anm-eng-rk > .anm-eng-rkt, .anm-eng-rkhead > span:nth-child(2), .anm-eng-rk .anm-eng-rkbar,
  .anm-eng-rk > .anm-eng-rkbdcell, .anm-eng-rkhead > .anm-eng-rkhead-bd { display: none; }
  .anm-eng-pane--right .anm-eng-glegend--head { display: none; }   /* 제목이 «슬라이드 ...»로 잘렸다 — 등급 칩은 위 타임라인 머리에 있다 */
  .anm-eng-pane--right .anm-eng-sort { margin-left: auto; }        /* 범례가 없으니 드롭다운이 혼자 오른쪽 끝(R289) */
}

/* ═══ 회차 타임라인(R288 · 2026-11-12 · js/round-slide-stats.js · 이름 R289) ═══
   슬라이드 칸마다 같은 폭 · 참여도 실선 · 집중도 점선(지표 색 토큰 · R284 ④) · 못 잰 칸은 선을 끊는다 · 칸 = 누르면 그 슬라이드 상세.
   그래프 위 그 슬라이드 자리를 눌러도 같은 상세(R289) — 손을 올린 자리의 아래 번호 칸이 함께 밝아진다(.rss-col.is-hov).
   그래프 높이 132(11-12 «살짝만 줄여» · 160 → 132) · 칸 이름(번호 · 유형)은 그래프 아래 같은 격자. 휴대폰은 유형 칩을 감추고(아래 표에 있다) 그래프를 낮춘다.
   ★두 값은 칸 아래에 적지 않는다★(11-12 사용자) — 그래프 위 그 슬라이드 자리에 손을 올리면 말풍선(.rss-tip · js/round-slide-stats.js `wire`). */
.rss { --rss-par: var(--metric-par); --rss-att: var(--metric-foc);
  padding: var(--space-3) var(--space-4) var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }   /* [design-ok] 아래 «슬라이드 통계» 칸(.anm-eng-pane)과 같은 모서리 */
.rss-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-2); }
.rss-h h4 { margin: 0; font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.rss-kpi { display: flex; align-items: center; gap: var(--space-1) var(--space-4); flex-wrap: wrap; font-size: var(--text-sm); color: var(--text-muted); }
.rss-kpi .k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rss-kpi .k b { font-size: var(--text-lg); color: var(--text); font-variant-numeric: tabular-nums; }
.rss-kpi .k i { display: inline-block; width: 16px; height: 0; border-top: 3px solid var(--rss-par); }
.rss-kpi .k.att i { border-top-color: var(--rss-att); border-top-style: dashed; }
.rss-kpi .g { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
/* 등급 칩 = 단추 — 누르면 학생별 «이 회차»의 그 묶음으로(2026-11-30 · 길 찾기 ①) · 끝의 «›» 가 «넘어간다»를 말한다 */
.rss-g1 { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 2px 8px 2px 2px; border: 0; border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.rss-g1::after { content: "›"; margin-left: 3px; font-weight: 700; color: var(--text-muted); }
.rss-g1:hover { background: var(--bg-subtle); }
.rss-g1:hover > b { text-decoration: underline; text-underline-offset: 3px; }
.rss-g1:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.rss-g1 > b { font-size: var(--text-base); color: var(--text); font-variant-numeric: tabular-nums; }
.rss-g1 .u { font-size: var(--text-sm); color: var(--text-muted); }
.rss-chart { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; height: 132px; }
.rss-y { display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0; font-size: var(--text-xs); color: var(--text-muted); text-align: right; }
.rss-plot { position: relative; min-width: 0; cursor: pointer; }   /* 누르면 그 슬라이드 상세(R289) */
.rss-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rss-svg .gl { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rss-svg .sep { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.rss-svg .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rss-svg .ln.par { stroke: var(--rss-par); }
.rss-svg .ln.att { stroke: var(--rss-att); stroke-dasharray: 7 4; }
.rss-dots { position: absolute; inset: 0; pointer-events: none; }
.rss-dots .pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-sizing: border-box; background: var(--surface); border: 2.5px solid var(--rss-par); }
.rss-dots .pt.att { border-color: var(--rss-att); }
.rss-dots .pt.is-on { width: 14px; height: 14px; margin: -7px 0 0 -7px; }   /* 말풍선이 가리키는 칸의 점 */
/* 말풍선 — 수업 전체 꺾은선(.dsw-tip)과 같은 몸 · 즉시 뜬다 · 손 아래에 끼어들지 않는다(pointer-events 없음) */
.rss-guide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--border-strong); pointer-events: none; }
.rss-guide[hidden], .rss-tip[hidden] { display: none; }
.rss-tip { position: absolute; top: 0; z-index: 3; min-width: 124px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-md); font-size: var(--text-sm); line-height: 1.5; pointer-events: none; white-space: nowrap; }
.rss-tiph { font-weight: 800; color: var(--text); margin-bottom: 2px; }
.rss-tiprow { display: flex; align-items: center; gap: 6px; color: var(--text-body); }
.rss-tiprow b { margin-left: auto; padding-left: var(--space-3); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rss-tiprow i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--rss-par); }
.rss-tiprow.att i { border-top-color: var(--rss-att); border-top-style: dashed; }
.rss-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-left: 34px; border-top: 1px solid var(--border); }
.rss-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 6px 2px 4px; border: 0; border-radius: var(--radius-sm); background: none; font: inherit; color: var(--text); cursor: pointer; }
.rss-col:hover, .rss-col.is-hov { background: var(--primary-light); }
.rss-col:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rss-col .no { font-size: var(--text-sm); font-weight: 800; }
.rss-col .ty { max-width: 100%; overflow: hidden; }
@media (max-width: 760px) {
  .rss { padding: var(--space-3) var(--space-2) var(--space-2); }
  .rss-chart { height: 112px; grid-template-columns: 24px minmax(0, 1fr); }
  .rss-cols { margin-left: 30px; }
  .rss-col .ty { display: none; }
}

/* ═══ [다크 ④ 수업 리포트 2026-10-24] 다크에서만 — 수업 전체 · 회차별 · 학생별(§0-B R222) ═══
   ① 이 화면의 CSS(main-analysis · main-homework · main-reaction · main-enroll-iep · detail-report-tab · detail-discussion ·
      detail-interaction · detail-kg-timeline · behavior-timeline · sped-interaction · video-reaction-timeline)는 정해 둔 적 없는 색 이름
      (--text-1 · --text-2 · --brand · --surface-3 · --line …)을 밝은 대신 값으로 쓴다. 밝은 판 · 고대비는 그 대신 값 그대로 두고,
      다크에서만 수업 리포트 세 보기(.lecd-an-pane) 안에서 있는 색 이름으로 잇는다. 새 화면은 이 이름을 쓰지 않는다(§0-D).
   ② 밝은 판 · 고대비 값은 그대로다(고대비가 붙으면 이 블록이 꺼진다 · common.css 다크 블록과 같은 조건). */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-an-pane { --text-1: var(--text); --text-strong: var(--text); --text-2: var(--text-body); --brand: var(--primary); --brand-600: var(--primary); --brand-50: var(--primary-light); --focus: var(--primary); --surface-3: var(--border); --line: var(--border); --border-weak: var(--border); --border-light: var(--border); --card-border: var(--border); --card: var(--surface); --bg-elevated: var(--bg-subtle); --card-muted: var(--bg-subtle); --surface-muted: var(--bg-subtle); --bg-secondary: var(--bg-subtle); --warn: var(--warning); --warn-soft: var(--warning-light); --warn-bg: var(--warning-light); --warn-text: var(--warning-dark); --warn-border: color-mix(in srgb, var(--warning) 45%, transparent); --info-bg: var(--info-light); --info-border: color-mix(in srgb, var(--info) 45%, transparent); --danger-bg: var(--danger-light); --danger-border: color-mix(in srgb, var(--danger) 45%, transparent); --success-border: color-mix(in srgb, var(--success) 45%, transparent); --primary-border: var(--primary-bd); --success-soft: var(--success-light); --warning-soft: var(--warning-light); --danger-soft: var(--danger-light); }
  /* 수업 전체 — 키워드 줌 단추 · AI 종합 보고서 꼬리표 · 수업/학생 토글 · 지표 숫자 */
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-cloud-zoom button { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-tag { background: var(--primary-light); color: var(--primary); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-kwleg-i.is-on { border-color: var(--primary); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-segbtn.on { background: var(--primary-fill); color: var(--text-on-primary); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-badge.is-hi .dsw-ai-badge-v { color: var(--success-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-badge.is-mid .dsw-ai-badge-v { color: var(--success); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-badge.is-low .dsw-ai-badge-v { color: var(--warning); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-ai-badge.is-bad .dsw-ai-badge-v { color: var(--danger); }
  /* 문항 분석 학생 표 오답 줄 · 참여 분석 «가장 높음 · 낮음» */
  /* 회차별 비교 표 값 칸 — 어두운 면(높을수록 밝게) + 밝은 글자 */
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-cell { background: hsl(var(--ch, 0) calc(var(--cs, 0) * .5%) calc((111 - var(--cl, 95)) * 1%)); color: hsl(var(--ch, 0) calc(var(--cts, 0) * 1%) 88%); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .anm-ach-stutable tr.is-wrong { background: var(--danger-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .anm-ach-stutable tr.is-wrong td { border-bottom-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .anm-ach-den { color: var(--text-muted); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .anm-eng-rkbd.is-hi { background: var(--success-light); color: var(--success-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .anm-eng-rkbd.is-lo { background: var(--danger-light); color: var(--danger-dark); }
  /* 행동 «확인 필요» 창 — 색 묶음(--bx-*)은 main-attendance.css 다크 블록이 다시 정한다 · 여기는 묶음 밖 고정 색 */
  html.theme-dark:not(:has(body[data-contrast="high"])) .behx-nm-x { background: var(--bg-subtle); color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .behx-nm-chip { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .behx-nm-chips .behx-chip { background: var(--bg-subtle); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .behx-frame__audio--photo > .behx-frame__srcko { background: color-mix(in srgb, var(--surface) 88%, transparent); }
}

/* ════════════════════════════════════════════════════════════════════════════
   [R250 · 2026-11-01] 수업 리포트 상세 5-1 — 머리 줄(세 보기 공통) + «수업 전체» = 마디아 디자인 법칙(R242) 6번째 화면
   사용자 «일단 전체 보는 수업리포트 대시보드 부분은 그대로 작업하고 회차별 학생별 상세 들어갈때 디테일하게 봐보자»
   (눌러 보는 시안 1~3 · 5~13 · 갈래 추천 A: 설명 글 감춤 · AI 본문 14). 4번(회차별 탭 줄 모양)과 탭 글자 · 높이는 5-2 에서.
   정본 = docs/10_디자인/마디아_디자인법칙.md · 결정 = §0-B R250 · 회귀 가드 = tests/frontend/report_whole_madia_rules.spec.js
   워드클라우드 «가장 작은 낱말 12»는 js/demo-sci-panel-view.js(minRenderPx) — 여기는 단추 · 칩만.
   남기는 것: 만족 · 집중 · 참여 세 색 · 회차별 비교 값 칸 진하기 · 이모지 고리 · 팀 색 · 주의 · 낮음 색 · 1.3배로 열기(10-26).
   ════════════════════════════════════════════════════════════════════════════ */
html.v2:not(.role-student) #lecdPanel { --rpt-title-fs: 24px; --rpt-ctl-fs: 13px; --rpt-h-fs: 20px; --rpt-kpi-fs: 32px; --rpt-mid-fs: 18px; }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole { --text-xs: 12px; --text-sm: 13px; }
/* 1. 머리 글자 단계 — 수업 이름 24 · 보기 전환 · 단추 · 회차 칸 · 이름 가리기 13 */
html.v2:not(.role-student) #lecdPanel .lecd-an-title-name { font-size: var(--rpt-title-fs); }
html.v2:not(.role-student) #lecdPanel .lecd-an-vtab,
html.v2:not(.role-student) #lecdPanel .lecd-an-vtabrow .btn-sm,
html.v2:not(.role-student) #lecdPanel .lecd-an-sesctx .lecd-ses-sel,
html.v2:not(.role-student) #lecdPanel #lecdAnAnon { font-size: var(--rpt-ctl-fs); }
/* 2. 머리 높이 36 하나 — 마우스에서만(손가락 기기 44 R152 그대로) · 전에 «인쇄 단추 크기에 맞춰 통일»한 한 높이를 34 → 36 */
html.v2:not(.role-student) #lecdPanel .lecd-an-vtabs { box-sizing: border-box; align-items: stretch; }
html.v2:not(.role-student) #lecdPanel .lecd-an-vtabrow .btn-sm,
html.v2:not(.role-student) #lecdPanel #lecdAnPrint,
html.v2:not(.role-student) #lecdPanel #lecdAnXlsx,
html.v2:not(.role-student) #lecdPanel #lecdAnGoLecture { padding-top: 0; padding-bottom: 0; }
@media (pointer: fine) {
  html.v2:not(.role-student) #lecdPanel .lecd-an-vtabs { height: 36px; }
  html.v2:not(.role-student) #lecdPanel .lecd-an-vtab { height: auto; }
  html.v2:not(.role-student) #lecdPanel :is(.lecd-an-vtabrow .btn-sm, #lecdAnPrint, #lecdAnXlsx, #lecdAnGoLecture, .lecd-an-sesctx .lecd-ses-sel) { height: 36px; min-height: 0; }
  html.v2:not(.role-student) #lecdPanel #lecdAnAnon { height: 36px; box-sizing: border-box; }
}
/* 3. 보기 전환 고른 쪽 — 흰 면 + 주 색 글자(수업 목록 «목록 | 캘린더» R246 과 같은 꼴) */
html.v2:not(.role-student) #lecdPanel .lecd-an-vtabs { background: var(--surface-2); box-shadow: none; }
html.v2:not(.role-student) #lecdPanel .lecd-an-vtab.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* 5. 위쪽 숫자 칸 넷 — 숫자 32 · 이름 13 · 설명 12 · 뜻 없는 파랑 걷기(대시보드 R244 와 같은 꼴) */
html.v2:not(.role-student) #lecdPanel .dsw-kpi-v { font-size: var(--rpt-kpi-fs); line-height: 1.15; }
html.v2:not(.role-student) #lecdPanel .dsw-kpi.accent .dsw-kpi-v { color: var(--text); }
html.v2:not(.role-student) #lecdPanel .dsw-kpi-l { font-size: var(--text-sm); color: var(--text-body); margin-top: 2px; }
html.v2:not(.role-student) #lecdPanel .dsw-kpi-d { font-size: var(--text-xs); }
/* 6. 절 제목 20 · 옆 설명 글 감춤(R162 · 설명은 «? 도움»과 설명서에) */
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole .lecd-an-subh { font-size: var(--rpt-h-fs); align-items: center; }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole :is(.lecd-an-subh-sub, .dsw-kwbars-sub) { display: none; }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole .dsw-rx-total { font-size: var(--text-sm); }
/* 7. 워드클라우드 확대 단추 · 팀 칩 36(좁은 폭은 칩 32 — 두 줄로 넘어가 낱말을 가린다) */
html.v2:not(.role-student) #lecdPanel .dsw-cloud-zoom button { width: 36px; height: 36px; font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .dsw-kwleg-i { height: 36px; padding: 0 12px; font-size: var(--text-sm); }
@media (max-width: 600px) { html.v2:not(.role-student) #lecdPanel .dsw-kwleg-i { height: 32px; padding: 0 10px; } }
/* 8. 키워드 TOP 10 — 막대 안 % 글자 걷기(말풍선 .dsw-kwbar-tip 이 말한다 · R142 와 같은 꼴) · 숫자 칸 넷 상자 걷기 · 제목 18 */
html.v2:not(.role-student) #lecdPanel .dsw-kwbar-pct { display: none; }
html.v2:not(.role-student) #lecdPanel .dsw-kwbars-t { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .dsw-kwstats { display: flex; flex-wrap: wrap; gap: 4px 20px; }
html.v2:not(.role-student) #lecdPanel .dsw-kwstat { flex-direction: row; align-items: baseline; gap: 4px; padding: 0; background: none; }
html.v2:not(.role-student) #lecdPanel .dsw-kwstat b { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .dsw-kwstat span { font-size: var(--text-xs); }
/* 9. 차트 · 표 글자 12 이상 — 축(SVG 글자 속성은 CSS 가 이긴다) · 단위 · 범례 · 이모지 이름 12 · 수 18 · 비율 14 */
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole :is(.dsw-ax, .dsw-maxis, .dsw-trend-leg, .dsw-stab-unit, .dsw-trend-unit, .dsw-kwbar-n i, .dsw-rxr-l) { font-size: var(--text-xs); }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole .dsw-rxr-n { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole .dsw-rxc-p { font-size: var(--text-base); }
/* 10. AI 종합 보고서 본문 14(단계표 · 줄 간격 1.75) */
html.v2:not(.role-student) #lecdPanel .dsw-ai-text { font-size: var(--text-base); line-height: 1.75; }
/* 11. AI 보고서 옆 숫자 칸 — 상자 걷기 · 좋음 · 보통은 기본 글자색(주의 · 낮음만 색 · 출결 R247 9 와 같은 생각) · «수업 | 학생» 36 */
html.v2:not(.role-student) #lecdPanel .dsw-ai-badge { background: none; border: 0; border-radius: 0; border-left: 1px solid var(--border); padding-top: 4px; padding-bottom: 4px; height: auto; }
html.v2:not(.role-student) #lecdPanel .dsw-ai-badge:is(.is-hi, .is-mid) .dsw-ai-badge-v { color: var(--text); }
html.v2:not(.role-student) #lecdPanel :is(.dsw-ai-badge-l, .dsw-ai-tag, .dsw-ai-stu-foot) { font-size: var(--text-xs); }
html.v2:not(.role-student) #lecdPanel .dsw-ai-seg { height: 36px; box-sizing: border-box; align-items: stretch; }
html.v2:not(.role-student) #lecdPanel .dsw-ai-segbtn { font-size: var(--text-sm); padding: 0 16px; }
html.v2:not(.role-student) #lecdPanel .dsw-ai-segbtn.on { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
/* 12. 카드 그림자 걷기 — 테두리 한 줄(수업 리포트 목록 R249 와 같게) */
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-whole :is(.lecd-an-box, .dsw-kpi) { box-shadow: none; }
/* 13. 좁은 폭 — 숫자 칸 두 칸씩(셋 + 하나면 마지막 칸이 혼자 남는다 R042) */
@media (max-width: 900px) { html.v2:not(.role-student) #lecdPanel .dsw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ════════════════════════════════════════════════════════════════════════════
   [R251 · 2026-11-01] 수업 리포트 상세 5-2 — 회차별 «참여 · 반응 · 문항» = 마디아 디자인 법칙(R242) 7번째 화면
   사용자 «전부 추천대로 좋은데 … 모바일 분석 5개 … 아이콘+2글자 … 하단 배치» → «좋아 추천대로 작업하자»
   (눌러 보는 시안 1~15 · 갈래 1 A 글자 + 밑줄 · 4 A 단추 36 · 띠 44 · 14 A 가로 스크롤 · 15 A 휴대폰 아래 고정)
   정본 = docs/10_디자인/마디아_디자인법칙.md · 결정 = §0-B R251 · 회귀 가드 = tests/frontend/report_ses_madia_rules.spec.js
   남기는 것: 등급 딱지 · 슬라이드 점 등급색(R141) · 반응 막대 두 색 · «가장 많음 · 적음» 딱지 색 · «확인 필요» 빨간 띠 · «× 오답» 빨간 글자.
   시선 · 토론 본문(5-3) · 학생별(5-4)은 다음 차례 — 1번 탭 줄과 3번 절 제목만 다섯 탭에 함께 걸린다.
   ════════════════════════════════════════════════════════════════════════════ */
html.v2:not(.role-student) #lecdPanel { --rpt-cap-fs: 12px; }
/* 1. 회차별 탭 줄 — 글자 + 밑줄 2px(M07 부품 표) · 14 · 40 */
html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: 0; }
html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs .lecd-anm-tab { height: 40px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: var(--text-base); font-weight: 600; color: var(--text-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; }
html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs .lecd-anm-tab.active { color: var(--text); font-weight: 700; border-bottom-color: var(--primary); background: none; box-shadow: none; }
html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs .lecd-anm-tab.active .lecd-anm-tab-ico { color: var(--primary); }
/* 2. 탭 안 전환 단추 한 꼴 — 바깥 36 · 13 · 고른 쪽 흰 면 + 주 색 글자(검은 면 · 파란 면 걷기) */
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.emo-srcbar, .emo-qna-segs) { display: inline-flex; align-items: stretch; height: 36px; box-sizing: border-box; padding: 2px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.emo-src, .emo-qna-seg) { height: auto; padding: 0 12px; font-size: var(--rpt-ctl-fs); border: 0; border-radius: 8px; background: none; color: var(--text-muted); font-weight: 600; }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.emo-src, .emo-qna-seg).is-on { background: var(--surface); color: var(--primary); font-weight: 700; box-shadow: var(--shadow-sm); }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses .emo-qna-seg.is-flag.is-on { background: var(--surface); color: var(--warning-dark); }
/* 3. 탭 안 절 제목 한 꼴 — 18 · 기본 글자색 */
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.ins-dash-title, .anm-eng-h5, .anm-eng-panet, .emo-sec-h, .emo-chat-h, .anm-eng-choices-h) { font-size: var(--rpt-mid-fs); font-weight: 800; color: var(--text); }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses .ins-rank-h { font-size: var(--text-base); }
html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.anm-eng-h5, .anm-eng-choices-h) svg { color: var(--text-muted); }
/* 4. 슬라이드 상세 머리 — 글자 13 · 12 · 단추 36 · 띠 44(전에 정한 띠 35 · 단추 28 을 다른 단추와 같은 36 으로) */
html.v2:not(.role-student) #lecdPanel :is(.emo-back, .emo-tab, .emo-page, .anm-eng-slback, .anm-eng-slnum, .anm-eng-slpage) { height: 36px; min-width: 36px; font-size: var(--rpt-ctl-fs); }
html.v2:not(.role-student) #lecdPanel :is(.emo-tabs-now, .anm-eng-slnow) { font-size: var(--rpt-cap-fs); }
html.v2:not(.role-student) #lecdPanel :is(.emo-tabs, .anm-eng-slbar) { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
@media (max-width: 600px) {   /* 휴대폰 — 번호 줄이 화면 밖으로 넘쳤다(문서 폭 473) · 줄바꿈 */
  html.v2:not(.role-student) #lecdPanel :is(.emo-tabs, .anm-eng-slbar) { flex-wrap: wrap; }
  html.v2:not(.role-student) #lecdPanel :is(.emo-tabs-nums, .anm-eng-slnums) { flex-wrap: wrap; }
  html.v2:not(.role-student) #lecdPanel :is(.emo-tabs-now, .anm-eng-slnow) { flex-basis: 100%; margin-left: 0; padding-left: 0; }
}
/* 5. 참여 — 표 글자 12 · 정렬 칸 36 · 슬라이드 줄 40(학생 줄과 같게) */
html:not(.role-student) #lecdPanel .lecd-an-pane-ses :is(.anm-eng-sttable th, .anm-eng-paneh small, .anm-eng-glegend, .anm-eng-glegend span) { font-size: var(--rpt-cap-fs); }
html.v2:not(.role-student) #lecdPanel .anm-eng-sortsel { height: 36px; font-size: var(--rpt-ctl-fs); }
html.v2:not(.role-student) #lecdPanel .anm-eng-rk { min-height: 40px; }
/* 6. 참여 슬라이드 상세 — 2026-11-09 R275 로 학생별 상세와 같은 .rsv-* (css/report-student.css)를 쓴다 · 여기 규칙 없음 */
/* 7. 반응 — 순위 줄 14 · 딱지 · 범례 12 · «펼치기» 36 */
html.v2:not(.role-student) #lecdPanel :is(.ins-rank-title, .ins-rank-val) { font-size: var(--text-base); }
html.v2:not(.role-student) #lecdPanel :is(.ins-rank-badge, .ins-rank-badge-tie, .ins-rank-legend) { font-size: var(--rpt-cap-fs); }
html.v2:not(.role-student) #lecdPanel .nc-toggle { height: 36px; min-height: 0; }   /* «확인 필요» 띠의 «펼치기» 하나만 — 회차별 칸 전체 .btn-sm 으로 걸면 시선 패널 단추(임베드와 같아야 한다)까지 바뀐다 */
/* 8. 반응 슬라이드 상세 — 글자 12 · 영상 제목 · 재생 18 · «직접 답변하기» 36(17 · 26 두 가지였다) · 재생줄 글자는 옛 규칙이 !important(css/video-reaction-timeline.css) */
html.v2:not(.role-student) #lecdPanel :is(.emo-ch-ans > summary, .emo-ch-vpos, .emo-sec-sub) { font-size: var(--rpt-cap-fs); }
html.v2:not(.role-student) #lecdPanel .vrt-ov-ctl .vrt-ov-rate { font-size: var(--rpt-cap-fs) !important; }
html.v2:not(.role-student) #lecdPanel .vrt-ov-play { font-size: var(--rpt-mid-fs) !important; }
html.v2:not(.role-student) #lecdPanel .emo-screen-q { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .emo-ch-answer { height: 36px; min-height: 0; padding: 0 12px; font-size: var(--rpt-ctl-fs); }
/* 9. 해결 · 미해결 칸 — 옅은 초록 · 분홍 면 걷기(숫자는 미해결만 빨강) · [keep-css] .rx-solved — js/reaction-chips.js 가 'rx-' + code 로 조립 */
html.v2:not(.role-student) #lecdPanel .emo-stat { background: var(--surface); border-top-width: 1px; border-color: var(--border); }
html.v2:not(.role-student) #lecdPanel .emo-stat.rx-solved :is(b, strong) { color: var(--text); }
/* 10. 문항 첫 화면 — 딱지 · 유형 칩 12 · 정답률 13 */
html.v2:not(.role-student) #lecdPanel :is(.anm-ach-scope, .anm-ach-weak-tag, .anm-eng-choice-lab) { font-size: var(--rpt-cap-fs); }
html.v2:not(.role-student) #lecdPanel .anm-eng-choice-num { font-size: var(--rpt-ctl-fs); }
/* 11. 문항 슬라이드 상세 — 제목 18 · 정답 · 오답 수 20 · 작은 글자 12 · 제목 앞 📄 걷기(유형은 딱지가 말한다) */
html.v2:not(.role-student) #lecdPanel .anm-eng-detail-title { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel .anm-eng-detail-ico { display: none; }
html.v2:not(.role-student) #lecdPanel .anm-ach-of-v { font-size: var(--rpt-h-fs); }
html.v2:not(.role-student) #lecdPanel .anm-eng-ds-val { font-size: var(--rpt-mid-fs); }
html.v2:not(.role-student) #lecdPanel :is(.anm-ach-of-k, .anm-ach-of-l, .anm-ach-sub, .anm-eng-ds-lab, .anm-ach-den, .anm-eng-typebadge, .anm-eng-typebadge b, .anm-ach-ansline-k, .anm-ach-stutable th) { font-size: var(--rpt-cap-fs); }
/* 12. «설정한 정답» 파란 상자 걷기(카드 안 상자 M05) */
html.v2:not(.role-student) #lecdPanel .anm-ach-ansline { background: none; border: 0; padding-left: 0; padding-right: 0; }
html.v2:not(.role-student) #lecdPanel .anm-ach-ansline-k { color: var(--text-muted); }
/* 13. 오답 줄 빨간 면 걷기 — «× 오답» 빨간 글자가 말한다(표 제목 옆 «오답 = 붉은 줄»도 js/question-panel.js 에서 걷었다) */
html.v2:not(.role-student) #lecdPanel .anm-ach-stutable tr.is-wrong { background: none; }
html.v2:not(.role-student) #lecdPanel .anm-ach-stutable tr.is-wrong td { border-bottom-color: var(--border); }
/* 14. 휴대폰 학생 표 — 칸 안 가로 스크롤(표가 402 로 넘쳤다) */
@media (max-width: 600px) {
  html.v2:not(.role-student) #lecdPanel .anm-ach-stutable { display: block; max-width: 100%; overflow-x: auto; }
  html.v2:not(.role-student) #lecdPanel .anm-ach-stutable :is(th, td) { white-space: nowrap; }
}
/* 15. 휴대폰 분석 탭 — 아이콘 + 두 글자 한 줄 · 화면 아래 고정(R220 ④ · 760 이하)
   «분석»은 js/analysis-shell-panel.js 가 .lecd-anm-tab-sfx 로 감쌌다 — 휴대폰에서만 감춘다(화면 읽기 프로그램은 «참여 분석»을 그대로 읽는다).
   --app-bottom-bar 를 주면 도우미 단추(css/support-chat.css) · 알림(js/toast.js)이 그 위로 뜬다 · 막대는 «회차별»일 때만. */
@media (max-width: 760px) {
  html.v2:not(.role-student) #lecdPanel .lecd-anm-tab-sfx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs .lecd-anm-prep-tag { display: none; }
  html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
  html.v2:not(.role-student) #lecdPanel .lecd-ses-subtabs .lecd-anm-tab:last-child:nth-child(odd) { grid-column: auto; }
  html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses:not([style*="none"]) .lecd-ses-subtabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); margin: 0;
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -2px 8px rgba(15, 23, 42, .06);
  }
  html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses:not([style*="none"]) .lecd-ses-subtabs .lecd-anm-tab {
    height: 56px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 2px; min-width: 0; font-size: var(--rpt-ctl-fs);
    border-bottom: 0; border-top: 2px solid transparent;
  }
  html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses:not([style*="none"]) .lecd-ses-subtabs .lecd-anm-tab.active { border-top-color: var(--primary); color: var(--primary); }
  html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses:not([style*="none"]) .lecd-ses-subtabs .lecd-anm-tab-ico { width: 22px; height: 22px; }
  html.v2:not(.role-student):has(#lecdPanel .lecd-an-pane-ses:not([style*="none"]) .lecd-ses-subtabs) { --app-bottom-bar: 57px; }
  html.v2:not(.role-student) #lecdPanel .lecd-an-pane-ses:not([style*="none"]) { padding-bottom: calc(var(--app-bottom-bar) + env(safe-area-inset-bottom)); }
}
