/* [맞춤 학습 추천] 좌측 Nav 수업분석 › «맞춤 학습 추천» 화면 — js/adaptive-rec-view.js · js/adaptive-rec-panel.js (2026-10-07 버튼 → 메뉴)
   색 = 딥 네이비(2026-10-06 확정). */
/* ※다크 값(2026-10-22 · R222 ④ 학생 숙제 화면) — 학생 쪽 꼬리표 두 갈래는 아래 다크 블록에 둔다(같은 색상의 어두운 면 + 밝은 글자 · 8.1 이상).
     [다크 ④ 맞춤 학습 추천 2026-10-23] 딥 네이비는 «글자 · 테두리 · 띠»(--adr-btn)와 «채운 면»(--adr-btn-fill)으로 가른다 —
     밝은 판은 둘 다 같은 남색이고, 다크에서는 글자 쪽만 밝은 남색(어두운 카드 7.9)이 된다. 채운 면은 흰 글자 10.4 그대로. */
/* 맞춤 학습 추천의 딥 네이비 — 스피너·라이브 종료 링크와 같은 색 */
:root {
  --adr-btn: #1e3a8a;
  --adr-btn-fill: #1e3a8a;   /* 채운 면(수업 전체의 남색 판 · 회차 띠) — 다크에서도 이 남색 + 흰 글자 */
  /* 학생 맞춤 학습(2026-10-21) — 꼬리표 두 갈래(두 학교 테마 공통 · 브랜드색과 따로) · 누르는 칸 테두리(흰 면 위 3:1 이상) */
  --adr-lane-sup-bg: #ffe3e6; --adr-lane-sup-fg: #6f303c;   /* 개념 다지기 = 장밋빛(결정 E2 · 2026-10-23 — 청록은 특수학교 학교 색과 겹쳤다 · 학교 색·상태 글자색과 네 눈 모두 11.9 이상 · 글자 8.0) */
  --adr-lane-deep-bg: #ede9fe; --adr-lane-deep-fg: #5b21b6;  /* 한 걸음 더 = 보라 */
  --adr-ctl-bd: #7a8699;
  --adr-video-bg: #0f172a;   /* 영상 판 = 늘 어두운 판(다크에서도 · 영상이 안 뜨는 학교망에서 흰 판이 남지 않게) */
}
@media screen {
html.theme-dark:not(:has(body[data-contrast="high"])) {
  --adr-btn: #9db4f0;   /* 딥 네이비의 글자 · 테두리 · 띠 = 밝은 남색(어두운 카드 7.88 · 옅은 학교 색 면 6.5 이상) */
  --adr-lane-sup-bg: #49282d; --adr-lane-sup-fg: #fdd1d6;   /* 장밋빛 어두운 면 + 밝은 글자 9.4 */
  --adr-lane-deep-bg: #3a3154; --adr-lane-deep-fg: #dacfff;
}
/* [다크 ④ 맞춤 학습 추천 2026-10-23] 교사 화면 — 밝은 판 · 고대비는 그대로 */
html.theme-dark:not(:has(body[data-contrast="high"])) .adr-cv-video { background: var(--adr-video-bg); }   /* 영상 판 = 늘 어두운 판(--text 는 다크에서 밝은 글자색이라 흰 판이 남았다 · 학생 쪽 .adrst-video 와 같다) */
html.theme-dark:not(:has(body[data-contrast="high"])) .adr-vc-url::placeholder { color: var(--text-muted); }   /* 브라우저 기본 안내 글자(회색)는 어두운 칸에서 3.5 */
html.theme-dark:not(:has(body[data-contrast="high"])) .adrv-pill.is-on:not(.is-wait):not(.is-prog):not(.is-done) { --c: var(--text-muted); }   /* 고른 «그 밖» 회차 = 무채색(밝은 남색은 고른 «보내기 전»의 학교 색과 거의 같았다) */
html.theme-dark:not(:has(body[data-contrast="high"])) .adr-fprev img,
html.theme-dark:not(:has(body[data-contrast="high"])) .adr-cv-pages img,
html.theme-dark:not(:has(body[data-contrast="high"])) .adrst-fprev img,   /* [F-20261023-23-3 · 2026-10-30] 학생 쪽 첨부 · 쪽 그림도 같다 */
html.theme-dark:not(:has(body[data-contrast="high"])) .adrst-pages img { background: #ffffff; }   /* [design-ok] 흰 종이는 흰 종이로(R222 ⑦) — 교사가 올린 그림 · 쪽 그림의 투명한 바탕이 어두운 카드 위에서 검은 선을 삼키지 않게 */
}

.adr-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; }
.adr-spin.is-lg { width: 22px; height: 22px; border-width: 3px; color: var(--adr-btn); }
@media (prefers-reduced-motion: no-preference) { .adr-spin { animation: adr-sp 1s linear infinite; } }
@keyframes adr-sp { to { transform: rotate(360deg); } }

/* 화면 */
.adr { word-break: keep-all; overflow-wrap: break-word; }
.adr-note { margin: 0; color: var(--text-muted); font-size: var(--text-sm, 12.5px); }
.adr-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 16px; text-align: center; color: var(--text-muted); }
.adr-wait b { color: var(--text); font-size: var(--text-md, 15px); }
.adr-wait > span { font-size: var(--text-sm); }   /* 큰 글씨 아래 안내 한 줄은 작게(2026-10-15 사용자) */

.adr-klist { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-xs), var(--shadow-md); overflow: hidden; }
.adr-kitem + .adr-kitem { border-top: 1px solid var(--border); }
.adr-krow {
  width: 100%; font: inherit; text-align: left; background: none; border: 0; cursor: pointer; color: var(--text);
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
}
.adr-krow:hover { background: var(--surface-hover); }
.adr-krow:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.adr-kt { flex: 1; min-width: 0; font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; }
/* 줄 앞 슬라이드 칸(목업 109 B안) — 개념이 나온 슬라이드 «2–4» + «슬라이드» */
.adr-sl { flex: 0 0 64px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 8px; background: var(--bg-subtle); line-height: 1.1; }
.adr-sl:empty { background: none; }
.adr-sl b { font-size: var(--text-base); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.adr-sl small { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adr-kitem.is-open > .adr-krow .adr-sl { background: var(--surface); }
.adr-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.adr-ln { font-size: var(--text-sm, 12.5px); font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.adr-ln.is-sup { background: var(--warning-light); color: var(--warning-dark); }
.adr-ln.is-deep { background: var(--adr-lane-deep-bg); color: var(--adr-lane-deep-fg); }   /* [2026-11-09 결정 2A] 심화 = 학생 쪽 «한 걸음 더»와 같은 보라 — 학교 색(특수학교 청록)은 «골랐다» 표시와 겹쳤다(F-20261023-23-2) */
.adr-ln.is-all { background: var(--bg-subtle); color: var(--text-body); }
.adr-go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-base); font-weight: 700; color: var(--primary); white-space: nowrap; }
.adr-go::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-slow, 280ms); }
.adr-kitem.is-open .adr-go::after { transform: translateY(-2px) rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .adr-go::after { transition: none; } }
@media (max-width: 640px) { .adr-krow { flex-wrap: wrap; padding: 16px; } .adr-kt { flex-basis: 100%; } .adr-go { margin-left: auto; } }

.adr-kbody { display: grid; grid-template-rows: 1fr; border-top: 1px solid var(--border); }
.adr-kbody-in { min-width: 0; overflow: hidden; background: var(--surface); }
.adr-kitem.is-open { position: relative; }
.adr-kitem.is-open::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; background: var(--adr-btn); pointer-events: none; }   /* 연 개념 전체 높이의 남색 띠 */
.adr-kitem.is-open > .adr-krow { background: var(--primary-light); }
.adr-kitem.is-open > .adr-krow .adr-kt { color: var(--adr-btn); }
.adr-kitem.is-open + .adr-kitem { border-top: 8px solid var(--bg); }   /* 연 개념 끝 — 다음 개념이 새 줄로 시작한다 */
@media (prefers-reduced-motion: no-preference) {
  .adr-kitem.is-anim > .adr-kbody { animation: adr-kopen 280ms cubic-bezier(.2, .7, .2, 1); }
}
@keyframes adr-kopen { from { grid-template-rows: 0fr; opacity: .3; } to { grid-template-rows: 1fr; opacity: 1; } }
.adr-ltabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.adr-ltab {
  font: inherit; font-size: var(--text-base); font-weight: 700; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 14px 0 12px; margin-bottom: -1px; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.adr-ltab i { font-style: normal; font-size: var(--text-xs); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--bg-subtle); display: inline-flex; align-items: center; justify-content: center; }
.adr-ltab.is-on.is-sup { color: var(--warning-dark); border-color: var(--warning-dark); }
.adr-ltab.is-on.is-deep { color: var(--adr-lane-deep-fg); border-color: var(--adr-lane-deep-fg); }
.adr-ltab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.adr-lane { padding: 12px 24px 22px; }
.adr-empty { color: var(--text-muted); font-size: var(--text-base); padding: 12px 0; }

