/* css/detail-discussion.css — css/detail.css 가족의 한 조각(옮기기만 · 순서의 정본 = js/script-families.json · 코드 구조 4계단④ · 2026-10-10) · 프로필 메뉴 · 토론 분석 · 함께 나온 개념 · 지식대화구조 */
/* ===== [F84 2026-06-05] GNB 프로필 드롭다운 (detail 한정) =====
   Auth.renderHeader 가 .gnb-profile 마크업을 그리는데, 해당 스타일은 main.css 에만
   있고 detail.html 은 main.css 를 로드하지 않아 우측 상단 '데모 교사' 프로필이
   flex 미적용 → 아바타+이름+화살표가 2줄로 줄바꿈돼 깨졌다.
   detail 에 필요한 .gnb-profile* 스타일을 복제해 1줄 정렬을 보장한다. */
.header-user .gnb-profile { position: relative; }
.header-user .gnb-profile-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: nowrap;
  background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 4px 8px; border-radius: var(--radius-sm);
  color: var(--text);
  transition: background .12s var(--ease);
}
.header-user .gnb-profile-trigger:hover,
.header-user .gnb-profile-trigger:focus-visible { background: var(--bg); outline: none; }
.header-user .gnb-profile-trigger:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.header-user .gnb-profile-name {
  font-weight: 600; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-user .gnb-profile-caret {
  flex-shrink: 0; color: var(--text-muted);
  transition: transform .15s var(--ease);
}
.header-user .gnb-profile-trigger[aria-expanded="true"] .gnb-profile-caret { transform: rotate(180deg); }
/* 드롭다운 패널 */
.header-user .gnb-profile-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 192px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  list-style: none; margin: 0; padding: 4px 0;
  z-index: 200;
}
.header-user .gnb-profile-menu[hidden] { display: none; }
/* 메뉴 항목 — a, button 공통 */
.header-user .gnb-profile-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 16px; min-height: 44px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: var(--text-sm); font-weight: 500;
  color: var(--text); text-decoration: none;
  text-align: left; line-height: 1.5; word-break: keep-all;
  box-sizing: border-box;
  transition: background .1s var(--ease), color .1s var(--ease);
}
.header-user .gnb-profile-item:hover,
.header-user .gnb-profile-item:focus-visible { background: var(--bg); color: var(--primary); outline: none; }
.header-user .gnb-profile-item:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); }
.header-user .gnb-profile-item[disabled] { color: var(--text-muted); cursor: not-allowed; }
.header-user .gnb-profile-item[disabled]:hover { background: none; color: var(--text-muted); }
.header-user .gnb-profile-item--danger { color: var(--danger); }
.header-user .gnb-profile-item--danger:hover,
.header-user .gnb-profile-item--danger:focus-visible { background: var(--danger-light); color: var(--danger); }
.header-user .gnb-menu-ico { flex-shrink: 0; color: currentColor; }
.header-user .gnb-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
@media (max-width: 768px) {
  .header-user .gnb-profile-menu { min-width: 160px; max-width: calc(100vw - 32px); }
  .header-user .gnb-profile-name { max-width: 80px; }
}

/* [요청] 시선 패널 모달 임베드 레이아웃 — 문항 마커·토글을 우측 패널 상단, 슬라이드 축소, 시간 게이지 하단 강조 */

/* 시선 무대 — 안내(notice) 슬라이드의 배경. ([배경 한 규칙 2026-10-02] 같은 클래스를 쓰던 «학생카드 재구성»(.gz-stu-card 등)은 걷었다.) */
.rt-gaze-slide-overlay.gz-stu-mode {
  padding: 20px; gap: 0; background: #f3f5f9;
  display: block; overflow: auto;
}
/* [안내슬라이드 정중앙 배치 2026-08-02] 사장님 지시 — 안내 문구는 화면 세로 정중앙에, 히트맵도
   같이 화면 중앙으로 옮긴다(히트맵 쪽은 api/seed_gaze_engine.py _slide_layout 의 notice 분기 참고).
   이 무대(.rt-gaze-slide-overlay)만 :has() 로 감지해 세로만 중앙정렬(justify-content — 부모가
   flex-direction:column 을 상속) 한다. align-items 는 기본값(stretch)을 유지해 카드 가로폭은
   종전(꽉 채움) 그대로 — 다른 유형의 gz-stu-mode 재구성은 종전 top-aligned block 그대로 둔다. */
.rt-gaze-slide-overlay.gz-stu-mode:has(.gz-notice-slide) {
  display: flex; justify-content: center;
}
/* [안내슬라이드 2026-07-28] 안내는 '문항 N' 프레임 없이 콘텐츠 텍스트로 — 일반 콘텐츠 슬라이드처럼(사장님 요청) */
.rt-gaze-slide-overlay.gz-stu-mode .gz-notice-slide {
  background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,.08); box-sizing: border-box;
  padding: 28px 34px; line-height: 1.5; color: #1f2937;
  word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap;
  /* [정중앙 배치 2026-08-02] 종전엔 여기서 top-aligned(flex-start)로 통일했었다(아래 옛 근거는
     폐기 — 히트맵도 같은 커밋에서 화면 중앙으로 함께 옮겨 더 이상 어긋나지 않는다). 이제 부모가
     위 :has() 규칙으로 무대 전체를 중앙정렬하므로, 카드 내부는 기존처럼 내용 높이만큼만 차지하면 된다. */
  display: flex; flex-direction: column; justify-content: flex-start;
  /* [안내 글씨 크기 2026-07-29 · 근거 정정] 종전 18px(실측 17px)은 같은 무대의 문항 질문(26px)보다
     작아 "안내 글씨가 너무 작다 · 라이브에서 보이는 크기로"(사장님) 지적을 받았다.
     ★분모 정정: 처음엔 '뷰포트 1280' 을 분모로 34×(960/1280)=25.5≈26px 라 적었으나 **틀렸다**.
       이 캔버스 960 은 뷰포트가 아니라 **AOI 카드 폭**이다(AOI region 이 카드 % 로 배치되고,
       geom 실측 answer region 이 custom_aoi_boxes 의 {5,36,90,58}% 와 정확히 일치한다).
       라이브 카드는 `.rtq-card-aoi { max-width:680px; aspect-ratio:1/1 }`(realtime.css:11-15) 이고
       질문은 `html.v2 .rts-q-big .rtq-question`(0,3,1 · realtime.css:470)이
       `.rtq-card-aoi .rtq-aoi-rbody-q .rtq-question`(0,3,0 · :96)을 이겨 **34px** 이다.
       → 카드폭 대비 34/680 = 5.0% → 캔버스 960 환산 ≈ **48px**. 다만 안내는 한 줄이 길어 48px 이면
       3줄로 번지므로, 문항 질문과 동일 계열의 컨테이너 스케일(아래 .pv-question 과 같은 근거)로 두되
       상한을 40px 로 잡는다. `.rts-q-big` 은 realtime-student.html:155 에 정적으로 박혀 항상 적용된다. */
  font-size: clamp(20px, calc(3.4cqw + 1.2cqh), 40px); font-weight: 800; letter-spacing: -.015em;
}
.rt-gaze-slide-overlay.gz-stu-mode { container-type: size; }

