/* css/detail.css — 이 가족의 첫 조각 · 나머지 조각과 싣는 순서의 정본 = js/script-families.json(코드 구조 4계단④ · 2026-10-10) · 편집기 틀 · 잠긴 회차 · 결과 분석 탭 · 집중도 점수 · 탭 */
/* ── Container ─────────────────────────────────────────── */
/* [회차 86 E7] 데스크톱에서 좌우 여백 낭비 최소화 — Manus 가이드 1280px+ 권장. */
.detail-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 22px 60px;
}
/* 중간 폭 (~1280px 미만) — padding 살짝 줄여 콘텐츠 폭 확보 */
@media (max-width: 1280px) {
  .detail-container { padding: 20px 18px 60px; }
}
/* 1024px 이하 — 더 타이트하게, 700px 모바일 fallback 은 아래 별도 규칙 */
@media (max-width: 1024px) {
  .detail-container { padding: 16px 14px 48px; }
}

/* ── 상태 토글 스위치 (활성 ↔ 작성중) ──────────────────── */
.status-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  user-select: none;
}
.status-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.status-toggle-track {
  position: relative;
  width: 44px; height: 24px;
  background: var(--border);
  border-radius: 12px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.status-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.status-toggle input:checked + .status-toggle-track {
  background: var(--success);
}
.status-toggle input:checked + .status-toggle-track .status-toggle-thumb {
  transform: translateX(20px);
}
.status-toggle:hover .status-toggle-track {
  filter: brightness(0.95);
}

/* ── Locked Banner — [회차 81] 가이드 라이팅 패턴 적용 (상태/이유 한 줄 + 행동 한 줄) ───── */
.locked-banner {
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 12px;
  scroll-margin-top: 80px;
  display: flex; align-items: flex-start; gap: 12px;
}
.locked-banner .lb-ico { color: #b45309; flex-shrink: 0; margin-top: 2px; width: 20px; height: 20px; }
.locked-banner .lb-text { flex: 1; min-width: 0; }
.locked-banner .lb-title { font-size: var(--text-base); font-weight: 700; color: #78350f; line-height: 1.45; }
.locked-banner .lb-action { font-size: var(--text-sm); color: #92400e; margin-top: 4px; line-height: 1.55; }
/* [2026-09-06] 잠금 배너 안 버튼 줄 — 「그럼 어떻게 하나」를 막힌 이유 바로 밑에 둔다.
   ★막기만 하는 안내는 교사를 가둔다★ — 다음 행동이 같은 자리에 있어야 한다(UI_GUIDELINES §0-B). */
/* [2026-09-10] 「그래도 되는 것」 — 막는 말 아래에 점선으로 갈라 붙인다.
   ★색으로 구분하지 않는다★ — 같은 배너 안이라 amber 그대로 두고, 구분은 «선»이 한다
   (색만으로 뜻을 나르면 색각과 무관하게 읽히지 않는다 · §0-A 1 · WCAG 1.4.1). */
.locked-banner .lb-can {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed #fcd34d;
  font-size: var(--text-sm); line-height: 1.55;
}
.lb-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.locked-banner b { color: #78350f; }
/* 사용자가 활성 상태에서 「📋 문제관리」 탭을 누른 직후 짧은 펄스로 강조 — 미리보기로 자동 전환된 사실을 인지시킴. */
.locked-banner.flash-emph {
  animation: locked-pulse 1.8s ease-out;
}
@keyframes locked-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.55); background: #fde68a; }
  40%  { box-shadow: 0 0 0 10px rgba(245,158,11,0.00); background: #fde68a; }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); background: #fefce8; }
}

/* [F80] 실시간형 hero — 라이브 진행/편집 잠금 상태 읽기전용 표시(pill).
   수동 '활성' 토글을 대체. 라이브 ON=빨강(잠금) / OFF=회녹(편집가능). */
/* ★[hidden] 을 이겨야 한다★ — display:inline-flex 가 브라우저 기본 [hidden]{display:none} 을
   덮어써서, 편집 가능일 때 «빈 분홍 알약»만 남았다(2026-08-27 실측). */
.rt-livelock-pill[hidden] { display: none !important; }
.rt-livelock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  line-height: 1.5; cursor: default; user-select: none;
}
.rt-livelock-pill.is-live {
  background: #fef2f2; color: var(--danger-dark); border: 1px solid #fecaca;   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
  /* [정제4] '라이브 중' 신호를 다른 화면(status-badge.live 등)과 같은 강도로 —
     실수 편집 위험이 가장 큰 화면이라 경고 강도를 맞춘다. reduced-motion 은 아래 링 규칙이 따로 멈춘다(2026-09-26 — 전역 규칙만으로는 링이 끝값 0 에서 사라진다). */
  /* ★[2026-09-26] 글자를 흐리게 하는 펄스(status-pulse · opacity 1→.6)를 걷고 «테두리 번짐»으로★ —
     불투명도가 글자째 내려가 대비가 5.9 → 3.2~4.5 로 오르내렸다(AA 4.5 미달 구간 · 운영 스윕 0926).
     같은 박자(1.6초)·같은 «지금 진행 중» 신호를 글자는 그대로 두고 둘레 링(::after)으로만 낸다(R140 — 있던 움직임은 유지).
     reduced-motion 에서는 링을 멈춘 채 보인다(아래). */
  position: relative;
}
/* 링은 겉옷(::after)이 두르고 «불투명도만» 움직인다 — box-shadow 를 직접 움직이면 수업 내내 매 프레임 다시 칠한다(리뷰 5라운드) */
.rt-livelock-pill.is-live::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .28); /* [design-ok] 그림자가 아니라 «진행 중» 링 — 알약 글자색(#b91c1c) 계열 */
  opacity: 0; animation: rt-livelock-ring 1.6s ease-in-out infinite;
}
@keyframes rt-livelock-ring { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* 「동작 줄이기」에서는 링을 «멈춘 채 보이게» — 전역 규칙이 한 번만 돌리고 끝내면 끝값(0)에서 사라진다(리뷰 6라운드) */
@media (prefers-reduced-motion: reduce) { .rt-livelock-pill.is-live::after { animation: none; opacity: 1; } }
/* ★★「진행 «했음»」은 빨강이 아니다★★
   끝난 회차에 `is-live`(빨강 + 무한 펄스)를 쓰면 ①끝난 수업이 «지금 진행 중»처럼
   읽히고 ②같은 사실을 바로 위 잠금 배너(amber)와 **다른 색으로** 말한다(§0-A 10 전 화면 한 몸).
   빨강은 «지금 학생이 보고 있다»에만 남긴다 — 그때만 교사가 즉시 손을 떼야 하기 때문이다.
   ⇒ 진행함 = 배너와 같은 amber · 펄스 없음(색과 글자로 충분 · §0-A 1 과도한 깜빡임 금지). */
.rt-livelock-pill.is-ran {
  background: #fffbeb; color: #92400e; border: 1px solid #fcd34d;
}
.rt-livelock-pill.is-idle {
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
}

/* ── 잠긴 회차 = «읽기 전용 열람기» ──────────────────────────────────
   ★[2026-09-17 확정] 잠긴 회차도 편집기는 열린다 — 다만 전부 읽기 전용이다
   그래서 이 클래스가 하는 일은 하나다 — **도구를 치운다. 내용은 그대로 둔다.**

   하지 않는 것 3가지(모두 읽으려고 연 화면을 막는다):
     ① 투명 덮개(`.qm-lock-veil` · `#qmLockVeil`) — 스크린리더에 아무 말도 하지 않으면서
        마우스만 먹어 **슬라이드를 고르는 것까지** 막았다. 읽으라고 연 화면에서 읽기를 막는다.
     ② `filter: grayscale(1); opacity: .42` — 도구뿐 아니라 **우측 패널의 값**(정답·해설·
        채점 방식)까지 흑백으로 눌러, 교사가 확인하러 들어온 바로 그 내용이 안 읽혔다.
     ③ `.qm-editor-panel { pointer-events: none }` — 탭 전환·스크롤까지 죽는다.
   막는 자리는 화면이 아니라 서버다(`api/app/routers/quizzes.py` 가 이미 409). */
/* ★`position: relative` 는 남긴다★ — 덮개는 없앴지만 이 안의 다른 절대배치가 이 기준을 쓴다. */
#tab-questions { position: relative; }
.qm-layout.locked .qm-panel-header .btn,
.qm-layout.locked .qm-list-footer,
.qm-layout.locked .qm-item .drag-handle,
.qm-layout.locked .qm-card-acts,
.qm-layout.locked #nqTabElement,
.qm-layout.locked #nqTabTemplate,
.qm-layout.locked #nqPaneElement,
.qm-layout.locked #nqPaneTemplate,
.qm-layout.locked .qm-center-foot .btn,
.qm-layout.locked .qm-sbar-save .btn,
.qm-layout.locked .qm-save-state,   /* [2026-11-10 · 2단계] 저장할 수 없는 회차 — 저장 상태 대신 아래 한 문장(.qm-ro-savenote) */
.qm-layout.locked #qmPropsBar,   /* [2026-11-08 · 편집기 1단계 ⑩] 고른 칸의 서식 막대 — 읽기 전용에서 서식을 바꾸지 못하게 */
.qm-layout.locked .qm-el-vshield {   /* [2026-11-09 · 결정 6A] 영상 위 투명막(편집 중 끌기용)을 걷어 재생 단추가 눌리게 — 끌기는 js/editor-readonly.js 가 막는다 */
  display: none !important;
}
/* 고르는 것은 열려 있다 — 이 화면의 «목적»이다(옛 `cursor: default` 는 못 누르는 것처럼 보였다). */
.qm-layout.locked .qm-item { cursor: pointer; }
/* 저장 줄 자리에는 버튼 대신 한 문장 — 눌러 본 «뒤»에 알게 두지 않는다. */
.qm-ro-savenote {
  display: none;
  padding: 6px 11px; font-size: var(--text-xs, 12px); line-height: 1.5;
  color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px;
  white-space: nowrap;
}
.qm-layout.locked .qm-ro-savenote { display: block; }
.qm-ro-savenote b { color: #78350f; }
/* 읽기 전용 칸 — 회색으로 죽이지 않는다. «고칠 수 없다»만 옅은 바탕으로 말한다. */
.qm-layout.locked input[aria-readonly="true"],
.qm-layout.locked textarea[aria-readonly="true"],
.qm-layout.locked select[aria-readonly="true"] {
  background: var(--bg-subtle);
  cursor: default;
}

/* ── 주관식 채점 규칙 — 갈래 버튼 + 「이렇게 채점됩니다」 ─────────────
   ★토글 나열이 아니라 «갈래»다★ — 「복수정답 켬/끔」 하나로는 세 상태(하나만·모두·N개 이상)를
     담을 수 없었다. 그리고 맨 아래 «결과 문장»이 이 묶음의 핵심이다(교사는 옵션이 아니라 결과를
     알고 싶다 — 설정을 바꾸면 그 줄이 바로 바뀐다). */
.ef-rule-lab {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  margin: 12px 0 5px;
}
/* ★`:first-of-type` 이 아니라 «묶음의 첫 자식»이다★ — 「학생 답 나누기」는 제 부모(#efShortSplitRow)
   안에서 첫 라벨이라 `:first-of-type` 이 걸려 윗여백이 0 이 됐다(2026-09-17 실측: 앞 갈래에 붙었다). */
#efShortReqAllWrap > .ef-rule-lab:first-child { margin-top: 0; }
.ef-seg {
  display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--surface);
}
.ef-seg button {
  flex: 1; min-width: 0; padding: 7px 6px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-body);
  border-left: 1px solid var(--border); white-space: nowrap;
}
.ef-seg button:first-child { border-left: 0; }
.ef-seg button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--bg-subtle); }   /* 눌린 칸은 마우스를 올려도 채움 그대로 — 옅은 면 위 흰 글자 1.1 이었다(④-10) */
/* 고를 수 «없는» 갈래 — 정답이 1개뿐이면 「모두」·「N개 이상」은 같은 채점이라 막는다
   (2026-09-20 · 왜는 js/editor-short-rule.js sync 주석). 왜인지는 title 이 말한다. */