/* 학생 줄 — 열 격자(학생 · 참여도 · 확인 문항). 격자는 한 곳(--adr-cols)에서 정한다(누적장 R128) */
.adr { container-type: inline-size; container-name: adr; }
.adr-lane { --adr-cols: minmax(72px, 120px) 220px minmax(0, 1fr); }   /* 참여도 칸 = 집중도·참여도 칩 둘 */
.adr-lanes.is-noatt .adr-lane { --adr-cols: minmax(72px, 120px) minmax(0, 1fr); }
.adr-hd, .adr-tr { display: grid; grid-template-columns: var(--adr-cols); gap: 12px; align-items: center; }
.adr-hd { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); padding: 10px 0 8px; border-bottom: 1px solid var(--border); }
.adr-tr { padding: 10px 0; border-top: 1px solid var(--border); }
.adr-hd + .adr-tr { border-top: 0; }
.adr-tr[data-adr-row] { cursor: pointer; }   /* 줄 전체가 상세 열기(2026-10-15 사용자) */
.adr-tr[data-adr-row]:hover { background: var(--surface-hover); }
.adr-tr[data-adr-row]:hover .adr-sname { text-decoration: underline; text-underline-offset: 3px; }
/* 보충학습 «먼저 할 것» 칩 열(옛: 이유별 묶음 띠) — 반복 값은 열로, 뜻은 머리줄이 한 번만(R173 ①) */
.adr-lane.has-why { --adr-cols: minmax(72px, 120px) 220px minmax(0, 1fr) 104px; }
.adr-lanes.is-noatt .adr-lane.has-why, .adr-lanes.is-noatt .adr-lane.has-why .adr-split-l { --adr-cols: minmax(72px, 120px) minmax(0, 1fr) 104px; }
.adr-split .adr-lane.has-why, .adr-lane.has-why .adr-split-l { --adr-cols: minmax(56px, 80px) 172px minmax(0, 1fr) 96px; }   /* 반반일 때도 4열(왼쪽 칸의 3열 규칙보다 뒤 · 더 구체적) */
.adr-why-t { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.adr-why-t.is-miss, .adr-why-t.is-absent { background: var(--warning-light); color: var(--warning-dark); }
.adr-why-t.is-conf { background: var(--danger-light); color: var(--danger-dark); }
.adr-c { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.adr-none { color: var(--text-muted); }
.adr-att-sm { display: none; }
.adr-sname { font: inherit; font-size: var(--text-md); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adr-sname:hover, .adr-tr.is-open .adr-sname { text-decoration: underline; text-underline-offset: 3px; }
.adr-sname:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.adr-sname.is-static { cursor: default; text-decoration: none; }
.adr-tg { display: inline-flex; align-items: center; font-size: var(--text-sm); font-weight: 700; padding: 3px 9px; border-radius: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adr-tg.is-warn { background: var(--warning-light); color: var(--warning-dark); }
.adr-tg.is-bad { background: var(--danger-light); color: var(--danger); }
.adr-tg.is-good { background: var(--success-light); color: var(--success-dark); }
.adr-tg.is-mute { background: var(--bg-subtle); color: var(--text-muted); }
.adr-tg.is-info { background: var(--primary-light); color: var(--primary); }
/* 좁으면 집중도 열을 접고 그 칩을 확인 문항 칸 앞에 되살린다(둘이 동시에 보이지 않는다) */
@container adr (max-width: 520px) {
  .adr-lane { --adr-cols: minmax(64px, 96px) minmax(0, 1fr); }
  .adr-hd .adr-att, .adr-tr .adr-att { display: none; }
  .adr-att-sm { display: contents; }
}

/* 반 전체 보강 — 수치 칸 둘(문장으로 단정하지 않는다) */
.adr-cw { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 22px 18px; }
/* 반 전체 — 받을 학생 한 줄(펼치면 명단) + 추천 칸 한 칸 전체 */
.adr-cw-body { display: flex; flex-direction: column; gap: 14px; }   /* 왼쪽 칸 — 오른쪽 추천 칸(adr-split-r)과 반반 */
.adr-cw-body > .adr-cw-who { margin-left: 24px; }   /* 명단 줄(adr-lane)의 가장자리 여백과 맞춘다 */
.adr-cw-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 8px; background: var(--bg-subtle);
  font-size: var(--text-sm); color: var(--text-muted); }
.adr-cw-who b { color: var(--text); }
.adr-cw-tg { font: inherit; font-size: var(--text-sm); font-weight: 600; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.adr-cw-tg:hover { border-color: var(--border-strong); }
.adr-cw-tg:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adr-cw-body > .adr-lane { margin: 0; }
.adr-stat { display: flex; flex-direction: column; gap: 2px; min-width: 140px; padding: 12px 16px; border-radius: 8px; background: var(--bg-subtle); }
.adr-stat b { font-size: var(--text-xl); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.adr-stat b small { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-stat span { font-size: var(--text-sm); color: var(--text-muted); }

/* 근거 카드(2026-10-07). 결론 색 = 원인 칸 테두리 색(주황 설명 · 빨강 문항 · 초록 심도) */
.adr-dt { margin: 0 0 12px; padding: 16px; border-radius: 8px; background: var(--bg-subtle); color: var(--text-body); }
.adr-ev-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: var(--text-md); font-weight: 800; color: var(--text); }
.adr-ev-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.adr-ev-ico svg { width: 15px; height: 15px; }
.adr-ev-hd.is-warn .adr-ev-ico { background: var(--warning-light); color: var(--warning-dark); }
.adr-ev-hd.is-bad .adr-ev-ico { background: var(--danger-light); color: var(--danger-dark); }
.adr-ev-hd.is-good .adr-ev-ico { background: var(--success-light); color: var(--success-dark); }
.adr-ev-flow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: stretch; }
.adr-ev-flow.is-one { grid-template-columns: minmax(0, 1fr); }
.adr-ev-arrow { display: flex; align-items: center; justify-content: center; color: var(--border-strong); }
.adr-ev-arrow svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.adr-ev-step { min-width: 0; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.adr-ev-step.is-warn { border: 2px solid var(--warning); background: var(--warning-light); }
.adr-ev-step.is-bad { border: 2px solid var(--danger); background: var(--danger-light); }
.adr-ev-tg { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }
.adr-ev-tg svg { width: 12px; height: 12px; }
.adr-ev-step.is-warn .adr-ev-tg { color: var(--warning-dark); } .adr-ev-step.is-bad .adr-ev-tg { color: var(--danger-dark); }
/* ① 설명 볼 때 — 썸네일 · 큰 숫자 · 막대(검은 눈금 = 반) · 반 대비 칩 */
.adr-ev-sl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 10px; }
.adr-ev-sl + .adr-ev-sl { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.adr-ev-thc { font: inherit; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adr-ev-thc:hover .adr-ev-th, .adr-ev-thc.is-open .adr-ev-th { outline: 2px solid var(--primary); outline-offset: 1px; }
.adr-ev-thc:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.adr-ev-thl { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.adr-ev-thl svg { width: 10px; height: 10px; transform: rotate(-90deg); transition: transform var(--dur-fast, 150ms); }
.adr-ev-thc.is-open .adr-ev-thl svg { transform: none; }
.adr-ev-why { margin-top: 8px; padding: 8px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; font-size: var(--text-xs); color: var(--text-body); overflow-wrap: anywhere; }
.adr-ev-why b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .adr-ev-thl svg { transition: none; } }
.adr-ev-th { position: relative; width: 72px; height: 42px; border-radius: 4px; overflow: hidden; background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.adr-ev-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adr-ev-th > svg { width: 16px; height: 16px; }
.adr-ev-th b { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 999px; background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center; }
.adr-ev-th b svg { width: 8px; height: 8px; }
.adr-ev-sv { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.adr-ev-big { font-size: var(--text-xl); font-weight: 800; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.adr-ev-big.is-warn { color: var(--warning-dark); }
.adr-ev-big small { margin-right: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-ev-part { font-size: var(--text-sm); color: var(--text-muted); }
.adr-ev-part b { color: var(--text); font-weight: 800; }
.adr-ev-bar { position: relative; align-self: stretch; height: 6px; border-radius: 999px; background: var(--border); }
.adr-ev-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--text-muted); }
.adr-ev-bar i.is-warn { background: var(--warning); }
.adr-ev-bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); }
/* ② 확인 문항 — 큰 분수 + 문항마다 한 칸 */
.adr-ev-frac { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.adr-ev-frac b { font-size: var(--text-2xl); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.adr-ev-frac b.is-bad { color: var(--danger-dark); } .adr-ev-frac b.is-good { color: var(--success-dark); }
.adr-ev-frac span { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-ev-seg { display: flex; gap: 4px; margin-top: 10px; }
.adr-ev-seg span { flex: 1; min-width: 0; height: 26px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 800; white-space: nowrap; overflow: hidden; }
.adr-ev-seg .is-x { background: var(--danger-fill); color: var(--text-on-primary); }   /* [다크 ④ 맞춤 학습] 채운 면 + 흰 글자(밝은 판 초록 위 흰 글자 3.30 · 다크는 밝은 면 위 어두운 글자로 뒤집혀 있었다) */
.adr-ev-seg .is-o { background: var(--success-fill); color: var(--text-on-primary); }
.adr-ev-seg .is-na { background: var(--bg-subtle); color: var(--text-muted); }   /* [다크 ④ 맞춤 학습] 답 없음 = 다른 «답 없음» 표시(.adr-ev-res · .adrd-sym)와 같은 면 · 줄무늬 위 글자는 밝은 판 4.48 · 고대비 1.41 이었다 */
/* 문항 줄 — 결과 타일 · N번 + 유형 칩 · 문제 한 줄 · 누르면 그 줄만 펼친다 */
.adr-ev-ql { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.adr-ev-q { font: inherit; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--border); background: none; cursor: pointer; color: inherit;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 10px 12px; }
.adr-ev-q:first-child { border-top: 0; }
.adr-ev-q:hover { background: var(--surface-hover); }
.adr-ev-q:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.adr-ev-res { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.adr-ev-res.is-x { background: var(--danger-light); color: var(--danger-dark); }
.adr-ev-res.is-o { background: var(--success-light); color: var(--success-dark); }
.adr-ev-res.is-na { background: var(--bg-subtle); color: var(--text-muted); }
.adr-ev-qb { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adr-ev-qm { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adr-ev-qt { font-size: var(--text-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adr-ev-chev { color: var(--border-strong); display: flex; } .adr-ev-chev svg { width: 12px; height: 12px; transform: rotate(-90deg); transition: transform var(--dur-fast, 150ms); }
.adr-ev-q.is-open { align-items: start; background: var(--surface-hover); }
.adr-ev-q.is-open .adr-ev-qt { white-space: normal; line-height: 1.6; }
.adr-ev-q.is-open .adr-ev-chev svg { transform: none; }
.adr-ev-ans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adr-ev-ans span { font-size: var(--text-xs); font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.adr-ev-ans .is-me { background: var(--danger-light); color: var(--danger-dark); }
.adr-ev-ans .is-none { background: var(--bg-subtle); color: var(--text-muted); }
.adr-ev-ans .is-ok { background: var(--success-light); color: var(--success-dark); }
@media (prefers-reduced-motion: reduce) { .adr-ev-chev svg { transition: none; } }

/* ── 2a 처리 상태 · 학생 고르기 · 학습물 · 보내기 ── */
/* 고른 회차 카드(목업 108 B안 · 2026-10-15) — 머리 = 회차 칩 · 날짜 · 회차 이름 + 오른쪽 밑줄 처리 탭 · 아래 = 개념 목록(카드 안이라 목록 자체 그림자는 뺀다) */
.adr-ses { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-xs), var(--shadow-md); overflow: hidden; }
.adr-ses .adr-klist { border-radius: 0; box-shadow: none; }
.adr-ses > .adr-note, .adr-ses > .adr-sentnote { margin: 12px 24px 0; }
.adr-sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 20px 24px 0; border-bottom: 1px solid var(--border); background: var(--primary-light); }   /* 연한 파랑 머리 = 회차 · 아래 흰 줄 = 개념(목업 109 B안) */
.adr-sh-t { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.adr-sh-t > div { display: flex; align-items: center; gap: 8px; }
.adr-sh-wk { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; background: var(--adr-btn-fill); color: var(--text-on-primary); font-size: var(--text-sm); font-weight: 800; white-space: nowrap; }
.adr-sh-d { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.adr-sh h2 { margin: 0; font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; color: var(--adr-btn); word-break: keep-all; }
.adr-ses .adr-krow { padding: 12px 24px; }
.adr-ses .adr-kt { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; }   /* 개념 이름은 회차 이름(24)보다 한 단계 아래(목업 109) */
@media (max-width: 640px) { .adr-ses .adr-kt { flex: 1 1 0; } }   /* 좁으면 슬라이드 칸 옆에 이름을 두고 숫자·자세히만 아래 줄로 */
/* 처리 탭 = 카드 머리 오른쪽 밑줄 탭(목업 108 B안 · 옛: 수업 전체 상태 칩 모양 알약) */
.adr-ftabs { display: flex; gap: 4px; flex-wrap: wrap; align-self: flex-end; }
.adr-ftabs button { font: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  background: none; color: var(--text-muted); font-size: var(--text-base); font-weight: 700; cursor: pointer; }
.adr-ftabs button b { font-weight: 800; font-variant-numeric: tabular-nums; }
.adr-ftabs button:hover { color: var(--text); }
.adr-ftabs button.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.adr-ftabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.adr-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adr-chk { position: relative; flex: 0 0 auto; width: 24px; height: 24px; }
.adr-chk input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.adr-chk span { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--border-input); background: var(--surface); pointer-events: none; }   /* 빈 칸 테두리 = 값을 고르는 칸(R223 ① · 둘레 면과 3:1 · 전에는 1.5) */
.adr-chk input:checked + span { background: var(--primary-fill); border-color: var(--primary-fill); }   /* 채운 칸 = 채움 이름(흰 체크 표시 · 다크의 --primary 위에서는 2.11) */
.adr-chk input:checked + span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--text-on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.adr-chk input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.adr-tr.is-off .adr-sname { color: var(--text-muted); }   /* [다크 ④ 맞춤 학습] 빠진 학생 = 흐린 이름(흐림 .5 는 밝은 판도 2.0~3.4) · «안 보냄»은 체크 칸이 말한다 */
.adr-end { margin-left: auto; }
.adr-state { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.adr-state.is-done { color: var(--success-dark); }
.adr-link { font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--primary); background: none; border: 0; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
.adr-link:hover { background: var(--primary-light); }
.adr-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adr-sentnote { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 8px 12px; border-radius: 8px;
  background: var(--success-light); color: var(--success-dark); font-size: var(--text-sm); font-weight: 700; }

/* 대기 탭 — 탭 줄 «아래»를 반반: 학생 목록 | 추천(같은 높이에서 시작). 좁으면 추천이 아래로 */
.adr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.adr-split-l { min-width: 0; }
.adr-split .adr-lane, .adr-split-l { --adr-cols: minmax(64px, 96px) 196px minmax(0, 1fr); }   /* 반반일 때 목록 칸을 좁혀 칩이 한 줄에 */
.adr-split-r { min-width: 0; padding: 0 24px 24px; border-left: 1px solid var(--border); }   /* 오른쪽 24px = 왼쪽 학생 목록의 가장자리 여백(실측 2026-10-12 · 종전 0) · 아래 24px = 보내기 단추 밑 여백(같은 날 사용자 «하단 여백 좁아») */
@container adr (max-width: 900px) {
  .adr-split { grid-template-columns: minmax(0, 1fr); }
  .adr-split-r { padding: 16px 24px 24px; border-left: 0; border-top: 1px solid var(--border); }
}
.adr-mats { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.adr-mats-l { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-mats-l > span { display: inline-flex; align-items: center; gap: 8px; }
.adr-mats-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adr-addf { font: inherit; position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px dashed var(--primary-tint);
  border-radius: 8px; background: none; color: var(--primary); font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.adr-addf:disabled { color: var(--text-muted); border-color: var(--border); cursor: default; }
/* 누름 효과(2026-10-12 사용자 「파일 첨부 클릭 효과」) — 올리면 옅게 칠하고, 누르는 동안 한 단계 진하게 + 살짝 눌린다 */
.adr-addf:not(:disabled) { transition: background-color .12s, border-color .12s, transform .08s; }
.adr-addf:not(:disabled):hover { background: var(--primary-light); border-style: solid; }
.adr-addf:not(:disabled):active, .adr-addf:has(input:active) { background: var(--primary-tint); border: 1px solid var(--primary-mid); transform: scale(.97); }
.adr-addf:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.adr-addf:has(input:disabled) { color: var(--text-muted); border-color: var(--border); background: none; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .adr-addf { transition: none !important; } .adr-addf:active, .adr-addf:has(input:active) { transform: none; } }
.adr-addf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adr-msg { display: flex; flex-direction: column; gap: 4px; }
.adr-msg span { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-msg textarea.form-control { height: auto; min-height: 84px; }   /* 모양은 공용 .form-control(css/common.css) — rows 로 높이를 정한다 */
.adr-act { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 4px; }
.adr-send { font: inherit; min-height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--primary-fill); color: var(--text-on-primary);
  font-size: var(--text-base); font-weight: 800; cursor: pointer; }
.adr-send:hover { background: var(--primary-fill-hover); }
.adr-send:disabled { opacity: .45; cursor: not-allowed; }
.adr-send:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 추천 카드 — 썸네일 + 제목 줄. 누르면 카드 줄 아래로 펼친다 · 모서리 체크로 넣고 뺀다 */
/* 한 줄 · 넘치면 가로 스크롤(2026-10-12 사용자 «우측 가로 스크롤») — 카드 폭은 고정, 순서는 끌어서 바꾼다(js/adaptive-rec-send.js) */
.adr-cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.adr-cards > .adr-card { flex: 0 0 168px; scroll-snap-align: start; }
.adr-card-grip { position: absolute; top: 6px; left: 6px; z-index: 3; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: var(--text-sm); line-height: 1; cursor: grab; box-shadow: var(--shadow-xs); }
.adr-card-grip:hover { color: var(--text); }
.adr-card[data-adr-drag] { user-select: none; }
.adr-card[data-adr-drag] .adr-card-face { cursor: grab; }
body.adr-dragging, body.adr-dragging * { cursor: grabbing !important; }
.adr-card[data-adr-drag] .adr-card-th:is(.is-text, .is-paper, .is-q) { padding-left: 36px; }   /* 손잡이(⠿)가 미리보기 글을 덮지 않게 */
/* 끄는 동안 — 잡은 카드는 마우스를 따라가고(트랜지션 없음) 나머지는 미끄러져 비킨다(js/adaptive-rec-send.js _startSort) */
.adr-cards.is-sorting > .adr-card { transition: transform .18s var(--ease); }
.adr-cards.is-sorting > .adr-card.is-dragging { transition: none; z-index: 5; border-color: var(--primary); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .adr-cards.is-sorting > .adr-card { transition: none; } }
.adr-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden;
  transition: border-color var(--dur-fast, 150ms), box-shadow var(--dur-fast, 150ms); }
.adr-card:hover { border-color: var(--border-strong); }
.adr-card.is-open { border-color: var(--primary); outline: 1px solid var(--primary); }
/* [다크 ④ 맞춤 학습 2026-10-23] 고르지 않은 카드 — 흐림(opacity)은 그림에만 · 글자는 흐린 글자색으로(R222 · 흐림으로 상태를 가르지 않는다 · 글자 1.9~2.9 였다).
   «안 보냄»은 체크 칸이 말한다. */
.adr-card:not(.is-on):not(.is-busy) .adr-card-th img { opacity: .45; }
.adr-card:not(.is-on):not(.is-busy) .adr-card-t b { color: var(--text-muted); }
.adr-card-face { font: inherit; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.adr-card-face:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }
.adr-card-th { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 84px; overflow: hidden;
  background: var(--bg-subtle); color: var(--text-body); font-size: var(--text-sm); line-height: 1.45; }
.adr-card-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adr-card-th svg { width: 14px; height: 14px; flex: 0 0 auto; }
.adr-card-th.is-text, .adr-card-th.is-paper, .adr-card-th.is-q { align-items: flex-start; justify-content: flex-start; padding: 10px 36px 10px 12px; word-break: keep-all; }
.adr-card-th.is-paper { background: var(--warning-light); }
.adr-card-th.is-file { background: var(--surface-hover); }
.adr-card-th.is-file svg { margin-top: 2px; color: var(--text-muted); }
.adr-card-th.is-q { flex-direction: column; gap: 4px; background: var(--primary-light); }
.adr-card-th.is-q i { font-style: normal; font-weight: 800; color: var(--primary); }
.adr-card-th.is-skel { background: linear-gradient(90deg, var(--bg-subtle), var(--surface-hover), var(--bg-subtle)); background-size: 200% 100%; animation: adr-skel 1.4s linear infinite; }
@keyframes adr-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .adr-card-th.is-skel { animation: none; } }
.adr-card-play { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 999px; background: var(--surface); color: var(--text);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.adr-card-more { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: var(--text-sm); font-weight: 700; padding: 0 6px; border-radius: 999px;
  background: var(--surface); color: var(--text-body); }
.adr-card-t { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.adr-card-t b { font-size: var(--text-sm); font-weight: 800; color: var(--text); }
.adr-card-t small { font-size: var(--text-sm); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adr-card-chk { position: absolute; top: 6px; right: 6px; }   /* 썸네일 오른쪽 위 — 글 썸네일은 그만큼 오른쪽을 비운다 */
.adr-card-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: 4.35em; }
.adr-card-th.is-q .adr-card-x { -webkit-line-clamp: 2; max-height: 2.9em; }
/* 펼친 카드 */
.adr-cv { padding: 14px; border-radius: 8px; background: var(--bg-subtle); display: flex; flex-direction: column; gap: 12px; }
.adr-cv-slide { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); }
.adr-cv-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--text); }
.adr-cv-video iframe, .adr-cv-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.adr-cv-video video { object-fit: contain; }   /* 직접 올린 영상 파일(2026-11-20 · js/adaptive-rec-send.js) */
/* 보충 영상(2026-10-13 · js/adaptive-rec-video.js) — 카드 «수업 밖» 표시 · 후보 목록 */
.adr-card-ext { position: absolute; left: 6px; bottom: 6px; z-index: 2; font-style: normal; font-size: var(--text-sm); font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--text-body); }   /* .adr-card-more 와 같은 꼴 */
.adr-vc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: var(--text-md); }
.adr-vc-note { font-size: var(--text-sm); font-weight: 700; color: var(--success-dark, #15803d); background: var(--success-light, #f0fdf4); padding: 2px 10px; border-radius: 999px; }
.adr-vc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* 영상 주소 붙여 넣기(2026-10-13 사용자 «영상 주소 붙여넣을 수 있게») — 후보 목록 아래 한 줄 */
.adr-vc-add { display: flex; gap: 8px; margin-top: 10px; }
.adr-vc-url { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border: 1px solid var(--border-input); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm); }
.adr-vc-url:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.adr-vc { border: 1px solid var(--border); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.adr-vc.is-on { border-color: var(--primary); background: var(--primary-light); }
.adr-vc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.adr-vc-th { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-subtle); }
.adr-vc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adr-vc-th { position: relative; border: 2px solid transparent; }
.adr-vc-th.is-sup { border-color: var(--warning); }
.adr-vc-th.is-deep { border-color: var(--adr-lane-deep-fg); }
.adr-vc-lv { position: absolute; left: 4px; top: 4px; z-index: 2; font-style: normal; font-size: var(--text-sm); font-weight: 800; padding: 0 8px; border-radius: 999px; }
.adr-vc-lv.is-sup { background: var(--warning-light); color: var(--warning-dark); }
.adr-vc-lv.is-deep { background: var(--adr-lane-deep-bg); color: var(--adr-lane-deep-fg); }
.adr-card-th .adr-vc-lv { left: auto; top: auto; right: 6px; bottom: 6px; }   /* 카드 앞면 — 왼쪽 아래 «수업 밖»과 마주 보게 */
.adr-vc-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; word-break: keep-all; }
.adr-vc-m b { font-size: var(--text-sm); }
.adr-vc-m small, .adr-vc-why { font-size: var(--text-sm); color: var(--text-muted); }
.adr-vc-why mark { background: var(--warning-light); color: var(--warning-dark); font-weight: 700; padding: 0 3px; border-radius: 4px; }
.adr-vc-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adr-vc-pick { font: inherit; font-size: var(--text-sm); font-weight: 800; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--primary); background: var(--surface); color: var(--primary); cursor: pointer; min-height: 36px; }
.adr-vc-pick[aria-pressed="true"] { background: var(--primary-fill); color: var(--text-on-primary); }   /* 채움 이름(다크의 --primary 는 밝은 글자용 · 다크 카드색 글자가 밝은 면에 놓였다) */
.adr-vc-pick:disabled { border-color: var(--border); color: var(--text-muted); background: var(--bg-subtle); cursor: not-allowed; }
.adr-vc-pick:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* 좋아요·싫어요 엄지 — 미리보기 창 머리 줄, 제목과 같은 줄(2026-10-14 사용자 «채널 옆에 있으면 뜬금없다») · 아이콘은 작게(10-13 «이모티콘으로만 작게») */
.adr-vd-fb { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 8px; font-size: var(--text-sm); font-weight: 700; color: var(--text-body); white-space: nowrap; }
.adr-vd-fb span { margin-right: 4px; }
.adr-vd-fb button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-muted); cursor: pointer; }
.adr-vd-fb button svg { width: 16px; height: 16px; }
.adr-vd-fb button:hover { background: var(--bg-subtle); color: var(--text); }
.adr-vd-fb button[aria-pressed="true"] { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.adr-vd-fb button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
@media (max-width: 640px) { .adr-vd-fb span { display: none; } }   /* 좁으면 질문은 접고 엄지만 — 뜻은 aria-label 이 말한다 */
/* 보충 영상 미리보기 창 — 공용 .dialog-modal · 크게(16:9 · 화면에 맞춰) */
#adrVidDlg .dialog-modal { /* [design-ok] 공용 .dialog-modal 을 그대로 쓴다 — 이 창의 크기만 id 로 좁혀 정한다 */
  width: min(1280px, calc(100vw - 32px), calc((100vh - 120px) * 16 / 9));   /* 2026-10-13 사용자 «더 크게» — 옛 960 */
  max-width: none;
  max-height: none;
}
.adr-vd-h { min-width: 0; display: flex; flex-direction: column; }
.adr-vd-h h2 { margin: 0; font-size: var(--text-lg); word-break: keep-all; }
.adr-vd-h span { font-size: var(--text-sm); color: var(--text-muted); }
#adrVidDlg .adr-cv-video { margin-top: 12px; }
@media (max-width: 640px) { .adr-vc-row { grid-template-columns: 96px minmax(0, 1fr); } .adr-vc-act { grid-column: 1 / -1; } }
.adr-cv-pages { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.adr-cv-pages img { height: 150px; width: auto; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); }
.adr-cv-html { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.adr-cv-text.form-control { height: auto; min-height: 160px; }   /* 읽기 자료 — 공용 .form-control · rows=7 */
.adr-cv-qs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adr-cv-qs li { padding: 8px 0; border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-body); }
.adr-cv-qs li:first-child { border-top: 0; padding-top: 0; }
.adr-cv-no { font-weight: 800; color: var(--text); margin-right: 8px; }
.adr-cv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.adr-cv-files li { padding: 8px 0; border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-body); }
.adr-cv-files li:first-child { border-top: 0; padding-top: 0; }
.adr-cv-frow { display: flex; align-items: center; gap: 8px; }
.adr-cv-frow > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 첨부 미리보기 — 그림·PDF·txt 를 칸 안에서(js/adaptive-rec-send.js _filePreview) */
.adr-fprev { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.adr-fprev img { display: block; max-width: 100%; max-height: 360px; margin: 0 auto; object-fit: contain; }
.adr-fprev iframe { display: block; width: 100%; height: 420px; border: 0; }
.adr-ftxt, .adrst-ftxt { max-height: 360px; overflow: auto; padding: 14px 16px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
  font-size: var(--text-base); line-height: 1.7; color: var(--text-body); }
.adr-cv-files svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-muted); }

/* ── 2b 학생 — 맞춤 학습 카드(제목 = 개념 · 꼬리표 «개념 다지기»·«한 걸음 더») · 학습 화면(한 번에 하나) ── */
/* 숙제 › 맞춤 학습 탭의 «다음 학습»·«완료한 학습» 한 줄 목록 · 대시보드 한 줄 — 카드·학습 화면은 아래 «학생 맞춤 학습 화면 개편» 절 */
.adrst-done { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.adrst-dr { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; min-height: 60px; padding: 10px 20px; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; cursor: pointer; }
.adrst-dr:first-child { border-top: 0; } .adrst-dr:hover { background: var(--surface-hover); }
.adrst-dr-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adrst-dr-t b { font-size: var(--text-md); font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adrst-dr-t small { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); }
.adrst-dr-ch { color: var(--text-muted); }
/* 대시보드 한 줄(2026-10-13 개선) — 옆 «오늘 준비» 줄과 같은 꼴 · 색은 파랑(그 줄의 주황과 겹치지 않게)
   간격은 대시보드 칸(.alc-student-dash gap 16px)이 준다 — 제 아래 여백을 따로 두면 그 줄 사이만 32px 로 벌어졌다(사용자 «두 줄 사이의 간격도 맞춰줘») */
.adrst-nudge { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 20px; border-radius: 16px; border: 1px solid var(--primary-bd, var(--border)); border-left: 4px solid var(--primary); background: var(--surface); box-shadow: var(--shadow-xs); }
.adrst-nudge { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.adrst-nudge:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.adrst-nudge-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }
.adrst-nudge-ic svg { width: 24px; height: 24px; }
.adrst-nudge-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; word-break: keep-all; }
.adrst-nudge-t b { font-size: var(--text-lg); font-weight: 800; color: var(--text); }   /* 2026-10-13 사용자 «글씨 크기를 좀 더 키우고» — 15→17 · 아래 줄 12.5→15 */
.adrst-nudge-t span { font-size: var(--text-md); color: var(--text-body); }
.adrst-nudge-t i { font-style: normal; font-size: inherit; }   /* 기한(D-n)도 그 줄과 같은 크기 */
.adrst-nudge-t em { font-style: normal; color: var(--text-muted); }
.adrst-nudge-go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: var(--text-md); font-weight: 800; }   /* «버튼도 좀 더 직관적이게» — ▶ 시작 그림 + 더 큰 단추 */
.adrst-nudge-go svg { width: 18px; height: 18px; flex: none; }
.adrst-nudge-dd { flex: none; padding: 6px 14px; border-radius: 999px; font-size: var(--text-md); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--warning-light); color: var(--warning-dark); }
.adrst-nudge-dd.is-hot { background: var(--warning-light); color: var(--warning-dark); }   /* 오늘까지·기한 지남 = «늦음»은 주황(색의 뜻 표 D13 · 숙제 탭과 같다 · F-20261022-65-3) */
/* 휴대폰 — 단추는 아래 전체 폭, 기한은 제목 줄 오른쪽 끝(같은 요소를 자리만 옮긴다) */
@media (max-width: 640px) {
  .adrst-nudge { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic t dd" "go go go"; row-gap: 14px; }
  .adrst-nudge-ic { grid-area: ic; } .adrst-nudge-t { grid-area: t; } .adrst-nudge-dd { grid-area: dd; align-self: start; }
  .adrst-nudge-go { grid-area: go; width: 100%; }
}
/* 학생 숙제 화면 1단 — 밑줄 탭(누적장 D6 · 학생 화면이라 누름 44px) */
.shw-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border-strong); }
.shw-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-bottom: -1px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: var(--text-md); font-weight: 800; color: var(--text-muted); cursor: pointer; }
.shw-tab.is-on { color: var(--primary-dark); border-bottom-color: var(--primary); }   /* [다크 ④] 페이지 바탕 위 학교 색 글자 4.40 → 한 단계 진하게 */
.shw-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.shw-tab-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bg-subtle); font-size: var(--text-xs); display: inline-flex; align-items: center; justify-content: center; }
.shw-tab.is-on .shw-tab-n { background: var(--primary-fill); color: var(--text-on-primary); }
.adrst-err { color: var(--text-muted); }
.adrst-files { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.adrst-files a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--primary); text-decoration: none; }
.adrst-files svg { width: 13px; height: 13px; }
/* 첨부 미리보기 — 메시지 아래에 펼친다(js/adaptive-rec-student.js _filePrev) */
.adrst-files a, .adrst-fbtn { font: inherit; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; min-height: 32px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-weight: 700; color: var(--primary); cursor: pointer; }
.adrst-files a:hover, .adrst-fbtn:hover, .adrst-fbtn.is-on { border-color: var(--primary); background: var(--primary-light); }
.adrst-fbtn:focus-visible, .adrst-fprev-x:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrst-fprev { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.adrst-fprev-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.adrst-fprev-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.adrst-fprev-x { font: inherit; font-weight: 700; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; }
.adrst-fprev img { display: block; max-width: 100%; max-height: 480px; margin: 0 auto; object-fit: contain; }
.adrst-fprev iframe { display: block; width: 100%; height: 560px; border: 0; }
.adrst-ftxt { max-height: 480px; padding: 16px 20px; }
.adrst-h { margin: 0; font-size: var(--text-xl); font-weight: 800; color: var(--text); }
.adrst-sub { margin: 6px 0 16px; font-size: var(--text-sm); color: var(--text-muted); }
.adrst-slide { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: var(--text-sm); color: var(--text-body); }
.adrst-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--adr-video-bg); }
.adrst-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 보충 영상 단계(2026-10-13 · js/adaptive-rec-watch.js) — API 가 만든 iframe 이 칸을 채운다 · 3/4 진행 막대 */
.adrst-yt, .adrst-yt > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.adrst-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: var(--text-md); color: var(--text-body); word-break: keep-all; }
.adrst-src span:last-child:not(.adrst-ext) { color: var(--text-muted); font-size: var(--text-sm); }
.adrst-ext { font-size: var(--text-sm); font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.adrst-wbar { height: 6px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; margin-top: 14px; }
.adrst-wbar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .4s; }
.adrst-wnote { margin: 6px 0 0; font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.adrst-stage.is-done .adrst-wbar, .adrst-stage.is-done .adrst-wnote { display: none; }   /* 마친 단계를 다시 볼 때는 «3/4 보면» 안내가 필요 없다 */
.adrst-part { align-self: flex-start; font-size: var(--text-sm); font-weight: 800; color: var(--primary); }   /* 놓친 부분만 다시 볼 때 */
.adrst-pages { display: flex; flex-direction: column; gap: 12px; }
.adrst-pages img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
/* 가로로 넘기기(2026-10-13) — 한 장 = 칸 폭 하나 · 스냅으로 밀면 한 장씩 · 세로(A4) 쪽은 화면 높이 안에 맞춘다 */
.adrst-pages.is-deck { flex-direction: row; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; }
.adrst-pages.is-deck::-webkit-scrollbar { display: none; }
.adrst-pages.is-deck:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrst-page { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.adrst-pages.is-deck .adrst-page img { width: auto; max-width: 100%; max-height: 70vh; object-fit: contain; }
.adrst-deck-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.adrst-pg { font: inherit; font-size: var(--text-xl); line-height: 1; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.adrst-pg:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.adrst-pg:disabled { opacity: .35; cursor: default; }
.adrst-pg:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrst-pgn { min-width: 64px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-body); }
.adrst-qh + .adrst-pages, .adrst-qh + .adrst-deck { margin: 14px 0 16px; }   /* 자료 문항의 PPT·PDF 쪽(프레임과 같은 여백) */
.adrst-html { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.adrst-read { margin-top: 16px; max-width: 62ch; font-size: var(--text-lg); line-height: 1.9; color: var(--text); word-break: keep-all; }
/* 틀린 문항 다시 보기 — 한 문제씩(머리 «문제 N / M» · _next 가 넘긴다) · 원래 문항(프레임 = «정답 표시» 슬라이드 한 장 · 2026-10-13) · 아래 초록 상자 «정답 …»
   (2026-10-21 사용자 «틀린 문항 다시보기 쪽 안에 텍스트나 여백 디자인 깨져보여» · «한 문제씩 하고 다음 누르면 넘어가는게» — 옛: 목록 번호가 정답 줄 끝에 붙고 모든 문항을 세로로 쌓았다) */
.adrst-h + .adrst-qh { margin-top: 14px; }
.adrst-rv { margin-top: 14px; color: var(--text); }
.adrst-rv-q { margin: 0; font-size: var(--text-xl); font-weight: 800; line-height: 1.5; word-break: keep-all; }
.adrst-rv .adrst-sframe { margin: 0; max-width: 640px; }   /* 넓은 칸에선 슬라이드가 16:9 판 그대로라 짧은 문항은 빈 판이 커 보였다 — 다시 보기는 640 까지만 */
.adrst-rv-a { display: flex; align-items: baseline; gap: 4px 12px; max-width: 640px; margin: 10px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--success-light); font-size: var(--text-md); line-height: 1.6; word-break: keep-all; }
.adrst-rv-a b { flex: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--success-dark); }
.adrst-rv-a b svg { width: 16px; height: 16px; flex: none; }
.adrst-rv-a.is-mine { background: var(--bg-subtle); } .adrst-rv-a.is-mine b { color: var(--text-body); }   /* 내 답 — 빨강 대신 회색(채점 뒤 «✕ 내 답»과 같은 결) */
.adrst-qh { font-size: var(--text-md); font-weight: 800; color: var(--text-muted); }
.adrst-q { margin: 14px 0 20px; font-size: var(--text-xl); font-weight: 800; line-height: 1.5; color: var(--text); word-break: keep-all; }
/* 슬라이드 문항(2026-10-11) — 문제뱅킹 미리보기 프레임을 «풀기»로 띄운다(js/adaptive-rec-student.js _slideItem). 슬라이드는 16:9 무대 */
.adrst-sframe { margin: 14px 0 16px; max-width: 880px; }
.adrst-sframe iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.adrst-opts.is-ox { flex-direction: row; }
.adrst-opt.is-ox { flex: 1; justify-content: center; min-height: 120px; font-size: var(--text-3xl); font-weight: 900; color: var(--primary); }
.adrst-opt.is-ox.is-x { color: var(--danger); }
.adrst-opt:disabled { cursor: default; }

/* ── 학생 맞춤 학습 화면 개편(2026-10-21 · 목업 C안 · 사용자 «이렇게 진행해») ──
   탭 = «지금 할 학습» 한 장 + 옆(좁으면 아래) 다음·완료 목록 · 학습 화면 = 왼쪽 세로 단계 길 + 오른쪽 한 칸(좁으면 가로 단계 띠).
   ★폭은 «칸 폭»(컨테이너 쿼리)으로 가른다★ — 학생 화면은 왼쪽 메뉴가 있어 창 폭과 칸 폭이 다르다. 860 = 세로 길이 서는 최소 칸 폭.
   색: 버튼·막대·지금 단계 = 학교 테마 주 색(R211 «지금 할 일» · 일반 파랑 · 특수 진한 주황) · 꼬리표 = 청록/보라(초록 «정답»·브랜드 주황과 겹치지 않게).
   (옛: 위 얇은 막대 + 왼쪽 번호 목록 · 꼬리표 주황/파랑 — 특수학교 테마에서 둘 다 주황으로 보였다) */
.adrst-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.adrst-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: var(--text-sm); font-weight: 800; white-space: nowrap; }
.adrst-tag.is-sup { background: var(--adr-lane-sup-bg); color: var(--adr-lane-sup-fg); }
.adrst-tag.is-deep { background: var(--adr-lane-deep-bg); color: var(--adr-lane-deep-fg); }
.adrst-dd { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: var(--text-sm); font-weight: 800; white-space: nowrap; background: var(--bg-subtle); color: var(--text-body); font-variant-numeric: tabular-nums; }
.adrst-dd.is-late { background: var(--warning-light); color: var(--warning-dark); }   /* 오늘까지 · 기한 지남 = «늦음»은 주황(D13) */
/* 포커스 — 진한 주 색 바깥선(띄움 2px · 흰 면 위 3:1 이상) — 키보드·스위치로 쓰는 학생이 지금 자리를 놓치지 않게 */
.adrst-tab :focus-visible, .adrst :focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }

/* ① 탭 */
.adrst-tab { container: adrst-tab / inline-size; }
.adrst-tab-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@container adrst-tab (min-width: 900px) { .adrst-tab-g { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
.adrst-side { display: flex; flex-direction: column; gap: 20px; }
.adrst-sec { margin: 0 0 10px; font-size: var(--text-md); font-weight: 800; color: var(--text-body); }
.adrst-sec em { margin-left: 6px; font-style: normal; color: var(--text-muted); }
.adrst-now { display: flex; flex-direction: column; padding: 28px 32px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs), var(--shadow-md); }
.adrst-now h2 { margin: 0 0 4px; font-size: var(--text-3xl); font-weight: 900; letter-spacing: -.02em; line-height: 1.3; color: var(--text); word-break: keep-all; }
.adrst-now p { margin: 0; font-size: var(--text-md); color: var(--text-muted); }
.adrst-now.is-empty { align-items: center; padding: 32px 20px; } .adrst-now.is-empty b { font-size: var(--text-lg); color: var(--text-muted); }
.adrst-now-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.adrst-now-k { margin-right: 4px; font-size: var(--text-base); font-weight: 800; color: var(--primary); }
/* 단계 줄 — 누르는 칸처럼 보이지 않게 «아이콘 + 글자»만(✓ 완료 · ● 지금 · ○ 남음) */
.adrst-flat { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 24px; padding: 0; }
.adrst-flat li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-md); color: var(--text-muted); word-break: keep-all; }
.adrst-flat li > i { width: 10px; height: 10px; margin: 0 4px; border-radius: 999px; border: 2px solid var(--adr-ctl-bd); flex: none; }
.adrst-flat li.is-done { color: var(--text-body); } .adrst-flat li.is-done .adrst-ic { color: var(--success-dark); }
.adrst-flat li.is-cur { color: var(--primary); font-weight: 800; } .adrst-flat li.is-cur > i { background: var(--primary); border-color: var(--primary); }
.adrst-now-f { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.adrst-now-f small { font-size: var(--text-md); font-weight: 800; color: var(--text-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.adrst-pbar { flex: 1; max-width: 260px; height: 8px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; }
.adrst-pbar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.adrst-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; min-height: 56px; padding: 0 28px; border-radius: var(--radius-sm); font-size: var(--text-lg); font-weight: 800;
  background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); }
.adrst-dr-ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--success-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adrst-dr-ok.is-zero { color: var(--text-muted); }   /* 정답 0/N — 초록·✓ 없이 */
@container adrst-tab (max-width: 559px) {
  .adrst-now { padding: 20px; } .adrst-now h2 { font-size: var(--text-2xl); }
  .adrst-flat { flex-direction: column; gap: 8px; margin: 18px 0 20px; }
  .adrst-pbar { max-width: none; } .adrst-go { width: 100%; margin-left: 0; }
  .adrst-dr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .adrst-dr .adrst-tag { grid-column: 1; justify-self: start; } .adrst-dr-t { grid-column: 1; } .adrst-dr-ch { display: none; }
  .adrst-dr > .adrst-dd, .adrst-dr > .adrst-dr-ok, .adrst-dr > span:empty { grid-column: 2; grid-row: 1 / 3; }
}

/* ② 학습 화면 — 넓은 칸: [세로 단계 길 | 한 칸] · 좁은 칸: 1단 + 가로 단계 띠 */
.adrst { container: adrst / inline-size; max-width: 1240px; padding: var(--space-4) var(--space-6) var(--space-7) var(--space-7); }   /* 학생 대시보드(.alc-student-dash)와 같은 여백 */
.adrst-learn { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.adrst-back { font: inherit; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -8px; padding: 0 12px 0 6px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-body); font-weight: 700; cursor: pointer; }
.adrst-back:hover { color: var(--text); background: var(--surface-hover); }
.adrst-rail > .adrst-tag { display: flex; width: fit-content; margin-top: 10px; }
.adrst-t { margin: 8px 0 2px; font-size: var(--text-2xl); font-weight: 900; line-height: 1.35; letter-spacing: -.02em; color: var(--text); word-break: keep-all; }
.adrst-tsub { margin: 0; font-size: var(--text-md); color: var(--text-muted); }   /* «어느 수업 · 기한» */
/* 가로 단계 띠(좁은 칸) — 큰 글자 «3/4 · 문항» + 칸마다 이름 */
.adrst-now-step { display: block; margin: 16px 0 10px; font-size: var(--text-xl); font-weight: 900; color: var(--primary); }
.adrst-segs { list-style: none; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; margin: 0; padding: 0; }
.adrst-segs button { font: inherit; display: block; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.adrst-segs i { display: block; height: 8px; border-radius: 999px; background: var(--border-strong); }
.adrst-segs small { display: block; margin-top: 6px; font-size: var(--text-sm); font-weight: 600; line-height: 1.3; color: var(--text-muted); word-break: keep-all; }
.adrst-segs small .adrst-ic { width: 14px; height: 14px; margin-right: 2px; vertical-align: -2px; color: var(--success-dark); }
.adrst-segs .is-done i { background: var(--success-fill); } .adrst-segs .is-done small { color: var(--text-body); }   /* [다크 ④] 끝낸 막대 = 완료 채움(--success-dark 는 글자 자리라 다크에서 밝게 튄다 · 동그라미와 같은 색) */
.adrst-segs .is-cur i { background: var(--primary); } .adrst-segs .is-cur small { color: var(--primary-dark); font-weight: 800; }   /* 페이지 바탕 위 학교 색 글자 4.40 → 한 단계 진하게 */
/* 세로 단계 길(넓은 칸) */
.adrst-path { display: none; list-style: none; margin: 24px 0 0; padding: 0; }
.adrst-path li { position: relative; }
.adrst-path li + li::before { content: ""; position: absolute; left: 20px; top: -12px; width: 3px; height: 24px; margin-left: -1.5px; border-radius: 999px; background: var(--border-strong); }
.adrst-path li.is-done + li::before { background: var(--success-fill); }
.adrst-path button { font: inherit; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; color: var(--text-muted); font-size: var(--text-md); font-weight: 600; cursor: pointer; }
.adrst-path button:hover .adrst-pt { color: var(--text); }
.adrst-nd { position: relative; z-index: 1; width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--adr-ctl-bd); background: var(--surface); color: var(--text-muted); }
.adrst-nd svg { width: 20px; height: 20px; }
.adrst-pt { display: flex; flex-direction: column; line-height: 1.3; word-break: keep-all; }
.adrst-pt small { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adrst-path .is-done button { color: var(--text-body); }
.adrst-path .is-done .adrst-nd { background: var(--success-fill); border-color: var(--success-fill); color: var(--text-on-primary); }
.adrst-path .is-cur button { color: var(--primary); font-weight: 800; }
.adrst-path .is-cur .adrst-nd { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); outline: 4px solid var(--primary-light); }
.adrst-path .is-cur small { color: var(--primary); }
.adrst-msg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); font-size: var(--text-md); line-height: 1.6; color: var(--text-body); word-break: keep-all; }   /* 선생님 말씀 */
.adrst-msg b { color: var(--text); white-space: nowrap; }
.adrst-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adrst-stage { min-width: 0; min-height: 360px; padding: 28px 32px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs), var(--shadow-md); display: flex; flex-direction: column; }
@container adrst (min-width: 860px) {
  .adrst-learn { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  /* 왼쪽도 흰 카드(2026-10-22 사용자 «상세 배경이 너무 텅 비어보여» → «왼쪽도 흰 카드로») — 회색 바탕 위에 글씨만 떠 있지 않게.
     두 칸 맨 위를 카드 윗변으로 맞춘다(옛: 오른쪽 칸을 54px 내려 선생님 말씀을 꼬리표 높이에 맞췄다) */
  .adrst-rail { position: sticky; top: 16px; padding: 16px 24px 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs), var(--shadow-md); }
  .adrst-top { display: none; } .adrst-path { display: block; }
}
@container adrst (min-width: 1100px) { .adrst-learn { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 599px) { .adrst { padding: 12px 16px 24px; } }   /* 휴대폰 — 양옆 16px(R039 계열 폰 여백) */
@container adrst (max-width: 559px) {
  .adrst-stage { padding: 20px; } .adrst-t { font-size: var(--text-xl); }
  .adrst-segs small { font-size: var(--text-xs); }
}

/* 문항 — 보기는 한 줄에 하나 · 채점 뒤 정답 초록 «✓ 정답» · 내 답 점선 «✕ 내 답»(빨강 대신) */
.adrst-opts { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.adrst-opt { font: inherit; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; border: 2px solid var(--adr-ctl-bd); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: var(--text-lg); font-weight: 700; text-align: left; cursor: pointer; word-break: keep-all; }
.adrst-opt:hover:not(:disabled) { border-color: var(--primary); background: var(--surface-hover); }
.adrst-olab { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-base); font-weight: 800; white-space: nowrap; }
.adrst-olab svg { width: 16px; height: 16px; }
.adrst-opt.is-ox { position: relative; } .adrst-opt.is-ox .adrst-olab { position: absolute; top: 10px; right: 12px; }   /* O/X 는 글자를 가운데에 둔 채 표시만 모서리로(2026-10-21 실화면 — 표시가 붙으면 O·X 가 왼쪽으로 밀렸다) */
.adrst-opt.is-right { border-color: var(--success); background: var(--success-light); }   /* [다크 ④] 테두리 = 상태 색(글자 자리 --success-dark 는 다크에서 밝게 튄다) */
.adrst-opt.is-right .adrst-olab { color: var(--success-dark); } .adrst-opt.is-right .adrst-on { background: var(--success-fill); color: var(--text-on-primary); }
.adrst-opt.is-wrong { border-style: dashed; border-color: var(--text-body); }
.adrst-opt.is-wrong .adrst-olab { color: var(--text-body); }
.adrst-opt.is-dim { color: var(--text-muted); }
.adrst-on { width: 32px; height: 32px; border-radius: 999px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-subtle); font-size: var(--text-md); font-weight: 800; color: var(--text-body); }
.adrst-fb { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-subtle); font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.adrst-fb svg { width: 20px; height: 20px; }
.adrst-fb.is-ok { background: var(--success-light); color: var(--success-dark); }
/* 해설 — 채점 결과 아래 · 교사가 쓴 글이라 결과 줄보다 한 단계 약하게(굵기·크기) */
.adrst-expl { max-width: 720px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.adrst-expl b { display: block; margin-bottom: 4px; font-size: var(--text-base); font-weight: 800; color: var(--primary); }
.adrst-expl p { margin: 0; font-size: var(--text-md); line-height: 1.7; color: var(--text-body); word-break: keep-all; }
/* 행동줄 — 칸 아래에 붙어 따라온다(긴 자료를 읽는 동안에도 [다음]이 보이게) */
.adrst-stage [data-adrst-sfb] { display: contents; }
.adrst-act { order: 2; position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 0 -32px -28px; padding: 14px 32px; border-top: 1px solid var(--border); border-radius: 0 0 16px 16px; background: var(--surface); }
.adrst-stage::after { content: ""; order: 1; flex: 1 0 20px; }   /* 내용과 행동줄 사이 — 짧으면 행동줄을 칸 바닥으로 민다 */
.adrst-act .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; min-height: 52px; padding: 0 24px; border-radius: var(--radius-sm); font-size: var(--text-md); font-weight: 800; }
.adrst-act .btn svg { width: 18px; height: 18px; flex: none; }
.adrst-act .btn-primary { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); }
.adrst-act .btn-outline { background: var(--surface); border: 2px solid var(--primary); color: var(--primary); }
@container adrst (max-width: 559px) {
  .adrst-act { margin: 0 -20px -20px; padding: 12px 16px; } .adrst-act .btn { flex: 1; min-width: 0; padding: 0 12px; }
}