/* [D-INFRANODUS P1/P2] 지식대화구조 force-directed 그래프(2D/3D) — 다크 캔버스 */
.rt-knet-fg { height: 440px; width: 100%; border-radius: 10px; overflow: hidden; background: #0b1220; position: relative; padding: 0 !important; border: 1px solid #1e293b; }
.rt-knet-fg canvas { display: block; }
.rt-knet-dimtoggle { display: inline-flex; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }

.rt-knet-graph-wrap { min-height: 440px; }
/* [개념지식맵 UI] 개념 지도(개념 지식맵) 메인 그래프만 크게(620px). 팀별 소형 카드(.rt-knet-team-graph)는 기존 440 유지.
   #rtDiscGraphWrap = 라이브 '개념 지식맵' 탭 그래프, #rtKnetGraphWrap = 레거시 지식맵 패널(양쪽 모두 커버). */
#rtDiscGraphWrap, #rtKnetGraphWrap { min-height: 620px; }
#rtDiscGraphWrap.rt-knet-fg, #rtKnetGraphWrap.rt-knet-fg { height: 620px; }
@media (max-width: 720px) {
  #rtDiscGraphWrap, #rtKnetGraphWrap { min-height: 480px; }
  #rtDiscGraphWrap.rt-knet-fg, #rtKnetGraphWrap.rt-knet-fg { height: 480px; }
}

/* [팀분석 UI개편 2026-07-08] 70/30 워크스페이스 — 좌 개념지도 / 우 분석 보조 패널. v2-02(팀분석 임베드) 한정. */
html.v2 .rt-disc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}
html.v2 .rt-disc-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
html.v2 .rt-disc-side {
  display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100vh - 210px); overflow-y: auto; padding-right: 4px; min-width: 0;
}
html.v2 .rt-disc-side-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
}
html.v2 .rt-disc-side-h { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; word-break: keep-all; }
/* 토론 진행 카드 */
.rt-disc-progress-row { display: flex; align-items: center; gap: 10px; }
.rt-disc-progress-bar { flex: 1; height: 8px; border-radius: 5px; background: #e2e8f0; overflow: hidden; }
.rt-disc-progress-fill { display: block; height: 100%; background: var(--primary); border-radius: 5px; transition: width .3s ease; }
.rt-disc-progress-num { white-space: nowrap; font-size: 13px; color: #64748b; }
.rt-disc-progress-num b { color: var(--primary); font-size: 15px; }
.rt-disc-progress-status { margin-top: 8px; font-size: 12px; color: #64748b; word-break: keep-all; }
/* 인사이트 카드 */
.rt-disc-insight-list { margin: 0; padding: 0; list-style: none; counter-reset: ins; display: flex; flex-direction: column; gap: 9px; }
.rt-disc-insight-list li { counter-increment: ins; position: relative; padding-left: 26px; font-size: 12.5px; color: #334155; line-height: 1.5; word-break: keep-all; }
.rt-disc-insight-list li::before { content: counter(ins); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rt-disc-insight-list li b { color: #1e293b; }
/* 우측 패널 안 3패널(다음수업제안/함께나온개념/대화분포도) 컴팩트화 */
html.v2 .rt-disc-panel-card-body { font-size: 12px; }
html.v2 .rt-disc-side .rt-cp-grid { grid-template-columns: 1fr; }
html.v2 .rt-disc-side .rt-cp-stats { grid-template-columns: 1fr 1fr; }
html.v2 .rt-disc-side .rt-cp-banner,
html.v2 .rt-disc-side .rt-disc-panel-lead { font-size: 11.5px; }
@media (max-width: 1024px) {
  html.v2 .rt-disc-workspace { grid-template-columns: 1fr; }
  html.v2 .rt-disc-side { max-height: none; }
}

/* [팀분석 개편 2026-07-09] 개념 지식맵 = 지식대화구조(그래프) 전체화면. 인사이트·다음수업제안은 접이식 오버레이 드로어.
   목표: 교사가 지식대화구조를 크고 명확하게 — 그래프가 iframe 뷰포트를 가로·세로로 가득 채우고, 부가 텍스트는 필요할 때만 드로어로.
   (analytics-only iframe 안에서만 렌더되므로 그 스코프로 한정) */
@media (min-width: 1025px) {
  html.analytics-only.v2 .rt-disc-workspace {
    display: block;                /* 70/30 grid 해제 → 그래프 full width */
    position: relative;            /* 드로어/토글 absolute 기준 */
    height: calc(100vh - 130px);   /* iframe 뷰포트 채움(상단 탭바 offset). */
    min-height: 460px;
  }
  html.analytics-only.v2 .rt-disc-main {
    height: 100%;
    min-height: 0;
    display: flex; flex-direction: column;
    overflow: hidden;              /* 그래프가 넘쳐 스크롤 만들지 않게 */
  }
  html.analytics-only.v2 .rt-disc-main .rt-disc-graph-sec {
    flex: 1 1 auto;
    min-height: 0;                 /* flex 자식 축소 허용(안 주면 그래프 고정높이가 이겨 넘침) */
  }
  html.analytics-only.v2 .rt-disc-main #rtDiscGraphWrap,
  html.analytics-only.v2 .rt-disc-main #rtDiscGraphWrap.rt-knet-fg {
    flex: 1 1 auto;
    height: auto !important;       /* 620px 고정 해제 → 남는 세로 채움(ResizeObserver 가 캔버스 리사이즈) */
    min-height: 240px;
  }
  /* 워크스페이스 아래 남는 외곽 여백 제거 → 하단 빈 공간·잔여 스크롤 없앰 */
  body.analytics-only .rt-rep-main { padding-bottom: 0; }
  body.analytics-only .rt-rep-sec { margin-bottom: 0; }
  /* 워크스페이스 아래 전사 근사치 안내문 → 포커스 뷰(개념 지식맵만)에선 숨겨 42px 잔여 스크롤 제거·그래프 세로 확보.
     (동일 안내는 STT/전사보드 탭에 존재하므로 정보 손실 없음.) */
  body.analytics-only .rt-disc-panel > .rt-knet-note { display: none; }
  /* [공간 효율] 개념 지도 주변 부가 chrome 압축 → 그래프에 세로 더 확보(중복 힌트 보조줄·빈 노드상세 제거, 여백 축소).
     사용자 요구: '개념 지식맵에는 지식대화구조(그래프)만 명확하게'. 범례/핵심키워드는 남기되 여백만 줄이고,
     그래프 아래 중복 도움말(rt-disc-graph-help)은 숨겨 그래프 세로를 최대화한다(범례가 이미 색=화자 설명). */
  body.analytics-only .rt-disc-graph-sec { padding: 8px 12px; gap: 4px; }
  body.analytics-only .rt-disc-graph-help-sub { display: none; }
  body.analytics-only .rt-disc-graph-help { display: none; }        /* 그래프 아래 중복 도움말 숨김 → 세로 +19px */
  body.analytics-only .rt-disc-spklegend { margin: 2px 0 3px; }     /* 범례 여백 축소 */
  body.analytics-only .rt-disc-corekw { margin: 2px 0 3px; padding: 6px 10px; }  /* 핵심키워드 여백 축소 */
  body.analytics-only .rt-disc-timeline { margin-bottom: 4px; }
  body.analytics-only .rt-disc-rp-sub { display: none; }
  body.analytics-only .rt-disc-node-detail[hidden] { display: none !important; }
}

/* ═══ [개념 지식맵 좌우 50:50 분할 2026-07-09] 좌=지식대화구조 그래프 / 우=클릭 노드의 실제 발화 ═══
   목적: '지도는 구조를 보는 곳, 오른쪽은 클릭한 노드의 대화를 보는 곳'으로 역할 분리(발화가 아래로 안 숨음).
   토론 진행바=두 컬럼 위 전체폭 얇은 행. 그래프 조작(2D/3D·💡인사이트)=그래프 헤더로. (analytics-only iframe 한정) */
@media (min-width: 1025px) {
  html.analytics-only.v2 .rt-disc-ws-split {
    display: grid;
    grid-template-columns: 53% 47%;         /* 개념 지도 살짝 넓게(52~55% 권장) */
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px 12px; position: relative;
    height: calc(100vh - 130px); min-height: 460px;
  }
  /* 토론 진행바 = 전체폭 얇은 상태바(28~32px) */
  html.analytics-only.v2 .rt-disc-ws-split > .rt-disc-timeline {
    grid-column: 1 / -1; grid-row: 1; margin: 0; padding: 5px 12px; min-height: 0;
  }
  html.analytics-only.v2 .rt-disc-ws-split .rt-knet-tl-hint { display: none; }
  html.analytics-only.v2 .rt-disc-ws-split > .rt-disc-main {
    grid-column: 1; grid-row: 2; height: 100%; min-height: 0;
    display: flex; flex-direction: column; overflow: hidden;
  }
  html.analytics-only.v2 .rt-disc-ws-split > .rt-disc-noderight {
    grid-column: 2; grid-row: 2; height: 100%; min-height: 0;
  }
}
/* 우측 발화 패널(다크, 그래프 테마 정합) — 모든 폭 공통 스타일 */
html.v2 .rt-disc-noderight {
  background: #0b1220; border: 1px solid #1e293b; border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; overflow-y: auto;
}
html.v2 .rt-disc-noderight-hint { margin: auto; text-align: center; color: #94a3b8; padding: 22px 18px; max-width: 330px; }
html.v2 .rt-disc-noderight-hint-ic { font-size: 30px; margin-bottom: 10px; }
html.v2 .rt-disc-noderight-hint-t { font-size: 15px; font-weight: 700; color: #e2e8f0; margin-bottom: 6px; }
html.v2 .rt-disc-noderight-hint-d { font-size: 12.5px; line-height: 1.6; word-break: keep-all; }
html.v2 .rt-disc-noderight-hint-d b { color: #cbd5e1; }
/* 우측 패널 안에서는 node-detail 이 이중 박스가 되지 않게 배경/테두리 제거 + 발화목록이 패널 높이를 채움(230 cap 해제) */
html.v2 .rt-disc-noderight .rt-disc-node-detail { margin: 0; background: transparent; border: 0; padding: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
html.v2 .rt-disc-noderight .rt-disc-nd-list { max-height: none; flex: 1 1 auto; }
/* [연결된 개념] 발화 아래 연결개념 칩 */
.rt-disc-nd-conn { margin-top: 10px; padding-top: 10px; border-top: 1px solid #1e293b; }
.rt-disc-nd-conn-h { display: block; font-size: 12px; font-weight: 700; color: #cbd5e1; margin-bottom: 6px; }
.rt-disc-nd-conn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-disc-nd-conn-chip { font-size: 11.5px; color: #c7d2fe; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.3); border-radius: 12px; padding: 3px 9px; word-break: keep-all; }
/* 인사이트 토글을 그래프 헤더에 인라인으로(절대배치 해제·작게). ★특이성 = 드로어의 absolute 규칙(뒤에 옴)을 이겨야 함 */
html.v2 .rt-disc-graph-head .rt-disc-side-toggle-inline {
  position: static; top: auto; right: auto; box-shadow: none;
  padding: 5px 10px; font-size: 12px; border-radius: 8px; margin-left: 6px; flex: 0 0 auto;
}
@media (max-width: 1024px) {
  html.v2 .rt-disc-ws-split { display: block; }
  html.v2 .rt-disc-noderight { margin-top: 10px; min-height: 320px; }
}

/* 인사이트·제안 접이식 오버레이 드로어(모든 폭 공통) — 그래프를 reflow 하지 않아 열고 닫아도 그래프 줌/위치 유지. */
html.v2 .rt-disc-side-toggle {
  position: absolute; top: 10px; right: 12px; z-index: 6;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--primary); border: 0;
  box-shadow: 0 2px 10px rgba(37,99,235,.35);
}
html.v2 .rt-disc-ws-full.side-open .rt-disc-side-toggle { display: none; }
html.v2 .rt-disc-side {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 360px; max-width: 88%;
  transform: translateX(103%); transition: transform .22s ease;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -10px 0 26px rgba(15,23,42,.20);
  display: flex; flex-direction: column; z-index: 7; max-height: none;
}
html.v2 .rt-disc-workspace.side-open .rt-disc-side { transform: translateX(0); }
html.v2 .rt-disc-side-drawerhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; font-weight: 700; color: var(--text); flex-shrink: 0;
}
html.v2 .rt-disc-side-close {
  border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1;
  color: var(--text-muted); padding: 2px 6px; border-radius: 6px;
}
html.v2 .rt-disc-side-close:hover { background: var(--bg-subtle); }
html.v2 .rt-disc-side-scroll {
  flex: 1 1 auto; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 12px;
}

/* [D-04] 개념 지도 섹션 다크 — InfraNodus 일관 테마 */
.rt-disc-graph-sec { background: #0b1220; border-radius: 12px; padding: 12px 14px; }
.rt-disc-graph-sec .rt-disc-sec-title { color: #e2e8f0; }
.rt-disc-graph-sec .rt-knet-dimtoggle { border-left-color: #334155; }
.rt-disc-graph-sec .rt-knet-table-wrap { background: #fff; border-radius: 8px; padding: 8px; }
.rt-disc-graph-sec .rt-disc-node-detail { background: #1e293b; color: #e2e8f0; border-radius: 8px; }

/* [D-INFRANODUS P5] 시간대별 변화 그래프 — 토론 진행 슬라이더 */
.rt-knet-timeline { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 14px; background: #0f172a; border-radius: 10px; color: #cbd5e1; font-size: 12.5px; }
.rt-knet-tl-label { font-weight: 700; color: #e2e8f0; white-space: nowrap; }
.rt-knet-timeline input[type="range"] { flex: 1; accent-color: #6366f1; min-width: 80px; }
.rt-knet-tl-val { white-space: nowrap; } .rt-knet-tl-val b { color: #818cf8; font-size: 14px; }
.rt-knet-tl-hint { font-size: 11px; color: #64748b; white-space: nowrap; }
@media (max-width: 760px) { .rt-knet-tl-hint { display: none; } }

/* [P6 P-03] discuss 패널 내부 그래프 래퍼 다크 오버라이드 — SVG/표 전환·초기로딩 흰배경 섬효과 제거 */
.rt-disc-graph-sec .rt-knet-graph-wrap { background: #0d1626; border-color: #1e293b; }
.rt-disc-graph-sec .rt-knet-svg text { fill: #cbd5e1; }
.rt-disc-graph-sec .rt-knet-svg line { stroke-opacity: 0.5; }


/* [STT 정리 대시보드] STT 탭 전사 통계 — 카드·단어 빈도 막대·이야기 토픽 */
.rt-sttstat-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rt-sttstat-card { flex: 1 1 90px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px; text-align: center; }
.rt-sttstat-card b { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.rt-sttstat-card span { font-size: 12px; color: var(--text-muted); }
.rt-sttstat-block { margin-bottom: 16px; }
.rt-sttstat-block h4 { margin: 0 0 9px; font-size: 14px; }
.rt-sttstat-sub { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.rt-sttstat-words { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-sttstat-word { display: flex; align-items: center; gap: 10px; }
.rt-sttstat-w-label { flex: 0 0 84px; font-size: 13px; font-weight: 600; text-align: right; word-break: keep-all; }
.rt-sttstat-w-bar { flex: 1; height: 14px; background: #eef1f5; border-radius: 7px; overflow: hidden; }
.rt-sttstat-w-fill { display: block; height: 100%; border-radius: 7px; min-width: 3px; transition: width .3s; }
.rt-sttstat-w-cnt { flex: 0 0 40px; font-size: 12px; color: var(--text-muted); text-align: right; }
.rt-sttstat-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rt-sttstat-topic { display: flex; align-items: center; gap: 9px; padding: 7px 11px; background: var(--bg); border-radius: 8px; }
.rt-sttstat-topic-terms { flex: 1; font-size: 13px; word-break: keep-all; }
.rt-sttstat-topic-size { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

/* [지식대화구조 비전공자 순화] 다음수업 제안·함께나온 개념·수업 요약 */
.rt-disc-panel-lead { font-size: 13px; color: #475569; background: #f8fafc; border-left: 3px solid #cbd5e1; border-radius: 6px; padding: 9px 12px; margin: 0 0 12px; line-height: 1.55; word-break: keep-all; }

/* [상호작용 분석] 학생 이모지(반응) 피드백 통계 패널 */
.rt-rx-panel { display: block; }
.rt-rx-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rt-rx-sum-card { flex: 1 1 90px; background: #f6f8fb; border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px 8px; text-align: center; }
.rt-rx-sum-card b { display: block; font-size: 22px; font-weight: 800; color: #4f46e5; line-height: 1.1; }
.rt-rx-sum-card span { font-size: 12px; color: #64748b; }
.rt-rx-block { margin-bottom: 18px; }
.rt-rx-block h4 { margin: 0 0 9px; font-size: 14px; }
.rt-rx-cards { display: flex; flex-direction: column; gap: 8px; }
.rt-rx-card { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 10px; }
.rt-rx-card-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; word-break: keep-all; }
.rt-rx-emoji { font-size: 18px; }
.rt-rx-bar { height: 14px; background: #eef1f5; border-radius: 7px; overflow: hidden; }
.rt-rx-bar-fill { display: block; height: 100%; border-radius: 7px; background: #6366f1; min-width: 3px; transition: width .3s; }
.rt-rx-card-n { font-size: 12px; color: #64748b; text-align: right; white-space: nowrap; }
.rt-rx-card-n b { color: #1e293b; font-size: 14px; }
.rt-rx-slide-list, .rt-rx-tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rt-rx-slide-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #f6f8fb; border-radius: 8px; cursor: help; }
.rt-rx-slide-row:hover { background: #eef2f9; }
.rt-rx-slide-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rt-rx-slide-q { flex: 1; font-size: 13px; word-break: keep-all; overflow-wrap: anywhere; }
.rt-rx-slide-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.rt-rx-chip { font-size: 12px; background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.rt-rx-slide-tot { flex: 0 0 auto; font-size: 12px; color: #64748b; white-space: nowrap; }
/* [#4 2026-06-18] 세팅중/대기중 반응 행 + 타임라인 슬라이드 배지 */
.rt-rx-slide-setup { background: #fff7ed; }
.rt-rx-slide-setup .rt-rx-slide-no { background: #f59e0b; }
.rt-rx-setup-sub { font-size: 11px; color: #92400e; font-weight: 400; }
.rt-rx-h-sub, .rt-knet-beta { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.rt-rx-tl-slide { font-size: 10.5px; background: #e0e7ff; color: #3730a3; border-radius: 5px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.rt-rx-tl-slide-setup { background: #fed7aa; color: #9a3412; }
/* [3차 #2] 반응 타임라인 5분 단위 묶음 */
.rt-rx-tl-buckets { display: flex; flex-direction: column; gap: 8px; }
.rt-rx-tl-bucket { border: 1px solid #e6ebf2; border-radius: 9px; background: #fff; overflow: hidden; }
.rt-rx-tl-bhead { display: flex; align-items: center; gap: 10px; padding: 8px 11px; cursor: pointer; list-style: none; background: #f1f5fb; user-select: none; }
.rt-rx-tl-bhead::-webkit-details-marker { display: none; }
.rt-rx-tl-bhead::before { content: '▸'; color: #94a3b8; font-size: 12px; transition: transform .15s; }
.rt-rx-tl-bucket[open] > .rt-rx-tl-bhead::before { transform: rotate(90deg); }
.rt-rx-tl-btime { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #475569; }
.rt-rx-tl-bchips { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 5px; }
.rt-rx-tl-btot { flex: 0 0 auto; font-size: 12px; color: #64748b; }
.rt-rx-tl-bucket > .rt-rx-tl-list { padding: 8px 10px; }
.rt-rx-tl-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 10px; background: #f8fafc; border-radius: 8px; }
.rt-rx-tl-t { flex: 0 0 46px; font-size: 12px; color: #64748b; padding-top: 1px; }
.rt-rx-tl-emoji { flex: 0 0 auto; font-size: 17px; line-height: 1.2; }
.rt-rx-tl-main { flex: 1; font-size: 13px; word-break: keep-all; }
.rt-rx-tl-name { font-weight: 700; }
.rt-rx-tl-lbl { color: #475569; }
.rt-rx-tl-memo { display: block; margin-top: 2px; color: #1e40af; font-size: 12.5px; }
.rt-rx-tl-reply { margin-top: 4px; font-size: 12.5px; color: #047857; background: #ecfdf5; border-radius: 6px; padding: 5px 9px; word-break: keep-all; }
.rt-rx-tl-reply.rt-rx-tl-ack { color: #64748b; background: #f1f5f9; }

/* [다음 수업 제안] 상세 카드 */
.rt-disc-gaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rt-disc-gap { padding: 12px 14px; border: 1px solid #eef1f5; border-radius: 10px; background: #fcfcfd; }
.rt-disc-gap-tag { font-size: 11px; color: #92400e; background: #fef3c7; border-radius: 9px; padding: 1px 8px; margin-left: 6px; font-weight: 600; vertical-align: middle; }
.rt-disc-gap-why { font-size: 12.5px; color: #64748b; margin: 6px 0 9px; word-break: keep-all; }
.rt-disc-gap-sug { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-disc-gap-sug > li { display: flex; gap: 9px; align-items: flex-start; }
.rt-disc-gap-k { flex: 0 0 90px; font-size: 12px; font-weight: 700; color: #4338ca; white-space: nowrap; }
.rt-disc-gap-v { flex: 1; font-size: 13px; color: #334155; line-height: 1.55; word-break: keep-all; }

/* ===== [학생 토론 분석 탭 v3] 기여도 막대 + 키워드 카드 + 상호작용 흐름 ===== */
.rt-sda { display: flex; flex-direction: column; gap: 16px; }
.rt-sda-meta { font-size: 12px; color: #64748b; text-align: right; margin: -4px 0 -6px; }
.rt-sda-sec { background: #fff; border: 1px solid #eef1f5; border-radius: 12px; padding: 14px 16px; }
.rt-sda-h { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
/* 1단 막대바 */
.rt-sda-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 11px; }
.rt-sda-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; min-width: 0; transition: width .3s; }
.rt-sda-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-sda-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: #f6f8fb; border: 1px solid #e5e9f0; border-radius: 16px; padding: 4px 11px; }
.rt-sda-chip-dot { width: 9px; height: 9px; border-radius: 50%; }
/* [2026-07-23] 막대에서 생략된 소수 지분(<9%)도 칩에서 읽히도록. */
.rt-sda-chip-pct { font-variant-numeric: tabular-nums; color: var(--text-muted); font-weight: 700; }
.rt-sda-role { font-size: 10.5px; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.rt-sda-role.ctr { background: #fef3c7; color: #92400e; }
/* 2단 카드 그리드 */
.rt-sda-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rt-sda-card { border: 1px solid #eef1f5; border-top: 3px solid #ccc; border-radius: 10px; padding: 11px; background: #fcfcfd; }
.rt-sda-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rt-sda-ava { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.rt-sda-card-id { min-width: 0; }
.rt-sda-card-id b { display: block; font-size: 13px; }
.rt-sda-card-id span { font-size: 11px; color: var(--text-muted); }
.rt-sda-card-stat { display: flex; gap: 6px; margin-bottom: 9px; }
.rt-sda-badge { font-size: 11px; background: #f1f5f9; color: #475569; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.rt-sda-card-kw { display: flex; flex-wrap: wrap; gap: 4px; }
.rt-sda-tag { font-size: 11px; border-radius: 9px; padding: 2px 8px; word-break: keep-all;
  background: color-mix(in srgb, var(--c, #64748b) 12%, #fff); color: color-mix(in srgb, var(--c, #64748b) 60%, #1e293b); }   /* [design-ok] 색은 화자 색(--c)과 기존 값 — 글자 섞는 몫만 72 → 60%(옅은 초록 면 위 4.32 → 5.4) */
@supports not (color: color-mix(in srgb, red 10%, blue)) { .rt-sda-tag { background: #f1f5f9; color: #475569; } }
.rt-sda-tag-none { font-size: 11px; color: #cbd5e1; }
.rt-sda-card-role-plain { font-size: 11px; color: #64748b; }
.rt-sda-card-id .rt-sda-role { display: inline-block; margin-top: 2px; }
/* 3단 흐름도 */
.rt-sda-flow { width: 100%; overflow-x: auto; border: 1px solid #f1f5f9; border-radius: 10px; }
.rt-sda-svg { width: 100%; min-width: 600px; height: auto; display: block; }
.rt-sda-gnode { transition: filter .15s; }
.rt-sda-gnode:hover, .rt-sda-gnode:focus-visible { filter: drop-shadow(0 3px 7px rgba(0,0,0,.28)); outline: none; }
/* [2026-10-07] 팀 상세 창 — 이름표에 오버(포커스)하면 그 학생이 요청한 화살표(.is-on)만 제 색으로 남고 나머지는 회색으로 흐린다
   (_rtWireTurnNetFocus). 흐린 선의 흰 테는 지운다 — 남겨 두면 흐린 선이 지나가는 자리마다 강조된 선을 하얗게 끊는다. */
.rt-sda-svg.is-focus .rt-sda-pair:not(.is-on) { stroke: var(--border-strong); opacity: .7; }
.rt-sda-svg.is-focus .rt-sda-head:not(.is-on) { fill: var(--border-strong); opacity: .7; }
.rt-sda-svg.is-focus .rt-sda-casing:not(.is-on) { opacity: 0; }
/* 고대비 — --border-strong 이 짙은 남색으로 바뀌어(common.css body[data-contrast="high"]) «흐린» 선이 강조 선보다 짙어진다.
   고대비에서도 옅은 회색으로 남는 면 토큰(--bg)으로 흐린다. */
body[data-contrast="high"] .rt-sda-svg.is-focus .rt-sda-pair:not(.is-on) { stroke: var(--bg); opacity: 1; }
body[data-contrast="high"] .rt-sda-svg.is-focus .rt-sda-head:not(.is-on) { fill: var(--bg); opacity: 1; }
/* [2026-10-14 사용자] 학생을 골라 남은 화살표(.is-on)에 마우스를 올리면 «누가 → 누구 N회» 말풍선(_rtWireTurnNetFocus).
   화살표가 가늘어 투명한 굵은 길(.rt-sda-hit)이 마우스를 받는다 — 흐린 화살표의 길은 받지 않는다(남은 화살표를 가리지 않게). */
.rt-sda-hit { pointer-events: none; }
.rt-sda-svg.is-focus .rt-sda-hit.is-on { pointer-events: stroke; }
.rt-sda-tip { position: fixed; z-index: var(--z-popover); pointer-events: none; padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--text); color: var(--surface); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-md); }
.rt-sda-tip[hidden] { display: none; }
.rt-sda-legend { display: flex; gap: 18px; justify-content: center; margin: 9px 0; font-size: 12px; color: #64748b; }
.rt-sda-leg { display: inline-flex; align-items: center; gap: 7px; }
.rt-sda-leg-line { display: inline-block; width: 26px; height: 0; border-top-style: solid; }
.rt-sda-leg-line.thin { border-top-width: 1.5px; border-top-color: #94a3b8; }
.rt-sda-leg-line.thick { border-top-width: 3px; border-top-color: var(--text-muted); }   /* [2026-09-30] 굵기 = 횟수 단계 — 파랑은 이제 학생 색이라 범례는 무채색 */
.rt-sda-stat-sub { font-style: normal; font-weight: 500; color: var(--text-muted); font-size: var(--text-xs); margin-left: 4px; }
/* [4차 #6] 턴테이킹 원형 그래프 + 패턴 배지(첨부 디자인) */
.rt-sda-svg-radial { display: block; width: 100%; max-width: 760px; margin: 0 auto; }
.rt-sda-leg-iso { display: inline-block; width: 14px; height: 14px; border-radius: 8px; border: 2px solid var(--danger); background: #fff; vertical-align: middle; }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
.rt-sda-pattern { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 10px auto 4px; padding: 8px 14px; border-radius: 12px; max-width: 560px; }
.rt-sda-pattern-badge { font-weight: 800; font-size: 14px; padding: 3px 14px; border-radius: 999px; }
.rt-sda-pattern-desc { font-size: 12.5px; color: #475569; }
/* [어휘 통일 2026-08-02 · 사장님 지시] 흐름 그래프 뱃지도 **상호작용 탭 카드와 같은 분류**를
   쓰게 됐다(`_rtTtTypeOf`). 그러면 색도 같아야 한다 — 같은 이름이 화면마다 다른 색이면
   어휘를 맞춘 의미가 없다. 알약 색은 `.rt-tt2-type-*`(위 8229~) 와 **같은 값**을 쓰고,
   바탕만 그 색의 연한 톤으로 깐다.
   ★옛 클래스 `-dual`(쌍방 집중형)·`-balanced`(균형 협업형)는 그 어휘를 만들던 코드와 함께
     지웠다★ — 내 변경이 만든 고아라 같은 커밋에서 치운다. */
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
.rt-sda-pattern-bal { background: #f0fdf4; }
.rt-sda-pattern-bal .rt-sda-pattern-badge { background: #dcfce7; color: var(--success-dark); }
.rt-sda-pattern-lead { background: #eff6ff; }
.rt-sda-pattern-lead .rt-sda-pattern-badge { background: #dbeafe; color: var(--day-0-fg); }
.rt-sda-pattern-disp { background: #f5f3ff; }
.rt-sda-pattern-disp .rt-sda-pattern-badge { background: #ede9fe; color: #7c3aed; }
.rt-sda-pattern-solo { background: #fffbeb; }
.rt-sda-pattern-solo .rt-sda-pattern-badge { background: #fef3c7; color: #b45309; }
.rt-sda-pattern-iso { background: #fef2f2; }
.rt-sda-pattern-iso .rt-sda-pattern-badge { background: #fee2e2; color: #991b1b; }
.rt-sda-pattern-na { background: #f1f5f9; }
.rt-sda-pattern-na .rt-sda-pattern-badge { background: #e2e8f0; color: var(--text-body); }
/* [4차후속 #7] 턴테이킹 팀별 비교 카드(STT지식대화구조 팀별과 동일 톤) */
.rt-sda-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 4px; }
.rt-sda-stat { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #eef1f5; border-radius: 9px; padding: 9px 10px; }
.rt-sda-stat-ico { font-size: 16px; flex: 0 0 auto; }
.rt-sda-stat-b { min-width: 0; }
.rt-sda-stat-lbl { display: block; font-size: 10.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-sda-stat-b b { font-size: 14px; color: #1e293b; }
@media (max-width: 900px) { .rt-sda-cards { grid-template-columns: repeat(2, 1fr); } .rt-sda-stats { grid-template-columns: repeat(3, 1fr); } }

/* ═══ [턴테이킹 팀별비교 개편 2026-07-08] v2-02 카드형 워크스페이스 (가이드 정합) ═══ */
/* 상단 컨트롤 1행 */
.rt-tt2-slider { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 240px; }
.rt-tt2-slider-lbl { font-size: 12.5px; font-weight: 700; color: #475569; white-space: nowrap; }
.rt-tt2-slider input[type=range] { flex: 1 1 auto; min-width: 120px; accent-color: var(--primary); }
.rt-tt2-slider-val { font-size: 12.5px; color: #334155; min-width: 28px; text-align: right; }
.rt-tt2-slider-val b { font-size: 14px; color: var(--primary); }

/* [턴테이킹 시간대 재생] ▶/⏸ 버튼 — 두 슬라이더(어두운 knet-timeline·밝은 tt2-slider) 공용 */
.rt-tt-play { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1;
  background: var(--primary-fill); color: var(--text-on-primary); transition: background .15s, transform .1s; }
.rt-tt-play:hover { background: var(--primary-dark); }
.rt-tt-play:active { transform: scale(.92); }
.rt-tt-play:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.rt-knet-timeline .rt-tt-play { background: #6366f1; }
.rt-knet-timeline .rt-tt-play:hover { background: #818cf8; }

/* [2026-10-07] 워크스페이스의 오른쪽 「비교 요약」 칸(320px)을 없앴다 — 카드 칸과 높이가 안 맞아 화면이 기울었다(사용자 지시).
   이제 팀 카드 한 칸뿐이라 격자가 없다. 순위 표는 관찰 포인트 칸 맨 위(.rt-tt2-summary). */

/* 섹션 공통 헤더 */
.rt-tt2-sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rt-tt2-sec-title { font-size: 15px; color: #0f172a; }
.rt-tt2-sec-count { font-size: 12.5px; color: #64748b; font-weight: 600; }
.rt-tt2-side-empty { font-size: 12.5px; color: var(--text-muted); padding: 14px 6px; text-align: center; }

/* 팀 카드 영역 */
/* [2026-10-07] 열 수 = --tt-cols(JS 가 팀 수로 정한다 · 한 줄 최대 5장 · 줄마다 고르게) — 가로 전체를 쓰게 되면서
   종전 auto-fill 240px 은 4팀이면 오른쪽에 빈 칸 하나를 남겼다(UI 규칙 R042 고아 카드 · R083 빈 트랙).
   칸 최소 폭 = max(180px, 한 칸 몫 − 1px) — 넓으면 정확히 --tt-cols 칸, 좁아지면 180px 아래로는 칸 수가 줄어든다
   (180px = 5장이 1024 폭 화면에서도 한 줄에 서는 폭 · 주도 학생 「김안정 (49회)」 가 한 줄에 든다 — 2026-10-07 캡처 확인).
   마지막 페이지에 카드가 적어도 칸 크기는 첫 페이지와 같다(auto-fill 이라 빈 칸이 뒤에 남는다 — 넘김 화면이라 자연스럽다). */
.rt-tt2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(180px, calc((100% - (var(--tt-cols, 4) - 1) * 14px) / var(--tt-cols, 4) - 1px)), 1fr)); gap: 14px; }
.rt-tt2-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 12px 13px; min-width: 0; min-height: 320px; cursor: pointer; box-shadow: 0 6px 18px rgba(15,23,42,0.05); transition: border-color .12s, box-shadow .12s, transform .12s; }
.rt-tt2-card:hover, .rt-tt2-card:focus-visible { border-color: var(--primary); box-shadow: 0 10px 26px rgba(37,99,235,0.14); transform: translateY(-2px); outline: none; }
.rt-tt2-card.is-unassigned { border-style: dashed; }
.rt-tt2-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rt-tt2-card-name { font-size: 15px; color: #0f172a; }
.rt-tt2-type { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.rt-tt2-type-bal { background: #dcfce7; color: var(--success-dark); }
/* ★여기부터 아래 «파랑»은 브랜드색이 아니라 «값을 구분하는 색»이다 — 토큰으로 바꾸지 말 것★
   (2026-09-05 실측 · 한 번 토큰으로 바꿨다가 되돌렸다)
   빨강·보라·초록·주황·회색과 «한 벌»이라, 파랑 하나만 테마를 따라가면
   특수학교에서 그 식구가 주황끼리 겹쳐 «구분»이라는 목적 자체가 깨진다.
   실제로 수업 상세 상단 정보칩이 4색 → 2색으로 뭉개졌다. */
.rt-tt2-type-disp { background: #ede9fe; color: #7c3aed; }
.rt-tt2-type-lead { background: #dbeafe; color: var(--day-0-fg); }
.rt-tt2-type-na { background: #e2e8f0; color: var(--text-body); }
/* [2026-07-23] 발화자 1명뿐인 팀 — 예전엔 '분산형'(보라)으로 잘못 분류됐다. 주의 톤(warning). */
.rt-tt2-type-solo { background: #fef3c7; color: #b45309; }
/* [2026-08-02] 소외 발생형 — 대화망 단절 학생이 있는 팀. 학생 토론 분석 탭의 rt-sda-iso 톤과 통일. */
.rt-tt2-type-iso { background: #fee2e2; color: #991b1b; }
.rt-tt2-card-net { flex: 1 1 auto; min-height: 170px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 10px; margin-bottom: 9px; overflow: hidden; }
.rt-tt2-card-net .rt-sda-svg-radial { min-width: 0; max-width: 100%; max-height: 200px; }   /* [U19 2026-10-28] 150 → 200 · 이름표는 labelScale 로 따로 키운다 */
.rt-tt2-net-empty { font-size: 11.5px; color: var(--text-muted); text-align: center; padding: 12px; }
.rt-tt2-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 10px; }
.rt-tt2-metric { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rt-tt2-metric-lbl { font-size: 10.5px; color: var(--text-muted); }
.rt-tt2-metric-val { font-size: 13px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-tt2-metric-leader { font-size: 12px; }
.rt-tt2-grade { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.rt-tt2-grade-good { background: #dcfce7; color: var(--success-dark); }
.rt-tt2-grade-mid { background: #fef3c7; color: var(--warning-dark); }
.rt-tt2-grade-low { background: #fee2e2; color: var(--danger); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
.rt-tt2-grade-na { background: #e2e8f0; color: var(--text-body); }
/* [소외 상한 2026-08-02 사장님] 「0.82 보통」처럼 **숫자와 등급이 어긋나 보이는** 경우에만 붙는다.
   점선 밑줄 = "여기 설명이 있다"(title 로 이유를 읽는다). 색은 등급 그대로 둔다 — 새 색을 만들면
   범례에 없는 색이 하나 더 생긴다. 마우스 없이도 알 수 있게 범례에도 규칙을 적어 뒀다. */
.rt-tt2-grade-capped { text-decoration: underline dotted currentColor; text-underline-offset: 2px; cursor: help; }
.rt-tt2-card-cta { margin-top: auto; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--primary); border-top: 1px solid #eef2f7; padding-top: 8px; }

/* 페이저(5개 초과) */
.rt-tt2-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.rt-tt2-pager-nav { width: 30px; height: 30px; border: 1px solid #d5deec; background: #fff; border-radius: 8px; color: #334155; font-size: 17px; line-height: 1; cursor: pointer; }
.rt-tt2-pager-nav:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.rt-tt2-pager-nav:disabled { opacity: .4; cursor: default; }
.rt-tt2-pager-range { font-size: 12.5px; color: #475569; font-weight: 600; }
.rt-tt2-pager-dots { display: inline-flex; gap: 5px; }
.rt-tt2-dot { width: 7px; height: 7px; border-radius: 999px; background: #cbd5e1; }
.rt-tt2-dot.on { background: var(--primary); }

/* 관찰 포인트 카드 — [2026-10-07] 맨 위에 팀별 발화 균형·상호작용 활력도 순위 표(.rt-tt2-summary · 옛 오른쪽 「비교 요약」 칸에서 옮김).
   가로 전체라 열을 고르게 나눈다 — 종전 「1fr auto auto」 는 팀 이름과 숫자 사이가 화면 폭만큼 벌어졌다. */
.rt-tt2-side-card { background: #fff; border: 1px solid #e3e9f3; border-radius: 14px; padding: 14px 16px; }
.rt-tt2-side-head { font-size: 14px; margin-bottom: 10px; }
.rt-tt2-side-head b { color: #0f172a; }
.rt-tt2-summary { margin-bottom: 16px; }
.rt-tt2-rank-cols, .rt-tt2-rank-row { display: grid; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.rt-tt2-rank-cols { font-size: 10.5px; color: var(--text-muted); padding: 0 4px 6px; border-bottom: 1px solid #eef2f7; }
.rt-tt2-rank-cols span:first-child { text-align: center; }
.rt-tt2-rank-list { display: flex; flex-direction: column; }
.rt-tt2-rank-row { padding: 8px 4px; border-bottom: 1px solid #f1f5f9; cursor: pointer; border-radius: 8px; }
.rt-tt2-rank-row:hover, .rt-tt2-rank-row:focus-visible { background: #f5f8ff; outline: none; }
.rt-tt2-rank-no { font-size: 13px; font-weight: 700; color: #64748b; text-align: center; }
.rt-tt2-rank-no.rt-tt2-rank-medal { font-size: 16px; }
.rt-tt2-rank-name { font-size: 12.5px; color: #1e293b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-tt2-rank-metric { font-size: 11.5px; color: #334155; white-space: nowrap; }
.rt-tt2-rank-metric b { font-size: 12.5px; }

.rt-tt2-observe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rt-tt2-observe-item { display: flex; gap: 9px; font-size: 12px; line-height: 1.5; color: #334155; }
.rt-tt2-observe-ico { flex: 0 0 auto; font-size: 15px; }
.rt-tt2-observe-item b { color: #0f172a; }
.rt-tt2-observe-legend { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef2f7; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; color: #64748b; }
.rt-tt2-lg { display: inline-block; padding: 1px 7px; border-radius: 999px; margin-left: 3px; }
.rt-tt2-lg-good { background: #dcfce7; color: var(--success-dark); }
.rt-tt2-lg-mid { background: #fef3c7; color: var(--warning-dark); }
.rt-tt2-lg-low { background: #fee2e2; color: var(--danger); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
/* [소외 상한 2026-08-02] 범례 아래 붙는 단서 한 줄 — 알약이 아니라 문장이라 배경 없이 들여쓴다. */
.rt-tt2-lg-note { display: block; margin-top: 3px; padding-left: 2px; color: var(--text-muted); word-break: keep-all; line-height: 1.5; }

/* [2026-10-01] 관찰 포인트 — 「발화 순서 비교」 칸이 있던 자리(카드·요약 아래)에 가로 전체로 둔다.
   항목은 여러 칸으로 나란히, 범례는 한 줄로 흘린다(좁으면 아래로 접힌다). */
.rt-tt2-observe-wide { margin-top: 16px; }
/* [2026-10-01] 유형마다 «한 줄» — 칸으로 나누면 문장이 접혀 읽기 어렵다(사용자 지시). 좁은 화면에서만 접힌다. */
.rt-tt2-observe-wide .rt-tt2-observe-list { gap: 0; }
.rt-tt2-observe-wide .rt-tt2-observe-item { align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); }
.rt-tt2-observe-wide .rt-tt2-observe-item:last-child { border-bottom: 0; }
.rt-tt2-observe-wide .rt-tt2-observe-legend { flex-direction: row; flex-wrap: wrap; column-gap: 28px; row-gap: 6px; }
.rt-tt2-observe-wide .rt-tt2-lg-note { display: inline; margin-left: 6px; }

/* 표준 상세 모달 */
/* [결정 ③a 2026-10-01] 세로를 고정한다(fixed-size-modals — 팀마다 인사이트·AI 분석 길이가 달라도 창·닫기 버튼이 제자리) ·
   넘치면 본문(.rt-tt2m-body)만 스크롤. 왼쪽 칸을 넓혀(1.6fr) 그림이 그 폭을 다 쓴다 — 종전엔 1.15fr + 그림 높이 300px 상한이라
   그림이 창의 3분의 1 크기였다. */
.rt-tt2m-modal { width: min(1100px, 96vw); max-width: 1100px; height: 800px; max-height: min(800px, 96vh); overflow: hidden; }
.rt-tt2m-head { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.rt-tt2m-title { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #0f172a; }
.rt-tt2m-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; padding: 16px 20px 20px; overflow: auto; flex: 1 1 auto; min-height: 0; align-content: start; }
@media (max-width: 800px) { .rt-tt2m-body { grid-template-columns: 1fr; } }
.rt-tt2m-left, .rt-tt2m-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rt-tt2m-h3 { font-size: 13px; color: #475569; margin: 0 0 8px; font-weight: 700; }
.rt-tt2m-net { background: #f8fafc; border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; min-height: 220px; overflow: hidden; }   /* [design-ok] 색·모서리는 종전 그대로 — 이 줄은 overflow 만 더했다(그림을 칸 폭에 맞춘다) */
.rt-tt2m-net .rt-sda-svg-radial { width: 100%; min-width: 0; max-width: 100%; }
.rt-tt2m-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rt-tt2m-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #475569; }
.rt-tt2m-lg b { color: #1e293b; }
.rt-tt2m-lg-dot { width: 10px; height: 10px; border-radius: 999px; flex: 0 0 auto; }
.rt-tt2m-ratios { display: flex; flex-direction: column; gap: 8px; }
.rt-tt2m-ratio-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; }
.rt-tt2m-ratio-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-tt2m-ratio-bar { height: 9px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.rt-tt2m-ratio-bar span { display: block; height: 100%; border-radius: 999px; }
.rt-tt2m-ratio-val { font-size: 12px; color: #1e293b; font-weight: 700; white-space: nowrap; }
.rt-tt2m-ratio-val em { font-style: normal; font-weight: 500; color: var(--text-muted); font-size: 11px; }
.rt-tt2m-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt-tt2m-metric { background: #f8fafc; border: 1px solid #eef1f5; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rt-tt2m-metric-lbl { font-size: 10.5px; color: var(--text-muted); }
.rt-tt2m-metric b { font-size: 15px; color: #0f172a; }
.rt-tt2m-metric-leader { font-size: 13px !important; }
.rt-tt2m-ins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rt-tt2m-ins-item { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.5; color: #334155; }
.rt-tt2m-ins-ico { flex: 0 0 auto; font-size: 15px; }

/* [kube2 턴테이킹 LLM] AI 심층 분석 블록 — turn_insight 있을 때만 렌더 */
.rt-tt2m-ai { background: linear-gradient(180deg, #f5f3ff 0%, #faf9ff 100%); border: 1px solid #e5deff; border-radius: 12px; padding: 12px 14px; }
.rt-tt2m-ai .rt-tt2m-h3 { display: flex; align-items: center; gap: 8px; }
.rt-tt2m-ai-sum { font-size: 12.5px; line-height: 1.55; color: #334155; margin: 8px 0 0; }
.rt-tt2m-ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rt-tt2m-ai-tag { font-size: 11.5px; font-weight: 600; color: #5b21b6; background: #fff; border: 1px solid #ddd6fe; border-radius: 8px; padding: 3px 9px; }
.rt-tt2m-ai-q { font-size: 12px; line-height: 1.5; color: #475569; margin: 9px 0 0; }
.rt-tt2m-ai-q b { color: #6d28d9; font-weight: 700; margin-right: 4px; }
.rt-tt2m-ai-sug { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-tt2m-ai-sug li { font-size: 12px; line-height: 1.5; color: #334155; display: flex; gap: 7px; }

@media (max-width: 560px) { .rt-sda-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rt-sda-cards { grid-template-columns: 1fr; } }

/* [지식대화구조 그래프] 조작 안내 + force-graph hover 툴팁(학생 표기) */
.rt-disc-graph-help { margin: 9px 4px 2px; font-size: 11.5px; color: #64748b; line-height: 1.65; text-align: center; word-break: keep-all; }
.rt-disc-graph-help b { color: #334155; font-weight: 700; }
.rt-disc-graph-help-sub { font-size: 11px; color: #94a3b8; }
.rt-fg-tip { font-size: 12px; line-height: 1.4; }

/* [화자분석 F1] 개념 지도 화자 필터 범례(다크 섹션 내) */
.rt-disc-spklegend { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 10px; }
.rt-disc-spklegend-h { font-size: 12px; font-weight: 700; color: #cbd5e1; margin-right: 2px; }
.rt-disc-spkchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #1e293b; color: #cbd5e1; border: 1px solid #334155; border-radius: 15px; padding: 3px 11px; cursor: pointer; transition: all .15s; }
.rt-disc-spkchip:hover { border-color: #64748b; }
.rt-disc-spkchip.on { background: #334155; color: #fff; border-color: #93c5fd; }
.rt-disc-spkchip-dot { width: 9px; height: 9px; border-radius: 50%; }
.rt-disc-spkchip b { font-weight: 700; opacity: .75; }
.rt-disc-spkclear { font-size: 11.5px; background: transparent; color: #93c5fd; border: 1px solid #334155; border-radius: 15px; padding: 3px 10px; cursor: pointer; }
.rt-disc-spkclear.hide { display: none; }
.rt-disc-spklegend-hint { font-size: 11px; color: #64748b; }
/* [F3] force-graph hover 화자 기여 막대 */
.rt-fg-tip-sub { font-size: 10.5px; color: #94a3b8; margin-top: 5px; margin-bottom: 2px; }
.rt-fg-tip-row { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; }
.rt-fg-tip-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.rt-fg-tip-name { flex: 0 0 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-fg-tip-bar { flex: 1; height: 7px; background: rgba(148,163,184,.25); border-radius: 4px; overflow: hidden; min-width: 40px; }
.rt-fg-tip-bar > span { display: block; height: 100%; border-radius: 4px; }
.rt-fg-tip-pct { flex: 0 0 auto; opacity: .8; }

/* [화자분석 F2] 노드 드릴다운 패널(발화 원문) — 다크 */
.rt-disc-node-detail { margin-top: 10px; background: #0f172a; border: 1px solid #1e293b; border-radius: 10px; padding: 11px 13px; }
.rt-disc-nd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #e2e8f0; }
.rt-disc-nd-head b { font-size: 14px; }
.rt-disc-nd-cnt { font-size: 11.5px; color: #94a3b8; }
.rt-disc-nd-close { margin-left: auto; background: transparent; border: 0; color: #94a3b8; cursor: pointer; font-size: 14px; line-height: 1; }
.rt-disc-nd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 230px; overflow-y: auto; }
.rt-disc-nd-row { display: flex; gap: 8px; align-items: flex-start; padding: 3px 4px; border-radius: 7px; transition: background .12s; }
.rt-disc-nd-row.rt-disc-nd-cur { background: rgba(56,189,248,0.12); }
.rt-disc-nd-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.rt-disc-nd-body { min-width: 0; flex: 1 1 auto; }
.rt-disc-nd-sp { font-size: 12px; font-weight: 700; color: #cbd5e1; }
.rt-disc-nd-t { font-size: 11px; color: #64748b; margin-left: 6px; }
.rt-disc-nd-text { font-size: 12.5px; color: #94a3b8; line-height: 1.5; margin-top: 2px; word-break: keep-all; }
.rt-disc-nd-empty { font-size: 12px; color: #64748b; }
/* [STT Phase 3] 발화별 음성 재생 버튼 */
.rt-disc-nd-play { flex: 0 0 auto; align-self: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #334155; background: #1e293b; color: #7dd3fc; font-size: 11px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .12s, border-color .12s; }
.rt-disc-nd-play:hover:not(:disabled) { background: #0c4a6e; border-color: #0ea5e9; }
.rt-disc-nd-play:disabled { opacity: .35; cursor: default; }
.rt-disc-nd-play.playing { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.rt-disc-nd-audio { margin-top: 10px; font-size: 12px; background: #1e293b; color: #64748b; border: 1px dashed #334155; border-radius: 8px; padding: 6px 12px; cursor: not-allowed; }
.rt-disc-nd-audio:not(:disabled) { color: #7dd3fc; border: 1px solid #0ea5e9; background: #0c2536; cursor: pointer; }
.rt-disc-nd-audio:not(:disabled):hover { background: #0c4a6e; }
.rt-disc-nd-audio.playing { color: #fff; background: #0ea5e9; border-color: #0ea5e9; }

/* [화자분석 F4] 핵심 키워드 행(다크 섹션 내) */
.rt-disc-corekw { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 10px; padding: 8px 11px; background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.2); border-radius: 9px; }
.rt-disc-corekw-h { font-size: 12px; font-weight: 700; color: #fde68a; }
.rt-disc-corekw-cov { font-size: 12px; color: #cbd5e1; }
.rt-disc-corekw-cov b { color: #fbbf24; }
.rt-disc-corekw-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; border-radius: 13px; padding: 2px 4px 2px 9px; }
.rt-disc-corekw-chip.hit { background: rgba(251,191,36,0.18); color: #fde68a; border: 1px solid rgba(251,191,36,0.4); }
.rt-disc-corekw-chip.miss { background: #1e293b; color: #94a3b8; border: 1px dashed #475569; }
/* [3차 #3] 핵심키워드 칩 클릭 → 관련 노드 강조 */
.rt-disc-corekw-chip.clickable { cursor: pointer; }
.rt-disc-corekw-chip.clickable:hover { background: rgba(251,191,36,0.32); }
.rt-disc-corekw-chip.on { background: #fbbf24; color: #1e293b; border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(251,191,36,0.35); }
.rt-disc-corekw-x { background: transparent; border: 0; color: inherit; cursor: pointer; font-size: 11px; opacity: .7; padding: 0 3px; }
.rt-disc-corekw-input { font-size: 12px; background: #0f172a; color: #e2e8f0; border: 1px solid #334155; border-radius: 13px; padding: 3px 11px; min-width: 160px; }
.rt-disc-corekw-input::placeholder { color: #64748b; }
.rt-disc-corekw-miss { font-size: 11.5px; color: #94a3b8; flex-basis: 100%; }
.rt-disc-corekw-miss b { color: #cbd5e1; }

/* 학생 카드 — 받은 · 요청 · 상호작용 횟수(정본사전 §2-12) */
.rt-sda-metrics { margin-top: 9px; padding-top: 9px; border-top: 1px solid #eef1f5; display: flex; flex-direction: column; gap: 5px; }
.rt-sda-met { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.rt-sda-met-l { flex: 0 0 74px; color: var(--text-muted); cursor: help; white-space: nowrap; }   /* [2026-09-30] 「상호작용 횟수」가 두 줄로 꺾이지 않게 */
.rt-sda-met-v2 { flex: 1; font-weight: 600; color: #334155; }
.rt-sda-iso { font-size: 10px; background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 0 5px; font-weight: 700; }

/* [화자분석 F7] 타임라인 재생 바(다크 섹션 내) */
.rt-disc-replay { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 10px 0 2px; padding: 9px 11px; background: #0f172a; border: 1px solid #1e293b; border-radius: 9px; }
.rt-disc-rp-btn { background: #6366f1; color: #fff; border: 0; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 13px; flex: 0 0 auto; }
.rt-disc-replay input[type="range"] { flex: 1; accent-color: #6366f1; min-width: 120px; }
.rt-disc-rp-pos { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.rt-disc-rp-pos b { color: #e2e8f0; }
.rt-disc-rp-speed { display: inline-flex; gap: 3px; }
.rt-disc-rp-sp { font-size: 11px; background: #1e293b; color: #94a3b8; border: 1px solid #334155; border-radius: 6px; padding: 2px 7px; cursor: pointer; }
.rt-disc-rp-sp.on { background: #334155; color: #fff; border-color: #6366f1; }
.rt-disc-rp-sub { flex-basis: 100%; font-size: 13px; color: #cbd5e1; line-height: 1.5; padding: 6px 2px 0; word-break: keep-all; min-height: 20px; }
.rt-disc-rp-name { font-weight: 700; color: #93c5fd; margin-right: 4px; }

/* [F7++] 재생 — 새로 생긴 개념 표시 */
.rt-disc-rp-new { font-weight: 700; color: #fde68a; margin-right: 6px; }

/* ===== [함께 나온 개념] 개념 쌍 카드 대시보드 ===== */
.rt-cp { display: flex; flex-direction: column; gap: 18px; }
.rt-cp-banner { font-size: 12.5px; color: #475569; background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 9px; padding: 10px 14px; line-height: 1.55; word-break: keep-all; }
.rt-cp-sec { }
.rt-cp-h { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.rt-cp-h-sub { font-size: 12px; font-weight: 400; color: #94a3b8; }
/* 쌍 카드 그리드 */
.rt-cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.rt-cp-card { position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.rt-cp-card::before { content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: #3b82f6; transition: width .3s; }
.rt-cp-card:hover, .rt-cp-card:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); border-color: #3b82f6; outline: none; }
.rt-cp-card:hover::before, .rt-cp-card:focus-visible::before { width: 100%; }
.rt-cp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.rt-cp-rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rt-cp-freq { font-size: 12px; font-weight: 700; color: var(--primary); background: #eff3f8; border-radius: 12px; padding: 3px 11px; }
.rt-cp-pair { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.rt-cp-tag { font-size: 13px; font-weight: 700; color: #1e40af; background: #eef4ff; border: 1px solid #dbeafe; border-radius: 7px; padding: 3px 10px; word-break: keep-all; }
.rt-cp-plus { color: #94a3b8; font-weight: 700; }
.rt-cp-desc { font-size: 12.5px; color: #64748b; line-height: 1.5; margin-bottom: 12px; word-break: keep-all; min-height: 36px; }
.rt-cp-strength { }
.rt-cp-str-l { font-size: 11px; color: #94a3b8; display: block; margin-bottom: 4px; }
.rt-cp-bar { display: block; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.rt-cp-bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: filter .2s; }
.rt-cp-card:hover .rt-cp-bar-fill { filter: brightness(1.12) saturate(1.2); }
/* 통계 카드 */
.rt-cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.rt-cp-stat { background: linear-gradient(160deg, #f8f9fa, #fff); border: 1px solid #e5e7eb; border-radius: 11px; padding: 14px 10px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rt-cp-stat:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.08); border-color: #93c5fd; }
.rt-cp-stat-l { display: block; font-size: 10.5px; color: #64748b; }
.rt-cp-stat-v { display: block; font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.rt-cp-stat-u { font-size: 9px; color: #94a3b8; }
/* 개념 분포 */
.rt-cp-dist { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.rt-cp-dist-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 11px 8px; text-align: center; transition: transform .2s, box-shadow .2s; }
.rt-cp-dist-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.07); }
.rt-cp-dist-name { display: block; font-size: 13px; font-weight: 700; color: #1e293b; }
.rt-cp-dist-n { display: block; font-size: 22px; font-weight: 800; color: #3b82f6; line-height: 1.3; }
.rt-cp-dist-u { font-size: 10px; color: #94a3b8; }
/* 범례 */
.rt-cp-legend { font-size: 11.5px; color: #94a3b8; padding-top: 10px; border-top: 1px solid #eef1f5; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-cp-leg-bar { display: inline-block; width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg,#3b82f6,#2563eb); }
.rt-cp-leg-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#06b6d4); }
@media (max-width: 760px) { .rt-cp-stats { grid-template-columns: repeat(2, 1fr); } }

/* [#7 2026-06-17] 단답형 복수 정답 칩 — 정답 입력 후 Enter 로 추가, ×로 삭제 */
.short-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 4px; }
.short-chip { display: inline-flex; align-items: center; gap: 4px; background: #eef2ff; color: #3730a3;
  border: 1px solid #c7d2fe; border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 13px; line-height: 1.3; }
.short-chip-x { border: none; background: transparent; color: #6366f1; cursor: pointer; font-size: 16px;
  line-height: 1; padding: 0 4px; border-radius: 50%; }
.short-chip-x:hover { background: #c7d2fe; color: #312e81; }
.short-chip-empty { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* [#10 2026-06-17] 정답 해설 입력 (채점형 유형 공통) */
/* [2026-09-01 사장님] *"세부설정 칸 안에 … 정답해설 넣기 란 위에 선 하나 나오는 거 없애줘"*
   ⛔`border-top` 을 두지 않는다 — 세부설정 탭 안에서는 항목이 이미 카드로 갈려 있어 선이 한 겹 더 그어질
   뿐이다. 여백은 남긴다 — 붙으면 답답하다. */
.ef-expl-group { padding-top: 12px; margin-top: 4px; }
.ef-expl-input { margin-top: 8px; resize: vertical; }
/* [QuizN P3 · DEVQUIZ] 본문 평문 입력(리치 RTE 대체) */
.ef-plain-question { min-height: 76px; resize: vertical; line-height: 1.5; }

/* [QuizN #5 2026-06-18 · DEVQUIZ] 본문 상세편집 버튼 + 모달(RTE·글자색) */
.qm-detail-btn { font-size: 12px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #475569; cursor: pointer; white-space: nowrap; }
.qm-detail-btn:hover { border-color: var(--primary); color: var(--primary); }
.qn-rich-overlay .qn-rich-modal { width: min(94vw, 720px); max-width: min(94vw, 720px); display: flex; flex-direction: column; max-height: 88vh; }
.qn-rich-body { padding: 12px 16px; overflow: auto; }
.qn-rich-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--border); }

/* [QuizN #5b 2026-06-18 · DEVQUIZ] 우측 패널 미디어 블록(이미지·오디오 첨부) 래퍼 */
.qm-media-block { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px 4px; margin: 4px 0 12px; background: #fcfdfe; }
.qm-media-block-h { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 6px; }

/* [QuizN #1 2026-06-18 · DEVQUIZ] 전자칠판 = 가운데 패널에서 직접 그림(800px 캔버스, 좁으면 가로 스크롤) */
.qm-center-wb { width: 100%; overflow-x: auto; }
.qm-center-wb .wb-canvas-wrap { display: inline-block; }

/* [QuizN #1 2026-06-18 · DEVQUIZ] 학생 화면 미리보기 탭 — 전자칠판 사전 그림(읽기전용) */
.pv-wb-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pv-wb-wrap canvas { display: block; cursor: crosshair; }
.pv-wb-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
/* [미리보기 2026-06-20] 전자칠판 테스트 도구바 */
.pv-wb-edit { display: flex; flex-direction: column; gap: 8px; }
.pv-wb-toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 8px; background: var(--bg-secondary, #f8fafc); border: 1px solid var(--border); border-radius: 8px; }
.pv-wb-tool, .pv-wb-act { min-width: 34px; height: 32px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; }
.pv-wb-tool.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 1px var(--primary) inset; }
.pv-wb-tool:hover, .pv-wb-act:hover { border-color: var(--primary); }
.pv-wb-tool > .ui-ico, .pv-wb-act > .ui-ico { width: 1.25em; height: 1.25em; }   /* [2026-10-16] 선 아이콘 — 글자 크기를 따라 커진다(무대 안 22px 판에서도) */
.pv-wb-act.wb-view-reset { padding: 0 10px; white-space: nowrap; }   /* [2026-10-15] 「원래 크기」 — 두 손가락으로 판을 키웠을 때만 보인다 · 글자 단추라 폭은 글자대로 */
.pv-wb-act.wb-view-reset[hidden] { display: none; }
.pv-wb-color { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.pv-wb-color.active { box-shadow: 0 0 0 2px var(--primary); transform: scale(1.12); }
.pv-wb-width { min-width: 30px; height: 32px; border: 1px solid var(--border); background: #fff; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pv-wb-width.active { border-color: var(--primary); background: var(--primary-light); }
.pv-wb-dot { background: #333; border-radius: 50%; display: inline-block; }
.pv-wb-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

/* [미리보기 2026-06-20] PPT/PDF · 워드클라우드 · 토론 · 복수선택 미리보기 */
.pv-ppt-wrap { display: flex; flex-direction: column; gap: 8px; }
.pv-ppt-main { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.pv-ppt-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-ppt-thumb { width: 76px; height: 52px; object-fit: cover; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; background: #fff; }
.pv-ppt-thumb:hover { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.2); }
.pv-ppt-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.pv-ppt-wrap:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.pv-ppt-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 넘기기 줄·썸네일 묶음 — 무대(슬라이드) 아래 «밖»에 놓인다(2026-10-12 · js/quiz-preview-player.js _pptCtrl) */
.pv-ppt-ctrl { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pv-ppt-count { font-weight: 700; font-variant-numeric: tabular-nums; color: #0f172a; }
.pv-ppt-hint { font-size: 12px; color: var(--text-muted); margin-left: auto; }
/* [전자칠판 우리 렌더 2026-09-02] 시선 무대에서 «학생이 본 칠판»을 우리가 그린다(JPEG 대체).
   ★판서 획은 이 판 «위»의 재생 캔버스(#rtGazeBoardReplay)가 그린다★ — 그래서 이 판은 배경일 뿐이고,
     여기에 그림자·무늬를 넣으면 획 대비가 떨어진다. 구성·색은 학생 화면(css/whiteboard.css 의
     `.wb-container`/`.wb-canvas-wrap`/`.wb-status`)과 같게 둔다 — 두 화면이 달라 보이면 안 된다. */
.pv-wbstage { display: flex; flex-direction: column; gap: 10px; height: 100%; background: #fafbfc; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; }
.pv-wbstage-board { flex: 1 1 auto; min-height: 0; background: #fff; border: 2px solid var(--border); border-radius: 8px; }
.pv-wc-wrap { display: flex; flex-direction: column; gap: 10px; }
.pv-wc-input-row { display: flex; gap: 8px; }
.pv-wc-input-row input { flex: 1 1 auto; }
.pv-wc-cloud { position: relative; min-height: 240px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.pv-wc-word { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; transition: left .25s ease, top .25s ease, font-size .25s ease; }
.pv-wc-cloud .pv-wc-cloud-ph { position: absolute; inset: 0; border: 0; }
.pv-wc-meta { font-size: 12px; color: var(--text-muted); }
/* 미리보기 시간제한 카운트다운 */
.pv-timer { margin-left: auto; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; background: var(--primary-light); border-radius: 999px; padding: 2px 12px; }
.pv-timer-urgent { color: var(--danger); background: #fee2e2; animation: pvTimerPulse 1s ease-in-out infinite; }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
.pv-timer-over { color: #64748b; background: #f1f5f9; }
@keyframes pvTimerPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.pv-wc-cloud-ph { min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-muted); font-size: 13px; padding: 16px; background: #f8fafc; }
.pv-discuss-wrap { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; position: relative; }
.pv-discuss-timer { position: absolute; top: 12px; right: 14px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.pv-discuss-content { font-size: 14px; line-height: 1.55; color: var(--text-body); margin-bottom: 10px; word-break: keep-all; }
.pv-discuss-note { font-size: 12px; color: var(--text-muted); }
/* [#1b 2026-06-26] 토론 학생 미리보기 — 실시간 타이머 임박/종료 + 마이크 수집 안내(라이브 학생 화면과 동일 톤) */
.pv-discuss-timer-urgent { color: var(--danger); animation: pvTimerPulse 1s ease-in-out infinite; }
.pv-discuss-timer-done { color: #64748b; }
.pv-discuss-mic { display: flex; align-items: center; gap: 12px; background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.pv-discuss-mic-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.pv-discuss-mic-wave i { width: 3px; background: var(--primary); border-radius: 2px; animation: pvMicWave 1.1s ease-in-out infinite; }
.pv-discuss-mic-wave i:nth-child(1){height:30%;animation-delay:0s}.pv-discuss-mic-wave i:nth-child(2){height:70%;animation-delay:.15s}.pv-discuss-mic-wave i:nth-child(3){height:100%;animation-delay:.3s}.pv-discuss-mic-wave i:nth-child(4){height:60%;animation-delay:.45s}.pv-discuss-mic-wave i:nth-child(5){height:40%;animation-delay:.6s}
@keyframes pvMicWave { 0%,100%{transform:scaleY(.5)} 50%{transform:scaleY(1)} }
.pv-discuss-mic-txt b { display: block; font-size: 13px; color: #0f172a; }
.pv-discuss-mic-txt small { font-size: 11.5px; color: var(--text-muted); word-break: keep-all; }
.pv-discuss-student .pv-discuss-note { margin-top: 8px; }
/* [#2 2026-06-26] 워드클라우드 제출 제한 안내 */
.pv-wc-limit-note { font-size: 12px; color: var(--text-muted); }
.pv-wc-limit-note.capped { color: #b45309; font-weight: 700; }
/* [#3b 2026-06-26] PPT/PDF 전자칠판 그리기 — 장표 위에 그리는 칠판(미리보기 전용) */
.pv-ppt-board { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.pv-ppt-board .pv-wb-toolbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.pv-ppt-board .pv-wb-wrap canvas { width: 100%; height: auto; display: block; }

/* [QuizN 2026-06-18 · DEVQUIZ] 전자칠판 가운데 미리보기 — 상단 Title / 하단 Comment (퀴즈앤 구조, 입력 즉시 반영) */
.qm-center-wb { display: flex; flex-direction: column; }
.qm-wb-title { font-size: 18px; font-weight: 700; color: var(--text); padding: 4px 4px 10px; word-break: keep-all; overflow-wrap: anywhere; }
/* [04 정합 2026-07-02] 전자칠판 미리보기 상단 '문제 편집 설명' 버튼 바(모드바가 없는 유형 대응). */
html.v2 .qm-wb-tourbar { display: flex; justify-content: flex-end; padding: 0 2px 6px; }
.qm-wb-comment { font-size: 14px; color: var(--text); padding: 10px 4px 4px; word-break: keep-all; overflow-wrap: anywhere; }

/* [QuizN 2026-06-18 · DEVQUIZ] 미디어 버튼3 + 현재첨부 + 업로드/크롭 모달 */
.qm-media-btns { display: flex; gap: 8px; }
.qm-media-btn { flex: 1 1 0; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; color: #475569; }
.qm-media-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 2px 8px rgba(245,158,11,.15); }
/* [#3 2026-06-19] 미디어 = 이미지당 1줄(세로로 쌓기)·드래그 순서변경 */
.qm-media-current { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.qm-media-empty { font-size: 12px; color: #94a3b8; }
.qm-media-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; font-size: 12px; color: #334155; cursor: grab; }
.qm-media-item span:not(.qm-media-grip):not(.qm-media-emoji) { flex: 1; min-width: 0; }
.qm-media-item[draggable="true"]:active { cursor: grabbing; }
.qm-media-item.qm-drag-over { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(245,158,11,.25); }
/* [#8 2026-06-19] 드래그 중인 미디어 카드 — «들림» 효과(그때 슬라이드 목록과 같던 모양 · 슬라이드 목록은 2026-10-26 부터 점선 빈 칸) */
.qm-media-item.dragging { opacity: .4; transform: scale(0.96); cursor: grabbing; box-shadow: 0 6px 16px rgba(245,158,11,.22); transition: transform .12s ease, opacity .12s ease; }
.qm-media-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.qm-media-item span { white-space: nowrap; }
.qm-media-grip { color: #94a3b8; font-size: 14px; flex-shrink: 0; }
.qm-media-emoji { font-size: 22px; line-height: 1; }
.qm-media-x { border: none; background: transparent; color: #94a3b8; cursor: pointer; font-size: 14px; padding: 2px 6px; }
/* [D-NOTICE-IMG=A] 본문 속 이미지 읽기전용 칩 — 별도 첨부와 구분(점선·muted, ✕ 없음) */
.qm-media-item.qm-media-readonly { border-style: dashed; background: #fbfdff; color: #64748b; }
.qm-media-x:hover { color: var(--danger); }
/* 미디어 모달 */
.qm-mm-overlay .qm-mm-modal { width: min(94vw, 560px); max-width: min(94vw, 560px); display: flex; flex-direction: column; max-height: 90vh; }
.qm-mm-body { padding: 16px; overflow: auto; }
.qm-mm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--border); }
.qm-mm-hint { font-size: 11.5px; color: var(--text-muted); }   /* 흰 면 위 2.56 → 흐린 글자 색 이름(④-10) */
.qm-mm-drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 38px 16px; text-align: center; color: #64748b; cursor: pointer; font-size: 14px; background: #fafcff; }
.qm-mm-drop.over, .qm-mm-drop:hover { border-color: var(--primary); background: #fff7ed; }
.qm-mm-plus { font-size: 40px; line-height: 1; color: #94a3b8; margin-bottom: 8px; }
/* 자유 크롭 */
.qm-crop-stage { position: relative; display: inline-block; max-width: 100%; background: repeating-conic-gradient(#e5e7eb 0% 25%, #f8fafc 0% 50%) 50% / 20px 20px; line-height: 0; }
.qm-crop-stage img { max-width: 100%; max-height: 52vh; display: block; user-select: none; -webkit-user-drag: none; }
.qm-crop-box { position: absolute; border: 2px solid var(--primary); box-shadow: 0 0 0 9999px rgba(0,0,0,.4); cursor: move; box-sizing: border-box; touch-action: none; }
.qm-crop-h { position: absolute; width: 14px; height: 14px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; touch-action: none; }
.qm-crop-h[data-h="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.qm-crop-h[data-h="ne"] { right: -8px; top: -8px; cursor: nesw-resize; }
.qm-crop-h[data-h="sw"] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.qm-crop-h[data-h="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }

/* [QuizN 2026-06-18 · DEVQUIZ] 퀴즈앤처럼 Title/Comment를 '명확한 구역(박스)'으로 — 가운데 미리보기 + 학생 미리보기 공통 */
.quizn-editor .pv-question,
.quizn-editor .qm-wb-title {
  background: #f8fafc; border: 1px solid #e8edf3; border-radius: 10px; padding: 12px 14px;
}
/* 제목·설명 칸에 «제목»·«설명 · 코멘트» 꼬리표를 달지 않는다: 상자마다 이름표(js/editor-element-box.js)가
   같은 말을 하고, 두 벌이면 슬라이드가 좁아지며 학생 화면엔 없는 글자라 WYSIWYG 도 어긋난다. */
.quizn-editor .qm-wb-title:not(:empty)::before { content: none; }
/* [#1 2026-06-19] '안내 문구 추가' 토글 ON · 내용 비었을 때의 빈 제목란 placeholder */
.qm-wb-title[data-ph]:empty::before { content: attr(data-ph); color: #cbd5e1; font-weight: 400; }
.quizn-editor .pv-comment,
.quizn-editor .qm-wb-comment {
  background: #fffdf6; border: 1px solid #f0e6cf; border-left: 3px solid #f5b942; border-radius: 8px; padding: 10px 12px;
}
.quizn-editor .qm-wb-comment:not(:empty)::before { content: none; }   /* ↑ 같은 이유(2026-08-31) */
.quizn-editor .qm-center-wb { gap: 10px; }

/* [#12/#13 2026-06-18 · DEVQUIZ] 상단 hero 간소화 — 제목/설명 숨김(브레드크럼에 있음), 날짜·문제수는 Chip화 */
.quizn-editor #heroName, .quizn-editor #heroDesc { display: none; }
/* ★[2026-08-31] 그 줄을 통째로 없앤다★ — 사장님: *"여기 하얀색 기다란 칸 없애기로 했잖아"*
   맞다. 남은 것이 «내용»이 아니라 «빈 껍데기»였다 — 실측 17px(위아래 8px 여백 + 테두리 1px)에
   안에 든 것은 높이 0 이었다. 이 편집기에서 heroView 는 아예 빈 문자열로 그려지고(js/detail-shape-draw.js
   renderRealtimeProgramPage), 날짜·슬라이드 수 chip 은 이미 브레드크럼 옆에 있다.
   ⚠hero 가 카드의 «둥근 윗머리»였다 — 그 역할을 아래 tab-body 가 넘겨받는다(안 하면 잘린 카드). */
.quizn-editor .detail-hero { display: none; }
.quizn-editor .tab-body { border-radius: var(--radius); }
/* ★[2026-08-31] 편집기 창 «아래에 남던 빈 자리»를 걷는다★ — 사장님: *"이 창 자체에 하단 여백 남아"*
   실측(1809×891): 편집 카드가 759px 에서 끝나고 창 바닥까지 132px 가 비어 있었다.
     ① .detail-container 의 padding-bottom 60px — 아래로 더 스크롤할 것이 있던 시절의 여백이다.
        이 편집기는 «한 화면에 다 들어가는» 화면이라(내부에서 각 칸이 따로 스크롤한다) 필요 없다.
     ② .qm-layout 의 height: calc(100vh - 260px) — 그 260 은 «헤더+히어로+탭바»를 뺀 값이었다.
        히어로(17px)를 방금 없앴고 탭바는 이 편집기에서 이미 안 그린다 → 실측 상단 점유는 126px 다.
   ⚠260 을 그대로 두고 히어로만 없애면 «없어진 것만큼» 아래가 더 비어 보인다 — 그래서 함께 고친다.
   ⚠max-height 도 푼다 — 820/1100/1400px 상한이 큰 모니터에서 아래 여백을 다시 만든다.
   ⚠700px 이하(세로 스택)는 건드리지 않는다 — 거기서는 내용만큼 늘어나는 것이 맞다. */
@media (min-width: 701px) {
  .quizn-editor .detail-container { padding-bottom: 16px; }
  .quizn-editor .qm-layout { height: var(--qm-avail); max-height: none; }
}
/* 편집기가 쓸 수 있는 높이 — 한 곳에서만 정한다(높이·바닥 네 규칙이 이 값을 읽는다 · 리뷰 5라운드).
   ★.qm-layout 자신에 둔다★ — 사용자 정의 속성은 «선언한 요소»에서 풀린다. html 에 두면 아래 띠 값(조상 .detail-container·#tab-questions)을 못 본다. */
.quizn-editor .qm-layout { --qm-avail: calc(100vh - 146px - var(--qm-above-h, 0px) - var(--qm-prep-h, 0px) - var(--qm-hint-h, 0px)); }
/* ★[2026-09-26] 편집기 위에 끼어드는 띠(잠금 배너 #lockedBanner · AI 초안 배너 #prepBanner)도 이 높이에서 뺀다★ —
   `--qm-above-h` = 잠금 배너가 민 거리(.detail-container · 두 편집기 공통) · `--qm-prep-h` = 초안 배너가 민 거리(#tab-questions 안만)
   (js/editor-readonly.js 가 잰다 · 띠가 없으면 0).
   종전엔 146 만 뺐다 — 잠긴 회차(수업 기록이 있는 회차 · 운영 스윕은 특수 데모 계정의 수업 기록 회차에서 재현)에서 배너 165px + 여백만큼
   페이지가 175~181px 길어졌고, 아래쪽 슬라이드를 누르면 페이지째 굴러 「회차 목록」·↶↷·경로·
   「이 회차 복제하기」가 고정 머리줄 밑(top −49)으로 숨었다(운영 스윕 0926 · 1024~1920 전부). */
/* 띠가 선 동안만 바닥(540)을 남은 자리까지 내린다 — 768 높이 창에서 540 을 지키면 다시 93~99px 넘친다.
   각 칸은 안에서 스크롤하므로 칸이 조금 낮아도 읽고 고를 수 있다. 띠 없는 편집기는 그대로 540. */
/* ★바닥 320★ — 짧은 창(가로 폰 390 높이 등)에서 칸이 수십 px·0 으로 찌부러지지 않게. 그보다 짧으면 종전처럼 페이지가 굴러간다.
   ★폭 범위★ 700px 이하 «세로 쌓기»(내용만큼 늘어남)는 건드리지 않는다 — v2 편집기의 600~700 가로 두 칸만 함께 받는다(리뷰 3라운드). */
@media (min-width: 701px) {
  .quizn-editor :is(.detail-container.qm-has-above, #tab-questions.qm-has-prep) .qm-layout { min-height: min(540px, max(320px, var(--qm-avail))); }
}
@media (min-width: 600px) and (max-width: 700px) {
  html.v2.quizn-editor :is(.detail-container.qm-has-above, #tab-questions.qm-has-prep) .qm-layout { min-height: min(540px, max(320px, var(--qm-avail))); }
}

.quizn-editor .hero-meta { gap: 6px; }
.quizn-editor .hero-meta > span:not(:empty) {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e6ebf2; font-size: 12px; color: #475569; font-weight: 600;
}

/* [#1 2026-06-19 · DEVQUIZ] 전자칠판 사전그림 = 가운데 패널 가로폭 꽉 채움(우측 빈공간 제거).
   내부좌표 버퍼는 그대로 → 표시만 폭에 맞춰 확대, 라이브/학생 정합 보존(Fabric 포인터 자동보정).
   (이전 560×336 고정 → 컨테이너가 넓을 때 우측 여백이 생기던 문제 수정)
   ★[16:9 2026-09-05]★ 비율 정본은 `js/whiteboard.js` 의 `Whiteboard.SIZE` 다. 편집기에서 그린
   사전 그림이 라이브에 그대로 실려야 하므로, 여기 비율이 라이브(`css/whiteboard.css`)와 갈리면
   «편집기에서 본 그림»과 «수업에서 보이는 그림»이 어긋난다 — 셋을 같은 커밋에서 함께 고칠 것. */
.quizn-editor .qm-center-wb .wb-canvas-wrap { display: block; width: 100%; max-width: none; }
.quizn-editor .qm-center-wb .wb-canvas-wrap .canvas-container { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
.quizn-editor .qm-center-wb .wb-canvas-wrap .canvas-container > canvas { width: 100% !important; height: 100% !important; }

/* [#5 2026-06-19] 문제뱅킹 문제별 공유하기 버튼 */
.bank-quick-share.is-shared { color: #16a34a; }
.bank-quick-share:hover { color: var(--primary); }

/* [#13 2026-06-19 · DEVQUIZ] 학생 화면 미리보기 탭 — 플레이어를 가로 전폭으로(전자칠판 800px 안 잘리게) */
.quizn-editor #pvPlayer { flex: 1 1 auto !important; max-width: none !important; }
.quizn-editor #pvPlayer .pv-wb-wrap { width: 100%; overflow-x: auto; }

/* [0617 #13 / 2026-06-19] 회차명(bcProject) 우측 chip — 편집가능·날짜·슬라이드수 (breadcrumb 인라인) */
.bc-project-chips { display:inline-flex; align-items:center; gap:6px; margin-left:10px; vertical-align:middle; flex-wrap:wrap; }
.bc-project-chips:empty { display:none; }

/* [F2 2026-06-19] 워드클라우드 채점 토글 + ? hover 예시 */
.wc-help-q { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: 12px; cursor: help; flex-shrink: 0; }
.wc-help-pop { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: 260px; padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.16); font-size: 12.5px; color: #334155; line-height: 1.5; }
.wc-help-q:hover .wc-help-pop, .wc-help-q:focus .wc-help-pop { display: block; }
/* [2026-10-26 · F-20261023-29-7] 말풍선을 «?» 가 아니라 «어떻게 받을까요» 줄에 붙여 그 줄 폭으로 편다 — 오른쪽 설정 칸 안쪽(약 250px)이
   말풍선(260px)보다 좁아, «?» 에서 펴면 1280 폭에서 칸 밖(오른쪽 56px)이 잘렸다. 줄 폭이면 어느 폭에서도 칸 안에 든다. */
.wc-mode-group .form-label-row { position: relative; }
.wc-mode-group .wc-help-q { position: static; }
.wc-mode-group .wc-help-pop { right: 0; width: auto; word-break: keep-all; }
.wc-help-pop b { display: block; margin-bottom: 4px; color: #0f172a; }
.wc-help-mock { display: block; margin: 6px 0; padding: 10px; background: #f8fafc; border-radius: 8px; text-align: center; color: #4f46e5; }

/* [제출방식 재설계 2026-06-22] 워드클라우드 제출 방식 2카드(채점하기/제출제한) + 개수 입력 */
.wc-mode-group { position: relative; }
.wc-mode-group .form-label-row { display: flex; align-items: center; gap: 6px; }
.wc-mode-cards { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.wc-mode-card {
  flex: 1 1 220px; min-width: 200px; display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; position: relative;
}
.wc-mode-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.wc-mode-card:hover { border-color: #c7d2fe; background: #f8faff; }
.wc-mode-card.on { border-color: #6366f1; background: #eef2ff; box-shadow: 0 0 0 1px #6366f1 inset; }
.wc-mode-card .wc-mode-ico { font-size: 20px; line-height: 1.2; flex: 0 0 auto; }
.wc-mode-card .wc-mode-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-mode-card .wc-mode-txt b { font-size: 14px; color: #0f172a; }
.wc-mode-card.on .wc-mode-txt b { color: #4338ca; }
.wc-mode-card .wc-mode-txt small { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; word-break: keep-all; }
.wc-limit-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; background: #f8faff; border: 1px dashed #c7d2fe; border-radius: 10px; }
.wc-limit-row[hidden] { display: none; }
.wc-limit-row label { font-size: 13px; font-weight: 600; color: #334155; }
.wc-limit-row input[type="number"] { width: 76px; height: 36px; padding: 4px 8px; border: 1px solid var(--border-input); border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; }
.wc-limit-row .wc-limit-unit { font-size: 13px; color: #475569; }

/* [D1 2026-06-19] PPT/PDF 가운데 미리보기 — 장표 순서대로(번호+이미지) */
.qm-ppt-preview { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 720px; }
.qm-ppt-prev-slide { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.qm-ppt-prev-slide img { display: block; width: 100%; height: auto; }
/* [2026-11-24] 장표 한 장 = 다른 슬라이드의 무대(16:9)에 담긴 크기 — 학생 무대도 장표를 16:9 안에 비율 그대로 담는다(css/slide-stage.css .alc-slide-ppt-bg).
   ⛔종전엔 폭 720 으로 묶여 큰 화면에서 다른 슬라이드보다 작았다(운영 국어(수) 2회차 · 1920×1080 실측 718 vs 무대 1193).
   목록이 유형 칩 줄 아래 «남은 칸»을 차지하고(자리 = css/detail-editor.css ⓓ 바로 아래 규칙) 크기 컨테이너가 되어, 장표는 그 칸의 가장 큰 16:9 안에 들어가게 줄인다.
   칸(.qm-ppt-prev-slide)은 장표 그림에 딱 맞게 줄어든다 — 그려 둔 것(.qm-ppt-prev-ink) · 영상 자리(js/ppt-video.js)가 칸 기준 % 라서 칸 = 장표여야 한다.
   가운데 칸이 크기 컨테이너인 배치(css/detail-editor.css 「16:9 가 지켜지지 않았다」 규칙)에서만 건다 — 아니면 높이가 0 으로 접힌다. */
.qm-center-scroll:has(#qmCenterForm.is-all-elsewhere) .qm-center-preview:not(:has(.rtq-card-aoi)) > .qm-ppt-preview { max-width: none; align-items: center; container-type: size; }
.qm-center-scroll:has(#qmCenterForm.is-all-elsewhere) .qm-center-preview:not(:has(.rtq-card-aoi)) > .qm-ppt-preview > .qm-ppt-prev-slide { flex: none; max-width: 100%; }
.qm-center-scroll:has(#qmCenterForm.is-all-elsewhere) .qm-center-preview:not(:has(.rtq-card-aoi)) > .qm-ppt-preview > .qm-ppt-prev-slide > img:not(.qm-ppt-prev-ink) {
  width: auto;   /* 2px = 칸 테두리 두 줄 — 빼지 않으면 칸이 2px 넘쳐 바깥이 구른다(1536×730 실측) */
  max-width: calc(min(100cqw, 100cqh * 16 / 9) - 2px); max-height: calc(min(100cqw * 9 / 16, 100cqh) - 2px);
}
/* 그림을 못 받은 장(onerror · js/detail-center-preview.js)은 크기가 없어 칸이 글자 폭으로 쪼그라든다 — 무대 크기 16:9 빈 칸으로 둔다(단추가 겹치지 않게) */
.qm-center-scroll:has(#qmCenterForm.is-all-elsewhere) .qm-center-preview:not(:has(.rtq-card-aoi)) > .qm-ppt-preview > .qm-ppt-prev-slide.is-broken {
  width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9;   /* 칸은 테두리까지 잰다(border-box) — 그림 칸(그림 + 테두리 2px)과 같은 바깥 크기 */
}
/* 그려 둔 것 — 장표 «위»에 겹친다 (2026-09-09 확정 3)
   장표가 놓인 칸만 잘라 구웠으므로(js/detail.js _pptPaintNoteInk) 그 칸에 그대로 늘려 덮는다.
   비율을 다시 맞추지 않는다(object-fit: fill) — 두 곳이 각자 맞추면 반드시 어긋난다. */
.qm-ppt-prev-slide .qm-ppt-prev-ink {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: fill; pointer-events: none;
}
.qm-ppt-prev-no { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(15,23,42,.78); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* [2026-06-19] PPT/PDF 가운데 미리보기 — 순서변경(↑↓·드래그)·삭제 컨트롤 */
.qm-ppt-prev-slide { cursor: grab; }
.qm-ppt-prev-slide:active { cursor: grabbing; }
.qm-ppt-prev-slide.qm-ppt-drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }
.qm-ppt-prev-acts { position: absolute; top: 6px; right: 6px; z-index: 3; display: flex; gap: 4px; }
.qm-ppt-prev-acts button { width: 26px; height: 26px; border: 1px solid #d1d5db; background: rgba(255,255,255,.94); border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.qm-ppt-prev-acts button:hover:not(:disabled) { background: #eef2ff; }
.qm-ppt-prev-acts button:disabled { opacity: .4; cursor: default; }
.qm-ppt-prev-acts .qm-ppt-prev-del { color: var(--danger); }
/* 소리 단추 — 칸 왼쪽 아래 파란 알약(2026-11-15). 소리마다 하나, 여럿이면 옆으로 나란히. */
.qm-ppt-prev-snds { position: absolute; bottom: 6px; left: 6px; z-index: 3; display: flex; gap: 6px; }
.qm-ppt-prev-snd { display: inline-flex; align-items: center; gap: 5px; min-width: 44px; height: 30px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; background: var(--primary); color: var(--text-on-primary); font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.qm-ppt-prev-snd .ui-ico { width: 15px; height: 15px; flex-shrink: 0; }
.qm-ppt-prev-snd:focus-visible { outline: 2px solid var(--text-on-primary); outline-offset: 2px; box-shadow: var(--shadow-focus); }
/* 영상 단추 — 소리 단추와 같은 알약, 어두운 바탕으로 갈린다. 미리 보기 겹침은 칸 안 자리(없으면 칸 전체)에 뜬다. */
.qm-ppt-prev-snd.is-video { background: var(--primary-dark); }
.qm-ppt-prev-vid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; object-fit: contain; background: var(--primary-dark); pointer-events: none; }
/* 편집기 무대 위 소리 · 영상(2026-11-24 · js/ppt-stage-media.js · 설계 docs/superpowers/specs/2026-11-22-pptx-editable-import-design.md §10)
   단추는 화면 크기 그대로다 — 무대는 배율(--alc-slide-scale)로 줄여 그리므로 그 배율로 나눠 되돌린다(잠금 자물쇠와 같은 방식). 틀만 무대와 함께 줄어든다.
   영상 = 층(장표 그림 자리) 안 점선 틀 + 가운데 «영상 1:35» 단추 · 자리 없는 영상은 왼쪽 아래 줄. */
.alc-slide-stage > .alc-ppt-media { position: absolute; z-index: 100; pointer-events: none; }
.alc-ppt-media-vid { position: absolute; display: grid; place-items: center; box-sizing: border-box; border: calc(2px / var(--alc-slide-scale, 1)) dashed var(--primary); border-radius: calc(4px / var(--alc-slide-scale, 1)); background: rgba(37, 99, 235, .08); }
.alc-ppt-media-vid > .qm-ppt-prev-snd { position: relative; z-index: 3; pointer-events: auto; transform: scale(calc(1 / var(--alc-slide-scale, 1))); }
/* 영상 단추에 «영상» 글자 — 길이만 있으면 타이머처럼 보인다(사용자 피드백 2026-11-24). 단추 안은 재생 상태가 바뀔 때마다 PptVideo 가 다시 쓴다. */
.alc-ppt-media .qm-ppt-prev-snd { white-space: nowrap; }
.alc-ppt-media .qm-ppt-prev-snd.is-video .qm-ppt-prev-snd-t::before { content: '영상 '; }
.alc-ppt-media > .qm-ppt-prev-snds { left: calc(8px / var(--alc-slide-scale, 1)); bottom: calc(8px / var(--alc-slide-scale, 1)); pointer-events: auto; transform: scale(calc(1 / var(--alc-slide-scale, 1))); transform-origin: 0 100%; }
/* 소리 🔊 — 누르면 소리가 나는 요소(그림 · 글상자) · 자리 오른쪽 위 모서리에 걸친다. 요소를 고르면 감춘다(크기 손잡이 자리 · JS). */
.alc-slide-stage > .alc-el-snds { position: absolute; inset: 0; z-index: 101; pointer-events: none; }
.alc-snd-badge {
  position: absolute; z-index: 3; pointer-events: auto; cursor: pointer; padding: 0; box-sizing: border-box;
  width: calc(28px / var(--alc-slide-scale, 1)); height: calc(28px / var(--alc-slide-scale, 1)); transform: translate(-55%, -45%);
  display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--text-on-primary);
  border: calc(2px / var(--alc-slide-scale, 1)) solid var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.alc-snd-badge .ui-ico { width: calc(15px / var(--alc-slide-scale, 1)); height: calc(15px / var(--alc-slide-scale, 1)); }
.alc-snd-badge[hidden] { display: none; }
/* 장에 딸린 소리 칩 — «PPT·PDF» 칩과 같은 줄 · 같은 높이(무대 배율을 되돌린다 · 2026-11-24 시안 «이대로 해») */
.pv-header > .alc-snd-chip {
  zoom: calc(1 / var(--alc-slide-scale, 1)); pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: 0; border-radius: 12px;
  background: var(--primary); color: var(--text-on-primary); font-weight: 700; font-size: var(--text-sm); line-height: 1; white-space: nowrap;
}
.alc-snd-chip .ui-ico { width: 14px; height: 14px; }
.alc-snd-chip .alc-snd-ico, .alc-snd-badge .alc-snd-ico { display: inline-flex; }
.alc-snd-badge.is-playing, .alc-snd-chip.is-playing { background: var(--primary-dark); }
.alc-snd-badge:focus-visible, .alc-snd-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ★장표 위에 미리 그리기 — 「편집」 단추와 그리기 판★ (2026-09-09 확정 ⑧)
   *"각 PPT/PDF 장표별로 좌측 상단에 '편집' 버튼을 두고"*
   ★번호 옆(왼쪽 위)에 둔다★ — 오른쪽 위는 순서·삭제 자리이고, 「편집」은 그것들과 성격이
     다르다(자리를 옮기는 일이 아니라 «내용을 만드는» 일이다). */
.qm-ppt-prev-edit {
  position: absolute; top: 6px; left: 44px; z-index: 3;
  border: 1px solid #d1d5db; background: rgba(255,255,255,.94); border-radius: 6px;
  cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 9px; box-shadow: 0 1px 3px rgba(0,0,0,.12); color: #334155;
}
.qm-ppt-prev-edit:hover { background: #fff7ed; border-color: var(--primary); color: var(--primary); }
/* 이미 그려 둔 장표는 «한눈에» 갈린다 — 안 그러면 어디에 그렸는지 알 길이 없다. */
.qm-ppt-prev-edit.has { background: var(--primary); border-color: var(--primary); color: #fff; }
.qm-ppt-prev-edit.has:hover { background: #d97706; color: #fff; }

/* 그리기 판 — 크게 연다. 격자 안에서 작게 그리면 특수학생용 자료의 글씨를 못 쓴다. */
.pptnote-overlay { position: fixed; inset: 0; z-index: 100001; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
/* ★높이를 «확정»으로 준다★ (2026-09-09 실측) — `max-height` 만 주면 판이 내용 크기로 줄고,
   그러면 그리는 칸의 `flex: 1 1 0` 이 나눠 받을 높이가 없어 **캔버스가 0×0** 이 된다
   (아래 `container-type: size` 가 «내용을 안 보는» 선언이라 더 확실히 0 이 된다 —
    css/slide-stage.css 에서 겪은 그 함정과 같다). */
.pptnote-modal { background: var(--surface); border-radius: 12px; width: min(1180px, 96vw); height: min(900px, 94vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
/* 머리 줄 — 종전엔 편집기에 없는 .modal-header·.modal-close 를 써서 맨 글자·맨 상자로 떴다(F-20261012-72-3 · 2026-10-13 사용자 «꾸밈 없이 나오는 거 있게»).
   생김새는 다른 창의 머리 줄(css/main.css .dialog-header · .dialog-close)과 같다 — 편집기는 main.css 를 안 싣는다 */
.pptnote-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); padding: var(--space-4, 16px) var(--space-5, 20px); border-bottom: 1px solid var(--border); }
.pptnote-head h3 { margin: 0; font-size: var(--text-lg); font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.pptnote-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); }
.pptnote-close .ui-ico { width: 20px; height: 20px; }
.pptnote-close:hover { background: var(--surface-hover); color: var(--text); }
.pptnote-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pptnote-toolbar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--border); background: #f8fafc; }
/* 그리는 칸은 «남은 높이»를 받는다 — 도구바·안내줄이 먼저 자리를 가져간 뒤 나머지 전부. */
.pptnote-stage { flex: 1 1 0; min-height: 0; padding: 14px; display: flex; align-items: center; justify-content: center; background: #eef2f7; container-type: size; }
/* fabric 이 캔버스를 `.canvas-container` 로 감싸고 «인라인 크기»(1600×900)를 박는다 — 겉껍데기부터
   칸에 맞춰야 한다(같은 «한 겹 잘못 짚기»를 이 저장소가 두 번 겪었다 · css/slide-stage.css). */
.pptnote-stage > .canvas-container { width: min(100cqw, calc(100cqh * 16 / 9)) !important; height: auto !important; aspect-ratio: 16 / 9; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pptnote-stage > .canvas-container > canvas { width: 100% !important; height: 100% !important; }
.pptnote-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.pptnote-hint { flex: 1 1 auto; font-size: 13px; color: var(--text-muted); word-break: keep-all; }

/* [#6 2026-06-22] PPT/PDF 업로드 중 전체 화면 잠금 모달 — 업로드/변환 동안 다른 조작 차단 */
.ppt-upload-lock {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px);
}
.ppt-upload-lock-box {
  background: #fff; border-radius: 16px; padding: 28px 32px; text-align: center;
  max-width: 360px; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.ppt-upload-spinner {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border: 4px solid #e5e7eb; border-top-color: var(--primary); border-radius: 50%;
  animation: ppt-spin .8s linear infinite;
}
@keyframes ppt-spin { to { transform: rotate(360deg); } }
.ppt-upload-lock-msg { font-size: 15px; font-weight: 700; color: #1e293b; word-break: keep-all; }

/* ════════════════════════════════════════════════════════════════════════
 * [04 스포트라이트 튜토리얼 · v2-editor] '문제 편집 설명' 버튼 + 말풍선 안 예시목업
 *   ★오버레이·말풍선·연결선 CSS 는 css/tour.css (.alc-tour-*) 로 이관(2026-08-12).
 *     ★버튼도 2026-08-19 에 공용 .alc-tour-btn 으로 넘어갔다★ — 「📘 문제 편집 설명」 알약이
 *     이 화면만 다르게 생겼었다(사장님 지시로 전 화면 «동그란 ?» 통일).
 *     여기 남은 것은 말풍선 «안»의 예시목업(mk-*) 뿐이다 — 편집기 전용 내용이라 공용으로 안 보낸다.
 * ════════════════════════════════════════════════════════════════════════ */
/* 말풍선 안 예시 목업(mk-*) — .alc-tour-bubble 스코프 한정 */
.alc-tour-bubble .mk-row { display: flex; gap: 9px; align-items: center; height: 100%; }
.alc-tour-bubble .mk-col { display: flex; flex-direction: column; gap: 6px; height: 100%; justify-content: center; }
.alc-tour-bubble .mk-panel { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 8px; height: 100%; overflow: hidden; }
.alc-tour-bubble .mk-panel.tint { background: var(--primary-light); border-color: var(--primary-tint); }
.alc-tour-bubble .mk-h { font-size: 8.5px; font-weight: 800; color: var(--text-body); margin-bottom: 6px; display: flex; gap: 3px; align-items: center; }
.alc-tour-bubble .mk-arrow { color: var(--primary); font-size: 16px; font-weight: 800; flex-shrink: 0; text-align: center; }
.alc-tour-bubble .mk-inp { border: 1px solid var(--primary-tint); border-radius: 6px; background: var(--surface); padding: 5px 6px; font-size: 8.5px; font-weight: 700; color: var(--primary-dark); }
.alc-tour-bubble .mk-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); margin: 0 3px 3px 0; }
.alc-tour-bubble .mk-chip.on { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.alc-tour-bubble .mk-opt { display: flex; align-items: center; gap: 5px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 4px 6px; font-size: 8.5px; font-weight: 700; color: var(--text-body); background: var(--surface); margin-bottom: 4px; }
.alc-tour-bubble .mk-opt .k { width: 13px; height: 13px; border-radius: 4px; background: var(--surface-2); display: grid; place-items: center; font-size: 7.5px; font-weight: 800; color: var(--text-muted); flex-shrink: 0; }
.alc-tour-bubble .mk-opt.ok { border-color: var(--success); background: var(--success-soft, #f0fdf4); color: #15803d; }
.alc-tour-bubble .mk-opt.ok .k { background: var(--success); color: #fff; }
.alc-tour-bubble .mk-note { font-size: 8px; color: var(--text-muted); text-align: center; margin-top: auto; }   /* [design-ok] px-font-size 는 이 작업 범위 밖 — 이 줄은 흐린 글자색만 올렸다(F-20260926-18-2) */
/* [Step1 유형별 투어] 04 이식 예시목업 추가 클래스 — 색 변수는 이 스코프에만 로컬 정의(전역 무영향). */
.alc-tour-bubble {
  --purple: #7c3aed; --purple-soft: #f5f3ff; --danger-soft: #fef2f2; --success-soft: #f0fdf4;
}
.alc-tour-bubble .mk-flow { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; }
.alc-tour-bubble .mk-flow .fst { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.alc-tour-bubble .mk-flow .fst .fbox { width: 100%; height: 52px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-size: 19px; position: relative; }
.alc-tour-bubble .mk-flow .fst.act .fbox { border-color: var(--primary); background: var(--primary-soft); }
.alc-tour-bubble .mk-flow .fst .flab { font-size: 8px; font-weight: 800; color: var(--text-muted); text-align: center; line-height: 1.2; }
.alc-tour-bubble .mk-flow .fst.act .flab { color: var(--primary-dark); }
.alc-tour-bubble .mk-flow .fsep { color: var(--primary); font-size: 14px; font-weight: 800; flex-shrink: 0; }
.alc-tour-bubble .mk-flow .fst .fbox .hdl { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; background: var(--surface); border: 2px solid var(--primary); border-radius: 2px; }
.ppt-upload-lock-sub { margin-top: 8px; font-size: 12.5px; color: #64748b; word-break: keep-all; }

/* ── [KG 재설계 A/B 2026-07-09] 지식대화구조 엔진 토글(현행 ↔ AI 정제) + AI 정제 뷰 ── */


.rt-kg-rebuild { margin-top: 10px; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--brand, #2563eb); background: var(--brand, #2563eb); color: #fff; cursor: pointer; }
.rt-kg-rebuild:disabled { opacity: .6; cursor: default; }
.rt-kg-rebuild.sm { margin-top: 0; margin-left: 4px; font-size: 12px; padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
/* [점진 표시] 규칙기반 초안 배너 — 정제본 준비 중임을 알림 */
.rt-kg-draft-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 9px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; word-break: keep-all; overflow-wrap: anywhere; }
.rt-kg-draft-banner.note { background: #f8fafc; border-color: #e2e8f0; color: var(--text-2, #475569); }


.rt-kg-ai-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2, #f1f5f9); border: 1px solid var(--border); color: var(--text);
  /* [§2 R1-K] 한국어는 어절 단위로만 끊는다 — 개념 라벨이 길면 '포도당에 저장되/는 과정'처럼
     음절 중간에서 잘렸다(같은 화면의 맥락 줄·접은 말 칩에는 이미 적용돼 있어 규칙이 엇갈렸다). */
  word-break: keep-all; overflow-wrap: anywhere; }
.rt-kg-ai-chip.misc { background: #fef2f2; border-color: #fecaca; color: var(--danger-dark); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
/* [결정04] 선생님 지정/고정(📌) = AI 개념과 다른 색으로 분명히 구분(호박색 계열). */
.rt-kg-ai-chip.pin { box-shadow: 0 0 0 2px var(--prof-ring, #d97706) inset; background: var(--prof-soft, #fef6e7); }
/* [2026-08-01 사장님] 하단 = LLM 병합을 **보고 고치는** 자리.
   `＋N` = AI 가 이 개념으로 합친 말의 개수(무엇이 합쳐졌는지 툴팁) · `⋯` = 이름변경·고정·쪼개기·합치기.
   둘 다 칩 안에 있어야 한다 — 우측 편집 버튼을 없앤 자리를 여기가 대신한다. */
/* [2026-08-02] 합친 말 배지(.rt-kg-chip-al)·포함 배지(.rt-kg-ai-chip-in) CSS 제거 —
   그 배지를 붙이던 하단 묶음 카드를 같은 커밋에서 지웠다(고아 CSS 방지). */

/* [결정01] 개념 위 제거(×) — 평소 숨김, 칩 호버·포커스 시 노출. */
.rt-kg-ai-chip { position: relative; }
/* [노드별 편집 OFF 2026-08-02] 칩의 ×(.rt-kg-chip-x) CSS 제거 — 그 버튼을 만들던 코드를
   같은 커밋에서 지웠다(사장님: 노드별 편집기능 일단 off). */
/* [결정01·02] 개념 편집 툴바 — 추가/전체보기/범례. */
.rt-kg-kwbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
/* [2026-08-02] .rt-kg-kwbar-lbl(「핵심 개념」 라벨) 제거 — 가리키던 칩이 없어졌다. */
.rt-kg-kwclear { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; cursor: pointer; }
.rt-kg-kwclear { background: transparent; color: var(--text-2, #475569); border: 1px solid var(--border); }
.rt-kg-kwclear:hover { background: var(--surface-2, #f1f5f9); }
.rt-kg-kwlegend { font-size: 11.5px; color: var(--text-muted); word-break: keep-all; }   /* [design-ok] px-font-size 는 이 작업 범위 밖 — 이 줄은 흐린 글자색만 올렸다(F-20260926-18-2) */

/* ── [코어 앵커 흡수 2026-07-22] 무슨 수업인지(맥락) · 핵심 개념 강조 · 접은 말 ── */
/* 그래프 위 한 줄: 학교급·학년·과목 + 이 회차 주제 + 핵심 키워드. 그래프가 주인공이라 담백하게. */
.rt-kg-ctx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 0 0 8px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2, #f8fafc); }
.rt-kg-ctx-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-size: 14px; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.rt-kg-ctx-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2, #475569); }
.rt-kg-ctx-kw { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--text-muted); }
/* ═══ [③ 2026-08-01 · 사장님 지시] 맥락 줄 100% + 개념 편집 ═══════════════════════════
   *"rt-kg-ctx 여기를 가로 100% 사이즈로 변경하고 거기 우측에 '개념 편집' 기능을"*
   종전엔 좌측 컬럼(50%) 안이라 키워드가 두세 개씩 줄바꿈됐다. workspace 밖으로 빼 100% 폭.
   ★편집 모드에서만 X·＋가 보인다★ 항상 떠 있으면 수업 중 잘못 눌러 개념이 사라진다. */
.rt-kg-ctx-edit {
  margin-left: auto; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  background: var(--surface); color: var(--text-muted);
  padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.rt-kg-ctx-edit:hover { border-color: var(--primary); color: var(--primary); }
.rt-kg-ctx-edit[aria-pressed="true"] { border-color: var(--primary-fill); background: var(--primary-fill); color: var(--text-on-primary); }
.rt-kg-ctx-edit:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rt-kg-ctx-x, .rt-kg-ctx-add { display: none; }          /* 읽기 모드에선 감춘다 */
.rt-kg-ctx.editing .rt-kg-ctx-x { display: inline-block; margin-left: 4px; color: var(--danger); cursor: pointer; font-weight: 800; }
/* [교사 키워드 상태 2026-08-02] 다뤄졌나/안 다뤄졌나를 칩에서 바로 읽히게.
   선생님 요구 *"교사가 설정한 핵심키워드를 학생들이 충분히 다루었구나"* 를 눈으로 확인하는 장치.
   ★색만으로 알리지 않는다★ 미언급 = 점선 테두리(모양) + 화면 읽기 프로그램용 «(미언급)» 글자(sr-only).
   [2026-10-29 사용자] 칩 안 «미언급» 글자·앞 점선 동그라미는 걷었다 — 점선 테두리만으로 충분하다. */
.rt-kg-ctx-kw span.undone { color: var(--text-muted); border-style: dashed; }
.rt-kg-ctx-kw span { cursor: pointer; }
.rt-kg-ctx.editing .rt-kg-ctx-kw span { cursor: default; }
.rt-kg-ctx.editing .rt-kg-ctx-add {
  display: inline-block; border: 1px dashed var(--primary); border-radius: 999px;
  background: transparent; color: var(--primary); padding: 1px 9px;
  font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
/* 편집 중임을 화면 전체로 알린다 — 지금 누르면 값이 바뀐다는 신호. */
.rt-kg-ctx.editing { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.rt-kg-ctx.editing .rt-kg-ctx-main { cursor: pointer; }
.rt-kg-ctx.editing .rt-kg-ctx-main .rt-kg-ctx-tag,
.rt-kg-ctx.editing .rt-kg-ctx-main b { text-decoration: underline dotted var(--primary); text-underline-offset: 3px; }
.rt-kg-ctx-kw span { padding: 2px 8px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-2, #475569); word-break: keep-all; }
/* [2026-11-05 사용자] 핵심 키워드 줄 = 한 줄 · «선생님» 묶음 | «AI» 묶음 — *"핵심키워드줄이 2개 되는건 용납못해"*.
   이름표(선생님 · AI)는 칩 모양이 아니라 글자다 · 넘치면 묶음마다 끝 칩을 눈에서만 감추고 «…»(js _rtKgKwFit) · 편집 중엔 펼친다.
   AI 칩 = 회색(주황은 선생님 키워드 · 선생님 키워드가 없을 때만 AI 칩이 주황). */
.rt-kg-ctx:has(.rt-kg-kwline):not(.editing) { flex-wrap: nowrap; }
.rt-kg-kwline { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; align-items: center; overflow: hidden; }
.rt-kg-kwline > .rt-kg-kwlegend, .rt-kg-kwg-lbl, .rt-kg-kwg-more { flex: 0 0 auto; white-space: nowrap; }
.rt-kg-kwg { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.rt-kg-kwg + .rt-kg-kwg { border-left: 1px solid var(--border); padding-left: 10px; margin-left: 4px; }
.rt-kg-ctx:not(.editing) .rt-kg-kwg.is-empty { display: none; }
.rt-kg-ctx:not(.editing) .rt-kg-kwg.is-empty + .rt-kg-kwg { border-left: 0; padding-left: 0; margin-left: 0; }
.rt-kg-kwg-chips { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rt-kg-kwg-chips > * { flex: 0 0 auto; white-space: nowrap; }
.rt-kg-kwg-chips > span.is-cut { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.rt-kg-kwg-lbl { font-weight: 700; color: var(--text-muted); }
.rt-kg-kwg-none { font-style: normal; color: var(--text-muted); white-space: nowrap; }
.rt-kg-kwg-more { font-style: normal; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; cursor: default; }
.rt-kg-kwg-more[hidden] { display: none; }
.rt-kg-ctx-kw span.rt-kg-kw-ai:not(.undone) { color: var(--text-2, #475569); border-color: var(--border-strong); }
.rt-kg-ctx.editing .rt-kg-kwline, .rt-kg-ctx.editing .rt-kg-kwg { flex-wrap: wrap; overflow: visible; }
.rt-kg-ctx.editing .rt-kg-kwg-chips { display: contents; }
/* 핵심 개념 칩 — 그래프에서 크게 뜨는 노드와 같은 것임을 알 수 있게 테두리 강조. */
.rt-kg-ai-chip.core { font-weight: 700; border-color: var(--brand, #2563eb); }
.rt-kg-folded { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.rt-kg-folded > summary { cursor: pointer; }
.rt-kg-folded > summary span { opacity: .8; }
.rt-kg-folded-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rt-kg-folded-list span { padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #f1f5f9);
  border: 1px dashed var(--border); word-break: keep-all; }

/* ── [KG P-S/P-E 2026-07-09] 슬라이드 커버리지 + 개념 역할색 + 교사 수정 툴바 ── */
/* [kube2 강의 심층 인사이트] AI 정제 뷰 상단 카드 — lecture_insight 있을 때만 채워짐 */
.rt-kg-li { margin: 8px 0 4px; padding: 13px 15px; border: 1px solid #e5deff; border-radius: 12px; background: linear-gradient(180deg, #f5f3ff 0%, #faf9ff 100%); }
.rt-kg-li-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #4c1d95; }
.rt-kg-li-sum { font-size: 13px; line-height: 1.6; color: #334155; margin: 9px 0 0; word-break: keep-all; }
.rt-kg-li-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.rt-kg-li-col { background: rgba(255,255,255,.6); border: 1px solid #ece8ff; border-radius: 10px; padding: 10px 12px; }
.rt-kg-li-h { font-size: 12px; font-weight: 800; color: #6d28d9; margin: 0 0 8px; }
.rt-kg-li-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-kg-li-chip { font-size: 12px; font-weight: 600; color: #5b21b6; background: #fff; border: 1px solid #ddd6fe; border-radius: 8px; padding: 3px 9px; }
.rt-kg-li-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-kg-li-list li { font-size: 12.5px; line-height: 1.5; color: #334155; padding-left: 14px; position: relative; }
.rt-kg-li-list li::before { content: "·"; position: absolute; left: 4px; color: #a78bfa; font-weight: 800; }
.rt-kg-cov { margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2, #f8fafc); }
.rt-kg-cov-h { font-size: 13px; font-weight: 700; color: var(--text-2, #475569); }
.rt-kg-cov-ghost { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rt-kg-cov-ghost.ok { color: #15803d; }
.rt-kg-ghost-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px dashed #cbd5e1; color: #64748b; background: transparent; }
.rt-kg-ai-chip { cursor: pointer; }
.rt-kg-ai-chip.role-core { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.rt-kg-ai-chip.role-tangent { border-color: var(--border); background: var(--surface-2, #f1f5f9); color: var(--text); }
.rt-kg-ai-chip.role-misconception { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.rt-kg-ai-chip.sel { box-shadow: 0 0 0 2px var(--brand, #2563eb); border-color: var(--brand, #2563eb); }
.rt-kg-ai-chip.pin { }


/* [P1] 정합 점수 카드 */


/* ── [KG 그룹핑·드릴다운 2026-07-09] 2단 워크스페이스(그래프+상위개념 / STT 상세) ── */
.rt-kg-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 10px; align-items: start; }
/* [③ 2026-08-01 사장님] *"그 외의 사이즈에 STT 내역을 스크롤로 제공하면되니까"* —
   STT 상세가 길어지면 페이지 전체가 늘어나 아래 개념맵이 화면 밖으로 밀렸다.
   그래프 높이(560)에 맞춰 **자기 칸에서만** 스크롤한다. */
.rt-kg-detail { max-height: 680px; overflow-y: auto; overscroll-behavior: contain; }
.rt-kg-left { min-width: 0; }
/* [2026-08-02 사장님] 하단 상위개념 묶음 카드(.rt-kg-group*) CSS 전량 제거 —
   *"이 하단에 개념 편집 부분은 삭제해줘"*. 마크업을 지운 커밋에서 함께 지운다. */

.rt-kg-detail { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px; min-height: 300px; }
.rt-kg-detail-empty { color: var(--text-muted); font-size: 13px; line-height: 1.7; text-align: center; padding: 40px 12px; word-break: keep-all; overflow-wrap: anywhere; }
.rt-kg-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rt-kg-detail-ttl { font-size: 17px; font-weight: 800; color: var(--text); text-wrap: balance; }
.rt-kg-merge-note { font-size: 12.5px; color: #1c6b38; margin-bottom: 6px; }
.rt-kg-dlab { flex: none; font-size: 12px; font-weight: 700; color: var(--text-muted); padding-top: 3px; }
.rt-kg-dchips { display: flex; flex-wrap: wrap; gap: 5px; }
.rt-kg-rel-chip { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--border); color: var(--text-2, #475569); background: transparent; cursor: pointer; }
.rt-kg-rel-chip:hover { border-style: solid; border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); }
.rt-kg-rel-more { font-size: 12px; color: var(--text-muted); align-self: center; }
.rt-kg-stt-h { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 800; color: var(--text-2, #475569); }
.rt-kg-stt { margin-top: 8px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.rt-kg-utt { display: flex; gap: 8px; align-items: baseline; }
.rt-kg-utt-who { flex: none; min-width: 58px; font-size: 12px; font-weight: 700; color: var(--brand, #2563eb); }
.rt-kg-utt-tx { font-size: 13.5px; line-height: 1.6; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .rt-kg-workspace { grid-template-columns: 1fr; }
}


/* ── [다크 테마] 회차 편집기 워드클라우드 · 길잡이 예시 · 문제 미리보기(§0-B R222 · ④-10 · 2026-10-23) — 밝은 판 · 고대비는 위 값 그대로 ──
   워드클라우드 제출 방식 카드는 밝은 판에서 남색 고정 값이다 — 다크에서는 고른 칸을 학교 색 짝(옅은 면 · 짙은 글자)으로 맞춘다.
   문제뱅킹 «문제 미리보기»(창 · 목록 펼침 안의 .pv-player--readonly)는 목록형 미리보기라 판(밝은 섬)이 아니다 — 질문 칸 · 배지 · 정답 칸을 다크 짝으로.
   ★창 안으로만 좁힌다★ 편집기 가운데 판도 .pv-player--readonly 로 그려서, 좁히지 않으면 판 안 배지 · 질문 칸이 바뀐다(판 = 밝은 화면과 같아야 한다). */
@media screen {
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-mode-card { background: var(--surface); border-color: var(--border); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-mode-card:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-mode-card.on { background: var(--primary-light); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-mode-card .wc-mode-txt b { color: var(--text); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-mode-card.on .wc-mode-txt b { color: var(--primary-dark); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-limit-row { background: var(--bg-subtle); border-color: var(--border-strong); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-limit-row label { color: var(--text-body); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-limit-row .wc-limit-unit { color: var(--text-muted); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-help-q { background: var(--primary-light); color: var(--primary-dark); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-help-pop { background: var(--surface); border-color: var(--border); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-help-pop b { color: var(--text); }
html.theme-dark:not(:has(body[data-contrast="high"])) .wc-help-mock { background: var(--bg-subtle); color: var(--primary-dark); }
html.theme-dark:not(:has(body[data-contrast="high"])) .alc-tour-bubble .mk-opt.ok { background: var(--success-light); color: var(--success-dark); }
html.theme-dark:not(:has(body[data-contrast="high"])) .alc-tour-bubble .mk-opt.ok .k { background: var(--success-fill); color: var(--text-on-primary); }
html.theme-dark:not(:has(body[data-contrast="high"])) :is(#bankItemPreviewDlg, .bank-row-preview) .pv-player--readonly .pv-question { background: var(--bg-subtle); border-color: var(--border); }
html.theme-dark:not(:has(body[data-contrast="high"])) :is(#bankItemPreviewDlg, .bank-row-preview) .pv-player--readonly .type-badge { background: var(--bg-subtle); color: var(--text); }
html.theme-dark:not(:has(body[data-contrast="high"])) :is(#bankItemPreviewDlg, .bank-row-preview) .pv-player--readonly :is(.pv-opt-btn.pv-opt-correct, .pv-ox-btn.pv-opt-correct, .pv-match-item.correct) { background: var(--success-light); color: var(--success-dark); }
}

/* ═══ [다크 ④ 수업 리포트 2026-10-24] 다크에서만 — 토론 분석 «분석 · 팀별 비교 · AI 인사이트 · 핵심 키워드» (없는 색 이름은 main-analysis.css 다크 블록이 잇는다)
   값을 구분하는 색(균형 · 주도 · 분산 · 혼자 · 소외)은 뜻 색 짝과 요일 색 다크 짝(--day-N · R104)으로. */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-sec, .rt-tt2-card, .rt-tt2-side-card, .rt-tt2-pager-nav, .rt-sda-leg-iso) { background: var(--surface); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-chip, .rt-sda-card, .rt-sda-stat, .rt-tt2-card-net, .rt-tt2m-net) { background: var(--surface-2); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-sec, .rt-sda-chip, .rt-sda-flow, .rt-sda-stat, .rt-tt2-card, .rt-tt2-pager-nav, .rt-tt2-side-card) { border-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-card { border-left-color: var(--border); border-right-color: var(--border); border-bottom-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-metrics, .rt-tt2-card-cta, .rt-tt2-observe-legend) { border-top-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-tt2-rank-cols, .rt-tt2-rank-row) { border-bottom-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-tt2-card:hover, .rt-tt2-card:focus-visible) { border-color: var(--primary); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-meta, .rt-sda-legend, .rt-sda-stat-lbl, .rt-sda-card-role-plain, .rt-tt2-sec-count, .rt-tt2-rank-no, .rt-tt2-observe-legend) { color: var(--text-muted); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-desc, .rt-sda-met-v2, .rt-tt2-slider-lbl, .rt-tt2-slider-val, .rt-tt2-pager-nav, .rt-tt2-pager-range, .rt-tt2-rank-metric, .rt-tt2-observe-item, .rt-tt2m-h3, .rt-tt2m-lg, .rt-kg-li-sum, .rt-kg-li-list li) { color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-stat-b b, .rt-tt2-sec-title, .rt-tt2-card-name, .rt-tt2-metric-val, .rt-tt2-side-head b, .rt-tt2-rank-name, .rt-tt2-observe-item b, .rt-tt2m-title, .rt-tt2m-lg b) { color: var(--text); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-tt2-rank-row:hover, .rt-tt2-rank-row:focus-visible) { background: var(--surface-hover); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2-dot { background: var(--border-strong); }
  /* 값을 구분하는 칩 · 줄 */
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-bal .rt-sda-pattern-badge, .rt-tt2-type-bal, .rt-tt2-grade-good, .rt-tt2-lg-good) { background: var(--success-light); color: var(--success-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-lead .rt-sda-pattern-badge, .rt-tt2-type-lead) { background: var(--day-0-bg); color: var(--day-0-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-disp .rt-sda-pattern-badge, .rt-tt2-type-disp) { background: var(--day-4-bg); color: var(--day-4-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-solo .rt-sda-pattern-badge, .rt-tt2-type-solo, .rt-tt2-grade-mid, .rt-tt2-lg-mid, .rt-sda-role.ctr) { background: var(--warning-light); color: var(--warning-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-iso .rt-sda-pattern-badge, .rt-tt2-type-iso, .rt-tt2-grade-low, .rt-tt2-lg-low, .rt-sda-iso) { background: var(--danger-light); color: var(--danger-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-sda-pattern-na .rt-sda-pattern-badge, .rt-tt2-type-na, .rt-tt2-grade-na, .rt-sda-badge) { background: var(--bg-subtle); color: var(--text-muted); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-bal { background: var(--success-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-lead { background: var(--day-0-bg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-disp { background: var(--day-4-bg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-solo { background: var(--warning-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-iso { background: var(--danger-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-pattern-na { background: var(--bg-subtle); }
  /* AI 인사이트(보라 상자) */
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-kg-li { background: var(--day-4-bg); border-color: color-mix(in srgb, var(--day-4-fg) 35%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-kg-li-head, .rt-kg-li-h, .rt-kg-li-list li::before) { color: var(--day-4-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-kg-li-col { background: color-mix(in srgb, var(--surface) 60%, transparent); border-color: color-mix(in srgb, var(--day-4-fg) 25%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-kg-li-chip { background: var(--surface); color: var(--day-4-fg); border-color: color-mix(in srgb, var(--day-4-fg) 35%, transparent); }
}

/* ═══ [다크 ④ 수업 리포트 · 검토 반영] 다크에서만 — 팀 상세 창(요약 칸 · AI 심층 분석 · 발화 비중) · 개념 기여 태그 · 재생 단추 ═══ */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2m-metric { background: var(--surface-2); border-color: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-tt2m-metric b, .rt-tt2m-ratio-val) { color: var(--text); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.rt-tt2m-ins-item, .rt-tt2m-ratio-name, .rt-tt2m-ai-sum, .rt-tt2m-ai-q, .rt-tt2m-ai-sug li) { color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2m-ratio-bar { background: var(--border); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2m-ai { background: var(--day-4-bg); border-color: color-mix(in srgb, var(--day-4-fg) 35%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2m-ai-tag { background: var(--surface); color: var(--day-4-fg); border-color: color-mix(in srgb, var(--day-4-fg) 35%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt2m-ai-q b { color: var(--day-4-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-sda-tag { background: color-mix(in srgb, var(--c, var(--text-muted)) 22%, var(--surface)); color: color-mix(in srgb, var(--c, var(--text-muted)) 50%, white); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-tt-play:hover { background: var(--primary-fill-hover); }
}