/* ★[2026-09-22] `--text-disabled` 는 «선언된 적이 없는» 토큰이었다★ — 어느 테마에도 값이 없어
   늘 하드코딩 폴백으로 떨어졌고, 그래서 테마를 바꿔도 이 글자색만 따라오지 않았다.
   ⇒ 새 토큰을 만들지 않고 «그 폴백과 같은 값을 가진» 정본 토큰(`--text-faint`)으로 바꾼다.
     라이트에서는 값이 같아 화면이 그대로이고, 다크·특수 테마에서는 이제 제대로 따라간다.
   ★폴백 색도 지웠다★ — 그 토큰은 세 테마 모두에 선언돼 있어(css/common.css) 필요 없고,
     남겨 두면 토큰 밖 색이 하나 더 남는다(§0-D D9·D10).
   가드 = tests/frontend/css_text_token_declared_20260820.spec.js(선언 없는 토큰을 잡는 게이트). */
.ef-seg button:disabled { color: var(--text-faint); cursor: not-allowed; }   /* [design-ok] 비활성 버튼 — WCAG 1.4.3 이 비활성 컨트롤을 대비 요건에서 빼 둔다(main.css 5636 과 같은 판단) — faint 가 맞다(F-20260926-18-2) */
.ef-seg button[aria-pressed="true"] { background: var(--primary-fill); color: var(--text-on-primary); }
.ef-seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ef-rule-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 12.5px; color: var(--text-body);
}
.ef-rule-sub[hidden] { display: none; }
.ef-rule-sub input { width: 68px; padding: 5px 8px; font: inherit; font-size: 12.5px;
  border: 1px solid var(--border); border-radius: 6px; }

