/* css/editor-type-menu.css — 유형 칩 단추와 유형 메뉴 (2026-11-16 · js/editor-type-menu.js)
   설계 = docs/superpowers/specs/2026-11-12-editor-type-chip-student-view-design.md §4-2 */

/* 칩 줄은 무대에서 «보이기만» 한다(css/editor-element-box.css) — 단추가 된 칩만 누를 수 있게 한다 */
#qmCenterPreview .pv-header .type-badge.etm-chip {
  pointer-events: auto;
  cursor: pointer;
  gap: 4px;
  border: 1px solid transparent;
}
#qmCenterPreview .pv-header .type-badge.etm-chip:hover,
#qmCenterPreview .pv-header .type-badge.etm-chip[aria-expanded="true"] { border-color: currentColor; }
#qmCenterPreview .pv-header .type-badge.etm-chip:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 2px; }
.etm-caret { font-size: .85em; line-height: 1; }
/* 칩을 그리지 않는 편집 보기(전자칠판 · PPT·PDF · 활동수업 · 도형 이동)에 모듈이 직접 두는 칩 줄 */
#qmCenterPreview > .pv-header.etm-own { align-self: flex-start; margin: 8px 0 8px 18px; }
#qmCenterPreview > .pv-header.etm-own .type-badge { background: var(--surface, #fff); border-color: var(--border, #e5e7eb); font-size: var(--text-sm); }

/* 메뉴 — 고정 크기(항목 수와 무관 · 넘치면 안쪽 스크롤) */
.etm-menu {
  position: fixed;
  z-index: 1200;
  width: 208px;
  height: 476px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 6px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  word-break: keep-all;
}
.etm-group { padding: 6px 8px 4px; font-size: var(--text-sm); font-weight: 600; color: var(--text-muted, #64748b); }
.etm-sep { height: 1px; margin: 6px 4px; background: var(--border, #e5e7eb); }
.etm-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 32px; padding: 4px 8px;
  border: 0; border-radius: var(--radius-xs); background: transparent;
  font: inherit; font-size: var(--text-base); color: var(--text, #1f2937); text-align: left; cursor: pointer;
}
.etm-item:hover, .etm-item:focus-visible { background: var(--surface-2, #f1f5f9); }
.etm-item:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: -2px; }
.etm-item[aria-checked="true"] { background: var(--primary-50, #eff6ff); color: var(--primary-700, #1d4ed8); font-weight: 600; }
.etm-item[aria-checked="true"]::after { content: '✓'; margin-left: auto; }
.etm-ico { width: 20px; text-align: center; }