/* ③ 완료 — 머리 «다 했어요 · N문제 중 M개» + «결과» 목록 */
.adrst-end { display: flex; flex-direction: column; text-align: center; }
.adrst-end-hd { padding: 8px 0 22px; }
.adrst-end-mk { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 999px; background: var(--success-light); color: var(--success-dark); }
.adrst-end-mk .adrst-ic { width: 34px; height: 34px; }
.adrst-end-hd h2 { margin: 0; font-size: var(--text-3xl); font-weight: 900; color: var(--text); }
.adrst-end-hd p { margin: 4px 0 0; font-size: var(--text-lg); font-weight: 700; color: var(--text-body); }
.adrst-res-k { margin: 0; padding: 0 4px 8px; text-align: left; font-size: var(--text-base); font-weight: 800; color: var(--text-muted); }
.adrst-res { list-style: none; margin: 0; padding: 0; text-align: left; }
.adrst-res li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 4px; border-top: 1px solid var(--border); }
.adrst-res-n { flex: none; width: 56px; font-size: var(--text-base); font-weight: 800; color: var(--text-muted); white-space: nowrap; }
.adrst-res-t { flex: 1; min-width: 0; font-size: var(--text-md); font-weight: 600; color: var(--text); word-break: keep-all; }
.adrst-res-t small { display: block; font-size: var(--text-base); font-weight: 700; color: var(--text-body); }
.adrst-mk { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: var(--text-base); font-weight: 800; white-space: nowrap; background: var(--bg-subtle); color: var(--text-body); }
.adrst-mk svg { width: 16px; height: 16px; }
.adrst-mk.is-o { background: var(--success-light); color: var(--success-dark); }