/* [02 gap#1] 수업 분석 대시보드 상단 인라인 3탭(강의 전체 ↔ 회차별 ↔ 결과분석) — 레퍼런스 .tabs.
   비주얼만, 클릭은 lecture-detail.js 에서 기존 진입에 배선. */
html.v2 .lecd-an-vtabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 3px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,23,42,.06)); margin: 0 0 16px; }
html.v2 .lecd-an-vtab { padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: 0; cursor: pointer; transition: color .12s, background .12s; white-space: nowrap; }
html.v2 .lecd-an-vtab:hover:not(.on) { background: var(--bg-subtle); color: var(--text); }
html.v2 .lecd-an-vtab.on { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.28); }

/* [2026-07-06] 수업분석 익명화 — iframe(리포트) 내부 전파.
 *   부모 모달의 .anon 블러는 iframe 경계를 넘지 못하므로, detail-report.js 가 body.report-anon 을
 *   토글(URL ?anon=1 / postMessage lecdAnon)하면 학생·화자·팀 이름을 여기서 블러한다.
 *   학생 토론·턴테이킹·전사보드·시선·반응 타임라인 등 이름이 노출되는 모든 지점 커버.
 *   (iframe 문서에는 v2-02 클래스가 없을 수 있어 body.report-anon 로만 스코프) */
