/* css/editor-classify.css — 분류하기 «묶음·카드» 입력 칸 (js/editor-classify.js · 2026-11-10 · 회신 A)
   지금은 편집 무대의 답지 칸 자리에 붙는다 · 편집기 개편 뒤에는 오른쪽 «내용 칸»에 그대로 붙는다(그래서 자리 규칙을 여기 두지 않는다). */
/* [2026-11-16 · 시안 m1~m5] 학생 화면과 같은 판(css/slide-stage.css .alc-slide-cls — 위 카드 줄 · 아래 묶음 칸) 위에 편집 부품만 얹는다. */
.cls-ed .alc-slide-cls-bins { min-height: 120px; }   /* 카드 줄이 길어도 놓을 칸이 남게 — 넘치면 판(.cls-ed)이 스크롤한다 */
.cls-ed-card { gap: 4px; padding: 3px 6px; position: relative; cursor: grab; user-select: none; background: var(--surface); }
.cls-ed-card .cls-ed-in { width: 8.5em; flex: 0 1 auto; }
.cls-ed-card.is-dragging { opacity: .4; }
.cls-ed-grip { flex: 0 0 auto; min-width: 24px; min-height: 32px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font: inherit; cursor: grab; touch-action: none; }   /* 손가락 끌기는 손잡이에서만 — 카드 몸통은 판 스크롤 */
.cls-ed-ghost { position: fixed; z-index: 1000; margin: 0; pointer-events: none; transform-origin: 0 0; box-shadow: var(--shadow-md); opacity: .95; }
.cls-ed-pool.is-over, .cls-ed-bin.is-over { outline: 3px solid var(--primary); outline-offset: -3px; }
.cls-ed-bh { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cls-ed-num { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); }
.cls-ed-gname { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.cls-ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cls-ed-in { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 4px 10px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.cls-ed-del { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.cls-ed-del:disabled { opacity: .4; cursor: default; }
.cls-ed-in:focus-visible, .cls-ed-grip:focus-visible, .cls-ed-del:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* [2026-11-13] 카드 그림 — 카드 앞 그림 칸(36px) · 올리기·빼기 작은 창 · 글 감추기 칸(설계 2026-11-13-picture-cards §8) */
.cls-ed-pic { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--border-input); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); font-size: var(--text-md); cursor: pointer; }
.cls-ed-pic.has-pic { border-style: solid; }
.cls-ed-pic img { display: block; width: 30px; height: 30px; object-fit: contain; }
.cls-ed-menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; display: flex; flex-direction: column; min-width: 128px; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-md); }
.cls-ed-menu button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; word-break: keep-all; }
.cls-ed-menu button:hover { background: var(--bg); }
.cls-ed-chk { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: var(--text-sm); color: var(--text-muted); word-break: keep-all; cursor: pointer; }
.cls-ed-pic:focus-visible, .cls-ed-menu button:focus-visible, .cls-ed-chk input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* [2026-11-20 · 사용자 «묶음은 회색 면 · 보기는 테두리 안에 갇히지 않게 · 가독성»] 묶음 = 테두리 없는 회색 면 · 카드 = 그 위의 흰 카드.
   묶음은 번호·이름으로 구분하므로 묶음마다 색을 달리하지 않는다(색만으로 구분하지 않는 규칙). 손잡이·그림·✕ 는 옅게 항상 둔다(태블릿은 올려 보기가 없다). */
.cls-ed .cls-ed-bin { border: 0; background: var(--bg); padding: 14px; border-radius: var(--radius-md, 8px); gap: 10px; }
.cls-ed .cls-ed-bh { margin-bottom: 4px; }
.cls-ed .cls-ed-gname { font-size: 1em; border-color: transparent; background: transparent; }
.cls-ed .cls-ed-num { width: 30px; height: 30px; border: 0; background: var(--text); color: var(--surface); font-weight: 700; }
.cls-ed .cls-ed-bin .cls-ed-card { border: 1px solid var(--border-strong); border-radius: var(--radius-md, 8px); padding: 6px 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .08)); }
.cls-ed .cls-ed-card .cls-ed-in { font-size: 1em; font-weight: 700; width: 9em; border-color: transparent; background: transparent; }
.cls-ed .cls-ed-card :is(.cls-ed-grip, .cls-ed-pic, .cls-ed-del) { opacity: .45; }
.cls-ed .cls-ed-card:is(:hover, :focus-within) :is(.cls-ed-grip, .cls-ed-pic, .cls-ed-del) { opacity: 1; }
/* [2026-11-20] 위 줄 이름표 «보기» — 작아서 안 보였다 · 묶음 이름보다 한 단계 작게 키우고 진한 글자색으로 */
.cls-ed .cls-ed-pool .alc-slide-cls-lab { font-size: 1.5em; font-weight: 700; color: var(--text); }

/* [2026-11-20] 묶음 색 — 묶음마다 교사가 고른다(기본 회색 · 번호·이름은 그대로라 색만으로 구분하지 않는다). 같은 색 값이 css/slide-stage.css(학생 미리보기) · css/realtime.css(라이브 학생)에도 있다 — 셋을 함께 고칠 것. */
.cls-ed .cls-ed-bh { position: relative; }
.cls-ed-col { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.cls-ed-col span, .cls-ed-sw { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--bg); }
.cls-ed-bin[data-c="blue"] .cls-ed-col span, .cls-ed-sw[data-c="blue"] { background: #dbe9fb; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed-bin[data-c="green"] .cls-ed-col span, .cls-ed-sw[data-c="green"] { background: #dcf1e0; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed-bin[data-c="yellow"] .cls-ed-col span, .cls-ed-sw[data-c="yellow"] { background: #fbf0c9; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed-bin[data-c="pink"] .cls-ed-col span, .cls-ed-sw[data-c="pink"] { background: #fbe0e8; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed-bin[data-c="purple"] .cls-ed-col span, .cls-ed-sw[data-c="purple"] { background: #e8e0f8; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed-colmenu { top: calc(100% + 4px); right: 0; left: auto; }
.cls-ed-colmenu button { display: flex; align-items: center; gap: 8px; }
.cls-ed-colmenu button[aria-pressed="true"] { font-weight: 700; background: var(--bg); }
.cls-ed-col:focus-visible, .cls-ed-colmenu button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cls-ed .cls-ed-bin[data-c="blue"] { background: #dbe9fb; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c="green"] { background: #dcf1e0; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c="yellow"] { background: #fbf0c9; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c="pink"] { background: #fbe0e8; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c="purple"] { background: #e8e0f8; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c] :is(.cls-ed-gname, .cls-ed-num) { color: #1f2937; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
.cls-ed .cls-ed-bin[data-c] .cls-ed-num { color: #fff; background: #1f2937; } /* [design-ok] 묶음 색 팔레트(R323) · 고른 색은 테마와 상관없이 같은 값 */