/* 손가락 기기(태블릿·폰) — 보기·행동줄을 더 크게(§0-B 2026-09-27 «손가락 기기만 크게»와 같은 판정) */
@media (pointer: coarse) {
  .adrst-opt { min-height: 64px; } .adrst-act .btn, .adrst-go { min-height: 56px; font-size: var(--text-lg); } .adrst-dr { min-height: 68px; }
}

/* 제출기한 — 월·일 휠(iOS 날짜 휠처럼 · 가운데 띠가 고른 값) */
.adr-due { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adr-due-btn { font: inherit; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.adr-due-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adr-duepop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 240px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.adr-wheels { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 180px; }
.adr-wheel { height: 180px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; mask-image: linear-gradient(transparent, var(--text) 30%, var(--text) 70%, transparent); }
.adr-wheel::-webkit-scrollbar { display: none; }
.adr-wheel:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }
.adr-wheel ul { list-style: none; margin: 0; padding: 72px 0; }
.adr-wheel li { height: 36px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: var(--text-md); color: var(--text-muted); }
.adr-wheel li[aria-selected="true"] { color: var(--text); font-weight: 800; }
.adr-wheel-band { position: absolute; left: 0; right: 0; top: 72px; height: 36px; border-radius: 8px; background: var(--bg-subtle); z-index: -1; pointer-events: none; }
.adr-duepop-act { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* 메뉴 화면 머리 — 수업 고르기 상자(라벨 «수업» + 이름 + ▾) · 오른쪽 [전체 회차 | 회차별] */
.adrv { padding: var(--space-4) var(--space-6) var(--space-7) var(--space-7); container-type: inline-size; container-name: adrv; }
.adrv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.adrv-course { position: relative; }
/* 수업 상자 옆 한 문장(2026-10-13 사용자 확정 문구 · 상자와 여백을 두고) — 좁으면 상자 아래 줄로 */
.adrv-say { flex: 1 1 320px; min-width: 0; margin: 0 0 0 12px; font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; color: var(--text); word-break: keep-all; }
.adrv-say em { font-style: normal; color: var(--adr-btn); background: linear-gradient(transparent 64%, var(--primary-light) 64%); padding: 0 2px; }
.adrv-h { margin: 0; font-size: inherit; font-weight: inherit; }
.adrv-cbtn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 8px 6px 16px; border: 1.5px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); box-shadow: var(--shadow-xs); font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.adrv-cbtn:hover, .adrv-cbtn[aria-expanded="true"] { border-color: var(--adr-btn); }
.adrv-cbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrv-ck { display: flex; flex-direction: column; line-height: 1.2; }
.adrv-ck small { font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }
.adrv-ck b { font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; }
.adrv-cv { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-subtle); color: var(--text-body); }
.adrv-cv svg { width: 14px; height: 14px; }
.adrv-cmenu { position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 30; min-width: 240px; max-height: 360px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-md); }
.adrv-cmenu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 10px 8px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: var(--text-base); font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.adrv-cmenu button:hover, .adrv-cmenu button:focus-visible { background: var(--bg-subtle); outline: none; }
.adrv-cmenu button[aria-selected="true"] { color: var(--primary); background: var(--primary-light); }
.adrv-cw { flex: 0 0 auto; height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: var(--text-xs); font-weight: 800; background: var(--bg-subtle); color: var(--text-muted); }
.adrv-cw.is-on { background: var(--primary-light); color: var(--adr-btn); }
.adrv-seg { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); }
.adrv-seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: var(--text-base); font-weight: 700; color: var(--text-muted); cursor: pointer; }
.adrv-seg button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }
.adrv-seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* 회차별 — 회차 알약 띠(2026-10-13 사용자 «앞 색 점은 잘 안 보여 · 범례도 너무 작아») ·
   상태 = 알약 바탕색(대기 파랑 · 학습 중 주황 · 학습 완료 초록 · 그 밖의 상태는 흰 바탕) · 범례는 같은 바탕색 견본 */