body.report-anon .anon-name,
body.report-anon td.nm,
body.report-anon .rt-disc-spkchip,
body.report-anon .rt-knet-team-name,
body.report-anon .rt-tt-team-name,
body.report-anon .rt-rx-tl-name,
body.report-anon .rt-fg-tip-name,
body.report-anon .rt-disc-rp-name,
body.report-anon .rt-disc-utt-spk,
body.report-anon .rt-disc-nd-sp,
body.report-anon .rt-sda-chip,
body.report-anon .rt-sda-ava,
body.report-anon .rt-sda-card-id b,
body.report-anon .rt-cp-dist-name,
body.report-anon .rt-disc-sub b,
body.report-anon .rt-disc-con-sp,
body.report-anon .rt-gz-stu-nm,
/* ★[2026-08-20 사장님 결정] 발화기록(STT)도 가린다 — 특수·일반 «둘 다»★
   이 화면만 익명화에서 빠져 있었다(오래된 누락). 다른 분석 화면은 이름이 흐려지는데
   발화기록만 그대로 보였고, 학번이 붙은 뒤로는 「가온 (S0001)」이 통째로 드러났다.
   ⚠**일반학교 화면도 함께 바뀐다** — 그래서 임의로 하지 않고 사장님 결정을 받았다.

   ★가리는 기준은 «누가 무엇을 말했나»다★ — 목록을 늘릴 때 이 기준으로 판단할 것.
     · `.rt-stt-spk`      그 발화의 화자(닫힌 상태에서도 이름·학번이 보인다) = 귀속
     · `.rt-stt-suggest`  「추천: 가온 · 지정」 = 이 발화가 그 학생일 것 같다는 귀속
   ⛔`.rt-stt-batch-sel`(일괄 지정)은 넣지 «않는다» — 닫힌 상태 글자가 「화자 선택…」이라
     이름이 안 보이고, 가리면 그 컨트롤을 쓸 수 없게 된다(귀속이 아니라 도구다).
   ⛔`title`(마우스 올리면 뜨는 말)에 남는 이름은 CSS 로 못 가린다 — 익명화가 «렌더 뒤
     클래스 토글»이라 이 저장소의 모든 화면이 같은 한계를 갖는다(이번 범위 밖). */
