
  /* ===== 작업 G · 78번 2 · 3항(10/27판): 단원 목록 다듬기(ui78.js와 함께) =====
     3항(사용자 10/25 '문항 표시한 게 왜 이리 촌스럽지? 체크리스트도 촌스러워. 목차 버튼도 그렇고'): 작업 W 부품(#165 .kw-tag · 모서리 · 옅은 칠) 결로
       고르기 칸 = 둥근 네모(테두리 한 줄, 고르면 주 색 칠 + 흰 체크), 목차 꼬리표 = 옅은 회색 칠 작은 꼬리표, 문항 수 = 옅은 글 한 가지 굵기
     2항: 개념어 줄을 켜고 끄는 단추(제목 줄 오른쪽, 기본 켬, 이 기기에 kk78_con) */
  #chapter-container input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; border-radius: 5px; cursor: pointer;
    border: 1.6px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--card) center / 13px 13px no-repeat; transition: background-color .12s, border-color .12s; }
  /* 소단원 줄 고르기 칸은 옛 칸(16px)과 같은 가운데 높이(이름 첫 줄 가운데, t_topbar E) */
  #chapter-container .chapter-item > input[type="checkbox"] { margin-top: 2.4px !important; }
  #chapter-container .k64-gh .k64-gcb { width: 20px; height: 20px; }
  #chapter-container input[type="checkbox"]:checked { border-color: var(--brand); background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  #chapter-container input[type="checkbox"]:indeterminate { border-color: var(--brand); background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
  #chapter-container input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  :root[data-mode="dark"] #chapter-container input[type="checkbox"]:not(:checked):not(:indeterminate) { border-color: color-mix(in srgb, var(--ink) 34%, transparent); background-color: transparent; }
  @media (prefers-reduced-motion: reduce) { #chapter-container input[type="checkbox"] { transition: none; } }
  #chapter-container.k64-list .chapter-item > label > .kk-ch-no { padding: 0 6px !important; min-height: 1.5em; display: inline-flex; align-items: center; border: 0; border-radius: 6px;
    background: var(--k64-fill, var(--surface)) !important; color: var(--ink-2) !important; font-size: .78em; font-weight: 700; letter-spacing: 0; }
  #chapter-container .chapter-item > label .k73-con > .k76-q { color: var(--muted); }
  #chapter-container .chapter-item > label .k73-con > .k76-q b { font-weight: 600; color: var(--ink-2); margin-right: 0; }
  /* 개념어 켜고 끄기 */
  .k78-con-tg { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--k64-fill, var(--surface)); color: var(--muted);
    font: inherit; font-size: var(--kk-fs-1); font-weight: 700; white-space: nowrap; cursor: pointer; }
  /* 켬 · 끔 꼴은 화면 상태(html.k78-con-off)를 따름(79번 1항 ①: 끔에서도 켬처럼 파랗던 것) */
  html:not(.k78-con-off) .k78-con-tg { color: var(--ink-2); }
  .k78-con-tg i { position: relative; width: 26px; height: 16px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color .15s; }
  .k78-con-tg i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: rgb(255, 255, 255); transition: transform .15s; }
  html:not(.k78-con-off) .k78-con-tg i { background: var(--brand); }
  html:not(.k78-con-off) .k78-con-tg i::after { transform: translateX(10px); }
  html.k78-con-off .k78-con-tg i { background: color-mix(in srgb, var(--ink) 22%, transparent); }
  .k78-con-tg:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .k78-con-tg i, .k78-con-tg i::after { transition: none; } }
  .kn-study .k78-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
  .kn-study .k78-hd > h3 { margin: 0 !important; }
  html.k78-con-off #chapter-container .chapter-item > label .k73-con > :not(.k76-q) { display: none; }
  html.k78-con-off #chapter-container .chapter-item > label .k73-con > .k76-q::after { display: none; }
  /* 80번 1항 ① 개념어 단추 자리(ui78.js place). 단원별 선지 학습 칸에서만 보임. 단추만 있던 카드 첫 줄은 없앰(제목 글은 화면 읽기에만) */
  #screen-learn:not(.k76-in) .k78-con-tg { display: none; }
  #screen-learn.k76-in #kn-learn-study .k78-hd { margin: 0 !important; }
  /* 가(기본): 학습 머리 줄 오른쪽, 제목 · 설명 두 줄과 세로 가운데 */
  #screen-learn > .kn-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  #screen-learn > .kn-head > :not(.k78-con-tg) { grid-column: 1; }
  #screen-learn > .kn-head > .k78-con-tg { grid-column: 2; grid-row: 1 / span 2; }
  #screen-learn.k76-in > .kn-head:has(> .k78-con-tg) { padding-right: 0; }   /* 학습 화면엔 오른쪽 위 톱니가 없어 비워 둔 자리를 단추가 씀 */
  /* 나(html.k80-b): 첫 대단원 머리 줄, 이름과 접기 화살표 사이 */
  #chapter-container .k64-gh > .k78-con-tg { flex: none; min-height: 30px; padding: 0 8px; margin-left: 4px; }
  /* 80번 1항 ②: '선택 범위 N문항' 줄은 감춤(시작 단추 글 'N문제 풀기'가 대신함, patch2 updateStartLabel). 글 요소는 다른 곳이 읽어 그대로 둠 */
  #kn-learn-study div:has(> #filter-pool-count):not(:has(#btn-home-toggle-all)) { display: none !important; }