.adrv-stools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.adrv-lg { display: flex; gap: 16px; font-size: var(--text-sm); font-weight: 700; color: var(--text-body); }
.adrv-lg span { display: inline-flex; align-items: center; gap: 6px; }
.adrv-sw { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid; display: inline-block; }
.adrv-sw.is-wait, .adrv-pill.is-wait { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); border-color: var(--primary); }
.adrv-sw.is-prog, .adrv-pill.is-prog { background: color-mix(in srgb, var(--warning) 20%, var(--surface)); border-color: var(--warning); }
.adrv-sw.is-done, .adrv-pill.is-done { background: color-mix(in srgb, var(--success) 18%, var(--surface)); border-color: var(--success); }   /* 50 단계 면은 «잘 안 보여» — 상태색을 16~20% 섞는다 */
.adrv-sort { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); }
.adrv-sort button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); cursor: pointer; }
.adrv-sort button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }
.adrv-snav { position: relative; display: flex; align-items: center; gap: 8px; }
/* 회차 고르기 카드(목업 108 B안) — 범례·정렬 + 알약 띠를 얇은 흰 카드 하나에 */
.adrv-navc { margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); }
.adrv-navc:empty { display: none; }
.adrv-tip { z-index: 20; }   /* 알약 아래 말풍선(.adrd-tip 모양 그대로) */
.adrv-strip { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }   /* [design-ok] 마스크 알파(색 아님) — 오른쪽 끝을 흐려 «더 있음»을 알린다 */
.adrv-strip::-webkit-scrollbar { display: none; }   /* 넘김은 오른쪽 끝 ‹ › 와 끌기·휠로 */
.adrv-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--surface); font: inherit; font-size: var(--text-sm); color: var(--text); white-space: nowrap; cursor: pointer; }
.adrv-pill b { font-weight: 800; }
.adrv-pill:hover { border-color: var(--border-strong); }
.adrv-pd { height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; background: var(--bg-subtle); font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adrv-pill.is-wait .adrv-pd, .adrv-pill.is-prog .adrv-pd, .adrv-pill.is-done .adrv-pd { background: var(--surface); }
/* 고른 회차 = 자기 상태색을 더 진하게(16~20% → 42%) + 같은 색 고리 — 2026-10-15 사용자 «전부 남색 효과 주는 것보다 배경색이 더 진해지는 게» */
.adrv-pill.is-on { --c: var(--adr-btn); border-color: var(--c); background: color-mix(in srgb, var(--c) 42%, var(--surface)); color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }   /* [design-ok] 그림자가 아니라 상태색 고리(두 겹 테두리) — 포커스 고리와 같은 꼴 */
.adrv-pill.is-on.is-wait { --c: var(--primary); } .adrv-pill.is-on.is-prog { --c: var(--warning); } .adrv-pill.is-on.is-done { --c: var(--success); }
.adrv-pill.is-on .adrv-pd { background: var(--surface); color: var(--text); }
.adrv-arw { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-body); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.adrv-arw svg { width: 14px; height: 14px; }
.adrv-arw:hover { border-color: var(--border-strong); }
.adrv-pill:focus-visible, .adrv-arw:focus-visible, .adrv-sort button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 수업 전체 — 위: 최신 회차 + 대기·진행·완료 세 칸(같은 높이) */
/* 위 한 줄 — 최신 회차(작게) + 회차 흐름(그래프 둘 나란히) · 2026-10-12 사용자 «파란색 카드 쓸데없이 너무 크다 회차 흐름도» */
.adrd-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 24px; }
.adrd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 16px; background: var(--adr-btn-fill); color: var(--text-on-primary); box-shadow: var(--shadow-md); }
.adrd-hero-l { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px; }
.adrd-hero-r1 { display: flex; align-items: center; gap: 8px; }
.adrd-wk { flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; background: var(--surface); color: var(--adr-btn); font-size: var(--text-sm); font-weight: 800; white-space: nowrap; }
.adrd-date { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.adrd-hero-t { margin-top: 10px; font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.adrd-hero-n { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 12px; }
.adrd-hero-n b { font-size: var(--text-3xl); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.adrd-hero-n span { font-size: var(--text-md); font-weight: 700; opacity: .9; }
.adrd-hero-rt { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; background: rgba(255, 255, 255, .08); border-left: 1px solid rgba(255, 255, 255, .14); }
.adrd-hero-k { font-size: var(--text-xs); font-weight: 800; opacity: .8; }
.adrd-todos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* 보낼 학습 두 칸 나란히 — 셋째 줄(반 전체 보강) 걷고 카드를 낮췄다(2026-10-14) */
.adrd-todo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.adrd-todo span { font-size: var(--text-sm); font-weight: 700; }
.adrd-todo b { font-size: var(--text-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.adrd-todo b small { margin-left: 2px; font-size: var(--text-xs); font-weight: 700; opacity: .8; }
.adrd-hero-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.adrd-hero-bar i { display: block; height: 100%; border-radius: 999px; background: #86efac; }   /* [design-ok] 남색 면 위 초록 — 토큰 초록은 대비가 모자라 밝은 초록 */
.adrd-hero-go { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--surface); color: var(--adr-btn); font: inherit; font-weight: 800; cursor: pointer; }
.adrd-hero-go:hover { background: var(--primary-light); }
.adrd-hero.is-one { grid-template-columns: minmax(0, 1fr); }
.adrd-hero.is-one .adrd-hero-go { align-self: flex-end; margin-top: auto; }
.adrd-hero-go:focus-visible { outline: 3px solid var(--text-on-primary); outline-offset: 2px; }
.adrd-note { display: flex; align-items: center; gap: 8px; margin: -8px 0 16px; font-size: var(--text-sm); color: var(--text-muted); }

/* 아래: 전송 내역 — 표 하나 · 머리줄이 뜻을 한 번만 · 줄에 색 칩 없음(색 = 진행 막대 초록 · 기한 지남 주황) */
.adrd-list { overflow: visible; }
.adrd-tr { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 176px 112px 76px 16px; align-items: center; gap: 16px; min-height: 60px; padding: 8px 20px; cursor: pointer; }
.adrd-tr.is-h { min-height: 38px; padding-top: 0; padding-bottom: 0; background: var(--bg-subtle); border-radius: 16px 16px 0 0; font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); cursor: default; }
.adrd-tr.is-wait { cursor: default; background: var(--surface-hover); }
.adrd-tr:not(.is-h):not(.is-wait):hover, .adrd-tr.is-open { background: var(--surface-hover); }
.adrd-it { border-top: 1px solid var(--border); }
.adrd-it:last-child .adrd-tr:not(.is-open), .adrd-it:last-child .adrd-ex { border-radius: 0 0 16px 16px; }
.adrd-ttl { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.adrd-ttl.is-static { cursor: default; }
.adrd-ttl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-base); font-weight: 800; }
.adrd-ttl:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.adrd-wk.is-sm { height: 22px; padding: 0 7px; border-radius: 4px; background: var(--bg-subtle); color: var(--text-body); font-size: var(--text-xs); }
.adrd-by { min-width: 0; font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adrd-by b { color: var(--text); font-weight: 800; } .adrd-by i { font-style: normal; margin: 0 6px; color: var(--border-strong); }
.adrd-pb { display: flex; align-items: center; gap: 10px; }
.adrd-pb-bar { flex: 0 0 auto; width: 120px; height: 8px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden; display: flex; }
.adrd-pb-bar i { height: 100%; } .adrd-pb-bar i.is-d { background: var(--success); } .adrd-pb-bar i.is-p { background: var(--success); opacity: .35; }
.adrd-pb b { min-width: 38px; font-size: var(--text-sm); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.adrd-pb.is-all b { color: var(--success-dark); }
.adrd-none { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.adrd-due { font-size: var(--text-sm); font-weight: 800; color: var(--text-body); white-space: nowrap; }
.adrd-wtxt { grid-column: 3; font-size: var(--text-sm); color: var(--text-muted); } .adrd-wtxt b { color: var(--text); }
.adrd-chev { color: var(--text-muted); transition: transform .2s; } .adrd-it.is-open .adrd-chev { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .adrd-chev { transition: none; } }
.adrd-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
/* «남은 N명» — 테두리만 있는 단추 · 올리거나 누르면 말풍선(학번순 학번·이름 + 푼 문항 수) */
.adrd-left { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: var(--text-xs); font-weight: 800; color: var(--text-body); cursor: pointer; white-space: nowrap; }
.adrd-left:hover, .adrd-left.is-show { border-color: var(--text-muted); }
.adrd-left:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrd-left-v { font-size: 10px; color: var(--text-muted); }   /* [design-ok] 펼침 기호 */
.adrd-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 200px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-md); text-align: left; font-size: var(--text-sm); font-weight: 600; color: var(--text); cursor: default; display: none; }
.adrd-pop::before { content: ""; position: absolute; left: 50%; bottom: 100%; margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--surface); }
.adrd-left:hover .adrd-pop, .adrd-left:focus-visible .adrd-pop, .adrd-left.is-show .adrd-pop { display: block; }
.adrd-pg { display: block; }
.adrd-pg > span { display: flex; align-items: center; gap: 8px; line-height: 1.7; white-space: nowrap; }
.adrd-pn { margin-left: auto; padding-left: 8px; font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }   /* 푼 문항 수 — 줄 끝에 맞춘다 */
.adrd-pg em { font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.adrd-pg i { font-style: normal; font-size: var(--text-xs); color: var(--text-muted); }

/* 펼친 상세 — 갈래 세그먼트(3-6 A · D6) · 정보 줄(3-7 · 라벨 오른쪽 맞춤 · 콜론 없음) · 학생 × 문항 표(3-1·3-2 A) */
.adrd-ex-h { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; min-height: 42px; margin: 0 0 12px; }   /* 42px = 세그먼트 높이 — 갈래가 하나여도 같은 자리 */
.adrd-seg { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); }
.adrd-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: var(--text-sm); font-weight: 800; color: var(--text-muted); cursor: pointer; }
.adrd-seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.adrd-seg button i { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface); font-size: var(--text-xs); color: var(--text-body); text-align: center; }
.adrd-seg button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrd-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font-size: var(--text-sm); white-space: nowrap; }
.adrd-seg + .adrd-meta { margin-left: auto; }   /* 갈래가 둘이면 세그먼트 왼쪽 · 정보 오른쪽 한 줄 — 하나면 정보가 왼쪽에서 시작 */
.adrd-meta div { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 16px; }
.adrd-meta div:first-child { padding-left: 0; }
.adrd-meta div + div { border-left: 1px solid var(--border); }
.adrd-meta span { font-weight: 700; color: var(--text-muted); }
.adrd-meta b { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.adrd-lg { display: flex; flex-wrap: wrap; gap: 12px; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adrd-lg span { display: inline-flex; align-items: center; gap: 4px; }
.adrd-lg .adrd-sym { width: 18px; height: 18px; font-size: 11px; }   /* [design-ok] 범례 기호 — 칸 기호를 줄인 것 */
.adrd-mx { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow-x: auto; }
.adrd-mx table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.adrd-mx th, .adrd-mx td { height: 40px; padding: 0 12px; border-top: 1px solid var(--border); background: var(--surface); text-align: left; white-space: nowrap; }
.adrd-mx thead th { height: 36px; border-top: 0; background: var(--bg-subtle); font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }
.adrd-mx tfoot td { background: var(--bg-subtle); font-size: var(--text-xs); font-weight: 800; color: var(--text-muted); }
.adrd-mx .is-stick { position: sticky; left: 0; z-index: 1; }
.adrd-mx .is-stick2 { position: sticky; left: 80px; z-index: 1; box-shadow: 6px 0 6px -6px rgba(15, 23, 42, .18); }   /* [design-ok] 고정 칸 오른쪽 그림자 = «옆으로 더 있음» 신호(토큰 그림자는 사방으로 퍼진다) */
.adrd-mx .adrd-sno { box-sizing: border-box; width: 80px; min-width: 80px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.adrd-nm { font-weight: 800; color: var(--text); }
.adrd-mx .adrd-qc { width: 52px; min-width: 52px; text-align: center; }   /* [design-ok] 문항 칸 폭 고정 — 2~10개 어느 수든 같은 꼴(3-1 A) */
.adrd-mx .adrd-num { text-align: right; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.adrd-mx thead th.adrd-num { color: var(--text-muted); }   /* 머리줄은 다른 칸과 같은 흐린 글자 */
.adrd-fin { width: 100%; color: var(--text-body); }   /* 남는 폭은 맨 끝 칸이 받는다 — 학번·이름·문항·정답이 붙어 선다 */
tr.adrd-stu { cursor: pointer; }
tr.adrd-stu:hover td { background: var(--surface-hover); }
tr.adrd-stu:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.adrd-st { margin-left: 8px; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; vertical-align: 1px; }
.adrd-st.is-done { background: var(--success-light); color: var(--success-dark); }
.adrd-st.is-none { background: var(--bg-subtle); color: var(--text-muted); }
.adrd-sym { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 900; line-height: 1; }   /* [design-ok] 기호 글자 */
.adrd-sym.is-o { background: var(--success-light); color: var(--success-dark); }
.adrd-sym.is-x { background: var(--danger-light); color: var(--danger-dark); }
.adrd-sym.is-na, .adrd-sym.is-ng { background: var(--bg-subtle); color: var(--text-muted); }
.adrd-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adrd-sh .adrd-h { margin: 0; }
.adrd-fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.adrd-fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--text-body); cursor: pointer; }
.adrd-fchip i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.adrd-fchip:hover { border-color: var(--border-strong); }
.adrd-fchip.is-on { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--text-on-primary); }   /* 채운 칩 = 채움 이름(다크의 --primary 는 밝은 글자용이라 흰 글자 2.11 이었다) */
.adrd-fchip.is-on i { color: var(--text-on-primary); }
.adrd-go { min-height: 36px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 8px; background: var(--surface); font: inherit; font-size: var(--text-sm); font-weight: 800; color: var(--primary); cursor: pointer; white-space: nowrap; }
.adrd-go:hover { background: var(--primary-light); }
.adrd-flow-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px 0; }
.adrd-flow-h { margin: 0; font-size: var(--text-base); font-weight: 800; color: var(--text); }
.adrd-h { margin: 0 0 12px; font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.adrd-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.adrd-empty { padding: 28px; text-align: center; font-weight: 700; color: var(--text-muted); }
.adrd-it + .adrd-it { border-top: 1px solid var(--border); }
.adrd-chev { color: var(--text-muted); transition: transform .2s; } .adrd-it.is-open .adrd-chev { transform: rotate(90deg); }
.adrd-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.adrd-chip.is-late { background: var(--warning-light); color: var(--warning-dark); }   /* «늦음»은 맞춤 학습에서도 주황(R223 ⑥ · 학생 쪽 .adrst-dd.is-late 와 같다) */
.adrd-ex { padding: 4px 20px 20px; background: var(--surface-hover); }
.adrd-mk { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.adrd-mk.is-o { background: var(--success-light); color: var(--success-dark); }
.adrd-mk.is-x { background: var(--danger-light); color: var(--danger-dark); }
.adrd-mk.is-na, .adrd-mk.is-ng { background: var(--bg-subtle); color: var(--text-muted); }
.adrd-ex-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.adrd-ex-f .adrd-lnk { margin-left: auto; }
.adrd-lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--primary); cursor: pointer; }
.adrd-lnk:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.adrd-fl { min-width: 0; padding: 6px 20px 12px; }
.adrd-fl svg { display: block; width: 100%; height: auto; margin-top: 6px; }   /* viewBox 폭 = 칸 폭(_fitChart) — 높이는 JS FL_H 고정 */
.adrd-fl svg .ax { stroke: var(--border); } .adrd-fl svg .gr { stroke: var(--border); stroke-dasharray: 2 4; }
/* 선 색 = 갈래(보충 주황 · 심화 보라(11-09 결정 2A)) — 점·말풍선 강조도 같은 색 */
.adrd-fl svg .is-sup { --c: var(--warning); } .adrd-fl svg .is-deep { --c: var(--adr-lane-deep-fg); }
.adrd-fl svg polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adrd-fl svg .area { fill: var(--c); fill-opacity: .07; stroke: none; }
.adrd-fl svg circle { fill: var(--surface); stroke: var(--c); stroke-width: 1.5; }
.adrd-fl svg circle.is-last { fill: var(--c); }
.adrd-fl svg circle.is-wide { stroke: var(--text-faint); stroke-dasharray: 2 2; }
.adrd-fl svg text { font-size: var(--text-xs); fill: var(--text-muted); }   /* SVG 눈금 글자 — viewBox 가 칸 폭과 같아 1:1 */
.adrd-fl-lg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); }
.adrd-fl-lg > span { display: inline-flex; align-items: center; gap: 6px; }
.adrd-fl-lg i { width: 14px; height: 3px; border-radius: 999px; }
.adrd-fl-lg .is-sup i { background: var(--warning); } .adrd-fl-lg .is-deep i { background: var(--adr-lane-deep-fg); }
.adrd-fl-lg .is-wide i { width: 10px; height: 10px; border: 2px dashed var(--text-faint); }
/* 회차 흐름 말풍선(2026-10-12) — 회차 열(세로 띠)에 올리거나 Tab 으로 닿으면 뜬다 */
.adrd-card.adrd-flow { overflow: visible; }   /* 말풍선이 낮아진 카드 밖으로 나가도 잘리지 않게 */
.adrd-flow { position: relative; }
.adrd-fl svg .hit { fill: var(--text-muted); fill-opacity: 0; cursor: default; outline: none; }
.adrd-fl svg .hit:hover, .adrd-fl svg .hit:focus-visible { fill-opacity: .07; }
.adrd-fl svg circle.is-hot { fill: var(--c); stroke-width: 3; }
.adrd-fl svg circle.is-wide.is-hot { fill: var(--text-faint); }
.adrd-tip { position: absolute; z-index: 2; min-width: 168px; max-width: 260px; padding: 10px 12px; pointer-events: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-md);
  font-size: var(--text-xs); color: var(--text); word-break: keep-all; }