body.report-anon .rt-stt-spk,
body.report-anon .rt-stt-suggest { filter: blur(5px); -webkit-filter: blur(5px); user-select: none; transition: filter .12s; }

.an-main {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}


/* 모바일 — 좌측 패널을 상단 가로 정렬로 전환 */
@media (max-width: 720px) {
  .an-main { padding: 14px 12px; }
}

/* [회차 46 B9-4] 인쇄 시 워터마크 — 외부 공유 금지 안내 */
@media print {
  body::after {
    content: "🔒 학생 정보 — 외부 공유 금지 / ALC+ 출력본";
    position: fixed; bottom: 8mm; left: 50%; transform: translateX(-50%);
    font-size: 9px; color: #9ca3af; white-space: nowrap;
  }
}

/* [회차 42] 인쇄 시 — body.an-printing 클릭 직후 + @media print 둘 다 적용 */
@media print {
  /* 결과분석 외 모두 hide — sidebar / topbar / 다른 탭 / Hero / Tab 헤더 */
  .app-sidebar, .app-sidebar-backdrop, .app-topbar, .tab-bar, .hero, .editor-area, .qm-area,
  .commit-progress, .save-toast, .undo-toast { display: none !important; }
  .app-main, .app-shell, .app-content, body { background: #fff !important; }
  body { margin: 0; padding: 0; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 결과분석 영역만 보이게 */
  #analyticsContent { display: block !important; padding: 0; }
  /* details 모두 자동 펼침 */
  .an-qstats, .an-etc-section, .an-compare, details { display: block !important; }
  details[hidden] { display: block !important; }
  details > summary { font-weight: 800; margin-bottom: 8px; }
  details > summary::before, details > summary::after { display: none; }
}

/* [B0071 U-10] 실시간 세션 결과분석 리포트 인쇄/PDF — 리포트 영역만 출력.
   body.rt-printing 은 _rtGazeExportPrint() 가 window.print() 직전 토글.
   @media print 와 함께 적용 — 사이드바·탭·버튼 등 비리포트 요소 숨김 + 페이지 나눔. */
@media print {
  body.rt-printing .app-sidebar, body.rt-printing .app-sidebar-backdrop,
  body.rt-printing .app-topbar, body.rt-printing .tab-bar, body.rt-printing .hero,
  body.rt-printing .editor-area, body.rt-printing .qm-area,
  body.rt-printing .commit-progress, body.rt-printing .save-toast, body.rt-printing .undo-toast,
  /* 리포트 내 인터랙티브 컨트롤 — 선택·버튼·내보내기·재생바·슬라이더 숨김 */
  body.rt-printing .rt-rep-head, body.rt-printing .rt-gaze-export,
  body.rt-printing #rtGazeStu, body.rt-printing .rt-gaze-playback,
  body.rt-printing .rt-gaze-pb-time-slider, body.rt-printing .rt-gaze-pb-r,
  body.rt-printing .rt-rep-nav { display: none !important; }
  body.rt-printing .app-main, body.rt-printing .app-shell,
  body.rt-printing .app-content, body.rt-printing { background: #fff !important; }
  body.rt-printing { margin: 0; padding: 0; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 결과분석 리포트 영역만 보이게 */
  body.rt-printing #tab-analytics { display: block !important; padding: 0; }
  body.rt-printing .rt-rep-wrap { max-width: 100%; padding: 0; }
  /* 카드·시각화 페이지 나눔 회피 */
  body.rt-printing .rt-rep-card, body.rt-printing .rt-gaze-stage, body.rt-printing .rt-gaze-side-card, body.rt-printing .rt-gaze-panel--light { page-break-inside: avoid; box-shadow: none !important; }
}


/* [BR-1 P0 D-02] match 정답 미노출 중립 레이블 */
.pv-match-section { word-break: keep-all; }
.pv-match-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em;
}


/* [회차 117] 데모 데이터 배지 — 시선 데이터 없을 때 자동 주입된 더미 시각화임을 명시.
   [2026-09-25] 결과분석 탭(an-tl-*)을 걷은 뒤에도 이 배지만은 detail-report.js 「학생별 시선 시각화」가 쓴다 — 지우지 말 것. */
.an-tl-gaze-demo {
  display: inline-flex; align-items: center; padding: 2px 8px;
  font-size: 11px; font-weight: 700; color: #78350f;
  background: #fef3c7; border: 1px solid #f59e0b; border-radius: 999px;
  line-height: 1.6;
}

/* [회차 67] 학생별 반응 시간순 기록 — 타임라인 탭 본문 아래. */
.an-rx-log {
  margin: 16px 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.an-rx-log > summary {
  cursor: pointer; font-size: 13px; color: var(--text-body);
  list-style: none; padding: 2px 0;
}
.an-rx-log > summary::-webkit-details-marker { display: none; }
.an-rx-log > summary::before { content: '▸ '; color: var(--text-muted); }
.an-rx-log[open] > summary::before { content: '▾ '; }
.an-rx-log > summary b { color: var(--text); }
.an-rx-log-scroll { overflow-x: auto; margin-top: 10px; }
.an-rx-log-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-rx-log-tbl th {
  text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted);
  padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.an-rx-log-tbl td {
  padding: 7px 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle;
}
.an-rx-log-tbl tr:last-child td { border-bottom: none; }

/* ── [D-SLIDE-4] 단일 "집중도" 점수 표시 ──────────────────────────────
   탭 전환 + 시선 밖을 합산한 하나의 점수. 색 + 아이콘 + 형태(▲/─/▼) + 등급 텍스트(색 외 단서) 병기. */

/* ── Nav Row ─────────────────────────────────────────────── */
.nav-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}
/* [회차 86 E1] 목록으로 버튼 — ghost 톤으로 가벼움. 브레드크럼은 우측으로 자연스럽게. */
.nav-row .btn-outline.btn-sm { font-size: 12.5px; height: 30px; padding: 4px 12px; }
/* [편집기 1단계 2026-08-26] 뒤로·실행취소·다시하기 — 라벨 없이 화살표만.
   ★크기는 css/common.css 의 `.btn-icon.btn-sm`(30×30) 이 이미 준다 — 여기서 다시 적지 않는다.
   ★★선택자를 «바로 위 줄과 같은 무게»로 맞춘다★★ — 위 `.nav-row .btn-outline.btn-sm` 은 클래스 3개
     (0-3-0)라 `.nav-row .nav-hist-btn`(0-2-0)을 이긴다. 순서로는 못 이긴다 — 순서는 «무게가 같을 때»만
     따진다. 이걸 놓쳐서 화살표가 16px 이 아니라 12.5px 로 나오고 있었다(2026-08-26 리뷰 지적). */
.nav-row .nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-row .btn-outline.btn-sm.btn-icon { padding: 0; }
.nav-row .btn-outline.btn-sm.nav-hist-btn { font-size: 16px; line-height: 1; font-weight: 700; }
/* 되돌릴 것이 없을 때 — «흐리게만» 한다. disabled 가 아니라서 툴팁·포커스·스크린리더 이름이
   살아 있다(EditorNav.undo/redo 가 canUndo/canRedo 로 막으므로 눌러도 아무 일이 없다). */
.nav-row .btn-outline.btn-sm.nav-hist-btn.is-off { opacity: .38; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { font-size: 11px; }

/* ── Project Hero ────────────────────────────────────────── */
/* [회차 57] 히어로 영역 정돈 — radius-lg + shadow-sm. 헤더 톤 매칭. */
.detail-hero {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: var(--space-5) var(--space-6);
  margin-bottom: 0;
  box-shadow: var(--shadow-xs);
}
.hero-top     { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hero-badges  { display: flex; gap: 8px; align-items: center; }
.hero-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.hero-name    { font-size: var(--text-xl); font-weight: 800; margin-bottom: 6px; line-height: 1.3; color: var(--text); letter-spacing: -0.02em; }
.hero-desc    { font-size: var(--text-base); color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.hero-meta    {
  display: flex; align-items: center; gap: 16px;
  font-size: var(--text-sm); color: var(--text-muted);
  padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap;
}

/* ── Tab Navigation ───── [회차 57] tab-btn 더 큰 padding + gap, 아이콘 정렬 */
.tab-nav {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  gap: 2px;
}
.tab-btn {
  padding: 0 18px; height: 48px;
  border: none; background: none;
  font-size: var(--text-base); font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;   /* tab-nav 의 bottom border 와 정렬 */
  transition: color .15s var(--ease), border-color .15s var(--ease), background .12s var(--ease);
  font-family: inherit; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.tab-btn .ui-ico { color: currentColor; }
.tab-btn:hover:not(:disabled):not(.locked) { color: var(--text); background: var(--bg-subtle); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.tab-btn.disabled,
.tab-btn:disabled { opacity: 0.35; cursor: not-allowed; }
/* 활성 상태에서 '문제관리' 탭 — 회색 음영 + 자물쇠 아이콘, 진입 불가 느낌 */
/* ⛔[2026-09-10 실측] 이 줄은 «지금 화면에 안 나온다» — 손대지 말 것.
     `html.v2 .tab-nav { display: none }`(2026-08-30 확정)으로 탭 줄 자체가
     사라졌고, 그 웨이브는 운영(alc.seohub.kr)까지 승격돼 있다(js/env-flags.js PROMOTE).
     버튼은 `switchTab()` 이 클래스를 만지느라 DOM 에만 남아 있다.
     ★잠금을 «보여 주는» 자리는 이제 잠금 배너(.locked-banner)와 hero 칩(.rt-livelock-pill) 둘뿐이다★
     — 여기를 고치면 아무에게도 안 보이는 일을 하게 된다(CLAUDE.md 「죽은 화면 주의」). */
.tab-btn.locked { opacity: 0.45; cursor: not-allowed; color: var(--text-muted) !important; border-bottom-color: transparent !important; }
/* [회차 57] 자물쇠 — pseudo 인라인 SVG (data URL). text 이모지 모양 OS 의존 제거. */
.tab-btn.locked::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 6px;
  vertical-align: middle;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") no-repeat center / contain;
}
.tab-btn.locked:hover { opacity: 0.6; }

/* ── Tab Body ────────────────────────────────────────────── */
.tab-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ── [다크 테마] 잠긴 회차 안내(§0-B R222 · ④-10 · 2026-10-23) — 밝은 판 · 고대비는 위 값 그대로 ──
   amber 고정 색을 주의 짝(옅은 면 = --warning-light · 그 위 글자 = --warning-dark)으로 옮긴다. 진행 중 알약은 위험 짝. */
@media screen {
html.theme-dark:not(:has(body[data-contrast="high"])) :is(.locked-banner, .qm-ro-savenote, .rt-livelock-pill.is-ran) { background: var(--warning-light); color: var(--warning-dark); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
html.theme-dark:not(:has(body[data-contrast="high"])) :is(.locked-banner .lb-title, .locked-banner b, .qm-ro-savenote b) { color: var(--text); }
html.theme-dark:not(:has(body[data-contrast="high"])) .locked-banner :is(.lb-ico, .lb-action) { color: var(--warning-dark); }
html.theme-dark:not(:has(body[data-contrast="high"])) .locked-banner .lb-can { border-top-color: color-mix(in srgb, var(--warning) 45%, transparent); }
html.theme-dark:not(:has(body[data-contrast="high"])) .rt-livelock-pill.is-live { background: var(--danger-light); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
}

/* [2026-11-12 · 3-A ③] 주관식 빈칸 · 밀대 정지 그림(js/quiz-preview.js buildPreviewSlideHtml) — 편집 무대 · 문제뱅킹 · 다시 보기 */
.pv-blanks { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(160px, calc((100% - 20px) / 3)), 1fr)); gap: 10px; }
.pv-blank { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pv-blank-no { flex: none; font-weight: 700; color: var(--text-muted); }
.pv-blank .pv-short-input { flex: 1 1 auto; min-width: 0; }
.pv-slider { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-slider-in { width: 100%; accent-color: var(--primary); }
.pv-slider-ends { display: flex; justify-content: space-between; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); }
.pv-slider-ans { font-weight: 700; color: var(--success-dark); }
.pv-slider-val { min-height: 1.3em; text-align: center; font-size: var(--text-xl); font-weight: 800; color: var(--text); }   /* 🎓학생 미리보기 밀대 지금 값(js/quiz-render.js SHORT_SKIN.preview · 2026-11-12 · 3-A ③) */
