/* ===========================================================================
 * [특수 상호작용 화면] 학생 카드 · 개인 상세
 *
 * ★색은 다섯뿐이다★ — 교사 하나 + 학생 반응 넷. 「불필요한 표기가 많을수록
 *   교사는 혼란스럽다」고 여러 번 지적했다. 여기에 색을 더하지 말 것.
 * ★라이트 일관★ — 다크는 별도 프로젝트(확정). 다크 블록을 넣지 않는다.
 * ======================================================================== */

/* ⛔`--text-sub` 를 다시 만들지 말 것 [2026-09-04] — **선언된 적이 없는 토큰이었다.**
   14곳이 그 이름을 쓰고 폴백(#5b6672)으로만 그려졌는데, 그러면 **고대비 모드가 그 글자만
   비켜 간다**(`--text-muted` 는 `body[data-contrast="high"]` 에서 #1e293b 로 재정의되지만,
   없는 토큰에는 재정의할 대상이 없다). 정본 계단은 common.css 의
   `--text` → `--text-body` → `--text-muted` → `--text-faint` 넷뿐이다.
   ★토큰 이름을 «썼다»는 것과 그 토큰이 «있다»는 것은 다른 말이다★
   (같은 사고 이력: `--text-dim`·`--text-3` · 가드 = tests/frontend/css_text_token_declared_20260820.spec.js) */