.adrd-tip[hidden] { display: none; }
.adrd-tip > b { display: block; font-size: var(--text-sm); font-weight: 800; }
.adrd-tip > b span { font-weight: 600; color: var(--text-muted); }
.adrd-tip > small { display: block; margin-top: 2px; color: var(--text-muted); }
.adrd-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; }
.adrd-tip dt { color: var(--text-muted); } .adrd-tip dd { margin: 0; font-weight: 700; text-align: right; }
.adrd-tip em { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); font-style: normal; font-weight: 700; color: var(--text-muted); }

/* 학생 제출 창 — 공용 .dialog-modal · 고정 크기(내용은 안에서 스크롤) */
#adrdStuDlg .dialog-modal { /* [design-ok] 공용 .dialog-modal 을 그대로 쓴다 — 이 대화상자의 고정 크기만 id 로 좁혀 정한다 */
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  height: min(620px, calc(100vh - 48px));
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.adrd-m-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adrd-m-h div { min-width: 0; display: flex; flex-direction: column; } .adrd-m-h h2 { margin: 0; }
.adrd-m-h h2 small { margin-left: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.adrd-m-h span { font-size: var(--text-sm); color: var(--text-muted); }
.adrd-m-b { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.adrd-q { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; }
.adrd-q-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--text-sm); font-weight: 800; color: var(--text-muted); }
.adrd-q-h .adrd-mk { margin-left: auto; }
.adrd-q p { margin: 0 0 10px; font-weight: 700; color: var(--text); }
.adrd-q dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: var(--text-sm); }
.adrd-q dt { font-weight: 700; color: var(--text-muted); } .adrd-q dd { margin: 0; font-weight: 800; color: var(--text); }
.adrd-q dd.is-x { color: var(--danger-dark); } .adrd-q dd.is-na { font-weight: 700; color: var(--text-muted); }

