/* ===== 단어장 관리(강사) 화면 전용 스타일 (2026-10-05) =====
   공통 토큰·버튼·카드는 voca.css. 여기는 편집기·가져오기 등 관리 화면에만 쓰는 것.
   알약 모양 태그·칩은 쓰지 않는다 (2026-10-05 강사 지시) — 상태는 글자 색으로만 표시 */

.vc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vc-muted { color: var(--muted); font-weight: 400; }

/* 메뉴 — 링크(a)로 바꿈. 준비 중 메뉴는 흐리게 */
.vc-tab.is-off { opacity: 0.75; cursor: default; }
.vc-tab.is-off:hover { color: var(--muted); }

.vc-btn--sm { height: 38px; padding: 0 16px; font-size: 0.88rem; }

/* ===== 세트 편집기 ===== */
.vc-ed__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.vc-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
}
.vc-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.vc-ed__status { font-size: 0.85rem; color: var(--muted); }
.vc-ed__status b { color: var(--purple); font-weight: 700; }
.vc-ed__status .is-dirty { color: var(--danger); font-weight: 500; }

.vc-ed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vc-ed__title-wrap { flex: 1 1 280px; min-width: 0; }
/* 세트명 — 큰 제목처럼 보이다가 누르면 고칠 수 있음 */
.vc-ed__title {
  width: 100%;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  padding: 4px 10px;
  margin-left: -10px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.vc-ed__title:hover { background: var(--lav); }
.vc-ed__title:focus { outline: none; background: #fff; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--lav-2); }
.vc-ed__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.vc-ed__help {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
  padding: 10px 14px;
  background: var(--lav);
  border-radius: 12px;
  margin-bottom: 16px;
}
.vc-ed__help b { color: var(--purple); font-weight: 500; }

/* 카드 줄: 번호 | 칸들 | 도구. 칸 이름 줄은 그 안의 칸들(1 : 1.4 : 1.6)에 맞춤 */
.vc-crd {
  display: grid;
  grid-template-columns: 28px 24px minmax(0, 1fr);   /* 손잡이 | 번호 | 칸들 (2026-10-06 +/− 버튼 대신 손잡이) */
  gap: 10px;
}
.vc-ed__cols {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.25fr) minmax(0, 1.3fr) minmax(0, 1.45fr);
  gap: 0 8px;
  padding: 0 13px 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.vc-ed__cols > span:nth-child(2) { margin-left: 2px; }

.vc-crds { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vc-crd {
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.vc-crd:focus-within { border-color: #d9cef1; background: #fdfcff; }
.vc-crd.is-dup { border-color: #e6cf9e; background: #fdf9ef; }
.vc-crd.is-err { border-color: #e0a3b3; background: #fdf3f5; }
.vc-crd__no {
  padding-top: 9px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-2);
  font-variant-numeric: tabular-nums;
}
.vc-crd__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vc-crd__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.3fr) minmax(0, 1.45fr);
  gap: 8px;
}

/* 입력칸 — 글이 길면 아래로 늘어남 (autoGrow) */
.vc-cell {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.vc-cell::placeholder { color: var(--placeholder); }
.vc-cell:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--lav-2); }
.vc-cell--word { font-weight: 500; }
.vc-crd.is-err .vc-cell:placeholder-shown { border-color: #e0a3b3; }

/* 인정 답안 — 알약이 아니라 글자 + 작은 × */
.vc-crd__acc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  font-size: 0.82rem;
  padding: 0 2px;
}
.vc-crd__acc-label { color: var(--muted); }
.vc-acc { color: var(--purple); font-weight: 500; }
.vc-acc small { color: var(--placeholder); font-weight: 400; margin-left: 3px; }
.vc-acc__x {
  border: none;
  background: none;
  color: var(--placeholder);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 2px;
  margin-left: 1px;
  cursor: pointer;
}
.vc-acc__x:hover { color: var(--danger); }

/* 줄 오른쪽 도구 */
.vc-crd__tools { display: flex; gap: 4px; justify-content: flex-end; padding-top: 1px; }
.vc-tool {
  height: 36px;
  min-width: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.vc-tool { font-size: 1.1rem; }
.vc-tool:hover { background: var(--lav); color: var(--purple); border-color: #ddd4ee; }
.vc-tool--del:hover { background: #fbeef1; color: var(--danger); border-color: #ecc6cf; }

.vc-ed__add {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 1.5px dashed #d9cef1;
  border-radius: 14px;
  background: none;
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.vc-ed__add:hover { background: var(--lav); border-color: var(--purple-2); }
.vc-ed__err { margin-top: 10px; }

/* ===== 넓은 창 / 가져오기 ===== */
.vc-dialog--wide { width: min(860px, 100%); }
.vc-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
  resize: vertical;
}
.vc-textarea::placeholder { color: var(--placeholder); }
.vc-textarea:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--lav-2); }
.vc-imp__text { min-height: 220px; margin: 12px 0 8px; }
#impStep1 .vc-label { margin-bottom: 8px; }

/* 형식 고르기 — 메뉴(.vc-tabs)와 같은 연보라 바탕 안 흰 알약 (버튼처럼 누르는 것) */
.vc-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--lav);
  border-radius: 999px;
}
.vc-seg__opt { position: relative; }
.vc-te__timehint { font-size: 0.8rem; margin-top: 6px; display: block; }
#teTimeFixed { margin-top: 6px; }
.vc-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vc-seg__opt span {
  display: inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.vc-seg__opt span:hover { color: var(--purple); }
.vc-seg__opt input:checked + span { background: #fff; color: var(--purple); box-shadow: 0 2px 10px rgba(111, 95, 151, 0.12); }
.vc-seg__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--lav-2); }

.vc-imp__sum { font-size: 0.9rem; margin-bottom: 10px; }
.vc-imp__sum b { color: var(--purple); font-weight: 500; }
.vc-imp__table-wrap {
  max-height: min(52vh, 460px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.vc-imp__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.vc-imp__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--lav);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-align: left;
  padding: 8px 8px;
}
.vc-imp__table td { padding: 5px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
.vc-imp__table .col-chk { width: 40px; text-align: center; }
.vc-imp__table .col-st { width: 130px; white-space: nowrap; }
.vc-imp__table.no-m .col-m, .vc-imp__table.no-d .col-d { display: none; }
.vc-imp__table tr.is-err td { background: #fdf3f5; }
.vc-imp__table tr.is-same td { opacity: 0.7; }
.vc-imp__in {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}
.vc-imp__in:hover { border-color: var(--line); background: #fff; }
.vc-imp__in:focus { outline: none; border-color: var(--purple-2); background: #fff; box-shadow: 0 0 0 3px var(--lav-2); }
.vc-check input:disabled + .vc-check__box { background: var(--lav); border-color: var(--line); cursor: default; }

/* 상태 — 알약 없이 글자 색만 */
.vc-st { font-size: 0.82rem; font-weight: 500; }
.vc-st--new { color: #5f8f6f; }
.vc-st--fill { color: var(--purple); }
.vc-st--same { color: var(--muted); font-weight: 400; }
.vc-st--err { color: var(--danger); }

/* ===== 좁은 화면 ===== */
/* 폰 너비에서만 칸을 세로로 쌓음 — 태블릿·좁은 창에서는 한 줄 유지 */
@media (max-width: 680px) {
  .vc-ed__cols { display: none; }
  .vc-crd { grid-template-columns: 28px 22px minmax(0, 1fr); }
  .vc-crd__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vc-ed__actions .vc-btn { flex: 1 1 auto; }
  .vc-imp__table .col-st { width: auto; white-space: normal; }
}

/* ===== 끌어서 순서 바꾸기 손잡이 (합치기·반별 단어장 공통) ===== */
.vc-handle {
  flex: none;
  width: 28px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--placeholder);
  font-size: 1.1rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}
.vc-handle:hover, .vc-handle:focus-visible { color: var(--purple); background: var(--lav); outline: none; }
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none; }
[data-sort].is-dragging { border-color: var(--purple-2) !important; box-shadow: 0 8px 20px rgba(111, 95, 151, 0.18); position: relative; z-index: 1; }

/* ===== 세트 합치기 (설계도 5-4) — 모든 카드를 합침 ===== */
.vc-dialog--mid { width: min(520px, 100%); }
.vc-mg__list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vc-mg__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.12s ease;
}
.vc-mg__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-mg__count { flex: none; display: inline-flex; align-items: baseline; gap: 8px; font-size: 0.9rem; color: var(--purple); font-weight: 500; font-variant-numeric: tabular-nums; }
.vc-mg__cut { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.vc-mg__checks { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 0.9rem; margin-bottom: 18px; }

/* ===== 반별 단어장 (설계도 5-5) ===== */
.vc-cls {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 48px;
}
.vc-cls > .vc-card { margin-bottom: 0; }
.vc-cls__side { padding: 22px 16px; position: sticky; top: 88px; }
.vc-cls__side-title { font-size: 1rem; font-weight: 700; padding: 0 8px 10px; }
.vc-cls__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.vc-cls__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.12s ease;
}
.vc-cls__item .vc-chip { font-size: 0.92rem; color: var(--ink); }
.vc-cls__item:hover { background: var(--lav); }
.vc-cls__item.is-active { background: var(--lav-2); }
.vc-cls__item.is-active .vc-chip { color: var(--purple); font-weight: 700; }
.vc-cls__n { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vc-cls__side-note { padding: 12px 8px 0; margin: 0; font-size: 0.78rem; line-height: 1.6; }

.vc-btn--line-danger { color: var(--danger); border-color: #e7b9c4; }
.vc-btn--line-danger:hover { background: #fbeef1; }
.vc-cls__tools .vc-btn:disabled { opacity: 0.4; }
.vc-cls__selcount { color: var(--purple); font-weight: 500; margin-left: 4px; }

.vc-cls__sets { list-style: none; display: flex; flex-direction: column; }
.vc-cls__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.vc-cls__row:hover { background: var(--lav); border-color: #ddd4ee; }
.vc-cls__row.is-selected { background: var(--lav); border-color: var(--purple-2); }
.vc-cls__no { width: 22px; text-align: center; font-size: 0.82rem; font-weight: 500; color: var(--purple-2); font-variant-numeric: tabular-nums; }
.vc-cls__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-cls__name:hover { color: var(--purple); }
.vc-cls__cards { flex: none; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 세트 사이의 '세트 추가' — 평소엔 가는 틈, 마우스를 올리면 버튼이 보임 */
.vc-cls__ins { height: 10px; position: relative; display: flex; align-items: center; justify-content: center; }
.vc-cls__ins button {
  position: relative;
  z-index: 1;
  height: 24px;
  padding: 0 12px;
  border: 1px dashed var(--purple-2);
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.vc-cls__ins::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  border-top: 1px dashed transparent;
  transition: border-color 0.12s ease;
}
.vc-cls__ins:hover button, .vc-cls__ins button:focus-visible { opacity: 1; }
.vc-cls__ins:hover::before { border-top-color: #d9cef1; }
.vc-cls__sets.is-sorting .vc-cls__ins { visibility: hidden; }
/* 반이 비었을 때는 크게 */
.vc-cls__ins.is-only { height: auto; }
.vc-cls__ins.is-only button {
  opacity: 1;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1.5px dashed #d9cef1;
  font-size: 0.95rem;
}
.vc-cls__ins.is-only button:hover { background: var(--lav); border-color: var(--purple-2); }
.vc-cls__ins.is-only::before { display: none; }

/* 예외 학생 */

/* 글자 버튼 */
.vc-link { border: none; background: none; padding: 0; color: var(--purple); font-size: 0.86rem; font-weight: 500; cursor: pointer; }
.vc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.vc-link--danger { color: var(--danger); }

/* 고르기 목록 (세트 추가·반에 추가·예외 학생) */
.vc-pick { list-style: none; margin-top: 10px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.vc-pick__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.vc-pick__row:hover { background: var(--lav); }
.vc-pick__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-pick__name .vc-chip { font-size: 0.92rem; color: var(--ink); }
.vc-pick__meta { flex: none; font-size: 0.8rem; color: var(--muted); }
.vc-pick__empty { padding: 16px 4px; margin: 0; }
.vc-ex__label { margin: 14px 0 0; }
.vc-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239a97a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  cursor: pointer;
}
.vc-select:disabled { background-color: var(--lav); cursor: default; }

@media (max-width: 860px) {
  .vc-cls { grid-template-columns: 1fr; }
  .vc-cls__side { position: static; padding: 14px; }
  .vc-cls__side-title, .vc-cls__side-note { display: none; }
  .vc-cls__list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .vc-cls__item { padding: 8px 12px; }
}

/* 마우스가 없는 기기(터치)에서는 세트 추가 버튼을 늘 보이게 */
@media (hover: none) {
  .vc-cls__ins { height: 34px; }
  .vc-cls__ins button { opacity: 1; }
}

/* ===== 온라인 시험 목록·만들기 (설계도 5-6) ===== */
.vc-tests__filter { height: 44px; width: auto; min-width: 150px; }
.vc-tests { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vc-test {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.vc-test.is-open { border-color: #d9cef1; background: #fdfcff; }
.vc-test__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vc-test__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vc-test__title { font-size: 1.02rem; font-weight: 500; }
.vc-test__title:hover { color: var(--purple); }
.vc-test__state { font-size: 0.8rem; color: var(--muted); }
.vc-test.is-open .vc-test__state { color: #5f8f6f; font-weight: 500; }
.vc-test__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 0.82rem; color: var(--ink); }
.vc-test__act { display: flex; gap: 14px; flex: none; }

/* 열기/닫기 스위치 */
.vc-switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: #ddd8e6;
  cursor: pointer;
  transition: background 0.15s ease;
}
.vc-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(50, 35, 80, 0.25);
  transition: transform 0.15s ease;
}
.vc-switch[aria-checked="true"] { background: var(--purple-2); }
.vc-switch[aria-checked="true"] .vc-switch__knob { transform: translateX(20px); }
.vc-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--lav-2); }

.vc-te__h { margin: 2px 0 18px; }
.vc-te__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px 18px; }
.vc-te__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.vc-te__block { margin: 10px 0 16px; }
.vc-te__block > .vc-label { margin-bottom: 6px; }
.vc-te__sets { max-height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin-top: 0; }
.vc-te__sep { height: 1px; background: var(--line); margin: 4px 8px; }
.vc-te__counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vc-te__count {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 500;
}
.vc-te__count small { display: block; font-size: 0.76rem; font-weight: 400; color: var(--muted); }
.vc-te__count em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.vc-te__count em.is-over { color: var(--danger); font-weight: 500; }
.vc-te__num { height: 40px; width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.vc-te__time { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.vc-te__time .vc-input { width: 72px; text-align: right; }
.vc-te__hint { margin: 8px 0 16px; font-size: 0.92rem; }
.vc-te__sum {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--lav);
  border-radius: 12px;
  font-size: 0.92rem;
}
.vc-te__sum b { color: var(--purple); }
.vc-te__warn { font-size: 0.84rem; color: #a8895f; }
.vc-te__warn.is-bad { color: var(--danger); }
.vc-te__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .vc-test { flex-wrap: wrap; }
  .vc-test__act { width: 100%; justify-content: flex-end; }
  .vc-te__grid, .vc-te__grid--3 { grid-template-columns: 1fr; }
  .vc-te__counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 상황 — 핸드폰 그림 위 학생 이름, 가로로 채움 (2026-10-06) ===== */
.vc-live__pick { height: 44px; width: auto; max-width: 360px; }
.vc-live__pick[hidden] { display: none; }
.vc-live__sum { font-size: 0.9rem; margin: -4px 0 16px; }
.vc-live__sum[hidden] { display: none; }
.vc-live__sum b { color: var(--purple); }
.vc-live__away { color: #c0392b; font-weight: 700; }
.vc-live__wrap { overflow-x: auto; padding: 4px 2px 10px; }
.vc-live__wrap[hidden] { display: none; }
.vc-live {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--phone-w));   /* 한 줄을 먼저 채우고 넘치면 다음 줄 (2026-10-06) */
  /* 칠판에 띄우기 전(강사만 봄)은 작게 — 한 화면에 더 많은 학생 (2026-10-08 강사 요청, 예전 140px·16px).
     칠판 모드에서는 fitBoard()가 화면 크기에 맞춰 크게 다시 정함 */
  gap: 12px 12px;
  --phone-w: 100px;
  font-size: 12.5px;
}
/* 핸드폰 그림: 둥근 테두리 + 위쪽 스피커 + 아래쪽 홈 막대 */
.vc-phone {
  position: relative;
  width: var(--phone-w);
  height: calc(var(--phone-w) * 1.45);
  padding: 1.6em 0.6em 1.3em;
  border: 0.22em solid #cfc6e4;
  border-radius: 1.4em;
  background: var(--lav);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.vc-phone::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 50%;
  width: 2.2em;
  height: 0.35em;
  margin-left: -1.1em;
  border-radius: 3px;
  background: #cfc6e4;
}
.vc-phone::after {
  content: "";
  position: absolute;
  bottom: 0.5em;
  left: 50%;
  width: 2.6em;
  height: 0.3em;
  margin-left: -1.3em;
  border-radius: 3px;
  background: #cfc6e4;
}
.vc-phone__name { font-size: 1.3em; font-weight: 700; color: var(--ink); line-height: 1.25; word-break: keep-all; }
.vc-phone__main { font-size: 1.05em; color: var(--purple); }
.vc-phone__main b { font-size: 1.5em; font-weight: 700; }
.vc-phone__leave { font-size: 0.85em; color: var(--muted); }
.vc-phone__sub { font-size: 0.82em; color: var(--muted); }

.vc-phone.is-wait { background: #fff; border-color: #e6e2ee; }
.vc-phone.is-wait::before, .vc-phone.is-wait::after { background: #e6e2ee; }
.vc-phone.is-wait .vc-phone__name { color: var(--muted); }
.vc-phone.is-wait .vc-phone__main { color: var(--placeholder); }

.vc-phone.is-done { background: #eef6f0; border-color: #b9d8c2; }
.vc-phone.is-done::before, .vc-phone.is-done::after { background: #b9d8c2; }
.vc-phone.is-done .vc-phone__main { color: #3d7a4e; font-weight: 700; font-size: 1.3em; }
.vc-phone.is-done .vc-phone__sub { color: #3d7a4e; }

/* 방금 이탈(지금 이탈 중 또는 1분 안) — 빨갛게, 테두리가 깜빡임 */
.vc-phone.is-alert { background: #fdecea; border-color: #e0483b; animation: vc-alert 1.2s ease-in-out infinite; }
.vc-phone.is-alert::before, .vc-phone.is-alert::after { background: #e0483b; }
.vc-phone.is-alert .vc-phone__name { color: #b3261e; }
.vc-phone.is-alert .vc-phone__main, .vc-phone.is-alert .vc-phone__leave { color: #c0392b; }
.vc-phone.is-alert .vc-phone__sub { color: #fff; background: #e0483b; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
@keyframes vc-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 72, 59, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(224, 72, 59, 0); }
}
@media (prefers-reduced-motion: reduce) { .vc-phone.is-alert { animation: none; } }

.vc-live__board-title, .vc-live__exit { display: none; }

/* ---------- 칠판에 띄우기: 메뉴·머리글 없이 화면 가득 ---------- */
body.is-board .vc-header, body.is-board .vc-intro, body.is-board .vc-tabs, body.is-board .vc-footer,
body.is-board #liveTitle, body.is-board .vc-live__pick, body.is-board #liveBoard { display: none !important; }
body.is-board .vc-section { max-width: none; padding: 0; }
body.is-board [data-view="live"] { margin: 0; min-height: 100vh; border: none; border-radius: 0; box-shadow: none; padding: 3vh 3vw; }
body.is-board .vc-live__board-title { display: block; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 700; color: var(--ink); }
body.is-board .vc-live__exit { display: inline-flex; }
body.is-board .vc-live__sum { font-size: clamp(1rem, 1.6vw, 1.5rem); margin: 0 0 3vh; }
/* 칠판 모드의 핸드폰 크기·글자 크기·간격은 voca-live.js fitBoard 가 화면에 맞춰 정함 */
body.is-board .vc-live__wrap { overflow: visible; }

/* ===== 시험별 결과 (설계도 5-7) ===== */
.vc-rs__title { margin: 2px 0 6px; }
.vc-rs__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.86rem; margin-bottom: 16px; }
.vc-rs__stats { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.vc-rs__stats .vc-stat { min-width: 110px; }
.vc-rs__stats .vc-stat__value small { font-size: 0.8rem; font-weight: 500; color: var(--purple-2); margin-left: 2px; }
.vc-stat.is-pending { border-color: #e6cf9e; background: #fdf9ef; }
.vc-stat.is-pending .vc-stat__value { color: #a8742e; }
.vc-rs__table-wrap { border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.vc-rs__table, .vc-rd__table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.vc-rs__table th, .vc-rd__table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--lav);
  padding: 9px 12px;
  white-space: nowrap;
}
.vc-rs__table td, .vc-rd__table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.vc-rs__table .num, .vc-rd__table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vc-rs__table tbody tr:hover { background: #fdfcff; }
.vc-rs__name { font-weight: 500; }
.vc-rs__done { color: #3d7a4e; font-weight: 500; }
.vc-rs__away { color: #c0392b; font-weight: 700; }
.vc-rs__pending { color: #a8742e; font-weight: 700; }
.vc-rs__act { text-align: right; }

/* 학생 한 명 */
.vc-rd__sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.vc-rd__body { padding-bottom: 24px; }
.vc-rd__alert { padding: 10px 14px; border-radius: 12px; background: #fdf9ef; color: #8a6a2e; font-size: 0.86rem; line-height: 1.6; margin-bottom: 6px; }
.vc-rd__h { font-size: 0.95rem; font-weight: 700; margin: 18px 0 8px; }
.vc-rd__hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vc-rd__hrow .vc-check { margin: 18px 0 8px; font-size: 0.85rem; }
.vc-rd__table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: table; }
.vc-rd__table td { padding: 8px 10px; }
.vc-rd__table tr.is-pending td { background: #fdf9ef; }
.vc-rd__table tr.is-wrong td { background: #fdf6f7; }
.vc-rd__ans { font-weight: 500; }
.vc-rd__btns { white-space: nowrap; text-align: right; }
.vc-rd__btns .vc-btn + .vc-btn { margin-left: 4px; }
.vc-btn--xs { height: 30px; padding: 0 10px; font-size: 0.8rem; }
.vc-v { font-weight: 700; font-size: 0.86rem; }
.vc-v--correct { color: #3d7a4e; }
.vc-v--wrong { color: var(--danger); }
.vc-v--pending { color: #a8742e; }
.vc-v--partial { color: var(--purple); }
.vc-rd__table tr.is-partial td { background: #f8f5fc; }
.vc-v__why { display: block; font-size: 0.78rem; color: var(--muted); }
.vc-rd__list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.vc-rd__list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.vc-rd__list b { color: var(--purple); font-weight: 500; }

/* 편집기의 '오답 처리한 답' — 인정 답안과 구분되게 붉은 글자 */
.vc-crd__acc--rej .vc-acc { color: var(--danger); }
.vc-crd__acc--part .vc-acc { color: var(--purple); }

/* 편집기 카드 줄의 손잡이 — 첫 칸 높이에 맞춤 */
.vc-crd > .vc-handle { margin-top: 3px; }

/* 카드 삭제 × — 줄에 마우스를 올리거나 줄 안에 포커스가 있을 때만 보임 (2026-10-06) */
.vc-crd { position: relative; }
.vc-crd__del {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 2px 6px rgba(50, 35, 80, 0.1);
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.vc-crd:hover .vc-crd__del, .vc-crd:focus-within .vc-crd__del { opacity: 1; }
.vc-crd__del:hover, .vc-crd__del:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); outline: none; }
.vc-crds.is-sorting .vc-crd__del { opacity: 0; }
/* 마우스가 없는 기기(터치)에서는 늘 보이게 */
@media (hover: none) { .vc-crd__del { opacity: 1; } }

.vc-live__test { color: var(--ink) !important; font-weight: 700; }
.vc-live__sum .vc-chip { font-size: 0.95rem; }
body.is-board .vc-live__sum .vc-chip, body.is-board .vc-live__test { display: none; }
body.is-board .vc-live__sum br { display: none; }

/* ===== 세트 그룹 탭 (폴더식, 2026-10-06 강사 요청) =====
   글자 + 밑줄 (알약 모양 아님). 세트 목록·세트 추가 창·시험 만들기 출제 세트가 함께 씀 */
.vc-gtabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 18px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.vc-gtab {
  position: relative; display: inline-flex; align-items: baseline; gap: 5px;
  padding: 8px 1px 10px; font-family: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: color 0.12s ease;
}
.vc-gtab small { font-size: 0.76rem; font-weight: 400; color: var(--placeholder); font-variant-numeric: tabular-nums; }
.vc-gtab:hover { color: var(--ink); }
.vc-gtab.is-active { color: var(--purple); font-weight: 700; }
.vc-gtab.is-active small { color: var(--purple-2); }
.vc-gtab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--purple-2); }
.vc-gtab--add { color: var(--purple-2); font-weight: 500; }
.vc-gtab--add:hover { color: var(--purple); }
/* 그룹을 골랐을 때 오른쪽의 이름 바꾸기 / 삭제 */
.vc-gtabs__tools { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 10px; font-size: 0.8rem; color: var(--placeholder); }
.vc-gtabs__tools .vc-link { font-size: 0.8rem; }
/* 고르는 창 안에서는 조금 작게 */
.vc-dialog .vc-gtabs, .vc-te__block .vc-gtabs { gap: 2px 14px; margin-bottom: 8px; }
.vc-dialog .vc-gtab, .vc-te__block .vc-gtab { font-size: 0.86rem; padding: 6px 1px 8px; }
/* 그룹 고르기 창의 줄 */
.vc-grp-pick__row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; }
.vc-grp-pick__row input { accent-color: var(--purple-2); width: 16px; height: 16px; }
.vc-grp-pick__row small { margin-left: auto; color: var(--muted); font-size: 0.8rem; }

/* AI 판정 기준 창 (2026-10-07) */
.vc-dialog--rules { width: min(620px, 100%); }
.vc-grading__text { width: 100%; min-height: 230px; resize: vertical; font: inherit; line-height: 1.75; }

/* 소그룹 (2026-10-08) — 반 아래 글자 탭 + 구성원 줄. 이름은 글자만 (알약 없음) */
.vc-sg__tabs { margin-top: 4px; }
.vc-sg { margin: 0 0 14px; }
.vc-sg__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.vc-sg__info { font-size: 0.92rem; color: var(--muted); }
.vc-sg__info b { color: var(--ink); font-weight: 600; }
.vc-sg__acts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vc-sg__names { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.vc-sm__list { max-height: min(56vh, 460px); overflow-y: auto; }
.vc-pick__row.is-auto { opacity: 0.6; }
