/* css/detail-gaze.css — css/detail.css 가족의 한 조각(옮기기만 · 순서의 정본 = js/script-families.json · 코드 구조 4계단④ · 2026-10-10) · 시선 분석 패널(무대·곁칸·재생) · 대화상자 · 문제뱅킹 정렬·출처 칩 · 저장 알림 */
/* ============================================================================
   [회차 129] 시선 인식 분석 패널 — 다크 테마 (scoped: .rt-gaze-panel--light)
   사용자 가이드라인 「시선인식분석_UI_전면개편」 기준.
   - 슬라이드 오버레이 위에 투명 캔버스 합성
   - fixation 1·2·3·4·5 번호 경로
   - 우측 AOI 통계 카드 + 도넛 + Insight
   - Gaze Playback (균등 마커 정렬)
   ========================================================================== */
/* [회차 140] 다크 → 라이트 톤. 토큰만 라이트로 교체 — 모든 하위 rule(187개)은 그대로 작동.
   사용자 요청 "결과분석 페이지 UI와 이질감 없게" — surface/border/text 토큰 통합. */
.rt-gaze-panel--light {
  --gz-bg:           #ffffff;
  --gz-bg-elev:      #f8fafc;   /* slate-50 */
  --gz-bg-elev-2:    #f1f5f9;   /* slate-100 */
  --gz-border:       #e2e8f0;   /* slate-200 */
  --gz-border-soft:  #eef2f7;
  --gz-text:         #0f172a;   /* slate-900 */
  --gz-text-muted:   #475569;   /* slate-600 */
  --gz-text-faint:   #94a3b8;   /* slate-400 */
  --gz-accent:       #7c3aed;   /* violet-600 (라이트 위에서 충분히 짙음) */
  --gz-accent-2:     #0284c7;   /* sky-600 */
  --gz-accent-3:     #059669;   /* emerald-600 */
  --gz-radius-lg:    14px;
  --gz-radius:       10px;
  --gz-radius-sm:    6px;
  background: var(--gz-bg);
  color: var(--gz-text);
  padding: 16px;
  border-radius: var(--gz-radius-lg);
  border: 1px solid var(--gz-border);
  display: flex; flex-direction: column; gap: 14px;
}

/* ── 헤더 ───────────────────────────────────────── */
.rt-gaze-panel--light .rt-gaze-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 4px 4px 14px; }
.rt-gaze-panel--light .rt-gaze-header-l { display: flex; gap: 12px; }
/* [B0071 U-10] 결과 내보내기 버튼 그룹 — 헤더 우측 */
.rt-gaze-panel--light .rt-gaze-export { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.rt-gaze-panel--light .rt-gaze-export .btn { white-space: nowrap; }
.rt-gaze-panel--light .rt-gaze-header-icon {
  width: 36px; height: 36px; background: var(--gz-bg-elev-2); border-radius: var(--gz-radius);
  display: flex; align-items: center; justify-content: center; color: var(--gz-accent);
}
.rt-gaze-panel--light .rt-gaze-header-title h2 { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--gz-text); }
.rt-gaze-panel--light .rt-gaze-header-meta { font-size: 12.5px; color: var(--gz-text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rt-gaze-panel--light .rt-gaze-header-meta b { color: var(--gz-text); font-weight: 600; }
.rt-gaze-panel--light .rt-gaze-header-dot { color: var(--gz-text-muted); } /* WCAG: gz-text-faint 2.56:1 < 4.5:1 → gz-text-muted #475569 7:1 */
.rt-gaze-panel--light .rt-gaze-header-select {
  background: var(--gz-bg-elev-2); border: 1px solid var(--gz-border); color: var(--gz-text);
  border-radius: var(--gz-radius-sm); padding: 4px 8px; font-size: 12.5px; font-weight: 600;
}

/* ── 본문 (좌 stage + 우 side) — [회차 133] grid 단순화 / [회차 144 §1] DevTools 열린 좁은 화면 대응 ── */
.rt-gaze-panel--light .rt-gaze-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;   /* stage 가 남는 공간 전부, side 고정 */
  align-items: stretch;
  gap: 20px;
}
@media (max-width: 1400px) {
  .rt-gaze-panel--light .rt-gaze-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
  }
}
/* [회차 144 §1] 1024 → 1180 — DevTools 열린 화면(1280→800)에서 stage+side 겹침 fix */
@media (max-width: 1180px) {
  .rt-gaze-panel--light .rt-gaze-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .rt-gaze-panel--light .rt-gaze-side {
    width: 100%; max-width: 100%;
  }
  .rt-gaze-panel--light .rt-gaze-stage {
    max-height: 480px;   /* 좁은 화면 적정 */
  }
  /* Playback 도 wrap — 마커가 우측 토글에 밀려 잘리는 회귀 방지 */
  .rt-gaze-panel--light .rt-gaze-playback { flex-wrap: wrap; gap: 12px; }
  .rt-gaze-panel--light .rt-gaze-pb-markers-simple { width: 100%; order: 2; }
  .rt-gaze-panel--light .rt-gaze-pb-r { order: 3; width: 100%; justify-content: center; }
}

.rt-gaze-panel--light .rt-gaze-stage-col { display: flex; flex-direction: column; gap: 12px; }

/* ── Stage — [회차 133] aspect-ratio 잠금. [회차 140] 라이트 톤에 맞게 배경/그림자 정돈 ── */
.rt-gaze-panel--light .rt-gaze-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 640px;
  min-height: 420px;
  background: #f5f5ee;   /* 약한 베이지 — 흰 카드와 자연스러운 대비 */
  border: 1px solid var(--gz-border);
  border-radius: var(--gz-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
@media (max-width: 1024px) {
  .rt-gaze-panel--light .rt-gaze-stage { max-height: none; }
}
.rt-gaze-panel--light .rt-gaze-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  padding: 60px 56px 60px;       /* [회차 131] 3차 피드백 §1-4 — 패딩 확대 */
  color: #1f2937;
  word-break: keep-all; overflow-wrap: anywhere;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 20px;
}

 /* WCAG: #94a3b8 2.56:1→gz-text-muted #475569 7:1, on light panel */

/* [시선 배경=실제 문항 이미지] 캡처 슬라이드/문항 이미지를 stage 전체에 깔 때 — 패딩 제거, 이미지가 stage(=히트맵 canvas 좌표공간)를 꽉 채워 정합 유지.
   gaze 좌표는 학생 화면(screen_w×screen_h)을 canvas 전체에 stretch 매핑하므로, 배경 이미지도 동일하게 fill 로 stage 를 채워야 좌표가 맞는다. */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-img-mode {
  padding: 0; gap: 0; display: block;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-img-mode .gz-slide-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;            /* 학생 화면 전체 → stage 전체(히트맵과 동일 매핑). contain 시 좌표 어긋남. */
  display: block;
  background: #fff;
}