@container adrv (max-width: 760px) {
  .adrd-top { grid-template-columns: minmax(0, 1fr); }
}
@container adrv (max-width: 900px) {
  .adrv-say { order: 3; flex-basis: 100%; margin-left: 0; font-size: var(--text-xl); }
  .adrd-hero { grid-template-columns: minmax(0, 1fr); }
  .adrd-hero-rt { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .adrd-tr { grid-template-columns: minmax(0, 1fr) 150px 100px 16px; row-gap: 6px; }
  .adrd-tr.is-h { display: none; }
  .adrd-ttl, .adrd-tr.is-wait .adrd-ttl { grid-column: 1 / -1; }
  .adrd-by { grid-column: 1 / -1; grid-row: 2; }
  .adrd-wtxt { grid-column: 1; }
  .adrd-tr.is-wait > span:nth-child(2) { display: none; }   /* 전송 전 줄의 빈 «받은 학생» 칸 — 좁으면 한 줄을 차지하지 않게 */
  .adrd-top { align-items: start; }   /* 카드가 위아래로 길어지면 그래프 칸을 같은 높이로 늘리지 않는다 */
  .adrd-it:first-child { border-top: 0; }
}
@container adrv (max-width: 640px) {
  .adrd-tr { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .adrd-tr > span:nth-child(5) { grid-column: 1; }
  .adrd-pb-bar { width: 80px; }
}
@media (max-width: 720px) { .adrv { padding: var(--space-4); } }
