/* css/main-homework.css — css/main.css 가족의 한 조각(옮기기만 · 순서의 정본 = js/script-families.json · 코드 구조 4계단④ · 2026-10-10) · 숙제 관리 · 학생 화면 공유 클래스 · 수강생 보드 칩 · 출결 격자 · 요약 칩 */
/* ════════ 숙제 관리 (#14) ════════ */
/* ── 숙제 관리 (교사 인포그래픽 대시보드, 2026-06-21 재구현) ── */
/* 위 padding 만 32px — 다른 화면 컨테이너(.lec-view·.bank-view·.roster-view 등)가
   전부 padding-top:32px 이라 여기만 20px 이면 제목이 12px 높이 뜬다(실측 95 vs 107).
   좌우·아래는 20px 그대로 — 이 상자는 «옅은 카드»라 그 안쪽 여백은 성격이 다르다. */
.hw-view { max-width: none; width: 100%; background: #F0F4FF; padding: 20px 20px 20px; border-radius: 16px;   /* [2026-09-10] 위 32 → 20px (공용 래퍼와 같은 값) */ word-break: keep-all; }   /* [대화면 폭] 위 .etc-announce-view 주석 참고 */

/* ── [숙제UI개편] 1Depth 대시보드: 상단 헤더 · 요약카드 · 컨트롤 ── */
/* 상단 헤더 (브레드크럼 · 타이틀 · 설명 · 요약칩 · CTA) */
/* ★네 덩이(제목 · 요약 · 도구 · 주 버튼)를 «한 줄»에 둔다★
   ★래퍼 없이 평평하게 둔 것이 요점★ — 묶어 두면 좁아질 때 그 묶음이 통째로 내려가 3줄이 됐다(실측
   1100px: 제목/요약+도구/버튼). 평평하면 넘치는 것만 아랫줄로 가 «제목+요약 / 도구+버튼» 2줄이 된다.
   제목만 왼쪽에 붙이고(margin-right:auto) 나머지는 오른쪽 정렬 — 두 줄이 돼도 오른쪽이 가지런하다. */
.hw-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hw-top-left { margin-right: auto; }
.hw-top-left { min-width: 0; }
.hw-crumb-link { border: none; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.hw-crumb-link:hover { text-decoration: underline; }
.hw-crumb-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.hw-page-title { font-size: var(--text-2xl); font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -.02em; line-height: 1.3; }
/* 머리글 요약칩(.hw-hdr-stats · .hw-stat-*)을 지웠다 —
   *"마감임박순 정렬이 있으니 마감임박 개수 표시하는건 제거해."* 정렬 「마감일 빠른순」이 이미
   그 일을 하고, 0건일 때도 회색 칩이 늘 남아 머리글 한 줄을 먹었다. 상태 건수는 아래 탭이 말한다. */
/* .hw-top-cta 는 지웠다 — 「＋ 새 숙제 만들기」가 상자 안 조작 줄로 들어갔다. */
.hw-new-btn {
  /* [치수 통일] 38px — 같은 줄의 칩·수업 선택·검색·정렬과 높이를 맞춘다. */
  border: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 13.5px;
  height: 38px; padding: 0 16px; border-radius: 10px; background: var(--primary); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28); transition: transform .12s, box-shadow .12s, background .12s;
}
.hw-new-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .35); }
.hw-new-btn:active { transform: translateY(0); }
.hw-new-btn:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }

/* ══ [상단 포맷 통일] 조작 상자 하나 ═══════════════
   ★공지사항(.annx-toolbar)·문제뱅킹(.bank-toolbar)과 «같은» 상자다★ — 셋을 같이 본다.
   2단: 상태 탭(44px) / 수업·검색·정렬·＋새 숙제 줄(60px). 유형 같은 «가운데 층»이 없어 2단이다. */