/* [전자칠판 학생좌표 합성 2026-08-21] 칠판 «바깥» 흰 바탕 — 학생 화면에서 칠판 주변은
   페이지 배경이었다. 안 깔면 그 영역이 비어 보여 시선점이 허공에 찍힌 것처럼 읽힌다.
   ★판서 그림의 «자리»는 CSS 가 아니라 인라인 %가 정한다★ — `.gz-slide-bg-img` 의 `inset:0`·
   `width:100%` 는 인라인 선언에 지고(left+right+width 과대지정이면 right 가 무시된다),
   그래서 상쇄 규칙이 따로 필요 없다(2026-08-21 브라우저 실측으로 확인 — 있으나 없으나 동일).
   그 사실을 지키는 것은 CSS 가 아니라 실측 테스트다
   (tests/frontend/board_stage_student_space_20260821.spec.js). */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-boardfit-mode .gz-board-bg {
  position: absolute; inset: 0;
  background: #fff;
  pointer-events: none;
}
/* [판서 재생 2026-08-26] 획 재생기가 들어앉는 자리 — 사진과 «같은 사각형»에 겹친다.
   자리(left/top/width/height)는 위 판서 그림과 마찬가지로 **인라인 %가 정한다**
   (BoardStage.fitStyle 하나가 둘을 만든다 — 두 벌이 되는 순간 어긋난다).
   ★폭을 여기서 못 박는다★ fabric 은 캔버스를 1280x720 «고정»으로 만들어 자기 컨테이너에
   인라인으로 박는다. 묶어 두지 않으면 이 자리가 1280px 로 부풀어 칠판 사각형을 벗어난다
   (반응 분석에서 실제로 그랬다 — 좌우 획이 잘렸다). 재생기는 이 폭에 맞춰 «보이는 크기만»
   줄인다(js/board-replay.js `_fit`).
   ★시선점 위가 아니라 «아래»다★ — 히트맵·시선 경로 캔버스가 판서 위에 얹혀야 한다. */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-boardfit-mode .gz-board-replay-slot {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
/* ★흰 바탕은 «재생기가 실제로 들어앉았을 때»만★ [2026-08-27 실측으로 고침]
   이 자리는 판서 사진과 «같은 사각형»이고 사진 «위»에 온다. 그래서 상시 `background:#fff`
   이면, 획이 없어 재생기가 안 붙은 회차에서는 **빈 흰 상자가 판서를 통째로 가린다**
   (2026-08-27 alcdev2 실브라우저 실측: 전자칠판 배경이 백지 → 이 한 줄만 투명하게 하자
    판서가 그대로 나타났다). 위 블록의 «획이 없으면 사진이 그대로 남는다»는 전제가 여기서
   깨져 있었다.
   ★`:empty` 로 가르는 이유★ — 재생기는 성공했을 때만 자식(`.board-replay` 홀더)을 넣는다
   (js/board-replay.js `mount`: 획 0건·칠판 모듈 실패면 아무것도 안 넣고 false 를 돌려준다).
   그래서 «붙었나»를 JS 플래그 없이 DOM 만으로 정확히 판정할 수 있다.
   회귀 고정 = tests/frontend/gaze_board_replay_slot_bg_20260827.spec.js */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-boardfit-mode .gz-board-replay-slot:not(:empty) {
  background: #fff;
}
/* ★우리 렌더 위에서는 그 흰 바탕을 깔지 않는다★ [전자칠판 우리 렌더 2026-09-02]
   바로 위 흰 바탕은 «판서 사진»을 가리려는 것이다. 우리 렌더(gz-editorcard-mode: 편집기 카드·학생좌표 카드 둘 다)에는 사진이 없고
   대신 학생이 본 «빈 판»(.pv-wbstage)이 깔려 있어서, 덮으면 판의 테두리와 안내문이 통째로 사라진다
   (실측: 슬롯이 answer 사각형 640x295 를 그대로 덮었다). 획은 캔버스에 그리므로 영향이 없다.
   회귀 고정 = tests/frontend/gaze_board_own_render_20260902.spec.js */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-boardfit-mode.gz-editorcard-mode .gz-board-replay-slot:not(:empty) {
  background: transparent;
}

/* ★[HTML 슬라이드 계측 2026-08-19 · 리뷰]★ 이 둘은 author 규칙이 display 를 잡고 있어
   (`.rt-gaze-donut-mini{display:flex}` · `.rt-gaze-aoi-list{display:flex}`) UA 기본
   `[hidden]{display:none}` 을 «항상 이긴다» — `el.hidden = true` 만으로는 하나도 안 숨는다.
   이 저장소에서 반복된 함정이라 매번 이렇게 명시 탈출 규칙을 둔다
   (css/calib-games.css:705 `.rts-cg-board-list[hidden]` 과 동일 패턴). */
.rt-gaze-panel--light .rt-gaze-donut-mini[hidden],
.rt-gaze-panel--light .rt-gaze-aoi-list[hidden],
/* ★[2026-08-19 재리뷰]★ 목록은 «항상» .rt-gaze-aoi-unified 안에 있고, 그 wrapper 를 낀 규칙이
   (:6693 `.rt-gaze-panel--light .rt-gaze-aoi-unified .rt-gaze-aoi-list{display:flex}`)
   내 규칙과 «명시도가 같은데 뒤에» 있어 항상 이긴다 — wrapper 를 낀 선택자를 함께 둔다. */
.rt-gaze-panel--light .rt-gaze-aoi-unified .rt-gaze-aoi-list[hidden],
.rt-gaze-panel--light .rt-gaze-aoi-unified .rt-gaze-donut-mini[hidden] { display: none; }

/* ═══ [HTML 슬라이드 계측 2026-08-19] C안 무대 — 뷰포트 창 + 밀도 미니맵 ═══════════════
   ★무대 크기(aspect-ratio 16/9 · max-height 440px)를 바꾸지 않는다★ — 여기서는 무대 «안»만 그린다.
   문서는 그 시각 스크롤 위치로 흘러가고(transform 은 JS 가 매 프레임 계산), 오른쪽 띠가 문서
   전체의 시선 밀도를 보여준다. 띠 폭 34px + 여백 10px = HtmlSlideStage.MINI_RESERVE(44)와 짝이다 —
   한쪽만 바꾸면 문서 오른쪽이 띠 아래로 들어가 본문이 가려진다(목업에서 실측으로 잡은 결함). */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-htmldoc-mode { background: var(--surface); }
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-img {
  position: absolute; left: 50%; top: 0;
  transform-origin: 0 0;       /* JS 의 translateX(offsetX) 가 «무대 중앙 기준»으로 동작하게 한다 */
  will-change: transform;
  display: block; height: auto;
  background: var(--surface);
}
/* [페이지 오류 2026-08-31] 배경을 못 그렸을 때 무대에 남기는 안내 — 백지 + 전역 오류 토스트를 대신한다. */
.rt-gaze-slide-overlay .gz-stage-nodata {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; word-break: keep-all;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
/* [배경 한 규칙 2026-10-02] 배경을 깔 재료가 없는 슬라이드 — 위 안내만 두고 히트맵·경로(캔버스)는 가린다.
   배경 없이 점만 남으면 «어디를 봤나»가 아니라 빈 화면 위의 얼룩이 된다. 표식은 js/detail-report.js 가 무대에 건다. */
.rt-gaze-stage.gz-nobg > canvas { visibility: hidden; }
/* 「전체 누적 히트맵 — 재생을 누르면…」 배지도 함께 가린다 — 가린 히트맵을 가리키는 말이 된다. */
.rt-gaze-stage.gz-nobg > .rt-gaze-startcue { display: none; }

/* [2026-08-31] 캡처가 없는 회차는 «HTML 원본»을 같은 자리에 흘린다(sandbox iframe).
   ★max-width 상한을 반드시 푼다★ — `.rt-gaze-slide-overlay iframe { max-width:60% }`(5559행)는
   «슬라이드 재구성 카드 안의 작은 프레임»을 위한 값이라, 그대로 두면 학생이 1016px 로 보던 문서가
   60% 로 눌려 리플로우가 달라지고 스크롤 궤적의 y 가 다른 자리를 가리킨다
   (실측 1600px: 폭 1016 → 560, 사장님 *"학생은 실제로 가로너비 다 쓰는데 이렇게 좁게 나오고"*).
   ★pointer-events:none★ — 이 프레임은 배경이다. 살려 두면 문서가 밀도 띠 조작을 가로챈다. */
.rt-gaze-slide-overlay.gz-htmldoc-mode iframe.gz-htmldoc-frame {
  max-width: none; border: 0; border-radius: 0; box-shadow: none; pointer-events: none;
}
/* [전체 평균 썸네일 2026-09-01] 궤적이 없는 «전체 평균»의 HTML 배경 — 문서 맨 위 고정 정지 썸네일.
   ★max-width 상한을 여기서도 푼다★ — `.rt-gaze-slide-overlay iframe { max-width:60% }`(:6049)는
   «재구성 카드 안의 작은 프레임»을 위한 값이라, 그대로 두면 문서가 무대의 54% 폭으로 눌린다.
   ★새 클래스에만 건다★ — 그 60% 는 다른 유형의 재구성 카드가 여전히 쓴다(회귀 금지).
   ★pointer-events:none★ — 이 프레임은 배경이다. */
.rt-gaze-slide-overlay.gz-htmlthumb-mode iframe.gz-htmlthumb-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; border: 0; border-radius: 0; box-shadow: none; pointer-events: none;
}
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-mini {
  position: absolute; right: 10px; top: 10px; bottom: 10px; width: 34px; z-index: 3;
  border-radius: 6px; cursor: pointer;
  background: var(--gz-mini-track, rgba(15, 23, 42, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-mini:focus-visible {
  outline: 2px solid var(--focus, #2563eb); outline-offset: 2px;
}
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-mini-fill { position: absolute; inset: 0; }
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-mini-fill i {
  position: absolute; left: 3px; right: 3px; border-radius: 3px;
}
.rt-gaze-slide-overlay.gz-htmldoc-mode .gz-htmldoc-mini-win {
  position: absolute; left: 2px; right: 2px;
  border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .35);
  pointer-events: none;
}

/* [시선 AOI 근본통합 · Stage 1 · 2026-07-23] 편집기 AOILayout 카드 배경 —
   오버레이(gz-scaled: 960×540 설계 캔버스)를 꽉 채워, 편집기 %(role) 좌표와 시선점(srcRect 카드좌표)이
   '같은 사각형'에 정합되게 한다. .rtq-card-aoi 기본값(aspect 1/1·max-width 680)을 여기서만 해제. */
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-editorcard-mode {
  padding: 0; gap: 0; display: block;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay.gz-editorcard-mode .rtq-card-aoi {
  width: 100%; height: 100%; max-width: none; margin: 0;
  aspect-ratio: auto; border-radius: 10px; background: #fff;
}

/* [회차 130→131] 슬라이드 오버레이 안 RTQuiz.render() 콘텐츠 — 폰트·크기 확대 */
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-question {
  font-size: 28px; font-weight: 700; line-height: 1.35; max-width: 65%; margin: 0;
  color: #1f2937; word-break: keep-all; overflow-wrap: anywhere;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-img {
  position: absolute; top: 60px; right: 56px;
  max-width: 42%; max-height: calc(100% - 160px);
  object-fit: contain; border-radius: 10px; z-index: 2;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opts {
  display: flex; flex-direction: column; gap: 10px; max-width: 55%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opt,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-ox-btn {
  padding: 14px 18px;
  border: 1px solid #d1d5db; border-radius: 12px; background: #fff;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none; font-size: 16px; color: #1f2937;
  word-break: keep-all; overflow-wrap: anywhere;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opt.correct,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opt.is-correct,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-ox-btn.correct {
  border: 2px solid #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18);
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opt-num,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-opt-marker {
  width: 32px; height: 32px; border-radius: 50%;
  background: #ede9fe; color: #7c3aed;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
/* [회차 131] §2 draw 타입 빈 캔버스 placeholder — 학생이 본 그릴 영역 */
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-draw-canvas-placeholder {
  position: relative;
  width: 320px; height: 320px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-draw-canvas-grid {
  position: absolute; inset: 12px;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-draw-canvas-label {
  position: relative; z-index: 1;
  font-size: 12px; color: var(--gz-text-muted); /* WCAG: #94a3b8→gz-text-muted #475569 7:1, on white-ish label bg */
  background: rgba(255,255,255,0.85);
  padding: 4px 10px; border-radius: 6px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-short-input,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-video-embed,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-order,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-draw,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-shape,
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-match-box {
  background: #fff; border: 1px solid #d1d5db; border-radius: 10px;
  padding: 12px 14px; max-width: 60%; pointer-events: none;
  word-break: keep-all; overflow-wrap: anywhere;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rtq-notice {
  font-size: 13px; color: #475569; margin-top: 8px;
  word-break: keep-all; overflow-wrap: anywhere;
}

/* [회차 137 §1] 슬라이드 오버레이 — pv-* 데스크톱 미리보기 디자인 (회차 130~136 rtq-* 모바일 폐기)
   ([배경 한 규칙 2026-10-02] 미리보기 껍데기 `.pv-player`·`.pv-header` 규칙은 뺐다 — 그 껍데기를 만들던 최종 폴백을 걷었다.) */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-question {
  font-size: 28px; font-weight: 700; line-height: 1.35;
  color: #1f2937; max-width: 90%; margin: 0;
  word-break: keep-all; overflow-wrap: anywhere;
  white-space: pre-wrap;

  /* ★[2026-09-03] 편집기 상자를 여기까지 끌고 오지 않는다★
     `.quizn-editor .pv-question`(편집기 미리보기용 상자)은 <html> 스코프라, 같은 문서인 이 무대까지
     함께 걸린다. 학생 화면에는 그 상자가 없다 — 무대는 «학생이 본 것»을 그리는 자리라 여기서
     되돌린다(글자 규칙은 위 그대로). 경위는 4LEVEL 20260903-08.
     회귀 고정 = tests/frontend/gaze_stage_no_editor_chrome_20260903.spec.js */
  background: transparent; border: 0; border-radius: 0; padding: 0;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-question-img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* multi · ox · short · video — 학생이 답하는 컨트롤 영역 */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-opts {
  display: flex; flex-direction: column; gap: 10px; max-width: 55%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-opt-btn,
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-btn {
  padding: 14px 18px;
  border: 1px solid #d1d5db; border-radius: 12px; background: #fff;
  display: flex; align-items: center; gap: 14px;
  font-size: 16px; color: #1f2937; font-weight: 500;
  pointer-events: none; cursor: default;
  text-align: left; width: 100%;
  word-break: keep-all; overflow-wrap: anywhere;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-opt-btn:disabled,
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-btn:disabled {
  opacity: 1;   /* 회색 처리 막아 학생이 본 모습 그대로 */
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-opt-btn.pv-opt-correct,
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-btn.pv-opt-correct {
  border: 2px solid #f472b6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.18);
  color: #1f2937;
  font-weight: 700;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-wrap {
  display: flex; gap: 14px; max-width: 60%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-btn {
  flex: 1; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px; font-size: 22px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-ox-btn small {
  font-size: 12px; color: #64748b; font-weight: 500;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-short-wrap {
  max-width: 60%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-short-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid #d1d5db; border-radius: 10px;
  background: #fff; color: #1f2937; font-size: 15px;
  pointer-events: none;
}
/* [시선 영상 썸네일 2026-07-27] iframe(바로 아래 규칙)과 동일한 폭·라운딩·그림자로 정합 */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-video-thumb-wrap {
  max-width: 60%; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rt-gaze-panel--light .rt-gaze-slide-overlay iframe {
  max-width: 60%; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  pointer-events: none;
}
/* order */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slots-section { max-width: 55%; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-label {
  font-size: 13px; color: #475569; font-weight: 600; margin-bottom: 8px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slots {
  display: flex; flex-direction: column; gap: 8px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slot {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slot.correct {
  border: 2px solid #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.16);
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slot-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #ede9fe; color: #7c3aed;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-order-slot-text {
  color: #1f2937; font-size: 15px;
}
/* match */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-match-wrap {
  display: grid; grid-template-columns: 1fr 32px 1fr; gap: 12px;
  align-items: center; max-width: 70%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-match-col {
  display: flex; flex-direction: column; gap: 8px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-match-item {
  padding: 10px 14px;
  border: 1px solid #d1d5db; border-radius: 10px; background: #fff;
  color: #1f2937; font-size: 14px;
  pointer-events: none; text-align: left; width: 100%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-match-item.correct {
  border: 2px solid #f472b6;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.14);
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-match-arrow {
  text-align: center; color: var(--gz-text-muted); font-size: 18px; /* WCAG: #94a3b8→gz-text-muted #475569 7:1, match arrow glyph on light overlay */
}
/* shape · draw · notice — readonly placeholder */
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-shape-readonly,
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-notice-readonly {
  padding: 12px 14px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 10px;
  font-size: 14px; color: #475569; max-width: 60%;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-notice-readonly {
  border-left: 3px solid #fbbf24; border-top: none; border-right: none; border-bottom: none;
  background: rgba(252, 211, 77, 0.12);
  border-radius: 0 8px 8px 0;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-draw-readonly {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-draw-canvas-placeholder {
  width: 280px; height: 280px;
  background: #fff;
  border: 2px dashed #cbd5e1; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gz-text-muted); /* WCAG: #94a3b8→gz-text-muted #475569 7:1, placeholder text on #fff */
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-draw-answer {
  font-size: 14px; color: #475569;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .pv-draw-answer strong {
  color: #db2777; font-size: 18px; margin-left: 4px;
}

/* ── [시선 슬라이드 채움 2026-07-27] editorcard(.rtq-card-aoi) 콘텐츠가 AOI 영역을 채우게 ──
   위 gz-stu-mode 용 고정폭 캡(max-width 55~70%)이 editorcard 모드에도 그대로 걸려, AOI 영역(%)을
   넓혀도 문제·답 콘텐츠가 영역의 ~60%만 채우고 작게 좌상단에 남았다(사용자 지적: 슬라이드 3~10).
   editorcard 모드에서만 폭 캡을 풀어 영역을 채우고, 답 영역은 세로 중앙정렬, 폰트는 영역 크기에
   비례(컨테이너쿼리 cqh/cqw)해 키운다. gz-stu-mode(안내 글)와 라이브/응시 화면은 불변.
   선택자에 .gz-editorcard-mode(오버레이 2번째 클래스)를 더해 위 캡보다 특이성/소스순서로 이긴다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > *,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-ox-wrap,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-opts,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-short-wrap,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-video-thumb-wrap,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-match-wrap,
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-order-slots-section,
.rt-gaze-slide-overlay.gz-editorcard-mode iframe {
  max-width: 100%; width: 100%;
}
/* ★[라이브 2열 정합 2026-08-08 · 사장님 "객관식 같은 경우 한 줄에 보기가 2개로 나오던데"]★
   재구성 카드의 보기는 `.pv-opts { flex-direction: column }`(detail.css:5396) 이라 **항상 1열**이었다.
   실제 학생 화면은 2열이다 — `css/realtime.css:484`
     `html.v2 .rts-q-big .rtq-opts { grid-template-columns: 1fr 1fr; gap: 16px }`
   실측(realtime-student.html 에서 RTQuiz.render): 보기가 카드 기준 좌 9.2~48.4 / 우 51.2~90.4.
   ★시드 히트맵도 같은 2열로 맞췄다★ — `api/seed_gaze_engine.option_grid`.
     둘 중 하나만 바꾸면 히트맵이 보기 사이 빈 곳에 뜬다(그게 이 수정 전의 상태였다).
   보기가 1개뿐이면 열을 나눌 게 없으므로 1열(라이브의 좁은 화면 규칙과 같은 취지). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  align-content: start; grid-auto-rows: minmax(0, 1fr);
}
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-opts:has(> :only-child) {
  grid-template-columns: 1fr;
}
/* [단답 제출 행 2026-08-08 · 사장님 "8번 슬라이드 단답형 제출 버튼 잘려있고"]
   입력칸이 남은 높이를 다 먹어 제출 행이 답 영역 밖으로 밀려 잘렸다. 라이브처럼
   입력칸은 제 높이만 쓰고 제출 행이 그 아래에 자리를 갖게 한다(시드 답영역도 h130→h210 으로 넓혔다). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-short-wrap {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
}
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-short-wrap > .pv-short-input { flex: 0 0 auto; }
/* [2026-11-03] 라이브가 제출 버튼을 입력칸 «오른쪽» 한 줄로 옮겼다 — 입력칸이 남은 폭을 다 쓴다(워드클라우드 줄과 같은 모양) */
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-short-wrap .pv-wc-input-row > .pv-short-input { flex: 1 1 auto; min-width: 0; }
/* [슬라이드 형식 통일 2026-07-29] 종전 `justify-content:center` 는 유형마다 답 영역 시작점을 다르게 만들었다.
   실측(캔버스 960×540 · AOI 답영역은 전 유형 동일하게 top 202·h 297):
     순서/객관식/연결 = 내용이 297px 를 꽉 채워 중앙정렬이 무의미 → 202 에서 시작
     OX(내용 124px) → 289 · 단답(내용 50px) → 326 으로 혼자 아래로 밀렸다.
   결과: "슬라이드마다 텍스트 위치가 다 다르다 · 순서배열 슬라이드 형식을 유지해달라"(사장님 2026-07-29).
   ★AOI region 박스 자체는 그대로 두고 '내용물 정렬'만 위로 붙인다 → 시선 채점 좌표는 무변경(회귀 0). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a {
  justify-content: flex-start;
}
/* [정정 2026-07-29] 직전 커밋은 OX 버튼을 답 영역 100%(297px)로 늘렸는데 **과했다**.
   ①라이브 실측: `.rts-q-big .rtq-ox-btn { height: clamp(110px,13vw,160px) }`(realtime.css:788) 은 고정
     높이이고, `.rtq-ox` 는 realtime.css:68-71(flex:1 대상)·:47(grid stretch 대상) 어디에도 없어
     rbody-a(flex column) 안에서 `flex:0 1 auto` = 내용 높이 그대로 **상단 정렬**된다.
     1280×800 기준 OX 카드는 16:9·711×400(realtime.css:31-37) → 답 영역 232px 중 160px = **약 69%**.
     (직전 주석의 'min-height 84px' 은 `.rtq-opt`(객관식 보기) 값을 OX 로 잘못 인용한 것이라 정정한다.)
   ②시선 실측이 이를 뒷받침: 답 영역 202~499 중 히트는 **y≈344 에서 완전히 끝난다**
     (25px 버킷 cy319-344=1,305 → cy344-369=48 → 이후 0). 297px 로 늘리면 아래 155px 이 빈 흰 상자다.
   → 라이브 비율(69%)로 되돌리고, 글리프는 라이브 <button> 처럼 **세로 중앙**에 둔다
     (종전 `justify-content` 미지정 = flex-start 라 글리프가 버튼 맨 위에 붙어 있었다). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-ox-wrap { height: 69%; min-height: 0; }
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-ox-wrap > .pv-ox-btn {
  flex: 1 1 0; min-height: 0; justify-content: center;
}
/* [폭 캡 해제 2026-07-29] `.pv-question { max-width:90% }`(detail.css:5330)는 편집기 미리보기용인데
   재구성에도 걸려, 문제 텍스트가 AOI 문제영역(797px)의 90%(717px)에서 줄바꿈됐다. 라이브
   `.rtq-question` 에는 폭 캡이 없다(realtime.css:136-142) → 줄바꿈 위치가 학생 화면과 달라진다.
   실측 근거: 안내 슬라이드에서 히트는 cx920 까지 퍼지는데 재구성 텍스트는 x663 에서 끝났다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-q .pv-question { max-width: 100%; }
/* (문제 글씨 크기는 아래 「문항 잘림 2026-08-08」 블록이 정한다 — 여기에 또 두지 않는다.) */
/* [답영역 채움 2026-07-29] 워드클라우드 '집계 중' 블록·단답 제출행 — 라이브 학생 화면 재현.
   라이브는 `.rtq-card-aoi .rtq-wc-cloud { flex:1 1 auto }`(realtime.css:106)로 클라우드가 남은 높이를
   전부 먹는다. 재구성도 같게 해 답 영역 백지를 없앤다(종전 워드클라우드 채움률 17%). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-wc-wrap { height: 100%; min-height: 0; }
/* 토론도 라이브와 동일 — `.rtq-card-aoi .rtq-aoi-rbody-a > .rtq-discuss { flex:1 1 auto }`(realtime.css:71). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a > .pv-discuss-wrap { flex: 1 1 auto; min-height: 0; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-wc-wrap > .pv-wc-cloud-ph { flex: 1 1 auto; min-height: 0; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-wc-input-row { align-items: stretch; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-wc-ph-in { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-wc-submit {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700;
  border-radius: 10px; padding: 10px 22px; white-space: nowrap;
}
/* 답 영역이 커진 만큼 콘텐츠 폰트도 영역 기준으로 키운다(rbody-a·rbody-q 가 container-type:size). */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a .pv-ox-btn {
  font-size: clamp(16px, calc(10cqh + 3cqw), 44px);
}
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a .pv-opt-btn,
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a .pv-order-slot-text,
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-a .pv-match-item {
  font-size: clamp(12px, calc(4.5cqh + 1.6cqw), 26px);
}
/* [순서/연결 잘림 fix 2026-07-27] pv-order-slot·pv-match-item 박스가 답 영역보다 커 넘쳐 잘렸다
   (사장님: 순서보기 잘림) → 답 영역 높이를 나눠 담기게(flex·패딩 축소·overflow hidden). */
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-order-slots-section { height: 100%; display: flex; flex-direction: column; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-order-slots { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
/* [순서 쏠림 fix 2026-07-28] base .pv-order-slot 은 flex-direction:column+text-align:center(편집기 드롭존)라
   번호가 텍스트 위에 쌓이고 중앙정렬돼, 답 영역 가운데로 쏠려 '히트맵이 왼쪽으로 치우친 듯' 보였다
   (사장님 지적). 재구성은 실제 학생 순서슬라이드처럼 '① 항목' 가로 한 줄·좌측정렬로 answer 영역을 채운다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-order-slot {
  flex: 1 1 0; min-height: 0; padding: 6px 14px; overflow: hidden;
  flex-direction: row; align-items: center; justify-content: flex-start;
  text-align: left; gap: 12px;
}
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-order-slot-text { text-align: left; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-match-wrap { height: 100%; align-items: stretch; }
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-match-col { justify-content: space-evenly; min-height: 0; gap: 10px; }
/* [연결 테두리 fix 2026-07-28] 항목 높이 32px·1px 흐린 테두리라 '테두리가 너무 좁아 잘못 만든 슬라이드'
   처럼 보였다(사장님 지적) → 세로 여백을 키워 영역을 채우고, 테두리를 또렷하게(2px)+엷은 그림자로 실제
   보기항목처럼 보이게 한다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-match-item {
  padding: 10px 14px; overflow: hidden;
  border-width: 2px; border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
/* [라이브 정합 2026-07-29] 종전 `4cqh + 2.6cqw` 는 이 영역(848×130)에서 27.2px(실측 26.3px)로,
   라이브 학생 화면의 문제 텍스트 대비 **약 56%** 였다("글씨가 너무 작다" 지적의 실제 원인).
   라이브 실효값: `html.v2 .rts-q-big .rtq-question`(0,3,1 · realtime.css:470) = clamp(24,3vw,34px)
   → 1280 뷰포트에서 34px. 이게 `.rtq-card-aoi …`(0,3,0 · :96 = 상한 24px)를 특이성으로 이긴다.
   카드 폭 대비: 1:1 카드(680) 5.0% · 16:9 카드(1280×800 에서 711) 4.78% → **캔버스 960 환산 46~48px**.
   ★계수를 1.73배(27.2→47) 올린다. 폭 비율이 라이브와 같아지므로 **줄바꿈 위치도 라이브와 일치**한다
     (라이브 598px 폭에 34px = 17.6자/줄 ≈ 캔버스 848px 폭에 47px = 18.0자/줄).
   cqh 항을 남기는 이유: 교사가 문제영역을 낮게 잡으면 글자도 같이 줄어 넘침을 막기 위함(기존 설계 유지). */
/* ★[문항 잘림 2026-08-08 · 사장님 "4~11 슬라이드 전부 문항이 다 잘려"]★ 위 계수를 재보정한다.
   ★왜 잘렸나★ 위 1.73배(→ 실측 39~45px)는 **옛 AOI 박스**를 전제로 튜닝됐다. 당시 시드는 문제영역에
     고정 h27%(≈146px on 540 캔버스)를 줬고 2줄(≈127px)이 겨우 들어갔다. 2026-08-08 에 편집기 %표를
     **엔진 캡처 박스에서 유도**하도록 바꾸면서 문제영역이 **실제 높이**(1줄 97px·2줄 154px of 720
     → 540 캔버스에서 73·116px)가 되자, 같은 글씨가 상자를 넘어 `.rtq-aoi-region{overflow:hidden}` 에 잘렸다.
     alcdev2 실측(슬라이드 3~11 전부 `clipped:true`, 자르는 주체 `.rtq-aoi-q`).
   ★어떻게 정했나 — 임의 축소가 아니라 두 조건을 동시에 푼다★
     · 컨테이너 = `.rtq-aoi-rbody-q`(container-type:size) = 문제영역 − inset 16px. 폭 ≈848px(캔버스 960).
     · 조건① 담긴다 : 줄수 × 1.35F ≤ 영역높이(= 줄수×42.75 + 14)  →  F ≲ 31.7px
     · 조건② 줄바꿈이 시선 모델과 같다 : 한 줄 ≈30자(엔진 `_q_line_count` 의 cpl≈30) → F ≈ 848/30 ≈ 28px
       ★이게 2026-07-29 이 지키려던 것★ — 재구성의 줄 위치가 히트맵이 전제하는 줄 위치와 어긋나면
       "글자는 여기 있는데 열점은 저기" 가 된다. 계수만 바뀌고 그 의도는 그대로다.
     → 3.2cqw + 0.8cqh ≈ 27.9px. 1·2·3줄 모두 여유 있게 담기고 한 줄 30.4자로 엔진과 맞는다.
   cqh 항을 남기는 이유는 종전과 같다 — 교사가 문제영역을 낮게 잡으면 글자도 같이 줄어 넘침을 막는다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .rtq-aoi-rbody-q .pv-question {
  font-size: clamp(12px, calc(3.2cqw + 0.8cqh), 36px);
}
/* 그리기(draw) 답영역 — 캔버스 자리를 답 영역 크기에 맞춰 정사각으로 키우고 중앙 배치
   (realtime.css .rtq-draw-canvas 와 동일 스케일식). placeholder 기본은 280×280 좌측 정렬이라
   넓은 답 영역에서 작게 좌상단에 남았다. */
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-draw-readonly {
  width: 100%; align-items: center; justify-content: center;
}
.rt-gaze-slide-overlay.gz-editorcard-mode .pv-draw-canvas-placeholder {
  /* [그리기 칸 크기 fix 2026-07-28] 48cqh 라 답영역(≈258px)에서 124px 로 작게 남았다(사장님 지적)
     → 답 영역 높이의 대부분을 채우는 정사각(≈220px)으로 키운다. */
  width: min(85cqh, 70cqw, 300px); height: min(85cqh, 70cqw, 300px);
  font-size: clamp(11px, calc(2.4cqh + 0.8cqw), 15px);
}
/* [시선 재구성 정합 2026-07-27] gaze 슬라이드는 detail.html 안에서 렌더돼 .quizn-editor 편집기
   스타일(css/detail.css:8821 '.quizn-editor .pv-question::before{content:"제목"}')을 물려받아,
   학생은 안 보는 '제목'·'설명·코멘트' 편집기 라벨이 문제 위에 떴다. 재구성은 학생 화면을 흉내내야
   하므로 이 편집기 전용 라벨을 숨긴다(학생 라이브/응시엔 .quizn-editor 가 없어 원래 안 보임). */
.rt-gaze-slide-overlay .pv-question::before,
.rt-gaze-slide-overlay .pv-comment::before { content: none !important; }

/* ═══ [학생좌표 재구성 2026-09-02] 캡처 대신 «우리 슬라이드»를 학생이 본 자리에 그린다 ═══════
   사장님: *"슬라이드는 굳이 캡처안하고 우리가 가지고 있는 슬라이드로 렌더하면 되는데 왜 굳이
   캡처화면을 써서 화질이 안 좋고, 왜 작게 렌더링되는지"*.
   ★자리(left/top/width/height)는 CSS 가 아니라 JS 가 인라인 %로 박는다★ — 시선행에 저장된
     학생 뷰포트 사각형을 AOI 점선과 «같은 환산식»으로 옮긴 값이다(js/aoi-layout.js
     studentSpaceBoxes). 여기서 자리를 다시 정하면 두 벌이 되어 어긋난다.
   ★안쪽 규칙은 위 .gz-editorcard-mode 한 벌을 그대로 쓴다★ — 두 클래스를 함께 붙이므로
     (js/detail-report.js useStudentSpace) 아래에는 «캡처 사각형이라서 다른 것»만 적는다. */
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody {
  /* 캡처 사각형은 «영역»이 아니라 글·보기 블록 «자체»의 rect 다(realtime-student `_captureAoiBoxes`).
     기본 8px 안여백을 그대로 두면 한 줄짜리 문제 띠(1482×780 화면에서 46px)에서 글자가 잘린다. */
  inset: 0;
}
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-q .pv-question {
  /* 라이브 실효값 = `html.v2 .rts-q-big .rtq-question`(css/realtime.css:904)
       font-size: clamp(24px, 3vw, 34px) · line-height 1.35 · letter-spacing -.015em
     1482px 학생 화면에서 34px 이고, 저장된 문제 상자 높이 46px = 34 × 1.35 «한 줄» 과 맞는다.
     ★두 항의 min 을 쓰는 이유★ 폭 항(3.35cqw = 34/1016)은 «학생 화면과 같은 글자 폭»,
       높이 항(74cqh = 1/1.35)은 «상자에 한 줄이 들어가는 크기»다. 학생 문제가 두 줄이었으면
       상자 높이가 두 배라 높이 항이 커지므로 폭 항이 이겨, 여기서도 같은 글자 크기로 두 줄이 된다. */
  font-size: min(3.35cqw, 74cqh);
  letter-spacing: -.015em;
  line-height: 1.35;
  /* 라이브 `.rtq-question` 은 여백 없는 블록이다(css/realtime.css:551). 미리보기 계열에서 물려받은
     고정 안여백(12/14px)이 남으면 «글자를 아무리 줄여도» 띠(29px)를 못 넘어와 아래 맞춤 반복이
     바닥까지 내려간다(2026-09-02 실측: 5.45px 까지 줄어도 높이 31px). */
  padding: 0; margin: 0;
}
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-opt-btn,
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-ox-btn,
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-order-slot-text,
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-match-item {
  /* 라이브 `html.v2 .rts-q-big .rtq-opt { font-size: 21px }`(:914) → 답 상자 폭의 2.07%.
     문제(3.35cqw)와 «같은 비율 체계»로 둔다 — 한쪽만 크면 학생이 본 화면과 다르게 읽힌다.
     8px 바닥은 좁은 창에서 글자가 사라지지 않게 하는 하한이다. */
  font-size: max(8px, 2.07cqw);
}
/* 보기는 «제 높이»로 상자 위쪽에 붙는다 — 상자를 균등분할(위 gz-editorcard-mode 의
   `grid-auto-rows: minmax(0,1fr)`)하면 안 된다. 캡처 상자(`.rtq-opts`)는 학생 화면에서
   남는 높이를 다 받아 «내용보다 큰» 경우가 흔하고(실측: 보기 4개 상자 650px 중 내용 ~190px),
   균등분할하면 보기가 상자 아래까지 늘어나 학생이 본 자리와 어긋난다.
   치수는 라이브 실효값을 상자 폭 비율로 옮긴 것이다(css/realtime.css:908·914 · 상자 1016px 기준):
     gap 16px = 1.57% · 보기 최소높이 84px = 8.27% · 글자 21px = 2.07% · 번호원 32px = 3.15%. */
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a > .pv-opts {
  gap: 1.57cqw; grid-auto-rows: auto; align-content: start;
}
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-opt-btn,
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-ox-btn {
  min-height: 8.27cqw; padding: 1.38cqw 1.57cqw; gap: 1.57cqw; border-radius: 1.57cqw;
}
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-opt-pk {
  width: 3.15cqw; height: 3.15cqw; font-size: max(7px, 1.38cqw); flex: 0 0 auto;
}
/* 「제출」 단추 — 고정 px 패딩이라 좁은 상자에서 flex 에 눌려 글자가 「제」로 잘렸다(실측).
   다른 조각과 같은 상자 비율로 두고, 줄어들지 않게 한다. */
.rt-gaze-slide-overlay.gz-editorcard-mode.gz-stuspace-mode .rtq-aoi-rbody-a .pv-wc-submit {
  flex: 0 0 auto; padding: 1cqw 2.2cqw; font-size: max(8px, 1.7cqw); border-radius: 1cqw;
}

/* [회차 130→131 §6] AOI empty 상태 — list 항상 표시 + 별도 skeleton note */
 /* WCAG: gz-text-faint(#94a3b8)→gz-text-muted #475569 7:1, pct text on light */
.rt-gaze-panel--light .rt-gaze-aoi-skeleton-note {
  list-style: none;
  margin-top: 8px; padding: 10px 12px;
  background: var(--gz-bg-elev-2);
  border: 1px dashed var(--gz-border);
  border-radius: var(--gz-radius-sm);
  font-size: 11.5px; color: var(--gz-text-muted);
  line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere;
}
.rt-gaze-panel--light .rt-gaze-canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; background: transparent; pointer-events: none;
  /* [회차 139 §1] opacity 0.6 + multiply — 전문가 보고서 §2-1 권장. 베이지 콘텐츠와 자연 합성. */
  opacity: 0.6;
  mix-blend-mode: multiply;
}
/* [시선 경로 가시성 2026-07-08 ④] 경로 전용 캔버스 — full-opacity·normal blend 로 히트맵(0.6/multiply) 위에
   또렷하게. 경로가 히트맵에 묻혀 '잘 안 보이던' 문제 해소. 히트맵과 별도 캔버스라 서로 간섭 없음. */
.rt-gaze-panel--light .rt-gaze-path-canvas {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; background: transparent; pointer-events: none;
}
.rt-gaze-panel--light .rt-gaze-q-chip {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  background: rgba(124, 58, 237, 0.12); color: #6d28d9;   /* violet-700 on light */
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; backdrop-filter: blur(6px);
  border: 1px solid rgba(124, 58, 237, 0.18);
}
/* [재생바 0 시작 2026-08-05] 시작 지점에서는 그릴 시선 점이 0개다(timeCutMs=0). 빈 무대를 그냥 두면
   '데이터 없음'으로 읽히므로 그 자리에서 이유를 말한다. 위치·겹침 규약은 바로 위 .rt-gaze-q-chip 과
   같다(stage 기준 absolute · 캔버스 위 z-index). 클릭을 가로채지 않는다 — 아래 캔버스가 스크럽 대상이다. */
.rt-gaze-panel--light .rt-gaze-startcue {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rt-gaze-panel--light .rt-gaze-startcue[hidden] { display: none; }
/* ★불투명 카드로 감싼다 — 슬라이드 본문(제목·본문 텍스트) 위에 겹치므로 배경이 없으면 글자끼리
   포개져 둘 다 못 읽는다(2026-08-05 alcdev2 실화면에서 확인하고 고침). */
.rt-gaze-panel--light .rt-gaze-startcue-box {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: 320px; padding: 16px 20px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .16);
  text-align: center; word-break: keep-all;
}
.rt-gaze-panel--light .rt-gaze-startcue-ico {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; font-size: 13px;   /* [design-ok] 기존 값 그대로 — 이 줄은 «죽은 hex 폴백»만 걷었다(2026-10-03) */
}
.rt-gaze-panel--light .rt-gaze-startcue b { font-size: 13px; font-weight: 700; color: var(--text-body); }
.rt-gaze-panel--light .rt-gaze-startcue span:not(.rt-gaze-startcue-ico) { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
/* [개요 상태 2026-08-06] 같은 요소가 두 상태를 말한다 — 한 번에 하나만 보인다.
   ① 기본(.is-overview 없음) = '시작 지점' 안내 카드(무대가 비어 있으므로 중앙 카드가 맞다)
   ② .is-overview            = '전체 누적' 배지(무대에 히트맵이 있으므로 **덮으면 안 된다** → 좌하단 pill) */
/* ★숨김·되살림을 **같은 특이도로 짝지어** 쓴다 — 숨김 규칙만 두면 .rt-gaze-startcue-pill 의
   display:flex(특이도가 낮다)가 이겨내지 못해 배지가 어느 상태에서도 안 뜬다(2026-08-06 실제로
   그렇게 짰다가 브라우저 렌더로 잡았다). 자식 결합자(>)로 범위도 한 겹으로 못박는다. */
.rt-gaze-panel--light .rt-gaze-startcue > [data-cue="overview"] { display: none; }
.rt-gaze-panel--light .rt-gaze-startcue.is-overview > [data-cue="overview"] { display: flex; }
.rt-gaze-panel--light .rt-gaze-startcue.is-overview > [data-cue="zero"] { display: none; }
.rt-gaze-panel--light .rt-gaze-startcue.is-overview {
  /* 중앙 정렬을 풀고 좌하단으로 — 문항칩(.rt-gaze-q-chip)은 상단(기본 좌상단·v2 우상단)이라 겹치지 않는다. */
  align-items: flex-end; justify-content: flex-start; padding: 12px;
}
.rt-gaze-panel--light .rt-gaze-startcue-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  max-width: min(100%, 300px); padding: 7px 11px; border-radius: 10px;
  /* 히트맵 위에 얹히므로 불투명 배경이 필요하다(안내 카드와 같은 판단) — 토큰을 그대로 쓴다. */
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
  word-break: keep-all; text-align: left;
}
.rt-gaze-panel--light .rt-gaze-startcue-badge b { font-size: 12px; }
/* [회차 131] §5 Legend — stage 밖 하단 foot 영역 */
.rt-gaze-panel--light .rt-gaze-stage-foot {
  display: flex; justify-content: center; padding: 2px 0 4px;
}
.rt-gaze-panel--light .rt-gaze-legend {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gz-bg-elev-2);
  padding: 8px 18px; border-radius: 999px;
  font-size: 11.5px; color: var(--gz-text-muted);
  border: 1px solid var(--gz-border);
}
.rt-gaze-panel--light .rt-gaze-legend-bar {
  width: 200px; height: 8px; border-radius: 4px;
  /* ★[방향 뒤집기 2026-08-21 · 사장님]★ 왼쪽이 연하고 오른쪽으로 갈수록 진하다(=오래 응시).
     ★[색 정본 2026-09-06]★ 아래 정지점은 js/gaze-heat.js 의 STOPS.turbo 를 그대로 옮긴 값이다 —
     CSS 는 JS 를 못 읽어 손으로 복사할 수밖에 없다. STOPS.turbo 를 바꾸면 이 줄도 같이 바꿀 것. */
  background: linear-gradient(90deg, #30123b 0%, #4145ab 18%, #1ba2ba 35%, #48d16f 50%, #c2e02a 65%, #fb8022 80%, #900c00 100%);
}

/* ── Side 패널 (AOI · 도넛 · Insight) — [회차 131] §4 stretch ─────── */
.rt-gaze-panel--light .rt-gaze-side {
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; min-height: 0;
}
.rt-gaze-panel--light .rt-gaze-side-card {
  background: var(--gz-bg-elev); border: 1px solid var(--gz-border);
  border-radius: var(--gz-radius); padding: 14px 16px; color: var(--gz-text);
  flex-shrink: 0;
}

.rt-gaze-panel--light .rt-gaze-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rt-gaze-panel--light .rt-gaze-side-head h3 { font-size: 13px; font-weight: 700; margin: 0; color: var(--gz-text); }
.rt-gaze-panel--light .rt-gaze-info-tip { color: var(--gz-text-muted); font-size: 12px; cursor: help; }
.rt-gaze-panel--light .rt-gaze-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0 12px; border-bottom: 1px solid var(--gz-border-soft);
  font-size: 12px; color: var(--gz-text-muted);
}
.rt-gaze-panel--light .rt-gaze-total-val {
  font-size: 18px; font-weight: 800; color: var(--gz-text); font-variant-numeric: tabular-nums;
}
/* [회차 141 §1] 핵심 지표 3개 그리드 — "총 시선 시간" 다음 빈 영역 채움 (정착점/평균/화면밖) */
.rt-gaze-panel--light .rt-gaze-key-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin: 10px 0 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gz-border-soft);
}
.rt-gaze-panel--light .rt-gaze-stat-item { text-align: center; }
.rt-gaze-panel--light .rt-gaze-stat-val {
  font-size: 16px; font-weight: 800; color: var(--gz-text);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rt-gaze-panel--light .rt-gaze-stat-lbl {
  font-size: 10.5px; color: var(--gz-text-muted);
  margin-top: 3px;
}
.rt-gaze-panel--light .rt-gaze-aoi-list { list-style: none; padding: 12px 0 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rt-gaze-panel--light .rt-gaze-aoi-item {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; background: var(--gz-bg-elev-2); border-radius: var(--gz-radius-sm);
}
.rt-gaze-panel--light .rt-gaze-aoi-swatch { width: 8px; height: 24px; border-radius: 2px; }
.rt-gaze-panel--light .rt-gaze-aoi-name { font-size: 13px; font-weight: 600; color: var(--gz-text); }
.rt-gaze-panel--light .rt-gaze-aoi-desc { font-size: 11px; color: var(--gz-text-muted); margin-top: 2px; }

.rt-gaze-panel--light .rt-gaze-aoi-pct { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }


.rt-gaze-panel--light .rt-gaze-donut-swatch { width: 8px; height: 8px; border-radius: 50%; }
.rt-gaze-panel--light .rt-gaze-donut-name { flex: 1; color: var(--gz-text); }
.rt-gaze-panel--light .rt-gaze-donut-pct { color: var(--gz-text); font-weight: 700; font-variant-numeric: tabular-nums; }

.rt-gaze-panel--light .rt-gaze-insight-head { font-size: 13px; font-weight: 700; color: var(--gz-accent); margin-bottom: 8px; }
.rt-gaze-panel--light .rt-gaze-insight p { font-size: 12.5px; line-height: 1.55; color: var(--gz-text); margin: 0; word-break: keep-all; overflow-wrap: anywhere; }

/* ── Gaze Playback — [회차 131] §3 재설계 ────────────────────────── */
.rt-gaze-panel--light .rt-gaze-playback {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  align-items: center;
  gap: 24px;
  padding: 18px 24px 22px;
  background: var(--gz-bg-elev);
  border: 1px solid var(--gz-border);
  border-radius: var(--gz-radius);
  margin-top: 14px;
  /* [버그1] 스테이지의 절대배치 캔버스/오버레이(z-index 2~5)가 스테이지 박스를 넘쳐도
     재생 컨트롤(문항 마커) 바가 그 위에 확실히 오도록 자체 스태킹 컨텍스트 부여 */
  position: relative;
  z-index: 6;
}
.rt-gaze-panel--light .rt-gaze-pb-label { font-size: 12.5px; font-weight: 700; color: var(--gz-text); }
/* [버그1] 스테일 절대배치 재생바 CSS 제거 — .rt-gaze-pb-progress / .rt-gaze-pb-range /
   .rt-gaze-pb-markers(및 그 자식 marker-wrap/marker/marker-time/uniform-hint)는
   현재 JS 에서 전혀 쓰지 않는 폐기 레이아웃(대신 .rt-gaze-pb-markers-simple +
   별도 .rt-gaze-pb-time-slider 사용). top:30px / height:60px / position:absolute 가
   실수로 매칭되면 타임라인 바 위로 겹쳐 가림을 유발하므로 완전 삭제. */
.rt-gaze-panel--light .rt-gaze-disclaimer-foot {
  font-size: 11px; color: var(--gz-text-muted); /* WCAG: gz-text-faint→gz-text-muted #475569 7:1, disclaimer on light */
  /* [버그2] 시선 지속시간 범례(.rt-gaze-legend, 스테이지 foot 소속)와 서로 다른 컨테이너라
     좁은/임베드 레이아웃에서 붙어 겹치던 문제 → 상단 여백 + 구분선으로 세로 분리 보장.
     문구 자체는 윤리 가드로 유지. */
  text-align: center; padding: 14px 0 0; margin: 16px 0 0;
  border-top: 1px solid var(--gz-border-soft);
  word-break: keep-all; overflow-wrap: anywhere;
}


 /* WCAG: gz-text-faint 2.56:1 < 4.5:1 → gz-text-muted #475569 7:1 */
.rt-gaze-panel--light .rt-gaze-pb-r { display: flex; align-items: center; gap: 12px; }
.rt-gaze-panel--light .rt-gaze-pb-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--gz-text);
}
.rt-gaze-panel--light .rt-gaze-pb-toggle input { accent-color: var(--gz-accent); }

/* [회차 141 §4] AOI 점선 박스 — slide-overlay 위에 absolute 배치, 토글 ON 시 표시 */
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box {
  position: absolute;
  border: 2px dashed rgba(124, 58, 237, 0.55);
  border-radius: 6px;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="questionText"] { border-color: #a78bfa; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="image"]        { border-color: #38bdf8; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="answer"]       { border-color: #34d399; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-label {
  position: absolute; top: -10px; left: 8px;
  background: var(--gz-bg); color: #475569;
  padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  line-height: 1.4;
}
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="questionText"] .rt-gaze-aoi-debug-label { color: #7c3aed; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="image"]        .rt-gaze-aoi-debug-label { color: #0369a1; }
.rt-gaze-panel--light .rt-gaze-slide-overlay .rt-gaze-aoi-debug-box[data-aoi-debug="answer"]       .rt-gaze-aoi-debug-label { color: #047857; }

 /* WCAG: gz-text-faint→gz-text-muted #475569 7:1, disclaimer on light */

/* ── Dialog 모달 (detail.html은 main.css를 로드하지 않으므로 여기에 격리해서 정의) ── */
.dialog-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog-overlay.open { display: flex; }
.dialog-modal {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  display: flex; flex-direction: column;
  max-height: 92vh;
}
/* [디자인감사 E-6 2026-07-21] 고정 크기 모달(§0-A 5 · §3 모달 폭 룰)
   ★배경★ 높이 고정이 없어 콘텐츠가 늘면 모달이 커지고, 방금 누른 버튼이 아래로 움직였다
   (검색 결과 수·진행바 노출 등). 폭은 인라인 style 대신 data-size 로만 지정한다. */
.dialog-modal[data-size="sm"] { max-width: 480px; height: min(420px, 88vh); }
.dialog-modal[data-size="md"] { max-width: 640px; height: min(560px, 88vh); }
.dialog-modal[data-size="lg"] { max-width: 880px; height: min(680px, 88vh); }
.dialog-modal[data-size="xl"] { max-width: 1080px; height: min(760px, 88vh); }
.dialog-modal[data-size] .dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.dialog-modal[data-size] .dialog-header,
.dialog-modal[data-size] .dialog-footer { flex: 0 0 auto; }
@media (max-width: 600px) {
  .dialog-modal[data-size] { height: min(92vh, 640px); }
}
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.dialog-header h2 { font-size: 17px; font-weight: 700; margin: 0; }
.dialog-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.dialog-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}
.bank-import-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.bank-import-info { flex: 1; min-width: 0; }
.bank-import-info .bank-type-chip { margin-right: 8px; }

/* [BANK-13] 유형 칩 — detail.html 은 main.css 미로드이므로 base 스타일을 여기 정의.
   유형별 시맨틱 토큰 색을 부여(색 단독 아님 — _BANK_TYPES 의 이모지+라벨 병행).
   대비: 옅은 배경 + 진한 같은 계열 텍스트(WCAG AA 근사). */
.bank-type-chip {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 4px 8px; border-radius: var(--radius-pill, 999px);
  word-break: keep-all; line-height: 1.2; vertical-align: middle;
  /* [F-20260925-24-1] 글자 --text-muted → --text-body — 면 --bg 위 muted 는 4.05(v2 3.97)로 AA 미달이었다(type-notice 와 같은 고침 · 면은 그대로) */
  background: var(--bg); color: var(--text-body); border: 1px solid var(--border);
}
/* [요청] 가져오기 모달 유형 Chip 필터 — 클릭형 + 선택 강조(스코프: 배지 용도와 분리) */
#bankToProjTypeChips .bank-type-chip { cursor: pointer; font-family: inherit; padding: 5px 11px; font-size: 12px; transition: background .12s, color .12s, border-color .12s; }
#bankToProjTypeChips .bank-type-chip:hover { border-color: var(--primary); color: var(--primary-dark); }   /* 옅은 면(--bg) 위 학교 색 4.4 → 짙은 학교 색(④-10) */
#bankToProjTypeChips .bank-type-chip.on { background: var(--primary-fill); color: var(--text-on-primary); border-color: var(--primary-fill); }
/* [BANK-13] 유형칩: 밝은 배경 유지 + 전경은 700계열로 어둡게(소형 11.5px/700 → 본문 대비 AA 4.5:1↑ 확보). 색+이모지 병행. */
.bank-type-chip.type-multi  { background: var(--type-multi-bg); color: var(--type-multi-ink); border-color: var(--type-multi-ink); }   /* [F-20260924-24-4] 면이 --primary-tint 라 특수학교에서 주황이 됐다 → 제 색 토큰(common.css) */
.bank-type-chip.type-ox     { background: var(--success-light); color: var(--success-dark); border-color: var(--success-dark); }   /* [F-20260924-20-1] 고대비 옅은 면 위 hex 글자가 4.14 였다 → 토큰(평소 값은 종전과 같다) */
.bank-type-chip.type-short  { background: var(--warning-light); color: var(--warning-dark); border-color: var(--warning-dark); }
.bank-type-chip.type-order  { background: var(--info-light); color: var(--info-dark); border-color: var(--info-dark); }
.bank-type-chip.type-match  { background: #f5f3ff; color: #6d28d9; border-color: #6d28d9; }
.bank-type-chip.type-video  { background: var(--danger-light); color: var(--danger-dark); border-color: var(--danger-dark); }
.bank-type-chip.type-shape  { background: #fdf2f8; color: #be185d; border-color: #be185d; }
.bank-type-chip.type-draw   { background: #fff7ed; color: #c2410c; border-color: #c2410c; }
.bank-type-chip.type-notice { background: var(--bg); color: var(--text-body); border-color: var(--border); }   /* [F-20260924-89-1 · 결정 4=A] 글자만 본문색으로 — 면 위 muted 가 AA 미달이었다(회귀 시험 = tests/frontend/bank-chip-contrast-text.spec.js) */
/* [SV-6] 설문 척도(scale) 문항 뱅킹 칩 — 설문 계열은 teal 톤으로 구분 */
.bank-type-chip.type-scale  { background: #f0fdfa; color: #0f766e; border-color: #0f766e; }
.bank-import-owner { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.bank-import-q { font-size: 13px; color: var(--text); margin-top: 4px; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.5; }

/* ── [B0050] 카드 메타 (사용횟수·정답률 — GET /bank/questions/meta 집계) ── */
.bank-meta-row { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
/* [UX P2] '미흡 N개 숨김' 경고 — 스타일 없어 본문과 안 구분되던 것 → 경고색 부여 */
.bank-hidden-incomplete { color: var(--warning); font-weight: 700; }
.bank-meta-acc { white-space: nowrap; }
/* [BANK-14] 등록일 메타 */
.bank-meta-date { white-space: nowrap; }

/* ── [B0050 Phase1] hover 빠른 액션 ── */
.bank-quick-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .12s; flex-shrink: 0; }
.bank-import-row:hover .bank-quick-actions,
.bank-import-row:focus-within .bank-quick-actions { opacity: 1; }
/* [BANK-11] 빠른 액션 — .btn-icon(36x36) 위에 padding 만 덮으면 실클릭영역이 36 고정.
   min-width/height 로 40px 보장(데스크탑), 터치(hover:none)에선 44px 로 확대. */
.bank-quick { padding: 4px 8px; font-size: 13px; line-height: 1; min-width: 40px; min-height: 40px; }
/* 터치 기기 — hover 없으므로 항상 노출 + 44px 타깃 */
@media (hover: none) {
  .bank-quick-actions { opacity: 1; }
  .bank-quick { min-width: 44px; min-height: 44px; }
  .bank-applied-chip, .bank-applied-clear { min-height: 44px; }  /* [BANK-09] 터치 44px */
}

/* ── [B0050 Phase1] 인라인 미리보기 ── */
.bank-row-preview { margin-top: 8px; }

/* ── [B0050 Phase1] Empty State 강화 ── */
.bank-empty-state { padding: 24px 16px; text-align: left; max-width: 460px; margin: 0 auto; }
.bank-empty-head { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 12px; word-break: keep-all; }
.bank-empty-tips { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bank-empty-tips li { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; word-break: keep-all; }
.bank-empty-tips .link-btn { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bank-empty-tips .link-btn:hover { color: var(--primary-dark, var(--primary)); }

/* ── [B0052] 출처 칩 (통합검색 범위 — 전체/내/공개) ── */
.bank-source-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.bank-source-chip {
  /* [F-20260925-24-2] 선택 안 된 버튼 글자 --text-muted → --text-body(4.05·v2 3.97 → AA) · 면·선택 상태는 그대로 */
  background: var(--bg); border: 1px solid var(--border); color: var(--text-body);
  padding: 8px 16px; min-height: 44px; border-radius: var(--radius-pill, 999px);
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  word-break: keep-all; line-height: 1.2; transition: background .12s, color .12s, border-color .12s;
}
.bank-source-chip:hover:not(.on) { background: #e2e8f0; color: var(--text); }
.bank-source-chip.on { background: var(--primary-fill); color: var(--text-on-primary); border-color: var(--primary-fill); }
/* [BANK-B03] 키보드 포커스 가시화 */
.bank-source-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── [B0052] 카드 출처 칩 ── */
.bank-src-chip {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-pill, 999px); margin-right: 6px; word-break: keep-all;
  border: 1px solid transparent;
}
/* [F-20260924-89-2 · 결정 4=A] 출처 칩 두 개 — 면은 그대로, 글자(와 같은 색 테두리)만 한 단계 진하게.
   본색(--success · --primary)을 옅은 면에 얹으면 평소 모드에서 AA 미달이었다 — 공개 칩은 특수학교에서
   주색(주황)을 따라가 더 낮았다. -dark 는 네 모드(평소·고대비·특수·특수+고대비) 모두 4.5 를 넘는다.
   회귀 시험 = tests/frontend/bank-chip-contrast-text.spec.js */
.bank-src-chip.mine { background: var(--success-light); color: var(--success-dark); border-color: var(--success-dark); }
/* [BANK-04] 공개 출처 칩 — cyan(--info) 은 옅은 배경 대비 3:1 미달 → primary 계열로 통일.
   색단독 아닌 🌐+텍스트 병행 유지. */
.bank-src-chip.public { background: var(--primary-tint); color: var(--primary-dark); border-color: var(--primary-dark); }

/* ── [B0052] 결과 보조 통계 ── */
.bank-result-stat { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; }
/* [BANK-C02] 공개 100건 상한 고지 — 통계 줄 아래 옅은 배경의 안내 노트. */
.bank-result-limit {
  font-size: 11.5px; color: #92400e; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: var(--radius-sm);
  padding: 6px 10px; margin: 0 0 8px; word-break: keep-all;
}

/* ── [B0052] 최근 검색어 자동완성 드롭다운 ── */
.bank-kw-wrap { /* anchor for dropdown */ }
.bank-recent-dd {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(15,23,42,0.12)); max-height: 280px; overflow-y: auto;
  padding: 4px;
}
.bank-recent-head { font-size: 10.5px; font-weight: 700; color: var(--text-muted); padding: 4px 8px; }
/* [BANK-10] 최근 검색어 항목 — 터치 타깃 44px 보장. */
.bank-recent-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px; min-height: 44px; border-radius: var(--radius-xs, 4px); cursor: pointer;
}
.bank-recent-item:hover, .bank-recent-item.active { background: var(--primary-tint); }
.bank-recent-term { font-size: 12.5px; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.bank-recent-del {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 12px; line-height: 1; padding: 8px; border-radius: var(--radius-xs, 4px); flex-shrink: 0;
}
.bank-recent-del:hover { background: var(--danger-light); color: var(--danger); }

/* ── [B0052] 적용된 필터 칩 ── */
.bank-applied-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.bank-applied-label { font-size: 11px; font-weight: 700; color: var(--text-muted); }
/* [BANK-09] 터치 타깃 — 데스크탑 min-height 36, 터치(hover:none) 44 보장. */
.bank-applied-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary);   /* [감사 B 2026-09-25] --primary-tint 는 특수에서 주황 200 이라 3.83 */
  padding: 4px 12px; min-height: 36px; border-radius: var(--radius-pill, 999px);
  font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; word-break: keep-all;
}
.bank-applied-chip:hover { background: var(--primary-fill); color: var(--text-on-primary); }
.bank-applied-chip span { font-size: 10px; opacity: .8; }
/* [BANK-B03] 키보드 포커스 가시화 — 적용필터 chip + 모두지우기 */
.bank-applied-chip:focus-visible,
.bank-applied-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bank-applied-clear {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px; padding: 4px 8px; min-height: 36px;
}
.bank-applied-clear:hover { color: var(--text); }

@media (max-width: 640px) {
  .dialog-overlay { padding: 0; align-items: flex-end; }
  .dialog-modal { max-width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 94vh; }
}

/* ── 슬라이드 편집 — 「문항/안내 문구」 라벨 줄(라벨 + 상세편집 단추) ── */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* ── 저장 토스트 (우하단) ── 임시 저장은 회색, 일괄 저장은 초록 톤 */
.save-toast {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 9000;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  max-width: 340px;
}
.save-toast.show { opacity: 1; transform: translateY(0); }
/* ★버튼을 «품은» 토스트만 클릭을 받는다★ (2026-08-27 · 사장님이 검수 중 발견)
   ⚠ 증상: 「이전에 임시 저장한 N개 변경이 복원되었습니다」 안내의 「폐기」를 눌러도 아무 일이
     없고, 그 클릭이 뒤에 있는 «AI 도우미»(supLauncher · right:20/bottom:20)로 통과해 채팅이 열렸다.
     둘이 바닥 오른쪽 «같은 자리»를 쓰는데, 위 .save-toast 가 pointer-events:none 이라 토스트는
     클릭을 아예 안 받았기 때문이다(z-index 9000 은 그리는 순서일 뿐 클릭과 무관하다).
   ★그냥 지나가는 알림에는 none 이 맞다★ — 화면을 가리지 않으려는 의도다. 그래서 전부 켜지 않고
     «버튼이 든 것»에만 켠다. 표식은 js 가 붙인다(save-toast-actionable). */
.save-toast-actionable { pointer-events: auto; }
.save-toast-draft       { background: #2d3748; color: #fff; }
/* 복원 알림 — js/editor-guide.js 의 인라인 색을 옮겼다(값 그대로 · 다크 값은 이 파일 끝 · ④-10) */
.save-toast-restored { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; display: flex; align-items: center; gap: 10px; max-width: 520px; }   /* [design-ok] 인라인에서 옮김 · 값 그대로 */
.save-toast-commit,
.save-toast-commit-new  { background: var(--success-fill); color: var(--text-on-primary); }   /* 흰 글자 3.3 → 채움 이름(④-10) */


/* ── [다크 테마] 회차 편집기 «문제뱅킹에서 가져오기» 창(§0-B R222 · ④-10 · 2026-10-23) — 밝은 판 · 고대비는 위 값 그대로 ──
   유형 칩 가운데 밝은 판 고정 색을 쓰는 다섯 갈래(객관식 · 연결 · 도형 · 그리기 · 척도)만 어두운 면 + 밝은 글자로 옮긴다.
   색상은 테두리로 남긴다(유형은 이모지와 이름이 말한다 · 색은 보조 — BANK-13). 나머지 넷은 뜻 색 이름이라 이미 다크 값이다. */
@media screen {
html.theme-dark:not(:has(body[data-contrast="high"])) .bank-source-chip:hover:not(.on) { background: var(--bg-subtle); }
html.theme-dark:not(:has(body[data-contrast="high"])) .save-toast-restored { background: var(--warning-light); color: var(--warning-dark); border-color: var(--warning); }
html.theme-dark:not(:has(body[data-contrast="high"])) .bank-type-chip:is(.type-multi, .type-match, .type-shape, .type-draw, .type-scale) { background: var(--bg-subtle); color: var(--text); }
}

/* ═══ [다크 ④ 수업 리포트 2026-10-24] 다크에서만 — 시선 분석 색 묶음(위 .rt-gaze-panel--light 의 --gz-*)을 다시 정한다 ═══
   강조 보라(--gz-accent)는 값을 구분하는 색이라 요일 색 다크 짝(R104). 슬라이드 «종이»는 밝은 섬이다(common.css). */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-gaze-panel--light { --gz-bg: var(--surface); --gz-bg-elev: var(--surface-2); --gz-bg-elev-2: var(--bg-subtle); --gz-border: var(--border); --gz-border-soft: var(--border); --gz-text: var(--text); --gz-text-muted: var(--text-body); --gz-accent: var(--day-4-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-gaze-play-btn { background: var(--danger-fill); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .rt-gaze-slide-overlay .rt-gaze-aoi-debug-label { background: var(--surface); }
}
/* ════════════════════════════════════════════════════════════════════════════
   [R252 · 2026-11-02] 수업 리포트 회차별 «시선 분석» = 마디아 디자인 법칙(R242) 8번째 화면(5-3)
   사용자 «추천대로 진행해줘» (눌러 보는 시안 1~18 · 갈래 1 A · 3 A · 9 A · 11 A · 17 A · 18 B)
   정본 = docs/10_디자인/마디아_디자인법칙.md · 결정 = §0-B R252 · 회귀 가드 = tests/frontend/report_gaze_disc_madia_rules.spec.js
   ★두 자리에 같이 건다★ — 이 패널은 수업 리포트(main.html 직접 장착)와 임베드(detail.html?analyticsOnly=1)가 같은 부품이다.
     그래서 #lecdPanel 이 아니라 두 곳 모두에 있는 #tab-analytics #rtReportBody 로 좁힌다(직접 장착은 js/gaze-direct-mount.js 가
     앞에 자리 이름을 붙여 가둔다). 토론 분석 몫은 css/detail-interaction.css 끝 «R252» 묶음.
   남기는 것: 등급 딱지 색(R141) · 히트맵 · 경로 · 곡선(R171 · R177) · 집중도 산정 계산 내역(2026-08-21).
   ════════════════════════════════════════════════════════════════════════════ */
/* 10. 글자 기준 한 벌 — 수업 상세(R246 · .lecd-view)의 12 · 13 이 직접 장착에만 번져, 같은 부품이 임베드와 0.5~1px 달랐다
       (토론 직접 장착 시험 D8 «자리가 다른 요소 2316개» · F-20261101-21-1). 패널 뿌리에 같은 값을 적어 두 곳을 맞춘다. */
#tab-analytics .rt-rep-wrap { --text-xs: 12px; --text-sm: 13px; --rpt-cap-fs: 12px; --rpt-ctl-fs: 13px; --rpt-mid-fs: 18px; --rpt-h-fs: 20px; --rpt-num-fs: 32px; }
/* 1. 명단 고른 학생 — 파란 면 + 흰 글자 → 흰 면 + 주 색 테두리(M07 «고른 카드 = 얇은 테두리 하나») */
#tab-analytics #rtReportBody .rt-gz-stu-btn.on { background: var(--surface); border-color: var(--primary); box-shadow: none; color: var(--text); }
#tab-analytics #rtReportBody .rt-gz-stu-btn.on .rt-gz-stu-nm { color: var(--primary); }
#tab-analytics #rtReportBody .rt-gz-stu-btn.on .rt-gz-stu-meta { color: var(--text-muted); }
#tab-analytics #rtReportBody .rt-gz-stu-btn.allrow:not(.on) { background: var(--surface); }
/* 2. 명단 글자 14 · 12 · 등급 딱지 12 + 등급색 점(이모지 대신 · R017) */
#tab-analytics #rtReportBody .rt-gz-stu-nm { font-size: var(--text-base); }
#tab-analytics #rtReportBody .rt-gz-stu-meta { font-size: var(--rpt-cap-fs); }
#tab-analytics #rtReportBody .rt-gz-eng-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--rpt-cap-fs); }
#tab-analytics #rtReportBody .rt-gz-eng-badge::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* 3. 슬라이드 번호 줄 — 번호 · ‹ › 36 · 이름 13(5-2 슬라이드 번호 R251 ④ 와 같은 꼴) */
#tab-analytics #rtReportBody :is(.rt-gz-mklab, .rt-gz-mklab b, .rt-gaze-pb-marker-num) { font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gaze-pb-marker-btn { height: 36px; min-width: 36px; font-size: var(--rpt-ctl-fs); border-radius: 8px; }
#tab-analytics #rtReportBody .rt-gz-mk-nav { height: 36px; min-width: 36px; font-size: var(--rpt-mid-fs); border-radius: 8px; }
/* 4. 보기 전환 · AOI — 36 · 13 · 고른 쪽 흰 면 + 주 색 글자(R251 ② 한 꼴) */
#tab-analytics #rtReportBody .rt-gz-modes { height: 36px; box-sizing: border-box; align-items: stretch; }
#tab-analytics #rtReportBody .rt-gz-mode-btn { height: auto; padding: 0 12px; font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gz-mode-btn.on { color: var(--primary); }
#tab-analytics #rtReportBody .rt-gz-aoi-toggle { height: 36px; box-sizing: border-box; font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gaze-aoi-debug-label { font-size: var(--rpt-cap-fs); }
/* 5. 무대 위 안내 — 설명 문장 감춤(R162) · 유형 딱지 = 옅은 면 + 진한 글자(M07 상태 딱지) */
#tab-analytics #rtReportBody .rt-gaze-startcue-badge > span { display: none; }
#tab-analytics #rtReportBody .rt-gaze-startcue-badge { font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gaze-q-chip { background: var(--day-4-bg); color: var(--day-4-fg); border-color: transparent; box-shadow: none; font-size: var(--rpt-cap-fs); }
/* 6. 재생 줄 — ▶ 36 주 색(토론 재생과 같은 색) · 배속 36 · 시각 13 · 범례 알약 걷기 */
#tab-analytics #rtReportBody .rt-gaze-play-btn { width: 36px; height: 36px; background: var(--primary-fill); color: var(--text-on-primary); font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gaze-play-btn.playing { background: var(--primary-fill-hover); }
#tab-analytics #rtReportBody :is(#rtGazeWithinLabel, #rtGazeWithinClock) { font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gz-rate-btn { height: 36px; min-width: 40px; font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gz-rate-btn.on { background: var(--surface); color: var(--primary); border-color: var(--primary); }
#tab-analytics #rtReportBody .rt-gaze-legend.rt-gz-legend-inbar { background: none; border: 0; }
#tab-analytics #rtReportBody :is(.rt-gaze-legend span, .rt-gz-eng-footrow, .rt-gz-eng-footrow *, .rt-gz-eng-linelabel, .rt-gz-rate-lbl) { font-size: var(--rpt-cap-fs); }
/* 7. 오른쪽 칸 — 상자 셋 → 헤어라인(M05) · 본 시간 20 · 집중도 숫자 32(상자 걷기) · 단추 36 */
#tab-analytics #rtReportBody .rt-gz-rp-card { padding-left: 0; padding-right: 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
#tab-analytics #rtReportBody #rtGzViewSeen { font-size: var(--rpt-h-fs); }
#tab-analytics #rtReportBody .rt-gz-rp-h { font-size: var(--text-base); }
#tab-analytics #rtReportBody .rt-gz-sum-scope { font-size: var(--rpt-cap-fs); }
#tab-analytics #rtReportBody .rt-gz-calc-top { padding-left: 0; padding-right: 0; background: none; border: 0; }
#tab-analytics #rtReportBody #rtGzCalcScore { font-size: var(--rpt-num-fs); line-height: 1.1; }
#tab-analytics #rtReportBody #rtGzCalcEq { font-size: var(--rpt-cap-fs); }
#tab-analytics #rtReportBody :is(#rtGzCalcRows, #rtGzCalcRows *) { font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gz-rp-export .btn { height: 36px; font-size: var(--rpt-ctl-fs); }
/* 8. 인사이트 절 — 제목 18 · 상자 걷기 · 줄 설명 13 */
#tab-analytics #rtReportBody .rt-gz-insight-sec { padding: 8px 0 4px; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
#tab-analytics #rtReportBody .rt-gz-insight-h { font-size: var(--rpt-mid-fs); color: var(--text); }
#tab-analytics #rtReportBody .rt-gz-insight-item span { font-size: var(--rpt-ctl-fs); }
#tab-analytics #rtReportBody .rt-gz-insight-item b { font-size: var(--text-base); }
#tab-analytics #rtReportBody .rt-gz-insight-ico { background: none; }
/* 9. 휴대폰 — 명단 대신 펼침 목록 한 줄(js/detail-report-gaze-v2.js paintRoster) · 번호 줄 줄바꿈.
      명단(카드 22장 · 736px · 따로 스크롤)이 첫 화면을 덮어 무대에 닿으려면 명단을 끝까지 내려야 했다. */
#tab-analytics #rtReportBody .rt-gz-stu-msel { display: none; width: 100%; height: 44px; padding: 0 12px; font-size: var(--text-md); color: var(--text); background: var(--surface); border: 1px solid var(--border-input); border-radius: 8px; }
@media (max-width: 760px) {
  #tab-analytics #rtReportBody .rt-gz-stulist :is(.rt-gz-stu-btn, .rt-gz-fold, .rt-gz-fold-body) { display: none; }
  #tab-analytics #rtReportBody .rt-gz-stu-msel { display: block; }
  #tab-analytics #rtReportBody .rt-gz-stulist { height: auto; max-height: none; overflow: visible; }
  #tab-analytics #rtReportBody .rt-gz-markers { flex-wrap: wrap; row-gap: 8px; }
  #tab-analytics #rtReportBody .rt-gz-mk-scroller { max-width: 100%; }
}
