/* [css/ai-make-entry.css] «Claude·ChatGPT로 만들기» 창과 입구 단추 (2026-11-22) — js/ai-make-entry.js */
/* 창은 고정 크기다 — 줄이 늘어도 창과 단추 자리는 그대로, 본문만 굴러간다 */
#aiMakeDlg .dialog-modal { width: min(440px, 92vw); height: 340px; max-height: 92vh; display: flex; flex-direction: column; } /* [design-ok] 공용 .dialog-modal 에 id 로 크기만 준다 */
#aiMakeDlg .dialog-body { flex: 1; min-height: 0; overflow-y: auto; }
.aime-msg { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
.aime-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aime-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.aime-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; word-break: keep-all; }
.aime-name { font-size: var(--text-md); color: var(--text); }
/* 연결됨은 색만이 아니라 체크 모양과 글자로 알린다 */
.aime-state { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); font-weight: 600; color: var(--primary); }
.aime-acts { display: flex; gap: 8px; flex-shrink: 0; }
/* 대시보드 머리 단추 — 확인 전엔 숨긴다(.btn 의 display 가 hidden 을 이기지 않게) */
#dqAiMakeBtn[hidden] { display: none; }
/* 편집기 위 줄 단추(detail.html · 2026-11-24) — 줄 오른쪽 끝 · 확인 전과 회차 편집이 아닌 모드에서는 숨어 있다(js wireNavBtn) */
.nav-row #navAiMakeBtn { margin-left: auto; flex-shrink: 0; }
/* 좁은 편집기(1279 이하 · 목록이 아이콘 줄로 접히는 폭 css/detail.css)에서는 글자를 접고 아이콘만 — 줄이 두 줄로 넘어가 편집기 높이를 먹지 않게(이름은 aria-label · title 이 말한다) */
@media (max-width: 1279px) { #navAiMakeBtn .nav-ai-tx { display: none; } }
#navAiMakeBtn[hidden] { display: none; }
/* 잠긴 회차(수업 기록 열람 · js/editor-readonly.js 가 .qm-layout.locked 로 도구를 감춘다)에서도 감춘다 — AI 연결도 수업한 회차는 고치지 않는다 */
body:has(.qm-layout.locked) #navAiMakeBtn { display: none; }
/* 연결 단계 안내 창 — 고정 크기 · 영상 1280×720 을 16:9 로 · 바깥을 눌러도 닫히지 않는다(js openGuide) */
#aiGuideDlg .dialog-modal { width: min(720px, 94vw); height: min(660px, 92vh); display: flex; flex-direction: column; } /* [design-ok] 공용 .dialog-modal 에 id 로 크기만 준다 */
#aiGuideDlg .dialog-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
#aiGuideDlg .dialog-footer { display: flex; gap: 8px; }
#aiGuideDlg .aimg-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.aimg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aimg-step { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); font: inherit; font-size: var(--text-sm); cursor: pointer; word-break: keep-all; text-align: left; }
.aimg-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-weight: 700; }
/* 지금 단계는 색만이 아니라 굵은 글자·두꺼운 테두리·채운 번호로 알린다 */
.aimg-step[aria-current="step"] { color: var(--text); font-weight: 700; border: 2px solid var(--primary); padding: 9px 11px; }
.aimg-step[aria-current="step"] .aimg-num { background: var(--primary); border-color: var(--primary); color: var(--text-on-primary); }
.aimg-clip { position: relative; aspect-ratio: 16 / 9; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.aimg-clip video { display: block; width: 100%; height: 100%; object-fit: contain; }
.aimg-clip video[hidden], .aimg-noclip[hidden] { display: none; }
.aimg-noclip { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: var(--text-sm); }
.aimg-lines { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: var(--text-md); line-height: 1.5; word-break: keep-all; }
.aimg-url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.aimg-url[hidden] { display: none; }
.aimg-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: var(--text-sm); }
