/* css/editor-activity-panel.css — 편집기 오른쪽 「세부설정」 맨 위 «활동수업 칸» (js/editor-activity-panel.js)
 * [2026-11-13 · 활동수업 3-4 Task 2] 활동(html) 슬라이드에서만 선다. 색·글자·모서리는 토큰만 쓴다.
 */

/* 옛 «HTML 파일 업로드» 줄은 감춘다 — 입력(#efHtmlFile)은 DOM 에 남겨 이 칸이 «대신 누른다»(저장 길은 하나) */
#editorPanel.eap-on .form-group:has(#efHtmlFile) { display: none; }

.eap { display: flex; flex-direction: column; gap: 10px; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.eap > * { min-width: 0; }
.eap-notice { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--text); }

.eap-links, .eap-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.eap .btn { text-decoration: none; min-height: 32px; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 4px; }
.eap .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.eap-fname { font-size: var(--text-sm); color: var(--text-muted); min-width: 0; flex: 1 1 100%; order: 2; overflow-wrap: anywhere; }
/* 잠긴 회차 — 파일을 바꾸는 단추는 숨긴다(내려받기는 남는다 · js/editor-readonly.js 와 같은 «누르는 것은 숨긴다» 규칙) */
.qm-layout.locked .eap-pick { display: none !important; }

.eap-h { margin: 2px 0 0; font-size: var(--text-sm); font-weight: 800; color: var(--text); }

/* [2026-11-18 · 설계 2026-11-18-activity-fit-scale ④] 가운데 미리보기 = 학생 무대(1280×720 · SlideStage) — 카드 안쪽 여백 없이 틀이 무대를 채운다 */
#qmCenterPreview .qm-center-prev-card.qm-html-stage { padding: 0; overflow: hidden; }   /* 카드 안쪽 여백 규칙(detail-editor.css html.v2 …:not(:has(.rtq-card-aoi)))보다 세게 */
/* [2026-11-24] 무대 감싸개(.qm-html-stage-box) — 유형 칩 줄 아래 «남은 칸»만 차지한다(자리 = css/detail-editor.css ⓓ 바로 아래 규칙 · PPT 장표 목록과 한 규칙).
   무대 배율(js/slide-stage.js)이 이 칸을 재므로 칩 줄만큼 아래가 잘리지 않는다(js/detail-center-preview.js 같은 날짜). */
.qm-html-stage > .alc-html-fit { width: 100%; height: 100%; }

/* [2026-11-18] 「화면 크기」(js/editor-activity-fit.js) — 단추 여섯 · 결과 한 줄 · 누를 대상 44px · 토큰 색만 */
.eap-fit { display: flex; flex-direction: column; gap: 8px; }
.eap-fit-seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.eap-fit-step { min-height: 44px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-body); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.eap-fit-step[aria-checked="true"] { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); }
.eap-fit-step:hover:not([aria-checked="true"]):not([aria-disabled="true"]) { background: var(--bg-subtle); }
.eap-fit-step[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.eap-fit-status { margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: 1.5; color: var(--text-body); background: var(--bg-subtle); }
.eap-fit-status.is-ok { background: var(--success-light); color: var(--success-dark); }
.eap-fit-status.is-bad { background: var(--warning-light); color: var(--warning-dark); }
.eap-fit-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eap-fit-seen { margin: 0; font-size: var(--text-xs); color: var(--text-muted); }
/* [2026-11-23] 음성 버튼(js/editor-activity-voice.js) — 「듣기」 페이지마다 한 줄 · 제목 없이 줄 이름 + 버튼(사용자 결정 A안)
   [2026-12-03] 줄 이름 = «몇 쪽 · 녹음이 대신할 말»(물음 글이면 무엇을 녹음할지 몰랐다) · 길면 두 줄까지(칸이 좁아 한 줄이면 대사가 안 보였다) */
.eap-voice { display: flex; flex-direction: column; min-width: 0; }
.eap-voice[hidden] { display: none; }
.eap-voice-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.eap-voice-row:last-child { border-bottom: 1px solid var(--border); }
.eap-voice-q { margin: 0; font-size: var(--text-sm); font-weight: 700; line-height: 1.45; color: var(--text); word-break: keep-all; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.eap-voice-file, .eap-voice-rec { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--text-sm); color: var(--text-body); }
.eap-voice-file > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eap-voice-rec { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.eap-voice-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.eap-voice-acts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.eap-voice-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eap .btn:disabled { opacity: .5; cursor: not-allowed; }
/* 잠긴 회차 — 바꾸는 단추는 숨긴다(「듣기」는 남는다 · 위 .eap-pick 과 같은 규칙) */
.qm-layout.locked .eap-voice-edit { display: none !important; }

/* [2026-11-19] 「자동」 표시 — 자동이 맞춘 값일 때 제목 옆에 (직접 고르면 사라진다) */
.eap-fit-chip { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; background: var(--success-light); color: var(--success-dark); vertical-align: middle; }
.eap-fit-chip[hidden] { display: none; }