.spx-rows, .spx-glossary, .spx-modal { --spx-teacher: #3d4b5c; --spx-ink: #0f172a; }   /* [design-ok] --spx-ink = 밝은 막대(파랑 · 주황 · 회색) 위 짙은 글자 — 막대 색이 두 화면 모양에서 같아 테마를 따르지 않는다 */

/* ── 학습단어집 ───────────────────────────────────────────────────────── */
.spx-glossary {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin: 0 0 14px;
  overflow: hidden;
}
.spx-gl-hd { display: flex; align-items: baseline; gap: 10px; padding: 12px 15px 8px; flex-wrap: wrap; }
.spx-gl-hd h4 { margin: 0; font-size: 15.5px; font-weight: 600; }
.spx-gl-hd span { font-size: 12.5px; color: var(--text-muted); }
.spx-gl-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 15px; border-top: 1px solid var(--border-weak, #e0e5eb); }
.spx-gl-lbl { width: 92px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.spx-gl-lbl em { display: block; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; word-break: keep-all; }
.spx-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.spx-gl-none { font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.spx-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 4px 11px; border-radius: 99px; }
.spx-chip.learned { background: #e3f1ea; color: #166039; }
.spx-chip.related { background: #e4f2fb; color: #1a6d9e; }
.spx-chip i { font-style: normal; font-size: 10.5px; }

/* ── 학생 줄 ── [2026-09-03 확정 — 카드 격자를 «한 줄»로]
   ★한 줄 = 한 학생★ 같은 값이 같은 세로선 위에 놓여야 «여덟 명이 비교»된다 —
     카드 격자로는 눈이 좌우로 오가서 그 비교가 안 된다. */
.spx-rows { border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow: hidden; }
.spx-rw { display: grid; grid-template-columns: 132px 68px 1fr 104px 172px; gap: 14px;
  align-items: center; width: 100%; padding: 9px 15px; text-align: left;
  border: 0; border-bottom: 1px solid var(--border-weak, #e0e5eb);
  background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.spx-rw:last-child { border-bottom: none; }
.spx-rw:hover, .spx-rw:focus-visible { background: var(--surface-2, #fafbfc); }
/* 머리줄은 누르는 것이 아니다 — 같은 격자를 쓰되 버튼이 아니라 div 다. */
.spx-rw.hd { background: var(--surface-3, #eef1f5); color: var(--text-muted); word-break: keep-all;
  font-size: 12px; padding: 7px 15px; cursor: default;
  border-bottom: 1px solid var(--border); }
.spx-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.spx-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--spx-teacher); }
.spx-wt { min-width: 0; }
.spx-wt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.spx-tot { font-family: var(--font-mono, Consolas, monospace); font-size: 19px; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.spx-tot span { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.spx-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden;
  background: var(--surface-3, #eef1f5); }
.spx-bar.empty { background: var(--surface-3, #eef1f5); }
.spx-bar i { display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: var(--font-mono, Consolas, monospace); font-size: 11px; font-weight: 700;
  color: #fff; font-variant-numeric: tabular-nums; font-style: normal; }
.spx-bar i.learned { background: #1f7a4d; }
.spx-bar i.related { background: #3ba3e0; }
.spx-bar i.light   { background: #d9820e; }
.spx-bar i.dunno   { background: #7b848f; }
.spx-bar i.related, .spx-bar i.light, .spx-bar i.dunno { color: var(--spx-ink); }
/* 좁은 조각은 숫자를 숨긴다 — 잘린 글자는 «다른 수»로 읽힌다(title 로는 남는다). */
.spx-bar i.thin { font-size: 0; }
.spx-kwn { font-family: var(--font-mono, Consolas, monospace); font-size: 13px;
  font-variant-numeric: tabular-nums; }
.spx-kwn em { font-style: normal; font-size: 11px; color: var(--text-muted); margin-left: 1px; }
/* ★없으면 «공란»이다★ [2026-09-03 확정] — 「아직 없음」 같은 문구를 넣지 않는다.
   「아직 없음」 같은 문구는 불필요한 정보다. */
.spx-kws { display: flex; flex-wrap: wrap; gap: 4px; }
.spx-kws span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px;
  background: #e4f2fb; color: #1a6d9e; white-space: nowrap; }
/* [결정 Q3 2026-09-28] 회차의 「대답 없는 호명 N건」 — 학생 표 바로 위 한 줄(어느 카드에도 안 붙는다). */
.spx-uncalled { font-size: var(--text-sm); color: var(--text-muted); margin: 12px 0 6px; }
.spx-uncalled b { font-family: var(--font-mono, Consolas, monospace); font-variant-numeric: tabular-nums;
  color: var(--text); }
.spx-hint { font-size: 12.5px; color: var(--text-muted); margin: 12px 0 0; }

/* ── 상세 모달 ────────────────────────────────────────────────────────── */
.spx-modal-back {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(27, 36, 48, .42);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
/* ★고정 크기★ (UI 헌장 §0-A 5) — 내용에 따라 커지고 줄지 않는다. 넘치면 본문이 스크롤. */
.spx-modal {
  width: min(1040px, 96vw); height: min(760px, 92vh);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(27, 36, 48, .22);
}
.spx-mhd { display: flex; align-items: center; gap: 13px; padding: 15px 20px; border-bottom: 1px solid var(--border-weak, #e0e5eb); flex: none; }
.spx-mhd h4 { margin: 0; font-size: 19px; font-weight: 600; }
.spx-meta { font-size: 13px; color: var(--text-muted); }
.spx-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; font-size: 13px;
}
.spx-mbd { padding: 18px 20px 22px; overflow-y: auto; flex: 1; }

.spx-track { margin: 0 0 16px; }
.spx-thd { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; flex-wrap: wrap; }
.spx-thd h5 { margin: 0; font-size: 15px; font-weight: 600; }
.spx-track.self .spx-thd h5 { color: #1d4f66; }
.spx-track.all  .spx-thd h5 { color: #5b6672; }
.spx-n { font-size: 13px; color: var(--text-muted); }
.spx-n b { color: var(--text); font-weight: 600; font-family: var(--font-mono, Consolas, monospace); }
/* ★40분을 접지 않고 편다★ — 1초=2px 라 지연이 거리로 보인다. 넘으면 스크롤. */
.spx-tbody { border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; overflow-y: hidden; background: var(--surface); }
.spx-tbody svg { display: block; }
.spx-mono { font-family: var(--font-mono, Consolas, monospace); }
/* 타임라인 띠 위의 슬라이드 이름 — 한글이라 본문 글꼴(위 `.spx-gno` 와 같은 이유). */
.spx-slb { font-weight: 600; }
.spx-hit, .spx-bar { cursor: pointer; }
.spx-bar:hover rect { opacity: .78; }

.spx-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; font-size: 12.5px; color: var(--text-muted); padding: 10px 0 0; border-top: 1px solid var(--border-weak, #e0e5eb); }
.spx-lg { display: inline-flex; align-items: center; gap: 6px; }
.spx-lg i { width: 11px; height: 11px; border-radius: 3px; flex: none; display: inline-block; }
.spx-lg i.dash { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--spx-teacher); }
.spx-lg i.band { width: 22px; height: 11px; border-radius: 2px; border: 1px solid var(--border);
  background: linear-gradient(90deg, #fff 0 50%, #eaeff5 50% 100%); }

.spx-lst-hd { margin: 22px 0 10px; font-size: 15.5px; font-weight: 600; }
.spx-lst-hd span { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 6px; }

/* ── 슬라이드 묶음 ──
   ★높이를 토큰으로 못박는다★ 낱말이 없는 장도 줄이 안 줄어야 아홉 묶음의 리듬이 안 깨진다. */
.spx-mbd { --spx-ghd-h: 34px; --spx-gkw-h: 30px; }
.spx-grp { border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin: 0 0 10px; background: var(--surface); }
.spx-ghd { display: flex; align-items: center; gap: 10px; margin: 0; height: var(--spx-ghd-h);
  padding: 0 13px; background: var(--surface-2, #fafbfc); border-bottom: 1px solid var(--line, #e0e5eb);
  font-size: 13.5px; font-weight: 400; color: var(--text-muted); }
/* ★고정폭 글꼴을 쓰지 않는다★ — 「1장」일 때는 숫자뿐이라 mono 가 맞았지만
   이제 「슬라이드 1」이라 한글이 들어간다. Consolas 에는 한글이 없어 브라우저 기본 한글꼴로
   떨어지고, 그 글꼴이 머리줄의 다른 글자와 달라 «css 가 안 먹은 것처럼» 보인다
   (2026-09-02 에 폐지된 카드 격자에서 이미 겪은 함정이다 — 그 카드는 없어졌지만 교훈은 남는다). */
.spx-gno { font-size: 12.5px; font-weight: 700; white-space: nowrap;
  color: var(--spx-teacher); background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 7px; flex: none; }
.spx-gty { font-size: 11.5px; color: var(--text-muted); flex: none; }
.spx-gtt { color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.spx-gn { font-family: var(--font-mono, Consolas, monospace); font-size: 12px; flex: none;
  color: var(--text-muted); font-variant-numeric: tabular-nums; }
.spx-gkw { display: flex; gap: 18px; align-items: center; height: var(--spx-gkw-h); padding: 0 13px;
  border-bottom: 1px solid var(--line, #e0e5eb); font-size: 13px; overflow: hidden; }
.spx-kw { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; font-weight: 600; }
.spx-kw b { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.spx-kw i { font-style: normal; font-weight: 400; color: var(--text-muted); }
.spx-kw.learned { color: #166039; }
.spx-kw.related { color: #1a6d9e; }
/* ★`.spx-none` 은 «슬라이드 묶음의 빈칸» 하나뿐이다★
   [리뷰 20260902] 종전엔 카드의 「말 없음」도 같은 클래스를 써서, 이 규칙을 무조건으로 두면
   카드 높이가 123→149px 로 늘었다. 그 카드는 2026-09-03 에 «한 줄»로 바뀌며 사라졌지만
   범위를 넓히지 «않는다» — 이름이 흔해서 다음에 또 겹친다. */
.spx-gbd > .spx-none { margin: 0; padding: 11px 13px 13px; font-size: 13.5px; color: var(--text-muted); }

/* ★여기를 감싸는 외곽 테두리를 두지 않는다★ — 묶음(.spx-grp)이 각자
   테두리 있는 카드라, 밖에 또 테두리를 두르면 이중 테두리가 된다. */
.spx-list { display: block; }
/* ★시각은 줄 오른쪽 끝으로★ — 순서만 보이면 되고 몇 분 몇 초인지는
   덜 중요하다. ★대신 응답을 왼쪽 세로선으로 묶는다★ — 시각 열이 하던 «들여쓰기» 구실이
   사라져 지시와 응답이 같은 선에서 시작했다(목업 1판에서 실제로 그렇게 보였다). */
.spx-item { display: block; padding: 10px 13px; border-bottom: 1px solid var(--border-weak, #e0e5eb); }
.spx-item:last-child { border-bottom: none; }
.spx-item.no { background: #fdf7f6; }
.spx-item.sel { background: #fff8e8; }
.spx-tm { font-family: var(--font-mono, Consolas, monospace); font-weight: 600; font-variant-numeric: tabular-nums; }
.spx-body { min-width: 0; }
.spx-q { margin: 0; font-size: 14px; line-height: 1.5; word-break: keep-all;
  display: flex; align-items: baseline; gap: 8px; }
.spx-q .spx-tm { margin-left: auto; flex: none; font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono, Consolas, monospace); font-variant-numeric: tabular-nums; }
.spx-who { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; margin-right: 6px; white-space: nowrap; }
.spx-who.self { background: #eaf3f7; color: #1d4f66; }
.spx-who.class { background: #eef1f5; color: #5b6672; }
.spx-ans { margin: 6px 0 0 3px; padding-left: 13px; border-left: 2px solid var(--line, #e0e5eb);
  display: flex; flex-direction: column; gap: 4px; }
.spx-aw { display: block; }
.spx-a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.spx-rt { margin-left: auto; display: inline-flex; align-items: baseline; gap: 12px; flex: none; }
.spx-d { font-family: var(--font-mono, Consolas, monospace); font-size: 11px; color: var(--text-muted); width: 42px; flex: none; text-align: right; }
/* ★발화자 이름★ [2026-09-03 확정] — 「선생님 :」·「다솜 :」
   ★고정 폭을 주지 않는다★ 이름은 두세 글자라 폭을 박으면 짧은 이름 뒤에 빈 칸이 생기고,
   그 빈 칸이 «들여쓰기»로 읽혀 지시와 응답이 어긋나 보인다. 왼쪽 세로선(.spx-ans)이 이미
   그 구실을 한다.
   ★굵기·색으로만 가른다★ 뒤따르는 말(.spx-say)보다 옅게 — 이름은 «누구인가»를 알리는
   꼬리표이고, 읽어야 할 것은 말 자체다. */
.spx-sp { flex: none; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: var(--text-muted); }
.spx-sp.t { color: var(--spx-teacher, #3d4b5c); }
.spx-say { font-weight: 500; word-break: keep-all; }
.spx-say em { font-style: normal; color: var(--text-muted); }
/* ★룰링 D — 「앞뒤 대화」만 버튼이다★(.spx-a 는 div) — 링크처럼 눈에 띄되 pill 과 안 헷갈리게. */
.spx-more { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: inherit;
  font-size: 11.5px; font-weight: 600; color: var(--spx-teacher); text-decoration: underline;
  text-underline-offset: 2px; white-space: nowrap; flex: none; }
.spx-more:hover, .spx-more:focus-visible { opacity: .75; }
.spx-no { margin: 0; font-size: 13px; color: var(--text-muted); }
.spx-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.spx-pill.learned { background: #e3f1ea; color: #166039; }
.spx-pill.related { background: #e4f2fb; color: #1a6d9e; }
.spx-pill.light   { background: #fcf0dd; color: #9c5c05; }
.spx-pill.dunno   { background: #eef0f2; color: #59616b; }

/* ── 전사보드: 그 발화의 앞뒤 5줄 ── [「회차 전체」를 뒤집음]
   ★너무 많이 보여주면 데이터가 혼동된다★ 그래서 그 발화의 앞뒤 5줄만 보인다.
   ★진한 줄은 «이 응답»이다★ — 종전엔 「이 슬라이드」였다. 옅게 하나에 뜻을 싣지 않는 규칙은
     그대로라, 그 줄은 배경색 «과» 굵기 둘로 표시한다(UI 헌장 §0-A 1). */
.spx-board { border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin: 4px 0 6px; background: var(--surface-2, #fafbfc);
  max-height: 320px; display: flex; flex-direction: column; }
/* ★`position: relative` 가 «보드가 제 줄을 찾아가는» 조건이다★ [리뷰]
   `openBoard()` 는 `focus.offsetTop` 으로 스크롤 위치를 잡는데, `offsetTop` 은 «위치가 잡힌
   가장 가까운 조상» 기준이다. 여기가 static 이면 그 기준이 `.spx-modal-back`(fixed)이 되어
   969px 같은 엉뚱한 값이 나오고, scrollTop 이 바닥으로 눌려 **누른 줄이 화면 위로 잘린다**
   (긴 발화가 3줄로 접히는 실데이터에서 실제로 그랬다 — 짧은 픽스처라 시험이 못 잡았다). */
.spx-brows { position: relative; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; }
.spx-brow { display: grid; grid-template-columns: 46px 1fr 52px; gap: 10px; align-items: baseline;
  padding: 5px 12px; border-bottom: 1px solid var(--line, #e0e5eb); font-size: 13.5px; }
.spx-brow:last-child { border-bottom: none; }
.spx-brow.teacher { background: var(--surface); }
.spx-brow.focus { background: #fff8e8; font-weight: 600; border-left: 3px solid var(--spx-teacher); }
/* 창이 슬라이드 경계를 넘을 때만 한 줄 — 앞 슬라이드에서 던진 물음에 다음 장에서 답한 것이 보인다. */
.spx-bcut { display: flex; align-items: center; gap: 8px; padding: 3px 12px;
  font-size: 11px; color: var(--text-muted); background: var(--surface-3, #eef1f5);
  border-bottom: 1px solid var(--line, #e0e5eb); }
.spx-bcut::after { content: ""; flex: 1; border-top: 1px dashed var(--border); }
.spx-bwho { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.spx-brow.teacher .spx-bwho { color: var(--spx-teacher); }
.spx-btm { font-size: 11.5px; color: var(--text-muted); text-align: right;
  font-variant-numeric: tabular-nums; }
.spx-bhd { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px;
  background: var(--surface-3, #eef1f5); border-bottom: 1px solid var(--line, #e0e5eb);
  font-size: 12px; color: var(--text-muted); flex: none; }
.spx-bhd b { color: var(--text); }
.spx-bnote { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) {
  .spx-rw { transition: none; }
}

/* ── 학습단어집 편집 (· 설계서 §5-3) ─────────────────────────────
   ★칩 안의 ✕ 는 «지우기»가 아니라 «빼기»다★ — 빨강을 쓰지 않는다. 되돌릴 수 있고,
     아래 「뺀 말」 줄에서 그 자리가 보인다. */
.spx-x { border: 0; background: none; padding: 0 0 0 2px; margin: 0; cursor: pointer;
  font: inherit; font-size: 12px; line-height: 1; color: inherit; }   /* [design-ok] 글자 크기는 기존 값 그대로 — 이 줄은 흐림(.5)만 걷었다 */
.spx-chip.spx-add { background: none; border: 1px dashed var(--border);
  color: var(--text-muted); cursor: pointer; font: inherit; font-size: 12.5px;
  padding: 3px 10px; }
.spx-chip.spx-add:hover { border-style: solid; }
.spx-gl-row.spx-gone .spx-gl-lbl { color: var(--text-muted); }
.spx-chip.spx-back { background: var(--surface-2, #f4f6f8); color: var(--text-muted);
  border: 1px solid var(--border-weak, #e0e5eb); cursor: pointer; font: inherit; font-size: 12.5px; }
.spx-chip.spx-back:hover { background: var(--surface); }

.spx-addform { display: inline-flex; align-items: center; gap: 4px; }
.spx-in { width: 96px; font: inherit; font-size: 12.5px; padding: 3px 8px;
  border: 1px solid var(--border); border-radius: 99px; }
.spx-addform button { font: inherit; font-size: 12.5px; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.spx-addform .spx-ok { background: #e8f1f5; border-color: #bcd7e2; color: #1d4f66; font-weight: 600; }

.spx-err { margin: 8px 0 0; font-size: 13px; color: #b1443b; }

/* ── 슬라이드 고르개 ── */
.spx-picker { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.spx-picker button { font: inherit; font-size: 12.5px; font-weight: 600; height: 28px;
  padding: 0 11px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  white-space: nowrap; }
.spx-picker button.on { background: var(--spx-teacher); border-color: var(--spx-teacher); color: #fff; }
/* 고른 장만 진하게 — 아홉 색을 쓰지 않는 대신 «지금 보는 곳»만 표시한다.
   ★번갈아 옅게 하는 두 색과 «확실히» 갈려야 한다★ — 종전 `#dfe8f2` 는
     짝수 장의 `#eaeff5` 와 거의 같아, 칩을 눌러 그 장으로 옮겨 와도 **어느 것이 고른 장인지
     안 보였다.** 칩이 이제 타임라인을 그 장으로 데려가므로 「여기가 그 장」이 더 중요해졌다.
   ⛔ 그렇다고 색을 진하게 하지는 않는다 — 응답 막대 네 색을 읽어야 한다(UI 헌장 §0-A 1). */
.spx-band.on { fill: #cfdded; }

/* 3택 팝오버 — 누른 줄 «옆»에 뜬다(가운데로 튀어나오면 어느 줄인지 잃는다). */
.spx-pill.spx-pick { border: 0; cursor: pointer; font: inherit; font-size: 11.5px;
  font-weight: 600; }
.spx-a { position: relative; }
.spx-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 208px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(27, 36, 48, .16); overflow: hidden; text-align: left; }
.spx-pop-hd { padding: 7px 11px; font-size: 12px; color: var(--text-muted);
  background: var(--surface-2, #fafbfc); border-bottom: 1px solid var(--border-weak, #e0e5eb); }
.spx-pop button { display: block; width: 100%; text-align: left; border: 0; background: none;
  font: inherit; font-size: 13px; padding: 8px 11px; cursor: pointer;
  border-bottom: 1px solid var(--border-weak, #e0e5eb); }
.spx-pop button:last-child { border-bottom: 0; }
.spx-pop button:hover, .spx-pop button:focus-visible { background: var(--surface-2, #f4f6f8); }
.spx-pop button em { display: block; font-style: normal; font-size: 11.5px;
  color: var(--text-muted); line-height: 1.45; margin-top: 1px; }
/* ★「빼기」만 빨강★ — 되돌릴 수 있지만 두 줄 어디에도 안 보이게 되는 유일한 선택이다. */
.spx-pop .spx-pop-del { color: #b1443b; }

/* ═══ [다크 ④ 수업 리포트 2026-10-24] 다크에서만 — 활동 분석(특수) 칩 · 꼬리표 · 고른 줄(값을 구분하는 색 = 요일 색 다크 짝 · R104) ═══ */
@media screen {
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-chip.learned, .spx-pill.learned) { background: var(--day-1-bg); color: var(--day-1-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-chip.related, .spx-pill.related, .spx-kws > span) { background: var(--day-0-bg); color: var(--day-0-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .spx-pill.light { background: var(--day-3-bg); color: var(--day-3-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-pill.dunno, .spx-who.class) { background: var(--day-5-bg); color: var(--day-5-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-who.self, .spx-addform .spx-ok) { background: var(--day-0-bg); color: var(--day-0-fg); border-color: transparent; }
  html.theme-dark:not(:has(body[data-contrast="high"])) .spx-kw.learned { color: var(--day-1-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-kw.related, .spx-track.self .spx-thd h5) { color: var(--day-0-fg); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-track.all .spx-thd h5, .spx-sp.t) { color: var(--text-body); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .spx-item.no { background: var(--danger-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) :is(.spx-item.sel, .spx-brow.focus) { background: var(--warning-light); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .spx-err { color: var(--danger); }
  html.theme-dark:not(:has(body[data-contrast="high"])) .spx-band.on { fill: var(--primary-light); }
}