/* ★[상자와 목록을 붙인다]★ 위 .annx-toolbar 주석 참고 — 셋을 같이 본다. */
/* [이음매 선] 위 .annx-toolbar 주석 참고 — 셋을 같이 본다. */
.hw-toolbar { margin-bottom: 0; border-radius: 18px 18px 0 0; border: 1px solid #e2e8f0;
  background: #fff; box-shadow: 0 6px 18px rgba(15,31,54,.05); overflow: hidden; }
.hw-scopetabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid #e2e8f0; background: var(--bg-subtle); }
.hw-scopetab { height: 44px; padding: 0 18px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 800; color: #5d6b82;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .12s; }
.hw-scopetab:hover:not(.is-active) { color: #0f1f36; }
.hw-scopetab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.hw-scopetab:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
/* ══ [수업 축] 수강생 목록(.rosterx-scopetab·.rosterx-pill)과 «같은 모양» ══════════
   두 화면이 같은 일을 하므로 눈금도 같다. 한쪽만 고치지 말 것 — 짝은 css/main.css 의
   .rosterx-body .rosterx-scopediv · .rosterx-coursepills · .rosterx-pill 블록이다. */
/* 숫자 배지를 안에 넣으니 세로 가운데 정렬이 필요하다(종전 탭은 글자뿐이라 필요 없었다). */
.hw-scopetabs { align-items: center; }
.hw-scopetab { display: inline-flex; align-items: center; flex: 0 0 auto; }
/* 「수업 미지정」은 같은 축의 값이지만 «수업»은 아니라, 가는 선으로 한 칸 떼어 둔다. */
.hw-scopediv { flex: 0 0 auto; width: 1px; height: 18px; margin: 0 6px; background: #e2e8f0; }
/* 0건인 칸도 «있다»는 것은 보여야 하므로 지우지 않고 흐리게만 둔다. */
/* [전수조사 3차 2026-09-28] opacity 로 흐리면 글자째 옅어져 0건 건수가 2.04 로 AA 미달이었다(운영 스윕).
   «0건»은 색이 아니라 «무게»로 낮춘다 — 탭 글자는 쉬는 탭과 같은 색 · 굵기만 한 단계 · 건수 알약은 면을 걷는다.
   ⛔ 보조색(--text-muted)으로 낮추지 않는 이유: 이 탭 줄의 면(--bg-subtle) 위에서 v2 가 아닌 화면은 4.34 로 모자란다. */
.hw-scopetab.is-zero:not(.is-active) { font-weight: 600; }
.hw-scopetab.is-zero:not(.is-active) .hw-chip-n { background: transparent; color: inherit; font-weight: 600; }

/* ── 수업 알약 줄 — 「수업별」 탭을 눌렀을 때만 보인다(hidden 은 js 가 켜고 끈다) ────────────
   ★줄바꿈으로 흐르되 이 줄 «안»에서만 세로 스크롤한다★ — 수업이 스무 개여도 카드 격자를
   아래로 밀지 않는다. 가로 스크롤을 쓰지 않는 이유는 «어떤 수업이 있는지»가 스크롤 없이
   한눈에 보여야 이 줄을 만든 뜻이 살기 때문이다(수강생 목록과 같은 판단). */
.hw-coursepills { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px;
  max-height: 104px; overflow-y: auto; background: var(--bg-subtle); border-bottom: 1px solid #e2e8f0; }
.hw-coursepills[hidden] { display: none; }
.hw-pill { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  min-height: 30px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 100px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  color: #334155; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.hw-pill:hover { background: var(--bg-subtle); }
.hw-pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.hw-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hw-pill-n { font-size: 12px; font-weight: 800; color: var(--text-body); font-variant-numeric: tabular-nums; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침: 알약 면이 아래 설정 알약 규칙(같은 이름 .hw-pill)에 덮여 --bg-subtle 이라 #64748b 4.34(전수조사 3차 2026-09-28) */
.hw-pill.is-active .hw-pill-n { color: rgba(255, 255, 255, .86); }
.hw-pill.is-zero:not(.is-active) { font-weight: 500; } /* [전수조사 3차 2026-09-28] opacity .6 → 굵기만 한 단계(0건 탭과 같은 처리 · 색·면 그대로 — 면이 --bg-subtle 이라 보조색은 v2 밖에서 4.34) */

.hw-toolbar__body { min-height: 60px; padding: 11px 16px; background: var(--bg-subtle);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 10px; }
.hw-toolbar__gap { flex: 1 1 auto; min-width: 4px; }

/* ★폭을 «넉넉히» 잡지 않는다★ — flex-wrap 은 «줄이기 전에 줄을 바꾼다». 이 줄에 넷이 서므로
   basis 가 20px만 커도 버튼이 통째로 아랫줄로 내려간다(1280px 에서 5px 초과로 그랬다).
   그래서 basis 는 짧게 두고 자리표시 문구도 그 폭에 맞춰 줄였다. */
.hw-search { position: relative; display: inline-flex; align-items: center; flex: 0 1 180px; min-width: 120px; }
.hw-search-ico { position: absolute; left: 12px; font-size: 13px; color: #94a3b8; pointer-events: none; }
.hw-search input {
  /* [치수 통일] 38px — 옆의 수업 선택·정렬(.hw-sort)과 같은 높이. */
  height: 38px; padding: 0 12px 0 32px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13.5px; color: #111;
  background: #fff; width: 100%; min-width: 0; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.hw-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.hw-sort {
  height: 38px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13.5px; background: #fff; color: #334155;
  font-family: inherit; font-weight: 700; cursor: pointer;
}
.hw-sort:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
/* [상태] 탭에서 내려온 상태 선택칸 — 「공개 대기 (0)」이 가장 길다.
   ⛔ .hw-course(수업 선택칸)는 없어졌다 — 수업은 이제 탭+알약이 맡는다. */
.hw-status { max-width: 190px; text-overflow: ellipsis; }

/* 상태 탭 안 건수 — 요약 카드가 하던 「몇 건인가」를 이 숫자가 이어받았다.
   알약(.hw-chip)에서 탭(.hw-scopetab)으로 올라오며 배지 규칙만 남았다.
   짝은 .bank-vis-n · .bank-type-n — 셋을 같이 본다.
   (2026-09-16: 공지 .annx-chip-n 은 그날 «고르개»로 바뀌며 사라졌다.) */
.hw-chip-n { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(15, 23, 42, .07);
  color: var(--text-body); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침: #5d6b82 가 옅은 탭 줄 위 반투명 면에서 AA 미달(전수조사 3차 2026-09-28) */
.hw-scopetab.is-active .hw-chip-n { background: #fff; color: var(--primary); }

/* 빈/오류 상태 */
.hw-empty-first { padding: 44px 20px; }
.hw-empty-t { font-size: 15px; font-weight: 700; color: #475569; margin: 0 0 4px; }
.hw-empty-d { font-size: 13px; color: #94a3b8; margin: 0 0 16px; }
.hw-reset-btn {
  border: 1px solid #e2e8f0; background: #fff; color: var(--primary); font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: 10px; cursor: pointer;
}
.hw-reset-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.hw-empty .hw-new-btn { margin-top: 2px; }

/* 새 숙제 작성 별도 화면 */
.hw-fld-opt { font-weight: 400; color: #94a3b8; font-size: 11.5px; font-style: normal; }
.hw-cancel-btn {
  border: 1px solid #e2e8f0; background: #fff; color: #475569; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 11px; cursor: pointer;
}
.hw-cancel-btn:hover { background: #f1f5f9; }
.hw-cancel-btn:focus-visible, .hw-submit-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 반응형 */
@media (max-width: 700px) {
  /* 아주 좁으면 세로로 — 래퍼가 없으므로 자식에게 직접 준다. */
  .hw-top { flex-direction: column; align-items: stretch; }
  .hw-top-left { margin-right: 0; }
  .hw-scopetab { flex: 1 1 0; padding: 0 10px; }
  .hw-toolbar__gap { flex-basis: 100%; min-width: 0; height: 0; }
  .hw-new-btn { justify-content: center; flex: 1 1 100%; }
  .hw-status, .hw-search { flex: 1 1 100%; }
  .hw-search input { width: 100%; max-width: none; }
  .hw-page-title { font-size: 21px; }
}

/* ② 새 숙제 내기 폼 */
.hw-form { display: flex; flex-direction: column; gap: 14px; }
.hw-fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #475569; flex: 1; min-width: 0; }
.hw-fld > span { font-weight: 600; }
.hw-fld > span i { color: var(--primary); font-style: normal; }
.hw-fld input, .hw-fld select, .hw-fld textarea {
  padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 9px; font-size: 14px; color: #111;
  background: #fff; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;   /* [#2] 내용(textarea)·마감일시(datetime-local)가 UA 기본폰트로 빠지던 문제 — 앱 폰트 상속 */
}
.hw-fld input:focus, .hw-fld select:focus, .hw-fld textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.hw-fld-accent input { border-left: 4px solid var(--primary); }
.hw-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hw-row-target { align-items: flex-end; }
.hw-pills { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.hw-pill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 7px 14px 7px 7px; font-size: 13.5px; color: var(--text-body); font-weight: 600; transition: all .18s; /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침: 꺼진 알약 글자 #64748b on #f1f5f9 4.34(전수조사 3차 2026-09-28) */
}
.hw-pill-knob {
  width: 20px; height: 20px; border-radius: 50%; background: #cbd5e1; position: relative;
  transition: background .18s; flex-shrink: 0;
}
.hw-pill-knob::after { content: ''; position: absolute; inset: 0; }
.hw-pill.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.hw-pill.is-on .hw-pill-knob { background: #fff; }
.hw-pill.is-on .hw-pill-knob::after {
  content: '✓'; color: var(--primary); font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; line-height: 20px;
}
.hw-submit-btn {
  border: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 14.5px;
  padding: 11px 24px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), #7C3AED);
  box-shadow: 0 6px 16px rgba(124, 58, 237, .28); transition: transform .12s, box-shadow .12s;
}
.hw-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124, 58, 237, .35); }
.hw-submit-btn:active { transform: translateY(0); }

/* ③ 출제한 숙제 카드 그리드 */
/* ★auto-fill 을 쓰지 않는다★ — 항목이 트랙 수보다 적으면 «빈 트랙»이 그대로 오른쪽 공백이
   된다(auto-fit 과 다른 점). 열 수를 값으로 못박고 좁아질 때만 단계로 줄인다.
   ★단계는 «뷰포트»가 아니라 «이 목록의 폭»으로 잰다★ — 좌측 nav(240px)가 접히고 펴지므로
     뷰포트로 재면 같은 창에서도 카드 폭이 크게 달라진다. 한 장에 최소 226px 은 있어야
     도넛(80px 고정) 옆 「제출/전체」 칸이 안 잘린다 → 4열은 컨테이너 980px 이상에서만. */
/* 조작 상자의 «아래 칸» — 카드 격자와 쪽 버튼이 이 안에 산다.
   ★container-type 은 그대로 둔다★ — 카드 열 수를 «이 칸의 폭»으로 재기 때문이다(뷰포트가 아니라). */
.hw-list-wrap { container-type: inline-size; padding: 16px; border: 1px solid #e2e8f0; border-top: 0;
  border-radius: 0 0 18px 18px; background: #fff; }
/* [대화면 폭] 고정 «4열» → 폭에 맞춰 열 수가 는다.
   ★캡을 풀면 열 수를 안 늘리는 것이 더 나쁘다★ — 4열 고정인 채로 폭만 넓히면 카드 한 장이
   470px 로 부풀어 도넛·글자 사이가 텅 빈다. 좁은 쪽 결과는 종전과 같다(480↓ 1열 · 740↓ 2열 ·
   980↓ 3열 · 1200 안팎 4열). 넓은 쪽에서만 5·6열로 늘어난다.
   ★한 쪽 12개(HW_PAGE_SIZE)와 맞물린다★ — 12 는 2·3·4·6 열에서 마지막 줄이 비지 않는 수다. */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hw-empty { padding: 28px; color: #64748b; text-align: center; grid-column: 1 / -1; }
.hw-err { color: var(--danger); }
.hw-pcard {
  position: relative; background: #fff; border-radius: 14px; padding: 18px 18px 16px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05); cursor: pointer; overflow: hidden;
  transition: transform .14s, box-shadow .14s; display: flex; flex-direction: column;
}
.hw-pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.hw-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.hw-pcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hw-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
/* [전수조사 3차 2026-09-28] 숙제 상태 배지·채점 줄 배지 글자 — 면(js 가 주는 옅은 색)은 종전 그대로, 글자만 같은 색상의 진한 단계.
   본색(도넛·카드 띠 색)을 글자에 쓰면 대비가 모자란다(마감 3.30 · 제출 완료 2.31 · 미제출 4.11 · 운영 스윕). 면이 고정색이라 네 모드 모두 같은 값이다.
   회귀 시험 = tests/frontend/homework-contrast-r152-fallback-support-longpress-20260928.spec.js ① */
:root {
  --hw-ink-blue:   #1d4ed8;   /* blue 700 — 면 #EAF1FF 위 */
  --hw-ink-violet: #6d28d9;   /* violet 700 — 면 #F3ECFF · 보라 10% 위 */
  --hw-ink-green:  #047857;   /* emerald 700 — 초록 10% 위 */
  --hw-ink-amber:  #92400e;   /* amber 800 — 주황 10% 위 */
  --hw-ink-gray:   #4b5563;   /* gray 600 — 회색 10% 위 */
}
.hw-badge--active { color: var(--hw-ink-blue); }
.hw-badge--closed { color: var(--danger-dark); }
.hw-badge--waiting { color: var(--hw-ink-violet); }
.hw-dday { margin-left: auto; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
/* 열이 좁아지면 긴 제목이 번져 카드 높이가 제각각이 된다 → 2줄로 못박는다(전체 글은 title=). */
/* ★[굵기]★ *"굵은글씨까지 나올 필요 없을 것 같은데 그렇다고 아래 숙제
   관련 정보만큼 연하고 얇게는 하지말고"* — 800 → 600. 공지 행 제목(.annx-row__title h2)과 같은 값이다.
   ★색은 그대로 #1e293b 다★ — 「연하고 얇게」의 «연함»은 색이 맡는다. 아래 메타(.hw-pcard-meta
   #94a3b8 12.5px)와 같은 색으로 내리면 제목이 목록에서 사라진다. 무게만 내리고 색은 유지한다. */
.hw-pcard-title { font-weight: 600; font-size: 15.5px; color: #1e293b; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: keep-all; overflow-wrap: anywhere; min-height: calc(2 * 1.35em); }
.hw-pcard-meta { font-size: 12.5px; color: #94a3b8; margin-top: 5px; }
.hw-pcard-body { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
.hw-donut { flex-shrink: 0; }
.hw-pcard-counts { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #475569; }
.hw-pcard-counts b { font-size: 17px; font-weight: 800; }
.hw-pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.hw-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hw-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 7px; border: 1.5px solid; }
.hw-tag-blue { color: var(--primary); border-color: var(--primary); }
.hw-tag-purple { color: #7C3AED; border-color: #7C3AED; }
.hw-missing { font-size: 12px; font-weight: 700; color: var(--danger); }   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
.hw-more { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ══ [숙제UI개편] 2Depth 상세/편집 페이지 (.hwd-*) ══ */
.hwd-view { }
.hwd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hwd-top-left { min-width: 0; flex: 1; }
.hwd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hwd-btn-outline {
  border: 1px solid var(--primary-bd); background: #fff; color: var(--primary); font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 11px; cursor: pointer; transition: background .12s;
}
.hwd-btn-outline:hover { background: var(--primary-light); }
.hwd-btn-danger {
  border: 1px solid #fecaca; background: #fff; color: var(--danger); font-weight: 700; font-size: 14px;   /* [design-ok] 기존 값 그대로 — 이 줄은 «옛 빨강 → 토큰»만 옮겼다(2026-10-04) */
  padding: 11px 18px; border-radius: 11px; cursor: pointer; transition: background .12s;
}
.hwd-btn-danger:hover { background: #fef2f2; }
.hwd-btn-outline:focus-visible, .hwd-btn-danger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ══ 상자의 «면»을 여기서 준다 — 흰 바탕·테두리·둥근 모서리·그림자 ══
   ⛔ 종전엔 마크업이 `class="hwd-hero card"` · `class="hwd-card card"` 처럼 **`.card` 라는
      공용 유틸**에 면을 맡기고 있었는데, **이 저장소에는 `.card` 규칙이 아예 없다**
      (이 화면이 생길 때부터 한 번도 없었다 — css 전체 grep 0건).
      그래서 숙제 상세의 상자가 전부 «바탕도 테두리도 없이» 페이지 배경 위에 떠 있었다.
      바로 아래 `.hwd-danger-card { border-color: … }` 가 그 증거다 — 테두리가 있다고 보고
      «색만» 바꾸는 규칙이라, 테두리가 없으면 아무 일도 하지 않는다.
   ★공용 `.card` 를 새로 만들지 않는다★ 이름이 너무 흔해서 main.css 를 함께 읽는 다른 화면까지
     조용히 물들인다. 면이 필요한 자리는 여기 둘뿐이므로 이름을 걸어 준다(마크업의 죽은
     `card` 토큰도 같은 커밋에서 걷었다).
   ★값은 이 화면의 «가족»과 맞춘다★ 안쪽 타일(.hwd-sum-cell·.hwd-feat)이 12~14px 모서리에
     #eef2f7 테두리라, 바깥 상자는 한 단계 진한 #e2e8f0 로 감싼다(.hw-toolbar·.hw-list-wrap 과 같은 색). */
.hwd-hero, .hwd-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

/* Hero 요약 카드 */
.hwd-hero { display: flex; gap: 24px; align-items: center; padding: 22px 24px; margin-bottom: 20px; flex-wrap: wrap; }
.hwd-hero-left { flex: 1; min-width: 240px; }
/* ★«배지 ↔ 표» 사이 간격(12px)은 표가 직접 든다★ — 안 그러면 둘이 붙는다. */
.hwd-hero-meta { border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.hwd-hero-meta th { text-align: left; color: #64748b; font-weight: 600; padding: 4px 16px 4px 0; white-space: nowrap; vertical-align: top; }
.hwd-hero-meta td { color: #334155; padding: 4px 0; }
.hwd-hero-mid { display: flex; align-items: center; gap: 18px; }
.hwd-hero-nums { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #475569; }
.hwd-hero-nums b { color: #0f172a; }
.hwd-hero-ic { display: inline-block; width: 18px; font-weight: 900; }
.hwd-hero-feats { display: flex; gap: 12px; flex-wrap: wrap; }
.hwd-feat {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: 14px; padding: 12px 14px; font-size: 12px; color: #64748b;
}
.hwd-feat-ic { font-size: 18px; }
.hwd-feat b { font-size: 14px; color: #0f172a; }

/* 탭 */
.hwd-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; flex-wrap: wrap; }
.hwd-tab {
  border: none; background: none; padding: 12px 18px; font-size: 14.5px; font-weight: 700; color: #64748b;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .12s;
}
.hwd-tab:hover:not(:disabled) { color: var(--primary); }
.hwd-tab.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.hwd-tab:disabled { color: #cbd5e1; cursor: not-allowed; }
.hwd-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* 2열 레이아웃 */
.hwd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.hwd-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hwd-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 12px; }
.hwd-pane { display: flex; flex-direction: column; gap: 18px; }
.hwd-pane[hidden] { display: none; }
.hwd-card { padding: 20px 22px; }
.hwd-card-h { font-size: 15.5px; font-weight: 800; color: #1e293b; margin: 0 0 16px; }
.hwd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hwd-card-head .hwd-card-h { margin: 0; }
.hwd-counter { font-weight: 400; color: #94a3b8; font-size: 11.5px; font-style: normal; float: right; }

/* 첨부 칩 */
.hwd-att-block { margin-top: 4px; }
.hwd-att-label { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }
.hwd-att-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hwd-att-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); border: 1px solid var(--primary-tint);
  border-radius: 9px; padding: 6px 8px 6px 12px; font-size: 13px; color: var(--primary); font-weight: 600;
}
.hwd-att-x { border: none; background: none; color: #93a3b8; cursor: pointer; font-size: 12px; padding: 2px; }
.hwd-att-x:hover { color: var(--danger); }
.hwd-att-add {
  border: 1.5px dashed #cbd5e1; background: #fff; color: #64748b; border-radius: 9px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.hwd-att-add:hover { border-color: var(--primary); color: var(--primary); }

/* 과제 설명 미리보기 */
.hwd-preview { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 16px 18px; }
.hwd-preview-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.hwd-preview-body { font-size: 14px; color: #475569; line-height: 1.6; white-space: pre-wrap; }

/* 최근 제출 내역 */
.hwd-recent-tblwrap { overflow-x: auto; }
.hwd-recent-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.hwd-recent-tbl th { text-align: left; padding: 9px 10px; background: #f8fafc; border-bottom: 1px solid #eef2f7; color: #64748b; font-weight: 700; font-size: 12px; white-space: nowrap; }
.hwd-recent-tbl td { padding: 9px 10px; border-bottom: 1px solid #f4f6fa; color: #334155; }
.hwd-recent-tbl tbody tr:last-child td { border-bottom: none; }

/* 로스터(제출/평가 탭) + 일괄저장 바 */
.hwd-roster { min-height: 60px; }
.hwd-grade-bar { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 설정 · 위험작업 */
.hwd-danger-card { border-color: #fee2e2; }
.hwd-danger-desc { font-size: 13px; color: #94a3b8; margin: 0 0 14px; line-height: 1.5; }
.hwd-danger-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* 사이드바 */
.hwd-side-note { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }
.hwd-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hwd-sum-cell { display: flex; flex-direction: column; gap: 2px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 12px 14px; }
.hwd-sum-lbl { font-size: 12px; color: #64748b; }
.hwd-sum-num { font-size: 20px; font-weight: 800; color: #0f172a; }
.hwd-sum-sub { font-size: 11.5px; color: #94a3b8; }
.hwd-missing { display: flex; flex-direction: column; gap: 4px; }
.hwd-miss-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #f4f6fa; }
.hwd-miss-row:last-child { border-bottom: none; }
.hwd-miss-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #eef2ff; color: #6366f1; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.hwd-miss-name { flex: 1; font-size: 13.5px; font-weight: 600; color: #334155; }
.hwd-miss-note { font-size: 12px; color: #94a3b8; }
.hwd-quick { display: flex; flex-direction: column; gap: 8px; }
.hwd-quick-btn { text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; transition: all .12s; }
.hwd-quick-btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.hwd-quick-danger { color: var(--danger); }
.hwd-quick-danger:hover { background: #fef2f2; border-color: #fecaca; }

/* 확인 모달 */
.hwd-confirm { position: relative; background: #fff; border-radius: 16px; width: min(420px, 92vw); padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: hwPop .18s ease-out; }
.hwd-confirm-t { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.hwd-confirm-b { font-size: 14px; color: #64748b; line-height: 1.6; margin: 0 0 20px; }
.hwd-confirm-acts { display: flex; justify-content: flex-end; gap: 10px; }

/* 반응형 */
@media (max-width: 1024px) {
  .hwd-layout { grid-template-columns: 1fr; }
  .hwd-side { position: static; }
}
@media (max-width: 640px) {
  .hwd-top { flex-direction: column; }
  .hwd-actions { width: 100%; }
  .hwd-actions button { flex: 1; }
  .hwd-hero { flex-direction: column; align-items: stretch; }
  .hwd-summary-grid { grid-template-columns: 1fr 1fr; }
}

/* ④ 상세 보기 모달 — ①기본정보 + ②제출현황·채점 (전면 재구현) */
.hw-detail { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px; word-break: keep-all; }
.hw-detail-ovl { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }

@keyframes hwPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* [제출물 확인] 제출 내용 보기 — '내용 보기' 버튼 + 고정크기 모달 */
.hw-detail-view { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .12s; white-space: nowrap; }
.hw-detail-view:hover { background: #f1f5f9; border-color: #94a3b8; }
.hw-detail-view-cnt { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-light); border-radius: 6px; padding: 1px 6px; }

/* 고정 크기 모달(콘텐츠 많아도 본문만 스크롤 · 버튼 위치 불변) */
.hwd-subview { position: relative; background: #fff; border-radius: 16px; width: 560px; max-width: calc(100vw - 32px); height: 600px; max-height: min(600px, 96vh); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: hwPop .18s ease-out; word-break: keep-all; }
.hwd-sv-head { flex-shrink: 0; display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid #eef2f7; }
.hwd-sv-htxt { flex: 1; min-width: 0; }
.hwd-sv-title { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.hwd-sv-no { font-size: 14px; font-weight: 600; color: #64748b; }
.hwd-sv-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hwd-sv-when { font-size: 12.5px; color: #94a3b8; }
.hwd-sv-x { flex-shrink: 0; border: none; background: #f1f5f9; color: #475569; width: 30px; height: 30px; border-radius: 8px; font-size: 15px; cursor: pointer; transition: all .12s; }
.hwd-sv-x:hover { background: #e2e8f0; }
.hwd-sv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 18px; }
.hwd-sv-sec { display: flex; flex-direction: column; gap: 8px; }
.hwd-sv-lbl { font-size: 12px; font-weight: 800; color: #94a3b8; letter-spacing: .02em; }
.hwd-sv-text { font-size: 14.5px; color: #1e293b; line-height: 1.7; margin: 0; white-space: pre-wrap; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 14px 16px; }
.hwd-sv-empty { font-size: 13.5px; color: #94a3b8; margin: 0; padding: 12px 14px; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 10px; }
.hwd-sv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hwd-sv-files li { display: flex; }
.hwd-sv-score { font-size: 20px; font-weight: 800; color: #7c3aed; }
.hwd-sv-fb { font-size: 14px; color: #1e293b; line-height: 1.7; margin: 0; white-space: pre-wrap; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 10px; padding: 12px 14px; }
.hwd-sv-foot { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #eef2f7; }


/* ① 기본 정보 표 */


.hw-detail-file {
  display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; text-decoration: none;
  background: var(--primary-light); border: 1px solid var(--primary-tint); border-radius: 8px; padding: 4px 10px; font-size: 13px;
}
.hw-detail-file:hover { background: var(--primary-tint); }
.hw-detail-none { color: #94a3b8; }

/* ② 요약 줄 (도넛 + 카운트 + 범례) */
.hw-detail-summary { display: flex; align-items: center; gap: 18px; padding: 6px 0 14px; flex-wrap: wrap; }
.hw-detail-sumcount { font-size: 16px; color: #334155; }
.hw-detail-sumcount b { font-size: 19px; }
.hw-detail-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: #475569; flex-wrap: wrap; }
.hw-detail-lg { display: inline-flex; align-items: center; gap: 6px; }
.hw-detail-lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* 필터칩 + 정렬 */
.hw-detail-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hw-detail-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hw-detail-chip {
  padding: 6px 14px; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px;
  font-size: 13px; color: #475569; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.hw-detail-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.hw-detail-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.hw-detail-sortwrap { font-size: 13px; color: #64748b; display: inline-flex; align-items: center; gap: 8px; }
.hw-detail-sort { padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; background: #fff; color: #334155; }

/* 명단 테이블 */
.hw-detail-tblwrap { overflow-x: auto; border: 1px solid #eef2f7; border-radius: 12px; }
.hw-detail-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.hw-detail-tbl th {
  text-align: left; padding: 11px 12px; background: #f8fafc; border-bottom: 2px solid #eef2f7;
  color: #64748b; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.hw-detail-tbl td { padding: 10px 12px; border-bottom: 1px solid #f4f6fa; vertical-align: top; }
.hw-detail-tbl tbody tr:last-child td { border-bottom: none; }
.hw-detail-tbl tbody tr:hover td { background: #fafbfd; }
.hw-detail-stu { font-weight: 700; color: #1e293b; white-space: nowrap; }
.hw-detail-no { font-weight: 500; color: var(--text-muted); } /* [전수조사 3차 2026-09-28] 흰 면 2.56 이던 흐린 회색 → 보조 글자색 */
.hw-detail-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.hw-detail-badge--submitted { color: var(--hw-ink-green); }
.hw-detail-badge--late { color: var(--hw-ink-amber); }
.hw-detail-badge--graded { color: var(--hw-ink-violet); }
.hw-detail-badge--missing { color: var(--hw-ink-gray); }
.hw-detail-when { font-size: 12px; color: var(--text-muted); margin-top: 5px; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(#94a3b8 흰 면 2.56 · 전수조사 3차 2026-09-28) */
/* [결정 I3=C 2026-09-27] «선생님 도움으로 냄» — 채점 줄 상태 칸에 작게(막지 않고 알리기만). */
.hw-detail-assist { display: inline-block; margin-top: var(--space-1); padding: 2px var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; color: var(--info-dark); background: var(--info-light); white-space: nowrap; }
.hw-detail-files { display: flex; flex-direction: column; gap: 5px; }
.hw-detail-empty { text-align: center; color: #94a3b8; padding: 24px; }
.hw-detail-score { width: 88px; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 13.5px; }
.hw-detail-fb {
  width: 100%; min-width: 150px; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 7px;
  font-size: 13px; resize: vertical; font-family: inherit;
}
.hw-detail-score:disabled, .hw-detail-fb:disabled { background: #f8fafc; color: #cbd5e1; cursor: not-allowed; }
.hw-detail-acts { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.hw-detail-rownotify {
  border: 1px solid transparent; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: #fff; color: #7C3AED; border-color: #ddd6fe;
}
.hw-detail-rownotify:hover:not(:disabled) { background: #f5f3ff; }
.hw-detail-rownotify:disabled { opacity: .45; cursor: not-allowed; }

/* ★아직 저장 안 한 줄 — 종전엔 행별 「저장」 버튼이 파랗게 들던 신호다(2026-09-11 이관).
   테두리 대신 왼쪽 막대 + 옅은 바탕이라 표의 칸 너비를 흔들지 않는다. */
.hw-detail-tbl tbody tr.is-dirty td { background: var(--primary-light); }
.hw-detail-tbl tbody tr.is-dirty td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

/* ── 제출 현황(읽기 전용) — 줄을 눌러 제출물 모달을 연다 (2026-09-11 · R111) ── */
.hw-detail-tbl tbody tr.is-openable { cursor: pointer; }
.hw-detail-tbl tbody tr.is-openable:hover td { background: var(--primary-light); }
.hw-detail-open {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--primary); text-align: left;
  /* 이름 글자를 «고를 수» 있어야 한다 — 버튼 안 글자는 기본이 선택 불가라, 끌어도 아무것도
     안 골라진다. 그러면 「끌기인가 클릭인가」를 가릴 근거가 사라져 이름을 끄는 순간 창이 뜬다.
     교사목록 `.ap-name-btn`·공지 제목 버튼과 같은 규칙(R111 ⓑ). */
  -webkit-user-select: text; user-select: text;
}
.hw-detail-open:hover { text-decoration: underline; }
.hw-detail-open:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hw-detail-sub { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* 하단 액션 바 */

.hw-detail-saveall {
  background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.hw-detail-saveall:hover:not(:disabled) { background: var(--primary-hover); }
.hw-detail-saveall:disabled { opacity: .6; cursor: not-allowed; }

/* [D-01] 미제출 행 시각 구별 강화 — 배경 연회색 + 입력칸/버튼 흐리게 */
.hw-detail-tbl tbody tr.is-missing td { background: #fafafa; }
.hw-detail-tbl tbody tr.is-missing:hover td { background: #f4f5f7; }
.hw-detail-tbl input:disabled,
.hw-detail-tbl textarea:disabled { background: #f1f5f9; border-color: #e5e7eb; color: #cbd5e1; cursor: not-allowed; }
.hw-detail-tbl button:disabled { opacity: .4; cursor: not-allowed; }

/* [D-08] 모달 버튼 focus-visible — 키보드 포커스 가시화 */
.hw-detail-chip:focus-visible, .hw-detail-rownotify:focus-visible, .hw-detail-saveall:focus-visible, .hw-detail-sort:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* [D-02] 375~480px: 도구줄(필터칩+정렬) 세로 정렬 — space-between 단절 해소 */
@media (max-width: 480px) {
  .hw-detail-tools { flex-direction: column; align-items: flex-start; }
  .hw-detail-chips { width: 100%; }
  .hw-detail-sortwrap { width: 100%; }
}

/* ════════════ 학생 숙제관리 (.shw-*) — 2026-06-21 재구현 ════════════ */
/* 교사 .hw-* 와 완전 분리된 학생 전용 네임스페이스. */
.shw-view { max-width: none; width: 100%; padding: 20px 24px 28px 28px; word-break: keep-all; }   /* 좌측 여백 인셋 · [대화면 폭] 캡 해제 */

/* 학생 '숙제 관리' 나브 — 제출하지 않은 숙제 수 빨간 배지 */
.app-nav-item { position: relative; }
.nav-badge {
  position: absolute; top: 6px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  background: var(--danger-fill); color: var(--text-on-primary); border-radius: 999px;   /* [다크 ④] 흰 글자 3.76 → 채움 이름(모든 모양 4.5 이상) */
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--sidebar-bg);
}
.app-shell.sidebar-collapsed .nav-badge { top: 4px; right: 4px; }
/* 펼친 메뉴에서는 줄 오른쪽 끝·가운데 높이에 — 모서리에 떠 있으면 위첨자처럼 보인다(2026-10-13 사용자 «빨간색 동그라미 위치 이상해»).
   접은 메뉴(아이콘만)는 위 규칙대로 아이콘 모서리에 단다. 같은 자리 = 교사 메뉴의 «오늘 N개»(css/main-nav.css .dq-livenav-badge). */
.app-shell:not(.sidebar-collapsed) .nav-badge { position: static; margin-left: auto; flex: none; box-shadow: none; }
/* ★교수 메뉴 제목과 «같은 규격»★ — 종전 18px/700 이라 같은 제품인데 학생 화면만
   제목이 작았다. 값은 .lec-view-title · .rosterx-title · .hw-page-title 과 같다(var(--text-2xl)·800). */
.shw-h { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin: 0; color: var(--text); }
/* .shw-sub 는 지웠다 — 부제가 아래 알약·정렬과 같은 말을 하고 있었다. */
.shw-h + #shwBody, .alc-title-row:has(.shw-h) { margin-bottom: 0; }
.shw-view .alc-title-row { margin-bottom: 18px; }
.shw-loading, .shw-empty { padding: 32px; color: var(--text-muted); text-align: center; }
.shw-danger { color: var(--danger); }

/* ══ [상단 포맷 통일] 조작 상자 ══════════════════
   ★공지(.annx-toolbar)·뱅킹(.bank-toolbar)·숙제(.hw-toolbar)와 «같은» 상자다★ — 넷을 같이 본다.
   ★다만 안쪽 컨트롤이 44px 이다★ (교수 화면은 38px) — 특수학생이 쓰는 화면이라 교수 눈금을
   그대로 내리면 손가락으로 못 누른다. 44px 은 터치 타깃 최소치다. 값을 낮추지 말 것. */
.shw-toolbar { margin-bottom: 16px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface); box-shadow: 0 6px 18px rgba(15,31,54,.05); overflow: hidden; }   /* [design-ok] 그림자는 짝 상자(.hw-toolbar · .bank-toolbar · .annx-toolbar)와 같은 값 그대로 · 색만 이름으로(다크 ④) */
.shw-toolbar__body { min-height: 68px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 10px; }
.shw-toolbar__gap { flex: 1 1 auto; min-width: 4px; }
.shw-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.shw-chip {
  height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--text-body); cursor: pointer; transition: all .15s; white-space: nowrap;
}
.shw-chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.shw-chip.is-on { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); }
.shw-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* 알약 안 건수 — 짝은 .hw-chip-n · .bank-vis-n · .bank-type-n.
   (2026-09-16: 공지 .annx-chip-n 은 그날 «고르개»로 바뀌며 사라졌다.) */
.shw-chip-n { margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.shw-chip.is-on .shw-chip-n { background: var(--primary-fill-hover); }   /* 흰 반투명 위 흰 숫자 3.25 → 한 단계 진한 학교 색(문제뱅킹 알약과 같다) */
.shw-sort { font-size: 14px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.shw-sort-sel { height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; font-weight: 700; background: var(--surface); color: var(--text-body); cursor: pointer; }
.shw-sort-sel:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 2단 레이아웃 */
.shw-grid { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .shw-grid { grid-template-columns: 1fr; } }

/* 좌측 카드 리스트 */
.shw-list { display: flex; flex-direction: column; gap: 10px; }
.shw-card {
  display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); cursor: pointer; transition: all .15s;
}
.shw-card:hover { border-color: var(--primary-tint); box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.shw-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shw-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset, 0 4px 14px color-mix(in srgb, var(--primary) 14%, transparent); }   /* 그림자도 학교 색(고정 파랑이면 특수학교에서도 파랑 · F-20261022-65-3) */
.shw-card-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: color-mix(in srgb, var(--shw-c, var(--primary)) 10%, transparent); color: var(--shw-c, var(--primary));
}
.shw-card-main { flex: 1; min-width: 0; }
.shw-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
/* [굵기] 교수 숙제 카드(.hw-pcard-title)와 «같은 화면의 학생 쪽»이라 같이 내린다
   (*"일반학교/특수학교/학생 전부 검토해줘"*). 700 → 600. */
.shw-card-title { font-weight: 600; font-size: 14.5px; color: var(--text); line-height: 1.35; }
.shw-card-course { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.shw-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.shw-card-score { margin-top: 7px; font-size: 13px; font-weight: 700; color: var(--primary); }   /* [다크 ④] 학생 본인 점수 = 학교 색 한 색(R220 ⑧) */
.shw-card-flags { margin-top: 7px; font-size: 12px; color: var(--text-muted); }
.shw-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.shw-badge-lg { font-size: 13px; padding: 5px 14px; }
/* [다크 ④] 상태 이름표 — 색의 뜻 표(§0-D D13)대로: 진행 중(지금 할 일) = 학교 색 · 제출 완료 · 채점 완료(끝냈다) = 초록 · 지각 제출(늦음) = 주황 · 공개 대기 · 마감(아직 · 끝남) = 회색 · 옅은 면 + 그 위 글자 짝 */
.shw-badge.is-ongoing { background: var(--primary-light); color: var(--primary-dark); }
.shw-badge.is-submitted, .shw-badge.is-graded { background: var(--success-light); color: var(--success-dark); }
.shw-badge.is-late { background: var(--warning-light); color: var(--warning-dark); }
.shw-badge.is-closed, .shw-badge.is-waiting { background: var(--bg-subtle); color: var(--text-muted); }
.shw-dday { font-weight: 700; }
.shw-dday.is-urgent { color: var(--warning-dark); }
.shw-dday.is-ok { color: var(--text-muted); }   /* 여유 있는 기한은 회색(초록 = «잘 됐다»라서) */

/* 우측 상세/제출 */
.shw-detail {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05); min-height: 260px;
}
.shw-detail-empty { color: var(--text-muted); text-align: center; padding: 48px 16px; }
.shw-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shw-detail-title { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.35; }
.shw-detail-course { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.shw-detail-due {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px;
  background: var(--surface-2); border-radius: 10px; font-size: 13.5px; color: var(--text-body);
}
.shw-countdown { font-weight: 700; color: var(--warning-dark); }
.shw-countdown.is-over { color: var(--text-muted); }
.shw-sec { margin-top: 20px; }
.shw-sec-h { font-size: 13.5px; font-weight: 700; color: var(--text-body); margin-bottom: 8px; }
.shw-muted { color: var(--text-muted); }
.shw-desc {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  font-size: 14px; color: var(--text-body); white-space: pre-wrap; line-height: 1.6;
}
.shw-attaches { display: flex; flex-wrap: wrap; gap: 8px; }
.shw-attach {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; background: var(--primary-light);
  border: 1px solid var(--primary-tint); border-radius: 8px; font-size: 13px; color: var(--primary); text-decoration: none;
}
.shw-attach:hover { background: var(--primary-tint); }

/* 드래그앤드롭 업로드 */
.shw-drop {
  border: 2px dashed var(--border-strong); border-radius: 12px; padding: 26px 16px; text-align: center;
  cursor: pointer; transition: all .15s; background: var(--surface-2);
}
.shw-drop:hover, .shw-drop:focus-visible { border-color: var(--primary); background: var(--primary-light); outline: none; }
.shw-drop.is-over { border-color: var(--primary); background: var(--primary-tint); }
.shw-drop-ico { font-size: 26px; }
.shw-drop-text { font-size: 14px; font-weight: 600; color: var(--text-body); margin-top: 6px; }
.shw-drop-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.shw-staged { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shw-chip-file {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; background: var(--bg-subtle);
  border-radius: 8px; font-size: 12.5px; color: var(--text-body);
}
.shw-chip-x { border: none; background: none; cursor: pointer; color: var(--text-muted); font-size: 13px; padding: 0 2px; line-height: 1; }
.shw-chip-x:hover { color: var(--danger); }
.shw-text {
  width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
  font-size: 14px; font-family: inherit; resize: vertical; box-sizing: border-box;
}
.shw-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.shw-late-note {
  background: var(--warning-light); border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--warning-light)); color: var(--warning-dark); padding: 9px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}

/* 제출 완료 내역 */
.shw-submitted { background: var(--success-light); border: 1px solid color-mix(in srgb, var(--success) 30%, var(--success-light)); border-radius: 12px; padding: 16px; }
.shw-submitted-meta { font-size: 13px; color: var(--success-dark); font-weight: 600; }
.shw-submitted-text { margin-top: 8px; font-size: 14px; color: var(--text-body); white-space: pre-wrap; }
.shw-submitted-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shw-submitted-files a {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--success-light)); border-radius: 8px; font-size: 13px; color: var(--success-dark); text-decoration: none;
}
.shw-submitted .btn { margin-top: 12px; }

/* 채점 완료 */
.shw-graded { text-align: center; }
.shw-score-big { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1; }   /* [다크 ④] 학생 본인 점수 = 학교 색 한 색(R220 ⑧) */
.shw-score-big span { font-size: 20px; color: var(--text-muted); font-weight: 700; }
.shw-feedback { margin-top: 16px; text-align: left; background: var(--primary-light); border: 1px solid var(--primary-bd); border-radius: 12px; padding: 14px 16px; }
.shw-feedback-h { font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.shw-feedback-body { font-size: 14px; color: var(--text-body); white-space: pre-wrap; line-height: 1.6; }

/* [#6 슬4 / D-EMOJI-FEEDBACK] 학생 인앱 피드백 알림 드롭다운 */
.stu-fb-dd { position:absolute; top:calc(100% + 8px); right:0; width:min(92vw,340px); max-height:420px; overflow:auto; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-lg); z-index:9600; }
.stu-fb-dd-h { padding:12px 14px; font-weight:700; font-size:14px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--surface); }
.stu-fb-dd-body { padding:6px; display:flex; flex-direction:column; gap:6px; }
.stu-fb-item { padding:10px 12px; border-radius:9px; background:var(--surface-2); border-left:3px solid transparent; }
.stu-fb-item.is-unread { background:var(--primary-light); border-left-color:var(--primary); cursor:pointer; }
.stu-fb-src { font-size:12px; color:var(--text-muted); margin-bottom:3px; word-break:keep-all; overflow-wrap:anywhere; }
.stu-fb-content { font-size:13.5px; color:var(--text); word-break:keep-all; overflow-wrap:anywhere; }
.stu-fb-meta { font-size:11.5px; color:var(--text-muted); margin-top:4px; }
.stu-fb-empty { padding:20px; text-align:center; color:var(--text-muted); font-size:13px; }

.emo-screen-empty { color: #94a3b8; font-style: italic; font-size: 13px; }

/* ── ② 반응 이모지 팔레트 ──────────────────────────────────────────────── */

/* ── ③ 연동 상태 칩 (수강생 보드 카드) ─────────────────────────────────── */
html.v2 .lecd-linkstat { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; word-break: keep-all; line-height: 1.4; }
html.v2 .lecd-linkstat .ui-ico { width: 11px; height: 11px; }
html.v2 .lecd-linkstat.linked { background: var(--success-soft, #dcfce7); color: var(--success-dark); border: 1px solid #bbf7d0; }   /* [다크 ④ 수업 상세] 초록 글자 3.0 → 짝 글자(밝은 판도) */
html.v2 .lecd-linkstat.unlinked { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border); }   /* [다크 ④ 수업 상세] 4.34 → 보조 글자색(밝은 판도) */
html.v2 .lecd-linkstat .prov { font-weight: 600; opacity: .85; }

/* ── ④-2 출결 회차×학생 매트릭스 그리드 ────────────────
 *   행=학생 · 열=회차(차시). 칸 클릭 → 출→지→결→공→미입력 순환. 이름열 sticky·헤더 sticky·가로 스크롤.
 *   ★v2-03 스코프 전용 — 비-v2 환경엔 클래스가 없어 적용되지 않음(무회귀). */
html.v2 .lecd-attg-hint { font-size: 11.5px; color: var(--text-muted); margin: 0 0 13px; display: inline-flex; align-items: flex-start; gap: 6px; line-height: 1.55; max-width: 820px; word-break: keep-all; }
html.v2 .lecd-attg-hint .ui-ico { width: 13px; height: 13px; margin-top: 1px; flex-shrink: 0; color: var(--primary); }
html.v2 .lecd-attg-hint b { color: var(--text); }
/* ★배경을 반드시 깔 것★ — 표의 회차 칸은 배경이 없어(투명) 이 상자가 비면 본문 배경(--bg 회색)이
   그대로 비쳐, 흰색인 이름·도구 열과 회차 칸이 다른 색으로 갈라져 보인다.
   ★상자 폭은 «전폭»이다★ — 위 요약칩·안내문과 좌우가 맞아야 한다. 회차가 적어 표가 짧을 때
   생기는 우측 여백은 상자를 줄여서가 아니라 **표 안의 흡수 열(.lecd-attg-fill)**이 먹는다.
   ⛔`width: max-content` 로 상자를 줄이지 말 것 — 한 번 그렇게 했다가, 카드만
   1080px 에서 끝나고 위 요소들은 1142px 까지 가서 «어긋나 보인다»는 지적을 받아 되돌렸다. */
html.v2 .lecd-attg-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 12px; max-height: 70vh; background: var(--surface); }
/* [출결 그리드] 차시 칸은 ★80px 고정·좌측부터 1개씩 나열★(간격 안 벌어져 클릭 쉬움). 차시 많으면 가로 스크롤.
   표는 전폭(width:100%)이고, 차시가 적어 남는 폭은 «흡수 열»(.lecd-attg-fill)이 먹는다 — 그래서
   차시 칸은 늘 80px 이고 우측도 비지 않는다. 이름열 240px 고정. */
/* ⛔`min-width: max-content` 를 주지 말 것 — 흡수 열이 `width:100%` 라 그 조합에서 표의
   max-content 폭이 폭주한다(실측 1,000,000px). 열들의 min-width(80px 등)가 이미 최소폭을
   보장하므로 회차가 많으면 표가 상자를 넘어 가로 스크롤이 생긴다. */
/* [2026-10-08 사용자 «글씨가 너무 작다 — 학생 이름·회차 칸 이름»] 표 글자를 D1 램프로 올렸다:
   본문 12→14(--text-base) · 열 머리 11→14 · 학번·날짜·인원·도구 단추 10~11.5→12.5(--text-sm). */
html.v2 .lecd-attg { border-collapse: separate; border-spacing: 0; font-size: var(--text-base); width: 100%; min-width: 0; table-layout: auto; }
html.v2 .lecd-attg .stuh { width: 240px !important; min-width: 240px !important; max-width: 240px !important; }
html.v2 .lecd-attg .lecd-attg-wk, html.v2 .lecd-attg td:not(.stuh):not(.lecd-attg-rate):not(.lecd-attg-fill) { width: 80px; min-width: 80px; max-width: 80px; }
/* ★여백 흡수 열★ — 회차가 적어 표가 화면보다 좁을 때 «남는 폭만» 먹는 빈 열. 회차가 많아지면
   0 이 되고 가로 스크롤로 넘어간다. `width:100%` 가 핵심이다 — auto 레이아웃에서 이 값이라야
   한 열이 남는 폭을 독식한다(auto 로 두면 다른 열들과 나눠 가져 80px 고정이 깨진다). */
html.v2 .lecd-attg .lecd-attg-fill { width: 100%; min-width: 0; max-width: none; padding: 0; }
/* ★머리글의 흡수 칸은 `td` 다★(빈 열에 열 제목을 만들지 않는다) — 그래서 위 `thead th` 규칙의
   sticky 를 못 받는다. 여기서 직접 준다. 빼먹으면 세로 스크롤 때 이 칸만 따라 올라가 머리줄이 끊긴다. */
html.v2 .lecd-attg thead .lecd-attg-fill { background: var(--surface-2, #f8fafc); position: sticky; top: 0; z-index: 2; }
html.v2 .lecd-attg tfoot .lecd-attg-fill { background: var(--surface-2, #f8fafc); }
html.v2 .lecd-attg .lecd-attg-rate { width: 96px; min-width: 96px; max-width: 96px; }
html.v2 .lecd-attg th, html.v2 .lecd-attg td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); }
html.v2 .lecd-attg thead th { background: var(--surface-2, #f8fafc); font-weight: 700; color: var(--text-body); font-size: var(--text-base); position: sticky; top: 0; z-index: 2; }
html.v2 .lecd-attg thead .lecd-attg-wk small { font-weight: 400; color: var(--text-muted); font-size: var(--text-sm); }
html.v2 .lecd-attg .stuh { text-align: left; position: sticky; left: 0; background: var(--surface); min-width: 168px; z-index: 1; border-right: 1px solid var(--border); }
html.v2 .lecd-attg thead .stuh { background: var(--surface-2, #f8fafc); z-index: 3; }
/* [· F-20260818-18-1] 「이 학생 전 회차 출석」 열 — 이름 열 바로 옆.
   ★이름 열이 `left:0` sticky 이므로 이 열도 «그 폭만큼» 왼쪽에 고정해야 한다★ —
   안 그러면 가로 스크롤에서 이름만 남고 버튼이 회차 칸 밑으로 사라진다(=다시 못 쓰게 된다).
   폭은 위 .stuh 규칙(240px)과 짝이다. 한쪽만 바꾸면 열이 겹치거나 벌어진다. */
html.v2 .lecd-attg .lecd-attg-tool { position: sticky; left: 240px; z-index: 1; width: 104px; min-width: 104px; max-width: 104px; background: var(--surface); border-right: 1px solid var(--border); text-align: center; padding: 4px 6px; }
html.v2 .lecd-attg thead .lecd-attg-tool { background: var(--surface-2, #f8fafc); z-index: 3; }
html.v2 .lecd-attg tbody tr:hover .lecd-attg-tool { background: var(--primary-soft); }
html.v2 .lecd-attg tfoot .lecd-attg-tool { background: var(--surface-2, #f8fafc); z-index: 2; }
/* 버튼 자체는 비-v2 와 같은 모양(.lecd-att-rowtool)을 쓴다 — 좁은 열에 맞게 라벨만 줄바꿈 방지. */
html.v2 .lecd-attg .lecd-att-rowtool { white-space: nowrap; padding: 4px 7px; font-size: var(--text-sm); }
html.v2 .lecd-attg tbody tr:hover td { background: var(--surface-2, #f8fafc); }
html.v2 .lecd-attg tbody tr:hover .stuh { background: var(--primary-soft); }
/* [F-20260926-26-3] 「명단외」 줄 — 줄째 opacity(.55) 는 AA 로 올린 학번·꼬리표를 약 2.3 으로 깎았다.
   흐림 대신 바탕(surface-2)과 이름 글자(muted)로 말한다 · 출결 기호는 남은 기록이라 제 색 · 마우스를 올리면 바탕은 다른 줄과 같다(이름은 muted 그대로). */
html.v2 .lecd-attg tbody tr.is-past:not(:hover) td { background: var(--surface-2, #f8fafc); }
html.v2 .lecd-attg tbody tr.is-past .nm b { color: var(--text-muted); }
html.v2 .lecd-attg tfoot td { background: var(--surface-2, #f8fafc); font-weight: 700; color: var(--text); border-top: 2px solid var(--border); position: sticky; bottom: 0; z-index: 1; }
html.v2 .lecd-attg tfoot .stuh { background: var(--surface-2, #f8fafc); z-index: 2; }
html.v2 .lecd-attg-cnt { font-weight: 600; color: var(--text-muted); font-size: var(--text-sm); } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
html.v2 .lecd-attg .stuh-in { display: flex; align-items: center; gap: 9px; }
/* [2026-10-08 사용자] 이름 앞 성씨 동그라미(.lecd-attg-av)는 걷었다 — 이름만으로 충분하다. */
html.v2 .lecd-attg .nm { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
html.v2 .lecd-attg .nm b { font-weight: 700; color: var(--text); word-break: keep-all; }
/* [2026-10-08 사용자 «이름·학번 더 읽기 쉽게 · 왼쪽 여백이 좁다»] 이름 칸 = 왼쪽 여백 16px ·
   한 줄에 [이름(굵게 15px)] [학번 꼬리표] — 두 줄로 쌓던 것을 나란히 두어 눈이 한 번에 읽는다. */
html.v2 .lecd-attg th.stuh, html.v2 .lecd-attg td.stuh { padding-left: var(--space-4); }
html.v2 .lecd-attg .nm { flex-direction: row; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
html.v2 .lecd-attg .nm b { font-size: var(--text-md); }
/* 학번 — 고정폭 글꼴은 «S0001» 이 기계 글씨처럼 읽혀 가독성이 떨어졌다(2026-10-08 사용자) → 본문 글꼴 · 숫자 폭만 맞춘다. */
html.v2 .lecd-attg .nm small { font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--text-body); font-weight: 600; background: var(--bg-subtle); border-radius: var(--radius-pill); padding: 1px var(--space-2); } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
html.v2 .lecd-attg-pasttag { font-size: 9.5px; font-weight: 700; color: var(--text-muted); background: var(--surface-2, #f1f5f9); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; margin-left: 4px; vertical-align: middle; } /* [design-ok] 기존 값 그대로 — 이 줄은 대비(색)만 고침(D4 · F-20260926-18-1) */
/* 출결 칸 — 클릭 버튼(편집 가능) / 명단외는 span(읽기전용) 공용 톤 */
/* [2026-10-08 사용자 지시] 기호가 작다 → 칩(11px)에서 절 제목 단(--text-lg)으로. 칸 크기는 그대로. */
html.v2 .lecd-attg-ac { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; font-size: var(--text-lg); font-weight: 700; border: 0; font-family: inherit; }
html.v2 .lecd-attg-ac.att-present { background: var(--success-soft, #dcfce7); color: var(--success-dark); }   /* [다크 ④ 수업 상세] «ㅇ» 3.0 → 짝 글자(밝은 판도) */
html.v2 .lecd-attg-ac.att-late { background: var(--warning-soft, #fef3c7); color: var(--warning-dark); }   /* [다크 ④ 수업 상세] «△» 2.86 → 짝 글자(밝은 판도) */
html.v2 .lecd-attg-ac.att-absent { background: var(--danger-soft, #fee2e2); color: var(--danger); }
/* [출결버그1] 공결(excused) — 미입력(na)과 확실히 구분되게 슬레이트 채움 배지. 결석(빨강)과도 다른 색. */
html.v2 .lecd-attg-ac.att-excused { background: #e2e8f0; color: #475569; }
/* [keep-css] .att-unanswered — JS 가 'att-' + 상태키 로 조립한다(칸 att-${st} · 범례 견본). */
html.v2 .lecd-attg-ac.att-unanswered { background: var(--info-light); color: var(--info-dark); }
/* 「종료 전 나감」 — 칸 아래 막대(상태 색과 별개인 사실 표시). 범례 견본도 같은 모양. */
html.v2 .lecd-attg-ac.left-early { box-shadow: inset 0 -3px 0 var(--warning-dark); }   /* [다크 ④ 수업 상세] 띠 2.91 → 3 이상(밝은 판도) */
.lecd-attg-leftmark { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 4px; background: var(--bg-subtle); box-shadow: inset 0 -3px 0 var(--warning-dark); vertical-align: -1px; }
/* [F-20260928-48-2] 범례 견본 — 칸(.lecd-attg-ac)과 같은 색·기호를 그대로 쓰고 크기만 줄인다. */
html.v2 .lecd-attg-ac.lecd-att-legend-sym { width: 26px; height: 26px; border-radius: 8px; }
/* 미입력 견본은 배경이 없어 «·» 하나만 남는다 — 점선 테두리로 자리를 보인다(칸은 그대로). */
html.v2 .lecd-attg-ac.lecd-att-legend-sym.na { border: 1px dashed var(--border); }
html.v2 .lecd-attg-ac.na { color: var(--text-muted); background: transparent; }
/* [결정 0928 1A · F-20260928-40-1] 휴강 회차 열 — 회색으로 가라앉히고 머리글에 「휴강」 표시.
   값은 그대로 보인다(교사가 넣어 둔 값 보관) · 출석률·개수에서만 빠진다(js/attendance-panel.js `_attIsCancelled`). */
html.v2 .lecd-attg th.is-cancelled, html.v2 .lecd-attg td.is-cancelled { background: var(--surface-2); color: var(--text-muted); }
html.v2 .lecd-attg td.is-cancelled .lecd-attg-ac { filter: grayscale(1); }   /* [다크 ④ 수업 상세] 흐림(.7 · 2.7) 걷음 — 회색조 · 머리 «휴강»이 말한다 */
html.v2 .lecd-attg-cxtag { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: var(--text-xs); font-weight: 700; }
html.v2 button.lecd-attg-ac { cursor: pointer; transition: transform .08s, box-shadow .12s; }
html.v2 button.lecd-attg-ac:hover { transform: scale(1.12); box-shadow: 0 2px 6px rgba(16,24,40,.18); }
html.v2 button.lecd-attg-ac:focus-visible { outline: 0; box-shadow: var(--shadow-focus);   /* 없는 --ring 대신 공통 초점 테두리(S5 · F-20261024-04-5) */ }
html.v2 button.lecd-attg-ac:disabled { cursor: default; opacity: .6; }
/* 학생별·회차별 출석률 색 단계 */
html.v2 .lecd-attg-rate b, html.v2 .lecd-attg-overall, html.v2 [data-foot-sid] { font-weight: 700; }
html.v2 .lecd-attg-rate--good b, html.v2 .lecd-attg-foot--good { color: var(--success-dark); }   /* [다크 ④ 수업 상세] 3.30 → 짝 글자(밝은 판도) */
html.v2 .lecd-attg-rate--mid b, html.v2 .lecd-attg-foot--mid { color: var(--warning-dark); }   /* [다크 ④ 수업 상세] 3.19 → 짝 글자(밝은 판도) */
html.v2 .lecd-attg-rate--low b, html.v2 .lecd-attg-foot--low { color: var(--danger); }
html.v2 .lecd-attg-rate--na b, html.v2 .lecd-attg-foot--na { color: var(--text-muted); }
html.v2 .lecd-attg-overall { color: var(--primary); }

/* ── ② 수강생 탭 — 전역 명단 배너 + 초대→연동 흐름 ───────────────────── */

/* ── 요약 칩 stat-strip(수강생 탭·출결 탭 공용) ────────────────────────── */
html.v2 .lecd-stu-statstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
@media (max-width: 640px) { html.v2 .lecd-stu-statstrip { grid-template-columns: repeat(2, 1fr); } }
/* 수강생 요약은 칩 셋 · 출결 요약은 넷. */
html.v2 #lecdStuV2Summary { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { html.v2 #lecdStuV2Summary { grid-template-columns: repeat(2, 1fr); } }
html.v2 .lecd-stat-chip {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0;
}
html.v2 .lecd-stat-chip-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; }
html.v2 .lecd-stat-chip-ico .ui-ico { width: 18px; height: 18px; }
html.v2 .lecd-stat-chip-ico.soft-blue   { background: #eff6ff; color: #2563eb; }
html.v2 .lecd-stat-chip-ico.soft-green  { background: #f0fdf4; color: #16a34a; }
html.v2 .lecd-stat-chip-ico.soft-amber  { background: #fffbeb; color: #d97706; }
html.v2 .lecd-stat-chip-ico.soft-purple { background: #f5f3ff; color: #7c3aed; }
html.v2 .lecd-stat-chip-body { min-width: 0; display: flex; flex-direction: column; }
html.v2 .lecd-stat-chip-value { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--text-strong, #0f2c54); letter-spacing: -.01em; word-break: keep-all; }
html.v2 .lecd-stat-chip-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-top: 2px; word-break: keep-all; }
/* [2026-10-08] 출결 요약 칩 — 사용자: «높이 더 높여 줘 · 여백이 좁게 느껴진다» → 위아래 안쪽 여백 12→16px, 아래 띠와의 간격 16px. */
html.v2 .lecd-attg-statstrip { margin: 2px 0 var(--space-4); }
html.v2 .lecd-attg-statstrip .lecd-stat-chip { padding-top: var(--space-4); padding-bottom: var(--space-4); }
html.v2 .lecd-attg-statstrip .lecd-stat-chip-label { font-size: var(--text-sm); }   /* 11.5→12.5 */

/* [0721_C_22 후속] 회차 리포트 — 수업 중 공개한 답변 모음(학습성취 탭 ⑦) */
.anm-spot-sec { display: flex; flex-direction: column; }
/* [빈칸 fix] display:flex 가 UA `[hidden]{display:none}` 를 덮어써, 공개답변(⑦)이 없을 때도
   빈 흰 카드(.anm-eng-card)가 남았다 → hidden 이면 확실히 숨긴다. */
.anm-spot-sec[hidden] { display: none !important; }
.anm-spot-block { border-top: 1px solid var(--border); padding: var(--space-3, 12px) 0 var(--space-1, 4px); }
.anm-spot-block:first-of-type { border-top: 0; }
.anm-spot-h {
  font-size: var(--text-base, 14px); font-weight: 700; color: var(--text);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2, 8px);
  word-break: keep-all; overflow-wrap: anywhere;                    /* §2 R1-K 한글 어절 단위 */
}
.anm-spot-meta { font-size: var(--text-sm, 12.5px); font-weight: 400; color: var(--text-muted); }
/* 카드 최소폭 — 이름(+학번+상태칩)이 한 줄에 들어가는 최소 = 240px. 좁으면 이름이 음절 단위로 깨진다. */
.anm-spot-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3, 12px); margin-top: var(--space-2, 8px); }
.anm-spot-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg, 16px);
  padding: var(--space-3, 12px) var(--space-4, 14px); background: var(--surface);
  min-width: 0;   /* 그리드 아이템 축소 시 내부 텍스트가 컨테이너를 밀지 않도록 */
}
/* 이름 줄: 이름+학번은 한 줄, 상태칩은 그 아래 줄로 내려 이름이 절대 쪼개지지 않게 한다. */
.anm-spot-who { display: flex; align-items: baseline; gap: var(--space-2, 8px); min-width: 0; }
.anm-spot-name {
  font-size: var(--text-base, 14px); font-weight: 700; color: var(--text);
  word-break: keep-all; overflow-wrap: anywhere;                    /* 한글 이름 음절 분절 금지 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   /* 아주 긴 이름은 … 로 */
}
.anm-spot-sno { font-size: var(--text-sm, 12.5px); font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.anm-spot-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, 6px); margin-top: var(--space-1, 4px); }
.anm-spot-tag, .anm-spot-anon {
  font-size: var(--text-xs, 11px); font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-pill, 999px); white-space: nowrap; flex-shrink: 0;
}
.anm-spot-tag.ok { color: var(--success); background: var(--success-soft, #dcfce7); }
.anm-spot-tag.no { color: var(--danger); background: var(--danger-soft, #fee2e2); }
.anm-spot-anon { font-weight: 600; color: var(--text-muted); background: var(--bg-subtle); }
.anm-spot-txt {
  margin-top: var(--space-2, 8px); font-size: var(--text-base, 14px); line-height: 1.55;
  color: var(--text-body); word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap;
}
.anm-spot-img { display: block; width: 100%; max-width: 150px; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); margin: 0 auto var(--space-2, 6px); }
/* [반응형 표준 §0-B] 태블릿 ≤900 = 2열, 모바일 ≤600 = 1열 */
@media (max-width: 900px) { .anm-spot-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 600px) { .anm-spot-cards { grid-template-columns: 1fr; } }

/* [강의 전체 대시보드 · 피드백] 회차별 핵심 키워드 — 3개까지 보이고 나머지는 스크롤
   (8회차까지 쌓이면 카드가 세로로 길어져 좌우 박스 높이가 무너졌다) */
html.v2 .lecd-w2-kwlist.is-scroll {
  max-height: 269px; overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin; overscroll-behavior: contain;
}
/* [메뉴 개편] 키워드 박스가 '토론 분석' 탭에 단독(span12)으로 들어가면서 옆 박스와 높이를
   맞출 상대가 사라졌다 → 스크롤 캡 해제(잘림 방지) + 넓은 폭에선 2열로 채운다(세로 낭비 방지). */
html.v2 .lecd-an-span12 .lecd-w2-kwlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
html.v2 .lecd-an-span12 .lecd-w2-kwlist.is-scroll { max-height: none; overflow: visible; padding-right: 0; }
@media (max-width: 900px) { html.v2 .lecd-an-span12 .lecd-w2-kwlist { grid-template-columns: 1fr; } }
html.v2 .lecd-w2-kwlist.is-scroll:focus-visible { outline: 2px solid var(--purple, #7c3aed); outline-offset: 3px; border-radius: 12px; }
html.v2 .lecd-w2-kwlist.is-scroll::-webkit-scrollbar { width: 8px; }
html.v2 .lecd-w2-kwlist.is-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
html.v2 .lecd-w2-kwlist.is-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }


/* [분석 빈상태] 집계 0 KPI — 숫자 0 대신 '—'(아직 없음) 톤다운 (§0-B 0% 표기 규칙) */
html.v2 .lecd-w2-emototal.is-empty .n { color: var(--text-muted); }
html.v2 .lecd-w2-emototal.is-empty { background: var(--surface-2, #f8fafc); }

/* [디자인감사 L-4] 결과보고서 근거 데이터 — 실집계 전까지 '숫자 없는 회색 고스트'
   (예전 난수 스파크라인 제거. '예시' 배지는 그대로 유지되어 실측이 아님을 명시) */

/* ★같은 메뉴를 «수업 목록 헤더»에서도 쓴다★ — 헤더 조작 5개(보기토글·수강생관리·
   휴지통·등록)에서 자주 안 쓰는 둘을 ⋯ 로 접었다. 값을 복사하지 않고 **선택자만** 넓혔다
   (`.lec-view-actions .lecd-sa-*`) — 복사하면 반드시 어긋난다(정본 1개).
   ★트리거 버튼은 `.lecd-sa-icon`(38px)이 아니라 헤더의 `.btn.btn-sm`(32px)을 쓴다★ —
   옆 버튼들과 높이가 달라지면 줄이 들쭉날쭉해진다. */
/* [디자인감사 L-2] 회차 카드 '더보기' 메뉴 — 복제·전달·삭제 등 보조 액션을 접는다.
   상시 노출 아이콘 6개 → 주 액션 1~2 + ⋯ 하나. 삭제 오클릭 위험 제거. */
html.v2 .lecd-sa-more,
.lec-view-actions .lecd-sa-more { position: relative; display: inline-flex; }
/* 수업 목록 행에서도 같은 메뉴를 쓴다 — 새 컴포넌트를 만들지 않고 범위만 넓혔다
   (이 화면의 머리줄 「⋯」 가 이미 .lec-view-actions 로 쓰고 있던 그 메뉴다). */
html.v2 .lecd-sa-menu,
.lec-view-actions .lecd-sa-menu,
.lec-table .lecd-sa-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15,23,42,.12)); padding: 5px; display: flex; flex-direction: column;
}
html.v2 .lecd-sa-menu[hidden],
.lec-view-actions .lecd-sa-menu[hidden],
.lec-table .lecd-sa-menu[hidden] { display: none; }
html.v2 .lecd-sa-mi,
.lec-view-actions .lecd-sa-mi {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: var(--radius-sm, 8px); cursor: pointer;
  padding: 8px 10px; font-size: 13px; color: var(--text-body); font-family: inherit;
  word-break: keep-all; overflow-wrap: anywhere;
}
html.v2 .lecd-sa-mi:hover,
.lec-view-actions .lecd-sa-mi:hover { background: var(--bg-subtle); color: var(--text); }
html.v2 .lecd-sa-mi .ui-ico,
.lec-view-actions .lecd-sa-mi .ui-ico { width: 16px; height: 16px; flex-shrink: 0; }
html.v2 .lecd-sa-mi.lecd-sa-danger,
.lec-view-actions .lecd-sa-mi.lecd-sa-danger { color: var(--danger); }
html.v2 .lecd-sa-mi.lecd-sa-danger:hover,
.lec-view-actions .lecd-sa-mi.lecd-sa-danger:hover { background: var(--danger-light); }

/* [디자인감사 L-5] 태블릿(≤900px)에서 회차 카드 액션이 제목을 눌러 한글이 깨지던 문제
   — 액션 묶음을 다음 줄로 내려 제목 폭을 확보(§0-B 반응형 표준 900/600). */
@media (max-width: 900px) {
  html.v2 .lecd-scard-row { flex-wrap: wrap; }
  html.v2 .lecd-sacts { width: 100%; justify-content: flex-end; }
}

/* ═══ [재생바 오버레이] 이모지 분석 ═══
   ★.emo-top 은 `70% 1fr` 2열 그리드다. 여기에 전폭 자식(grid-column:1/-1)을 끼우면
     피드백 타임라인이 3행으로 밀려난다 — 실제로 그렇게 깨졌다. 다시 넣지 말 것.
   [2026-11-11] 「유튜브」 전용 카드(플레이어 칸 · 오류 안내)를 걷었다 — 영상은 정본 카드의 정지 화면 위 플레이어가
     재생바를 따라간다(js/report-video-follow.js). */

/* 피드백 타임라인 줄의 영상 시점 배지 — 벽시계(09:00:30)와 영상 축(1:23)을 함께 보여준다. */
.emo-ch-vpos { display: inline-block; padding: 1px 6px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 영상일 때 우측 피드백 타임라인을 슬라이드 카드 높이에 맞춘다.
   ★max-height:100% 를 쓰지 않는 이유: 그 100% 를 정하는 게 이 목록 자신이라 순환이 생겨
     제약이 안 걸린다(시선 탭에서 이미 겪은 함정). 실측 높이를 --emo-slide-h 로 내려 쓴다. */
/* ★[높이 정합] 종전엔 **영상 슬라이드에서만**(.has-video) 높이를 맞췄다. 결정으로
   모든 슬라이드에서 "카드 시작 높이 ~ 재생바 아래" = 오른쪽 타임라인 높이가 되게 한다.
   값은 JS(_emoSyncStageHeight)가 .emo-stage 를 실측해 --emo-slide-h 로 내려준다. */
/* ★[배치 (2차)] 높이를 받는 주체가 .emo-chat → **오른쪽 열 전체(.emo-side)** 로 바뀌었다.
   그 열 안에서 타임라인이 남는 높이를 먹고(.emo-side .emo-chat { flex:1 }), 그 아래 이모지 통계가
   제 높이만큼 가져간다 — 그래서 통계를 놓은 만큼 타임라인이 줄어든다.
   ※.emo-side 가 없는 옛/부분 마크업(테스트 픽스처 등)에서도 종전처럼 동작하도록 .emo-chat 단독
     규칙을 남긴다 — .emo-side 안에서는 위 flex 규칙이 이 높이를 덮는다(auto). */
.emo-top .emo-side { height: var(--emo-slide-h, 420px); }
.emo-top .emo-chat { height: var(--emo-slide-h, 420px); }
.emo-top .emo-side .emo-chat { height: auto; }
.emo-top .emo-chat-list { max-height: none; }
/* ★[높이 통일] 소스마다 다르던 높이 규칙을 **없앴다**★
   *"이모지타임라인 영역 크기랑 ai도우미 대화 크기랑 똑같이 고정시켜줘"*.
   토글이 **상세의 슬라이드 번호 줄**에 있다. 같은 슬라이드를 보면서 소스만
   바꾸는 동작이라, 높이가 달라지면 누를 때마다 아래 내용이 위아래로 튄다 — 같은 자리에 있는
   토글이 자기 아래를 흔드는 셈이다. **빈 여백보다 튀지 않는 것이 낫다.**
   그래서 문답이 짧은 AI도우미도 높이를 줄이지 않는다. */
@media (max-width: 720px) {
  .emo-top .emo-side { height: auto; }
  .emo-top .emo-chat { height: auto; }
  .emo-top .emo-chat-list { max-height: 360px; }
}

/* ═══ [인쇄] 플레이어와 조작 컨트롤(재생·음량·배속·말풍선)은 숨기고, **밀도 막대는
   남긴다** — 인쇄본에서도 어느 지점에서 학생이 반응했는지 보여야 한다.
   ★「반응 마커」는 폐지됐다(.vrt-ov-mark) — 막대 하나만 남는다.
   ★진행바(.vrt-ov-seek)도 숨긴다: 종이 위의 '현재 재생 위치'는 아무 뜻이 없다. ═══ */
@media print {
  .vrt-ov-ctl, .vrt-ov-bubbles, .vrt-ov-seek { display: none !important; }
  /* ★강조(호버·재생헤드·펼침) 끄기는 **여기 두면 안 된다** — main.html 은 main.css 를
     video-reaction-timeline.css **보다 먼저** 읽으므로, 특이도가 같으면 뒤 시트가 이긴다.
     그래서 그 리셋은 css/video-reaction-timeline.css 의 @media print 에 있다. */
}

/* [데모 수업전체] 데모 과학 '수업 전체' 리치 대시보드(ALC 리포트 의도) */
/* KPI 스트립 */
.dsw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.dsw-kpi { background: var(--surface); border: 1px solid var(--surface-3, #e2e8f0); border-radius: 12px; padding: 10px 12px; }
.dsw-kpi-v { font-size: 20px; font-weight: 800; line-height: 1.1; }
.dsw-kpi.accent .dsw-kpi-v { color: var(--brand, #2563eb); }
/* [빈 칸] 실집계가 아직 없는 칸 — «없애지 않고» 회색으로 남긴다.
   ★배경까지 흐리게 하지 않는다★ 4칸 그리드의 리듬은 유지해야 «자리는 있는데 아직 안 찼다»로
   읽힌다. 값만 회색·가늘게 해서 옆의 실집계 숫자와 눈으로 구분되게 한다. */
.dsw-kpi.is-na { background: var(--surface-2, #f8fafc); }
.dsw-kpi.is-na .dsw-kpi-v { color: var(--text-muted); font-weight: 700; }
.dsw-kpi.is-na .dsw-kpi-l { color: var(--text-muted); }
.dsw-kpi.is-na[title] { cursor: help; }
.dsw-kpi-l { font-size: 11px; color: var(--text-2, #475569); margin-top: 3px; }
.dsw-kpi-d { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
/* 대시보드 12칼럼 그리드 */
.dsw-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.dsw-c4 { grid-column: span 4; } .dsw-c5 { grid-column: span 5; } .dsw-c6 { grid-column: span 6; } .dsw-c7 { grid-column: span 7; } .dsw-c8 { grid-column: span 8; } .dsw-c12 { grid-column: span 12; }
/* ① 키워드 */
.dsw-kwwrap { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
/* [워드클라우드] 칸을 높여 타원 배치가 가로·세로를 다 쓰게 한다.
   ★종전 250px★ 은 원형 스파이럴을 높이에 가둬 낱말이 가운데 원 안에만 뭉쳤다(가로 20%만 사용). */
/* [좌클릭 이동] user-select:none — 낱말이 그냥 텍스트라, 끌면 브라우저가 글자를 선택해
   파란 '블럭'이 생기고 드래그가 이동이 아니라 선택 제스처로 먹혔다. */
.dsw-cloud { position: relative; min-height: 380px; overflow: hidden; border-radius: 10px; background: var(--surface-2, #f8fafc); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.dsw-cloud.is-grabbing { cursor: grabbing; }
/* [줌] 낱말을 담는 안쪽 레이어 — 여기에 transform(scale·translate)을 걸어 줌/이동한다. */
.dsw-cloud-inner { position: absolute; inset: 0; transform-origin: center center; transition: transform .18s ease-out; will-change: transform; }
.dsw-cloud.is-grabbing .dsw-cloud-inner { transition: none; }
/* [자석] fill-mode 는 backwards(등장 지연 동안 from 유지)만 — forwards 로 끝상태를 고정하면 JS 자석 transform 이 무시된다. */
.dsw-word { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; animation: dsw-word-in .5s cubic-bezier(.2,.7,.3,1) backwards; will-change: transform; cursor: default; }
@keyframes dsw-word-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.35); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
/* [세로 낱말] 가로만 쓰면 넓은 칸에 빈 곳이 남는다 — 꼬리 낱말 일부를 세로로 세워 틈을 채운다.
   상위(큰 글씨)는 가독성 때문에 항상 가로다(배치 모듈이 결정). */
.dsw-word.is-vert { writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dsw-word { animation: none; } .dsw-cloud-inner { transition: none; } }
/* [조 범례] 색점 + 「N조」 — 색 하나에만 의존하지 않는다(색각이상·저시력).
   ★위치: 워드클라우드 안 우측 하단 오버레이★ 카드 상단에 두면 그 한 줄 때문에 세로 여백이
   한 칸 더 생긴다. 줌 레이어 밖이라 확대·이동해도 제자리에 남고, 반투명 배경을
   깔아 뒤 낱말과 겹쳐도 읽힌다. pointer-events:none 으로 드래그 이동을 가로막지 않는다. */
.dsw-kwleg { position: absolute; right: 8px; bottom: 8px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 5px 8px; border-radius: var(--radius-sm, 8px); background: rgba(255,255,255,.92); font-size: var(--text-xs, 11px); color: var(--text-2, #475569); }

/* ═══ [다크 ④ 수업 상세 2026-10-24] 다크에서만 — 출결 칸 · 통계 칸 · 연동 칩이 옅은 면으로 남지 않게 ═══
   밝은 판 · 고대비 값은 그대로다(고대비가 붙으면 이 블록이 꺼진다 · common.css 다크 블록과 같은 조건). */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-attg-ac.att-present { background: var(--success-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-attg-ac.att-late { background: var(--warning-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-attg-ac.att-absent { background: var(--danger-light); color: var(--danger-dark); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-attg-ac.att-excused { background: color-mix(in srgb, var(--text-muted) 30%, var(--surface)); color: var(--text); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-linkstat.linked { background: var(--success-light); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-linkstat.unlinked { background: var(--bg-subtle); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stat-chip-value { color: var(--text); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stat-chip-ico.soft-blue { background: var(--day-0-bg); color: var(--day-0-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stat-chip-ico.soft-green { background: var(--day-1-bg); color: var(--day-1-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stat-chip-ico.soft-amber { background: var(--day-3-bg); color: var(--day-3-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .lecd-stat-chip-ico.soft-purple { background: var(--day-4-bg); color: var(--day-4-fg); }
}

/* ═══ [다크 ④ 수업 리포트 2026-10-24] 다크에서만 — 수업 전체 KPI · 키워드 구름 범례(없는 색 이름은 main-analysis.css 다크 블록이 잇는다) ═══ */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) .dsw-kwleg { background: color-mix(in srgb, var(--surface) 92%, transparent); }
}
