/* reaction-assist-rooms.css — 수업 리포트 › 회차별 › 반응 분석 › AI도우미 «학생별 대화방» (2026-11-16 · 회신 3A · 4B)
 *   그리는 쪽 = js/reaction-assist-rooms.js · 자리 = js/reaction-panel.js(순위 칸 자리) · 시안 = Downloads ALC_AI대화_리포트화면_단추자리_20261116.html B.
 *   말풍선은 학생별 대화 칸과 같은 .rsa-*(css/report-student-assist.css)를 그대로 쓴다 — 여기는 목록 · 칸 나누기만.
 *   색: 주황 = 미해결(선생님이 답할 몫 · 학생별 표시 · 라이브 대화방과 같은 색) · 회색 = 질문 수(모두 답을 받음).
 */

/* 순위 제목 줄 — 보기 전환이 들어가면 단추 높이에 맞춰 가운데로 */
.ins-rank-h:has(.rxr-views) { align-items: center; }
.rxr-views { flex: 0 0 auto; }
.rxr-h { flex-wrap: wrap; }
.rxr-sum { flex: 1 1 auto; min-width: 0; font-size: var(--text-base); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rxr-filter { margin-left: auto; }

/* 두 칸 — 왼쪽 방 목록 · 오른쪽 대화. 칸마다 세로로만 굴린다(쪽 전체가 길어지지 않게 · 대화 앱과 같은 꼴) */
.rxr-body { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--space-3); padding: 0 var(--space-3) var(--space-3); }
.rxr-list, .rxr-conv { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.rxr-list { display: flex; flex-direction: column; max-height: min(640px, 70vh); overflow-y: auto; }
.rxr-conv { display: flex; flex-direction: column; min-width: 0; max-height: min(640px, 70vh); }
.rxr-none { margin: var(--space-4) var(--space-3); color: var(--text-muted); font-size: var(--text-sm); text-align: center; }

/* ── 방 하나 ── */
.rxr-room {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 8px 12px;
  border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text);
  text-align: left; font: inherit; cursor: pointer;
}
.rxr-room:last-child { border-bottom: 0; }
.rxr-room:hover:not(.is-on) { background: var(--surface-2); }
.rxr-room.is-on { background: var(--primary-tint); }
.rxr-room:focus-visible, .rxr-stu:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.rxr-av {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-subtle); color: var(--text-body); font-size: var(--text-base); font-weight: 700;
}
.rxr-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rxr-nm { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: var(--text-base); }
.rxr-sno { font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rxr-pv { font-size: var(--text-sm); color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rxr-rt { flex: 0 0 auto; }
.rxr-open {
  display: inline-block; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--radius-pill);
  background: var(--warning-fill); color: var(--text-on-primary);
  font-size: var(--text-sm); font-weight: 800; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums;
}
.rxr-nq { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; }

/* ── 대화 ── */
.rxr-ch { display: flex; align-items: center; gap: var(--space-2); padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rxr-who { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: var(--text-base); font-weight: 800; color: var(--text); }
.rxr-who small { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); }
.rxr-stu {
  flex: 0 0 auto; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--primary); font: inherit; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; cursor: pointer;
}
.rxr-stu:hover { background: var(--primary-tint); }
.rxr-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 14px 14px; }
.rxr-log:focus { outline: none; }
.rxr-tag { padding: 0 6px; border: 1px solid var(--warning-fill); border-radius: var(--radius-xs); color: var(--warning-dark); font-weight: 700; }
.rsa-q.is-hit .rsa-bq { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 슬라이드 상세 «AI도우미 대화» 줄 오른쪽 «대화 전체 ›» */
.emo-ch-room {
  flex: 0 0 auto; margin: -8px -6px -8px auto; min-height: 36px; padding: 0 8px; border: 0; border-radius: var(--radius-xs); background: none;
  color: var(--primary); font: inherit; font-size: var(--text-sm); font-weight: 700; white-space: nowrap; cursor: pointer;
}
.emo-ch-room:hover { background: var(--primary-tint); }
.emo-ch-room:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* [2026-11-18] 슬라이드 상세 «대화 전체 ›» 창 — 640×560 고정(폭 = 공용 data-size="md" · 높이 규칙은 수업 리포트에 안 실리는
   css/detail-gaze.css 에만 있어 여기 적는다) · 넘치면 대화 칸만 굴린다 */
#rxrConvDlg .dialog-modal { height: min(560px, 88vh); overflow: hidden; }   /* [design-ok] 공용 .dialog-modal 을 그대로 쓴다 — 이 창의 높이만 id 로 좁혀 정한다 */
#rxrConvDlg .rxr-conv { flex: 1 1 auto; min-height: 0; max-height: none; border: 0; border-radius: 0; background: none; }
#rxrConvDlg .rxr-conv-x { width: 36px; height: 36px; }

/* 좁은 화면 — 목록 위 · 대화 아래(목록은 짧게) */
@media (width < 760px) {
  .rxr-body { grid-template-columns: minmax(0, 1fr); }
  .rxr-list { max-height: 260px; }
}
