
  /* ===== 작업 I · 35번(D-434 ①): 풀이 화면 틀 부품 KkSolve (uisolve.js) ===== */
  :root { --ks-top: 0px; --ks-max: 45vh; }
  .ks-head { position: sticky; top: 0; z-index: 40; background: var(--ks-hbg, var(--bg)); }
  .ks-sent { height: 0; margin: 0; padding: 0; }
  .ks-pin { position: sticky; top: calc(var(--ks-top) + var(--ks-push, 0px)); z-index: 30; background: var(--card); margin-bottom: 10px; transition: top 0.28s cubic-bezier(.2, .8, .2, 1); }   /* 73번: --ks-push 위에 붙은 말풍선만큼 밀림(바탕화면 앱 옮기듯) */
  .ks-pin::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; pointer-events: none; background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 10%, transparent), transparent); opacity: 0; transition: opacity 0.2s; }
  .ks-pin.ks-stuck::after { opacity: 1; }
  .ks-prob { max-height: var(--ks-max); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-top: 2px; }
  .ks-prob > :first-child { margin-top: 0; }
  .ks-prob > :last-child { margin-bottom: 0; }
  /* 아래가 잘리면 글이 반쯤 옅어진다(끝까지 내리면 걷힘) */
  .ks-fade.ks-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), rgba(0, 0, 0, 0.45)); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), rgba(0, 0, 0, 0.45)); }
  /* 70 · 71번: 접기는 문제 칸 안 오른쪽 아래 동그란 단추(키가 큰 문제에만, 테 · 그림자), 접히면 한 줄 요약 */
  .ks-tog { display: none; position: absolute; right: 8px; bottom: 10px; z-index: 3; width: 32px; height: 32px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line-strong, var(--line)); border-radius: 50%;
    background: var(--card); color: var(--ink-2); box-shadow: 0 2px 6px rgba(20, 20, 40, 0.12); cursor: pointer; }
  .ks-tog::after { content: ''; position: absolute; inset: -6px; }   /* 누르는 자리 44px */
  .ks-tog .ic { width: 16px; height: 16px; transform: rotate(180deg); transition: transform 0.2s; }
  .ks-pin.ks-tall > .ks-tog, .ks-pin.ks-folded > .ks-tog { display: flex; }
  .ks-pin.ks-folded > .ks-tog .ic { transform: none; }
  .ks-line { display: block; width: 100%; min-height: 36px; padding: 6px 40px 6px 2px; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.84rem; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .ks-line[hidden] { display: none; }
  .ks-pin.ks-folded > .ks-prob { display: none; }
  .ks-pin.ks-anim > .ks-prob, .ks-pin.ks-anim > .ks-line { animation: ksIn 0.22s ease-out; }
  /* 70번: 늘 보여야 하는 것(까망 말풍선)은 머리 줄 바로 아래에 붙고 문제 칸보다 위(덮어도 됨) */
  .ks-top { position: sticky; top: calc(var(--ks-top) + 4px); z-index: 35; }
  @keyframes ksIn { from { opacity: 0.4; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ks-pin.ks-anim > * { animation: none; } .ks-tog .ic, .ks-pin::after, .ks-pin { transition: none; } }
  /* 46번(D-457): 풀이 화면 하단 메뉴 숨김(KkSolve.nonav) */
  body.ks-nonav #bottom-nav-bar { display: none !important; }
  body.has-nav.ks-nonav, body.ks-nonav { padding-bottom: 0 !important; }
  /* 164번: 도표 트레이닝 고정 칸 높이 조절 막대(모둠 연결 .mm-grip과 같은 꼴, 보라 손잡이). 칸이 길어 안에서 스크롤할 때만 보임 */
  #screen-drill .ks-prob { max-height: var(--ks-max-dx, var(--ks-max)); }
  #screen-drill .ks-grip { display: none; position: absolute; left: 0; right: 0; bottom: -12px; z-index: 3; height: 24px; align-items: center; justify-content: center; cursor: row-resize; touch-action: none; -webkit-user-select: none; user-select: none; outline: none; }
  #screen-drill .ks-pin.ks-tall:not(.ks-folded) > .ks-grip { display: flex; }
  #screen-drill .ks-grip::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--line-strong, var(--line)); transition: background-color 0.15s; }
  #screen-drill .ks-grip::after { content: ''; position: absolute; inset: -10px 0; }
  #screen-drill .ks-grip i { position: relative; display: block; width: 44px; height: 7px; border-radius: 6px; background: var(--brand-soft); border: 1.5px solid var(--brand); transition: width 0.15s, background-color 0.15s; }
  #screen-drill .ks-grip:hover i, #screen-drill .ks-grip:focus-visible i, #screen-drill .ks-pin.ks-drag > .ks-grip i { width: 52px; background: var(--brand); }
  #screen-drill .ks-grip:focus-visible::before, #screen-drill .ks-pin.ks-drag > .ks-grip::before { background: var(--brand); }

  /* ===== 작업 I · 35번(D-434 ① ②): 도표 트레이닝 풀이 화면 틀 · 메뉴 (uidxf.js) ===== */
  /* 머리 줄: ← · 영역 · 유형 이름 · 메뉴 · ? (화면 위에 붙음) */
  #screen-drill.dxf .dr-head { grid-template-columns: auto minmax(0, 1fr) auto; margin: 0 -2px 8px; padding: 8px 2px 8px; }
  #screen-drill.dxf .dr-title { display: flex; flex-direction: column; align-items: center; min-width: 0; line-height: 1.2; }
  #screen-drill .dr-title .dxf-area { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #screen-drill .dr-title .dxf-area:empty { display: none; }
  #screen-drill .dr-title .dxf-tab { font-size: 1.02rem; font-weight: 800; color: var(--ink); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #screen-drill .dxf-right { justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
  #screen-drill .dxf-menu { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  #screen-drill .dxf-menu .ic { width: 20px; height: 20px; }
  #screen-drill .dxf-menu:active, #screen-drill .dr-help:active { transform: scale(0.94); }
  /* 풀이 중에는 고르는 곳을 숨긴다(메뉴 안에 있음) */
  #screen-drill.dxf #dr-groups, #screen-drill.dxf .dx-tip3, #screen-drill.dxf #dr-links, #screen-drill.dxf #dr-note { display: none !important; }
  #screen-drill.dxf:not([data-group="gsq"]) #dr-tabs { display: none !important; }
  #screen-drill.dxf .dr-card.dxf-on > .dr-row-opts, #screen-drill.dxf .dr-card.dxf-on > .dr-opts-sum, #screen-drill.dxf .dr-card.dxf-on > .dr-opts-more, #screen-drill.dxf .dr-card.dxf-on > .dr-links { display: none !important; }
  /* 고정 문제 칸 안: 제시문 · 도표가 카드 바탕과 이어지게 */
  #screen-drill .ks-pin > .ks-prob > .dx-chart { margin-top: 0; }
  #screen-drill .ks-pin { border-radius: 0; }

  /* ---------- 메뉴(아래에서 올라오는 창) ---------- */
  #app-sheet .dxm { display: flex; flex-direction: column; gap: 14px; }
  #app-sheet .dxm-sec { display: flex; flex-direction: column; gap: 8px; }
  #app-sheet .dxm-sec + .dxm-sec { border-top: 1px solid var(--line); padding-top: 12px; }
  #app-sheet .dxm-h { font-size: 0.78rem; font-weight: 800; color: var(--muted); }
  #app-sheet .dxm-area { display: flex; align-items: center; gap: 10px; }
  #app-sheet .dxm-area .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  #app-sheet .dxm-area b { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
  #app-sheet .dxm-area small { font-size: 0.76rem; font-weight: 600; color: var(--muted); line-height: 1.4; word-break: keep-all; }
  #app-sheet .dxm-chg { flex: 0 0 auto; min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--brand); font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
  #app-sheet .dxm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 12px; background: var(--surface); }
  #app-sheet .dxm-sb { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  #app-sheet .dxm-sb small { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
  #app-sheet .dxm-sb.on { background: var(--card); color: var(--brand); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent); }
  #app-sheet .dxm-list { display: flex; flex-direction: column; gap: 6px; }
  #app-sheet .dxm-tab { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700; text-align: left; cursor: pointer; }
  #app-sheet .dxm-tab .n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  #app-sheet .dxm-tab .l { flex: 1 1 auto; min-width: 0; }
  #app-sheet .dxm-tab .k, #app-sheet .dxm-tab .s { flex: 0 0 auto; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
  #app-sheet .dxm-tab .k { color: var(--brand); background: var(--brand-soft); }
  #app-sheet .dxm-tab .s { color: var(--muted); background: var(--surface); }
  #app-sheet .dxm-tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
  #app-sheet .dxm-tab.on .n { background: var(--brand); color: var(--on-brand); }
  #app-sheet .dxm-row { display: flex; flex-wrap: wrap; gap: 6px; }
  #app-sheet .dxm-b { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
  #app-sheet .dxm-b.on { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
  #app-sheet .dxm-b.dxm-link { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
  #app-sheet .dxm-opts { display: flex; flex-direction: column; gap: 10px; }
  #app-sheet .dxm-oline { display: flex; flex-direction: column; gap: 6px; }
  #app-sheet .dxm-ol { font-size: 0.76rem; font-weight: 700; color: var(--ink-2); }
  #app-sheet .dxm-note { font-size: 0.84rem; line-height: 1.5; color: var(--ink-2); word-break: keep-all; }
  #app-sheet .dr-note.dxm-note { margin: 0; font-size: 0.82rem; }

  /* ---------- 들어가는 화면(세션 목록, D-295 · D-298) ---------- */
  /* 화면 상태: data-view="home"(세션 목록) · "solve"(풀이). 세션 목록에서는 풀이 칸과 메뉴 단추를 숨긴다 */
  #screen-drill[data-view="home"] > :not(.dr-head):not(#dr-home) { display: none !important; }
  #screen-drill[data-view="home"] .dxf-menu { display: none; }
  #screen-drill:not([data-view="home"]) #dr-home { display: none; }
  #screen-drill { --dxh-blue: #2b4a9e; --dxh-blue-soft: color-mix(in srgb, #3b5bdb 7%, var(--card)); --dxh-blue-line: color-mix(in srgb, #3b5bdb 26%, var(--line)); --dxh-amber: #9a5b06; --dxh-amber-soft: color-mix(in srgb, #f59f00 9%, var(--card)); --dxh-amber-line: color-mix(in srgb, #f59f00 34%, var(--line)); }
  html[data-mode="dark"] #screen-drill { --dxh-blue: #9db4ff; --dxh-amber: #f2c46d; }
  .dxh { display: flex; flex-direction: column; gap: 18px; padding: 2px 0 12px; }
  .dxh-resume { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); }
  .dxh-resume .l { flex: 0 0 auto; font-size: 0.76rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; }
  .dxh-resume .t { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .dxh-resume .ic { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
  .dxh-cat { display: flex; flex-direction: column; gap: 10px; }
  .dxh-ch { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
  .dxh-ch b { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.02em; }
  .dxh-ch small { font-size: 0.76rem; font-weight: 600; color: var(--muted); word-break: keep-all; }
  .dxh-chart .dxh-ch b { color: var(--dxh-blue); }
  .dxh-logic .dxh-ch b { color: var(--dxh-amber); }
  /* 도표 세션: 살짝 떠 있는 카드(옅은 그림자 · 얇은 테두리 · 은은한 남색 바탕). 논리: 호박색 테두리 · 바탕 */
  .dxh-area { border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
  .dxh-chart .dxh-area { border-color: var(--dxh-blue-line); background: var(--dxh-blue-soft); box-shadow: 0 2px 10px color-mix(in srgb, #1e3a8a 9%, transparent), 0 1px 2px color-mix(in srgb, #1e3a8a 8%, transparent); }
  .dxh-logic .dxh-area { border-color: var(--dxh-amber-line); background: var(--dxh-amber-soft); }
  .dxh-ah { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .dxh-ah .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .dxh-ah b { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; }
  .dxh-ah small { font-size: 0.74rem; font-weight: 600; color: var(--muted); line-height: 1.4; word-break: keep-all; }
  .dxh-ah .m { margin-top: 3px; font-size: 0.72rem; font-weight: 800; color: var(--dxh-blue); }
  .dxh-logic .dxh-ah .m { color: var(--dxh-amber); }
  .dxh-ah .ic { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
  .dxh-area.open .dxh-ah .ic { transform: rotate(180deg); }
  .dxh-ab { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; animation: dxhIn 0.2s ease-out; }
  @keyframes dxhIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .dxh-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .dxh-sb { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .dxh-sb small { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
  .dxh-sb.on { background: var(--card); color: var(--dxh-blue); box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 14%, transparent); }
  .dxh-list { display: flex; flex-direction: column; gap: 6px; }
  .dxh-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 700; text-align: left; cursor: pointer; }
  .dxh-row:active, .dxh-ah:active, .dxh-resume:active { transform: scale(0.99); }
  .dxh-row .n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .dxh-chart .dxh-row .n { background: color-mix(in srgb, #3b5bdb 12%, var(--card)); color: var(--dxh-blue); }
  .dxh-logic .dxh-row .n { background: color-mix(in srgb, #f59f00 16%, var(--card)); color: var(--dxh-amber); }
  .dxh-row .l { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .dxh-row em { font-style: normal; font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
  .dxh-row em.k { color: var(--dxh-amber); background: color-mix(in srgb, #f59f00 16%, var(--card)); }
  .dxh-row em.s { color: var(--muted); background: var(--surface); }
  .dxh-row .c { flex: 0 0 auto; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { .dxh-ab { animation: none; } .dxh-ah .ic { transition: none; } }

  /* ---------- 안내 자리(35번 3항, D-434 ⑤): 풀이 칸 위에 고정한 말풍선 · 지금 채울 칸 테 ---------- */
  #screen-drill .dr-card > .dr-coach[data-dxf-src] { display: none !important; }
  #screen-drill .dxf-say { position: sticky; top: calc(var(--ks-top) + var(--ks-pinh, 0px)); z-index: 29; display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 6px 0 2px; background: var(--card); }
  #screen-drill .dxf-say[hidden] { display: none; }
  #screen-drill .dxf-av { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dxh-blue-soft); color: var(--dxh-blue); }
  #screen-drill .dxf-av .ic { width: 22px; height: 22px; }
  #screen-drill .dxf-av svg { width: 22px; height: 22px; }
  #screen-drill .dxf-bub { position: relative; flex: 1 1 auto; min-width: 0; padding: 8px 11px; border: 1.5px solid var(--dxh-blue-line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 0.86rem; line-height: 1.5; text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
  #screen-drill .dxf-bub::before { content: ''; position: absolute; left: -6px; top: 11px; width: 9px; height: 9px; background: inherit; border-left: 1.5px solid var(--dxh-blue-line); border-bottom: 1.5px solid var(--dxh-blue-line); transform: rotate(45deg); }
  #screen-drill .dxf-say.good .dxf-bub, #screen-drill .dxf-say.good .dxf-bub::before { border-color: color-mix(in srgb, var(--ok, #16a34a) 55%, var(--line)); }
  #screen-drill .dxf-say.warn .dxf-bub, #screen-drill .dxf-say.warn .dxf-bub::before { border-color: color-mix(in srgb, var(--bad, #dc2626) 55%, var(--line)); }
  #screen-drill .dxf-say.pop .dxf-bub { animation: dxfPop 0.45s ease-out; }
  @keyframes dxfPop { 0% { transform: translateY(-3px); box-shadow: 0 0 0 0 color-mix(in srgb, #3b5bdb 40%, transparent); } 60% { transform: none; box-shadow: 0 0 0 5px color-mix(in srgb, #3b5bdb 0%, transparent); } 100% { box-shadow: none; } }
  /* 지금 채울 칸: 파랑 테 · 처음 한 번 살짝 커짐 · 잠깐 둘레 어둡게(말풍선은 그 위) */
  #screen-drill .dr-field.dxf-now { position: relative; z-index: 2; border-radius: 10px; box-shadow: 0 0 0 2px var(--dxh-blue), 0 0 0 5px color-mix(in srgb, #3b5bdb 18%, transparent); }
  #screen-drill .dr-field.dxf-pop { animation: dxfField 0.5s ease-out; }
  @keyframes dxfField { 0% { box-shadow: 0 0 0 2px var(--dxh-blue), 0 0 0 2px color-mix(in srgb, #3b5bdb 40%, transparent); } 45% { box-shadow: 0 0 0 2px var(--dxh-blue), 0 0 0 8px color-mix(in srgb, #3b5bdb 22%, transparent); } 100% { box-shadow: 0 0 0 2px var(--dxh-blue), 0 0 0 5px color-mix(in srgb, #3b5bdb 18%, transparent); } }   /* 칸 크기는 그대로, 테만 한 번 퍼짐 */
  #screen-drill .dr-field.dxf-flash { z-index: 60; box-shadow: 0 0 0 2px var(--dxh-blue), 0 0 0 6px color-mix(in srgb, #3b5bdb 30%, transparent), 0 0 0 200vmax rgba(9, 12, 20, 0.45); transition: box-shadow 0.25s; }
  #screen-drill.dxf-flashing .dxf-say { z-index: 61; }
  @media (prefers-reduced-motion: reduce) { #screen-drill .dxf-say.pop .dxf-bub, #screen-drill .dr-field.dxf-pop { animation: none; } #screen-drill .dr-field.dxf-flash { transition: none; } }
  /* 튜토리얼: 맞힌 뒤 '확인'을 눌러야 다음 칸(말풍선 안 단추) */
  #screen-drill .dxf-act:empty { display: none; }
  #screen-drill .dxf-act { margin-top: 2px; }
  /* 붙어 있을 때(스크롤해 답 칸을 보는 중) 두 줄로 줄이고 누르면 펼침 */
  #screen-drill .dxf-say.ks-stuck:not(.open) .dxf-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #screen-drill .dxf-say.ks-stuck { box-shadow: 0 6px 8px -6px color-mix(in srgb, var(--ink) 18%, transparent); cursor: pointer; }
  #screen-drill .dxf-ok { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin: 4px 0 0; padding: 4px 14px; border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; vertical-align: middle; }
  #screen-drill .dr-coach[data-dxf-src] .dxf-ok { display: none; }
  .dxh-att { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--dxh-blue-line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .dxh-att > .ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--dxh-blue); }
  .dxh-att .t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .dxh-att b { font-size: 0.92rem; font-weight: 800; }
  .dxh-att small { font-size: 0.74rem; font-weight: 600; color: var(--muted); line-height: 1.4; word-break: keep-all; }
  /* 고르는 문제: 고른 선지 표시 · 확인 단추(35번 5항) */
  #screen-drill .dr-choice.dxf-sel { border-color: var(--brand) !important; background: var(--brand-soft) !important; box-shadow: 0 0 0 1px var(--brand) inset; }
  #screen-drill .dxf-choose { display: flex; margin: 8px 0 10px; }
  #screen-drill .dxf-choose .dxf-cfm { flex: 1 1 auto; min-height: 44px; }
  /* 35번 4항(26번 답, D-434 ⑥ · D-435 ③): 제시문은 사례 상자(.q-ctx)와 같은 시험지 꼴(얇은 테 · 네모 · 고른 여백 · 글자 · 줄 간격 줄임) */
  #screen-drill .dx-chart .dx-lead { border: 1px solid var(--ink-2); border-radius: 2px; padding: 8px 10px; background: var(--card); font-size: 0.86rem; line-height: 1.45; letter-spacing: -0.02em; word-break: keep-all; }
  .dxh-wrap { display: block; }
  #dr-hex:empty { display: none; }
  #dr-hex.kx { margin: 4px 0 14px; }
  /* 38번(다6): 틀렸을 때 '개념 보기'(설명만 다시 봄) */
  #screen-drill .dxf-cpt { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin: 4px 0 0 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; vertical-align: middle; }
  #screen-drill .dr-coach[data-dxf-src] .dxf-cpt { display: none; }

  /* ===== 39번 1항(사용자 10/19, D-441 ① · ② · ③): 도표 풀이 화면 다듬기 ===== */
  #screen-drill { --dxf-now: #A87500; --dxf-now-glow: color-mix(in srgb, #F5B800 30%, transparent); }
  html[data-mode="dark"] #screen-drill { --dxf-now: #F2C14E; --dxf-now-glow: color-mix(in srgb, #F2C14E 28%, transparent); }
  /* ② 풀이 중에는 누적 줄을 숨김(들어가는 화면 목록의 맞힘 수는 그대로) */
  #screen-drill[data-view="solve"] #dr-pane .dr-score[data-tab] { display: none; }
  /* ③ 문제 이름 가운데 */
  #screen-drill[data-view="solve"] #dr-pane .dr-card h3 { text-align: center; margin: 2px 0 8px; }
  #screen-drill[data-view="solve"] #dr-pane .dx-src { display: block; text-align: center; }
  /* ④ 시험지 결: <제시문> 머리 · <실제 제목>(괄호는 CSS라 글은 제목 그대로) · 덜 네모난 상자 */
  #screen-drill .dx-chart .dx-cap { text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); margin: 0 0 4px; letter-spacing: 0.02em; }
  #screen-drill .dx-chart .dx-lead { border-radius: 8px; }
  #screen-drill .dx-chart .dx-p-title .dx-title { text-align: center; font-size: 0.9rem; font-weight: 800; word-break: keep-all; }
  #screen-drill .dx-chart .dx-p-title .dx-title::before { content: '<'; margin-right: 1px; }
  #screen-drill .dx-chart .dx-p-title .dx-title::after { content: '>'; margin-left: 1px; }
  /* 41번: 제목이 이미 '<자료 2> …'처럼 꺾쇠로 시작하면 괄호를 더 달지 않음 */
  #screen-drill .dx-chart .dx-p-title .dx-title.dx-title-own::before, #screen-drill .dx-chart .dx-p-title .dx-title.dx-title-own::after { content: none; }
  #screen-drill .dx-chart .dx-p-notes { margin-top: 6px; }
  #screen-drill .dx-chart .dx-notes { font-size: 0.8rem; line-height: 1.45; color: var(--ink-2); }
  /* ⑤ 숫자 칸: 위아래 화살표 없음 · 가운데 · 지금 적을 칸은 노랑 테 */
  #screen-drill input[type="number"] { text-align: center; -moz-appearance: textfield; appearance: textfield; }
  #screen-drill input[type="number"]::-webkit-outer-spin-button, #screen-drill input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  #screen-drill input[type="number"]::placeholder { text-align: center; }
  #screen-drill .dr-field.active .dr-num, #screen-drill input[type="number"]:focus { border-color: var(--dxf-now); box-shadow: 0 0 0 3px var(--dxf-now-glow); outline: none; }
  #screen-drill .dr-field.dxf-now { box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 5px var(--dxf-now-glow); }
  #screen-drill .dr-field.dxf-pop { animation: dxfFieldY 0.5s ease-out; }
  @keyframes dxfFieldY { 0% { box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 2px var(--dxf-now-glow); } 45% { box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 8px var(--dxf-now-glow); } 100% { box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 5px var(--dxf-now-glow); } }
  #screen-drill .dr-field.dxf-flash { box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 6px var(--dxf-now-glow), 0 0 0 200vmax rgba(9, 12, 20, 0.45); }
  /* ⑥ 아래 단추(이전 · 확인 · 다음 · 새 문제)를 작게, 누름 영역 44px은 지킴 */
  #screen-drill[data-view="solve"] #dr-pane .dr-btns { gap: 8px; }
  #screen-drill[data-view="solve"] #dr-pane .dr-btns > button { min-height: 44px; padding: 6px 12px; font-size: 0.9rem; border-radius: 12px; }
  /* ⑦ 까망 말풍선: 둘레를 직사각형 바탕으로 덮지 않고 먹보라 그라데이션 결(테 · 옅은 안쪽 · 그림자), 두 줄 안팎에 들게 글자 비율 */
  #screen-drill .dxf-say, #screen-drill .dxf-say.ks-stuck { background: transparent; box-shadow: none; gap: 6px; padding: 4px 0 2px; }
  #screen-drill .dxf-av { width: 28px; height: 28px; background: linear-gradient(135deg, var(--kk-grad-a, #3555E4), var(--kk-grad-b, #654EDB)); color: rgb(255, 255, 255); box-shadow: 0 2px 8px -3px color-mix(in srgb, var(--kk-grad-b, #654EDB) 60%, transparent); }
  #screen-drill .dxf-av svg, #screen-drill .dxf-av .ic { width: 20px; height: 20px; }
  #screen-drill .dxf-bub { --bub-in: color-mix(in srgb, var(--kk-accent, #654EDB) 8%, var(--card)); --bub-a: var(--kk-grad-a, #3555E4); --bub-b: var(--kk-grad-b, #654EDB);
    padding: 7px 10px; border: 1.5px solid transparent; border-radius: 14px; font-size: 0.82rem; line-height: 1.45; letter-spacing: -0.015em;
    background: linear-gradient(135deg, var(--bub-in), var(--card) 75%) padding-box, linear-gradient(135deg, var(--bub-a), var(--bub-b)) border-box;
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--bub-b) 55%, transparent); }
  #screen-drill .dxf-bub::before { background: var(--bub-in); border-left: 1.5px solid var(--bub-a); border-bottom: 1.5px solid var(--bub-a); left: -6px; top: 10px; }
  #screen-drill .dxf-say.good .dxf-bub { --bub-a: var(--ok, #16a34a); --bub-b: color-mix(in srgb, var(--ok, #16a34a) 55%, var(--kk-grad-b, #654EDB)); }
  #screen-drill .dxf-say.warn .dxf-bub { --bub-a: var(--bad, #dc2626); --bub-b: color-mix(in srgb, var(--bad, #dc2626) 55%, var(--kk-grad-b, #654EDB)); }
  #screen-drill .dxf-say.good .dxf-bub::before, #screen-drill .dxf-say.warn .dxf-bub::before { border-color: var(--bub-a); }
  /* ⑧ 위에 주어진 값(노부유전 단서 카드)은 한 줄에 나란히 */
  #screen-drill[data-view="solve"] .dr-clues { flex-wrap: nowrap; gap: 6px; margin: 4px 0 8px; }
  #screen-drill[data-view="solve"] .dr-clue { flex: 1 1 0; min-width: 0; padding: 6px 8px; font-size: 0.88rem; border-radius: 10px; }
  #screen-drill[data-view="solve"] .dr-clue small { font-size: 0.68rem; }
  /* ⑨ 세 곳 읽기 짚기(DxFrame.read3): 주변 어둡게 · 고정 문제 칸은 위로 · 짚은 부분만 또렷 */
  #screen-drill .dxf-dim { position: fixed; inset: 0; z-index: 58; background: rgba(9, 12, 20, 0.45); }
  #screen-drill .ks-pin.dxf-spotpin { z-index: 60; }
  #screen-drill.dxf-spotting .dxf-say { z-index: 61; }
  #screen-drill .ks-pin.dxf-spotpin .dx-chart > *:not(.dxf-spot) { opacity: 0.35; transition: opacity 0.2s; }
  #screen-drill .dx-chart .dxf-spot { position: relative; border-radius: 8px; box-shadow: 0 0 0 2px var(--dxf-now), 0 0 0 6px var(--dxf-now-glow); }
  @media (prefers-reduced-motion: reduce) { #screen-drill .ks-pin.dxf-spotpin .dx-chart > * { transition: none; } }
  /* ===== 41번(사용자 10/20) ===== */
  /* 1항: 지금 적을 칸 노랑 테는 밝은 화면에서 바탕과 대비 3 : 1 넘게(#A87500, 위 --dxf-now) */
  /* 4항: 단추 한 벌. 아래 줄은 같은 크기 · 같은 너비, 채운 단추(확인 · 다음 문제)는 늘 오른쪽 끝. 고르기 확인도 이 줄(.dxf-low) */
  #screen-drill[data-view="solve"] #dr-pane .dr-btns > button { flex: 1 1 0; min-width: 0; min-height: 48px; white-space: nowrap; }
  #screen-drill[data-view="solve"] #dr-pane .dr-btns > .btn-main { order: 9; }
  #screen-drill[data-view="solve"] #dr-pane .dr-btns > .dxf-cfm.dxf-low:disabled { opacity: 0.45; cursor: default; }
  /*   답을 고르는 둥근 단추(상층 · 중층 · 하층 등)도 누름 영역 44px, 글자는 선지 단추와 같은 굵기 */
  #screen-drill[data-view="solve"] #dr-pane .dr-card .dr-seg { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
  #screen-drill[data-view="solve"] #dr-pane .dr-row-opts .dr-seg { min-height: 0; }
  /*   비어 있는 안내 줄(회색 빈 칸)은 숨김 */
  #screen-drill #dr-pane .dr-coach:empty { display: none; }
  /* 5항: 노 · 부 · 유 · 전 이름은 누르면 아래 한 줄이 나오는 단추(누름 영역 44px). 표의 이름 칸도 같게 */
  #screen-drill .dr-lab { display: flex; align-items: center; justify-content: flex-start; min-height: 44px; padding: 0 4px; margin: 0; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1rem; color: var(--ink); cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 0.25em; }
  #screen-drill .dr-lab[aria-expanded="true"], #screen-drill td.dxf-labk[aria-expanded="true"] { color: var(--brand); }
  #screen-drill td.dxf-labk { cursor: pointer; height: 44px; text-decoration: underline dotted color-mix(in srgb, var(--ink) 35%, transparent); text-underline-offset: 0.25em; }
  #screen-drill .dxf-lab-line { grid-column: 1 / -1; margin: -2px 0 2px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #screen-drill tr.dxf-lab-line td { padding: 6px 10px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; text-align: left; }
  @media (prefers-reduced-motion: no-preference) { #screen-drill .dxf-lab-line, #screen-drill tr.dxf-lab-line td { animation: dxfLab 0.18s ease-out; } }
  @keyframes dxfLab { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  /* 6항: 적는 칸 맞춤. 이름 왼쪽(길면 두 줄) · 칸은 한 세로줄(폭은 화면마다 가장 넓은 칸 묶음, --dx-vw) */
  #screen-drill .dx-rowin.dx-col { display: block; margin: 0; }
  #screen-drill .dx-rowin.dx-col .dx-pair { display: grid; grid-template-columns: minmax(0, 15em) var(--dx-vw, 120px); justify-content: start; align-items: center; column-gap: 10px; row-gap: 2px; width: 100%; max-width: none; margin: 6px 0; min-height: 44px; }
  #screen-drill .dx-rowin.dx-col .dx-pair > b { line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
  #screen-drill .dx-rowin.dx-col .dx-pv { display: inline-flex; align-items: center; gap: 6px; justify-self: start; white-space: nowrap; }
  #screen-drill .dx-rowin.dx-col .dx-note { grid-column: 1 / -1; justify-self: end; margin: 0; }
  /* 7항: 단계 안내 말풍선은 흐름 안 제자리(아래 칸 이름 · 단추 줄을 덮지 않게). 까망 버튼이 붙는 꼴(작업 J)은 그 부품이 오면 옮김 */
  #screen-drill .dxf-say, #screen-drill .dxf-say.ks-stuck { position: relative; top: auto; }
  #screen-drill .dxf-say.ks-stuck:not(.open) .dxf-txt { display: block; -webkit-line-clamp: unset; overflow: visible; }
  /* 4항: 성 불평등 '기준' 풀이표(문제지 표 + 여성(20대 남성 = 100) 열). 칸이 다섯 열이라 칸 폭을 열에 맞춤 */
  #screen-drill .dx-gwr-tb { table-layout: fixed; width: 100%; }
  #screen-drill .dx-gwr-tb th { font-size: 0.72rem; line-height: 1.25; word-break: keep-all; }
  #screen-drill .dx-gwr-tb th small { display: block; font-size: 0.92em; font-weight: 600; }
  #screen-drill .dx-gwr-tb td .dr-field { width: 100%; min-width: 0; }
  #screen-drill .dx-gwr-tb td .dr-num { width: 100%; min-width: 0; padding-left: 2px; padding-right: 2px; }
  /* 7항: 말풍선이 제자리라 위 고정 문제 칸 아래로 지나갈 수 있으므로, 칸을 잠깐 비출 때 고정 문제 칸도 말풍선 위로(문제 · 안내 · 지금 칸이 밝음) */
  #screen-drill.dxf-flashing .ks-pin { z-index: 62; }
  /* 49번 1항 ②(사용자 10/21): 적는 칸을 밝히며 둘레를 어둡게 할 때 머리 줄(제목 · 뒤로 · 메뉴 · 도움말)도 함께 덮는다(위로 올리지 않음).
     문제 칸은 내용만 밝게 두고 '문제 접기' 막대 같은 틀은 덮는다(개념 짚기도 같음) */
  #screen-drill.dxf-flashing .dr-head::after { content: ''; position: absolute; inset: 0; background: rgba(9, 12, 20, 0.45); pointer-events: none; z-index: 5; }
  #screen-drill.dxf-flashing .ks-pin, #screen-drill .ks-pin.dxf-spotpin { background: linear-gradient(rgba(9, 12, 20, 0.45), rgba(9, 12, 20, 0.45)), var(--card); }
  #screen-drill.dxf-flashing .ks-pin::after, #screen-drill .ks-pin.dxf-spotpin::after { opacity: 0; }
  #screen-drill.dxf-flashing .ks-pin > .ks-tog, #screen-drill .ks-pin.dxf-spotpin > .ks-tog { opacity: 0.4; }   /* 70번: 접기 줄 → 화살표 */
  /* 4항: 아래 단추 줄은 풀이 중 하단 메뉴 바로 위에 붙음(늘 보임, 탭마다 같은 자리) */
  #screen-drill.dxf[data-view="solve"] #dr-pane > .dr-card.dxf-on > .dr-btns { position: sticky; bottom: var(--dxf-navh, 0px); z-index: 26; margin-left: -4px; margin-right: -4px; padding: 8px 4px; background: var(--card); box-shadow: 0 -6px 8px -6px color-mix(in srgb, var(--ink) 16%, transparent); }
  /* 6항: 칸이 셋 넘는 비(A : B : C)는 이름 아래 줄 전체, 좁으면 줄바꿈 */
  #screen-drill .dx-rowin.dx-col .dx-pv.dx-pv-wide { grid-column: 1 / -1; justify-self: stretch; flex-wrap: wrap; white-space: normal; }
  /* 44번 1항 ①(D-455 ⑧): 도표 풀이 중 하단 메뉴 숨김 · 아래 단추 줄은 화면 맨 아래(메뉴 자리만큼 비우던 몸 아래 여백도 줄임) */
  body.dxf-nonav[data-screen="screen-drill"] #bottom-nav-bar { display: none !important; }
  body.has-nav.dxf-nonav[data-screen="screen-drill"], body.dxf-nonav[data-screen="screen-drill"] { padding-bottom: 0 !important; }
  body.dxf-nonav[data-screen="screen-drill"] #screen-drill.dxf[data-view="solve"] #dr-pane > .dr-card > .dr-btns { position: fixed; bottom: 0; left: 0; right: 0; width: auto; margin: 0; box-sizing: border-box; padding: 8px var(--dxf-fr, 12px) calc(8px + env(safe-area-inset-bottom)) var(--dxf-fl, 12px); border-top: 1px solid var(--line); }
  body.dxf-nonav[data-screen="screen-drill"] #screen-drill.dxf[data-view="solve"] #dr-pane > .dr-card:has(> .dr-btns) { padding-bottom: calc(var(--dxf-fh, 64px) + 14px); }
  /* 129번(광고 세션 제보 '390에서 논리 트레이닝 채점 단추가 아래 새 문제 줄에 가려짐'): 논리 카드는 단추 줄이 둘(카드의 채점 · 엔진의 새 문제)이라 둘 다 화면 아래에 붙어 겹쳤다.
     아래에 붙이는 것은 마지막 줄(엔진 줄)만, 앞 줄(채점)은 글 흐름에 두어 붙은 줄 바로 위에 보인다(카드 아래 여백이 붙은 줄 높이만큼) */
  body.dxf-nonav[data-screen="screen-drill"] #screen-drill.dxf[data-view="solve"] #dr-pane > .dr-card > .dr-btns:has(~ .dr-btns) { position: static; margin: 14px 0 0; padding: 0; border-top: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* 44번 1항 ③: 연 · 인 · 수 주어진 정보 = 한 줄 표(안 1). 지금 단계에 쓰는 줄만 밝힘(.dxf-lit) */
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clues { display: block; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clue { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 5px 10px; border-radius: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.86rem; line-height: 1.45; }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clue + .dr-clue { border-top: 1px solid var(--line); }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clue > small { margin: 0; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clue.dxf-lit { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dr-clue.dxf-lit > small { color: var(--brand-ink); }
  #screen-drill[data-view="solve"] .dr-card.dxf-yis .dxf-ci { display: inline-block; max-width: 100%; }   /* 지표 하나는 한 덩이(칸보다 길 때만 안에서 줄바꿈) */
  /* 47번: 까망 말풍선 안 덩이 넘김(두 줄 안) */
  .kb-dock .dxf-pg { font-size: 0.85em; opacity: 0.8; white-space: nowrap; }
  .kb-dock .dxf-more, .kb-dock .dxf-ok, .kb-dock .dxf-cpt { display: inline-flex; align-items: center; min-height: 28px; margin-left: 4px; padding: 0 10px; border: 1px solid rgb(255, 255, 255, 0.7); border-radius: 999px; background: rgb(255, 255, 255, 0.16); color: rgb(255, 255, 255); font: inherit; font-weight: 800; cursor: pointer; vertical-align: baseline; }
  #screen-drill .dxf-dock { position: sticky; top: calc(var(--ks-top) + 4px); z-index: 35; margin: 8px 0 10px; }   /* 70번(사용자 10/25 '말풍선이 제일 위에 있게'): 내리면 머리 줄 바로 아래에 붙고 문제 칸보다 위(덮어도 됨). 아래 옛 설명(41번 7항 제자리)은 이 줄로 바뀜 */   /* 41번 7항: 말풍선은 흐름 안 제자리(sticky 없음, 아래 칸 이름 · 단추를 덮지 않음). 49번 ⑤: 위 도표(표)와 사이를 조금 더(고정 칸 아래 10px + 8px) */
  #screen-drill.dxf-flashing .dxf-dock, #screen-drill.dxf-spotting .dxf-dock { z-index: 63; }   /* 70번: 비추는 문제 칸(62)보다도 위 */   /* 47번: 칸을 잠깐 비출 때도 까망 말풍선은 어둡게 위 */
  /* 48번: 고른 곳 결과 색은 원래 밝힘(연구 지문 .lit 등)보다 앞에 */
  #screen-drill .kv-pick.kv-pick-ok, #screen-drill .kv-pick.kv-pick-bad { background-color: var(--kv-tint); }
  /* 49번 1항 ⑥: 진행 막대는 숫자 없이 채움만(도표 트레이닝 모든 풀이 화면, 작업 S 짐작 화면도 같은 막대). 숫자는 화면 읽기에만 남김 */
  #screen-drill .dr-prog > span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; min-width: 0; }

  /* 52번(사용자 10/22, 작업 W '나 부드러운 면' 결): 역내분점 수직선. 테 없는 옅은 면 · 둥근 굵은 막대, A쪽 · B쪽 거리는 다른 옅은 색(적는 칸 이름 앞 점과 같은 색), 전체는 짙은 칩 */
  #screen-drill { --iv-track: #E7EAEF; --iv-a: #3F58E5; --iv-a-soft: #DDE5FF; --iv-a-ink: #2F44C4; --iv-b: #D08A00; --iv-b-soft: #FFEFC7; --iv-b-ink: #8A5A00; --iv-t: #16181D; --iv-t-ink: #FFFFFF; }
  html[data-mode="dark"] #screen-drill { --iv-track: #2C3037; --iv-a: #7D93FF; --iv-a-soft: #26305A; --iv-a-ink: #C3CEFF; --iv-b: #F2C14E; --iv-b-soft: #3A2E10; --iv-b-ink: #F6D88A; --iv-t: #ECEEF1; --iv-t-ink: #16181D; }
  #screen-drill .dx-ivsvg .dx-ivtrack { fill: var(--iv-track); }
  #screen-drill .dx-ivsvg .dx-ivseg.dx-iv-a { fill: var(--iv-a); opacity: 0.45; }
  #screen-drill .dx-ivsvg .dx-ivseg.dx-iv-b { fill: var(--iv-b); opacity: 0.5; }
  #screen-drill .dx-ivsvg .dx-ivseg.dx-iv-t { fill: var(--iv-t); opacity: 0.25; }
  #screen-drill .dx-ivsvg .dx-ivdot.dx-iv-a { fill: var(--iv-a); } #screen-drill .dx-ivsvg .dx-ivdot.dx-iv-b { fill: var(--iv-b); }
  #screen-drill .dx-ivsvg .dx-ivdot.dx-iv-t { fill: var(--iv-t); stroke: var(--card); stroke-width: 2.5; }
  #screen-drill .dx-ivsvg .dx-ivchip.dx-iv-a { fill: var(--iv-a-soft); } #screen-drill .dx-ivsvg .dx-ivchipt.dx-iv-a { fill: var(--iv-a-ink); }
  #screen-drill .dx-ivsvg .dx-ivchip.dx-iv-b { fill: var(--iv-b-soft); } #screen-drill .dx-ivsvg .dx-ivchipt.dx-iv-b { fill: var(--iv-b-ink); }
  #screen-drill .dx-ivsvg .dx-ivchip.dx-iv-t { fill: var(--iv-t); } #screen-drill .dx-ivsvg .dx-ivchipt.dx-iv-t { fill: var(--iv-t-ink); }
  #screen-drill .dx-ivsvg .dx-ivchipt { font-size: 12.5px; font-weight: 700; }
  #screen-drill .dx-ivsvg .dx-ivtick { stroke: var(--card); stroke-width: 2; opacity: 0; animation: dxIvFade 0.3s ease-out 0.05s forwards; }
  #screen-drill .dx-ivsvg .dx-ivgrow { transform-box: fill-box; animation: dxIvGrow 0.55s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes dxIvGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes dxIvFade { to { opacity: 0.9; } }
  @media (prefers-reduced-motion: reduce) { #screen-drill .dx-ivsvg .dx-ivgrow { animation: none; } #screen-drill .dx-ivsvg .dx-ivtick { animation: none; opacity: 0.9; } }
  #screen-drill .dx-ivk { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
  #screen-drill .dx-ivk.dx-iv-a { background: var(--iv-a); } #screen-drill .dx-ivk.dx-iv-b { background: var(--iv-b); }
  /* 52번: 노부유전 등 주어진 정보는 옅은 면 위 '이름 | 값' 줄(작업 W '나' 결). 값은 한 덩이로 오른쪽, 이름 · 작은 공식은 왼쪽에서 줄바꿈 */
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows { display: block; margin: 4px 0 8px; padding: 2px 0; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, var(--card)); }
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows > .dr-clue { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "f v" "n v"; column-gap: 12px; align-items: center; min-height: 0; padding: 7px 14px; border-radius: 0; background: transparent; color: var(--ink); font-weight: 600; }
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows > .dr-clue + .dr-clue { border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows > .dr-clue > small { grid-area: f; margin: 0 0 1px; }
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows .dxf-cn { grid-area: n; min-width: 0; word-break: keep-all; }
  #screen-drill[data-view="solve"] .dr-clues.dxf-rows .dxf-cval { grid-area: v; white-space: nowrap; font-size: 1.08em; font-weight: 800; font-variant-numeric: tabular-nums; }
  /* 63번(사용자 10/23 20:34 '노랑 안내 문구 전부 삭제하고 설명 페이지로', D-479 ③): 튜토리얼 노랑 창 → 화면 전체 설명 페이지(밝게 · 어둡게 화면 색, 작업 W 단추 값) */
  #dr-overlay.dxf-page { background: var(--bg); padding: 0; align-items: stretch; justify-content: center; }
  #dr-overlay.dxf-page .box { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; max-width: 640px; height: 100%; max-height: none; margin: 0 auto; overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 0; background: var(--bg); color: var(--ink); box-shadow: none; }   /* 나타남은 작업 G 45번 k45Rise 그대로 */
  #dr-overlay.dxf-page .dxf-ovhead { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; font-size: 0.8rem; color: var(--muted); }
  #dr-overlay.dxf-page .dxf-ovhead span { font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
  #dr-overlay.dxf-page .dxf-ovhead b { font-weight: 600; color: var(--muted); }
  #dr-overlay.dxf-page h3 { margin: 0 0 14px; font-size: 1.3rem; line-height: 1.4; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
  #dr-overlay.dxf-page p, #dr-overlay.dxf-page li { margin: 0 0 9px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); opacity: 1; }   /* 134번(작업 G, 사용자 '행간이 너무 멀고 … 칼럼 느낌으로'): 1.75 · 12px → 사이트 글(1.6 ~ 1.65)처럼 1.62 · 9px */
  #dr-overlay.dxf-page b { color: var(--ink); font-weight: 800; }
  #dr-overlay.dxf-page table { color: var(--ink-2); }
  #dr-overlay.dxf-page .nav { display: flex; align-items: center; gap: 8px; margin: auto 0 0; padding-top: 20px; }
  #dr-overlay.dxf-page .dots { order: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
  #dr-overlay.dxf-page .nav .dxf-ovprev { order: -1; min-height: 46px; min-width: 0; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 600; }
  #dr-overlay.dxf-page .nav button:not(.dxf-ovprev) { order: 1; margin-left: auto; min-height: 46px; min-width: 136px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--brand); color: rgb(255, 255, 255); font: inherit; font-size: 16px; font-weight: 700; }

  /* 66번 1항(D-483 ①): 도표 말풍선 글은 낱말 안에서 꺾지 않고 두 줄 길이를 고르게(한두 글자만 다음 줄로 밀리지 않게) */
  #screen-drill .kb-dock .kb-tx { word-break: keep-all; text-wrap: balance; }
  /* 71번 5항 · 63번 2항 안 1(D-483 ②): 진행은 까망 말풍선 안 단추. 아래 단추 띠는 숨김(엔진은 그대로 씀) */
  #screen-drill.dxf.dxf-acts[data-view="solve"] #dr-pane > .dr-card.dxf-on:has(.dxf-dock .kb-dock) > .dr-btns { display: none !important; }   /* 말풍선이 없는 카드(20번 도전 등 시험꼴)는 아래 띠 그대로 */
  #screen-drill.dxf.dxf-acts[data-view="solve"] #dr-pane > .dr-card.dxf-on:has(.dxf-dock .kb-dock) { padding-bottom: 18px; }
  #screen-drill.dxf.dxf-acts[data-view="solve"] #dr-pane > .dr-card.dxf-on:has(.dxf-dock .kb-dock) .dxf-choose { display: none !important; }   /* 고르기 확인은 말풍선 끝 */
  #screen-drill .kb-dock .dxf-act { display: inline-flex; align-items: center; min-height: 30px; margin: 4px 0 0 4px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; background: transparent; color: rgb(255, 255, 255); font: inherit; font-size: 0.85rem; font-weight: 700; vertical-align: middle; cursor: pointer; }
  #screen-drill .kb-dock .dxf-actrow { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 6px; }   /* 73번 3항 ①: 다시 풀기 · 다음 문제는 한 줄 */
  #screen-drill .kb-dock .dxf-actrow > .dxf-act { margin: 0; padding: 0 11px; white-space: nowrap; }
  #screen-drill .kb-dock .dxf-act.main { border-color: transparent; background: rgb(255, 255, 255); color: #4B3FD6; }
  /* 작업 G · 155번(사용자 11/6 '다음 문제는 맞는데 우측으로 고정해야지'): 진행 단추(확인 › · 제출 › · 다시 풀기 · 다음 문제 ›)는 글 끝에 이어 붙지 않고
     말풍선 안 오른쪽 아래 한 자리. 글 길이 · 줄 수와 상관없이 같은 자리, 단추 크기는 그대로 */
  #screen-drill .kb-dock .dxf-actrow { justify-content: flex-end; }
  #screen-drill .kb-dock :not(.dxf-actrow) > .dxf-act.main, #screen-drill .kb-dock .dxf-more { display: flex; width: fit-content; margin: 6px 0 0 auto; }   /* 덩이 사이 '다음'도 같은 자리 */
  #screen-drill .kb-dock .dxf-act::after { content: ''; position: absolute; }
  /* 기출 데이터 문항 이동: '1 / 14' 양옆 ‹ › */
  #screen-drill .dr-score.dxf-kqnav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
  #screen-drill .dr-score.dxf-kqnav .dxf-kq { min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
  #screen-drill .dr-score.dxf-kqnav .dxf-kq:hover { background: var(--brand-soft); }
  #screen-drill .dr-score.dxf-kqnav .dxf-kqsrc { order: -1; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 0.85em; font-weight: 600; }   /* 20번 도전 출처는 왼쪽 */
  #screen-drill.dxf .sv-kq { display: none !important; }   /* 71번 5항: '풀이 단계별로 보기'는 옛 판(풀이 틀에서는 까망 말풍선이 단계를 이끎) */
  #screen-drill.dxf .dx-kqfoot { display: none !important; }   /* 71번 5항(사용자 '이런 거 하지 마'): 기출 데이터 덧말은 풀이 틀에서 숨김(위 '출처: … (수치 활용)' 줄이 같은 뜻) */
  /* 71번 6항: 지금 칸 테는 굵은 노랑 대신 가는 보랏빛(대비 3 : 1 넘음: 밝게 #6A5AE0 · 어둡게 #A99CFF) */
  #screen-drill { --dxf-now: #6A5AE0; --dxf-now-glow: color-mix(in srgb, #6A5AE0 16%, transparent); }
  html[data-mode="dark"] #screen-drill { --dxf-now: #A99CFF; --dxf-now-glow: color-mix(in srgb, #A99CFF 22%, transparent); }
  #screen-drill .dr-field.dxf-now { box-shadow: 0 0 0 1.5px var(--dxf-now), 0 0 0 4px var(--dxf-now-glow); }
  #screen-drill .dr-field.dxf-now.dxf-flash { box-shadow: 0 0 0 1.5px var(--dxf-now), 0 0 0 4px var(--dxf-now-glow), 0 0 0 200vmax rgba(9, 12, 20, 0.45); }   /* 87번: 위 가는 테가 비추기 어둠까지 덮어써 머리 줄 · 고정 칸만 회색 상자가 되던 것 */
  #screen-drill .dr-field.dxf-pop.dxf-flash { animation-name: dxfFieldF; }   /* 87번: 테가 한 번 퍼지는 동안(0.5초)에도 둘레가 어둡게 */
  @keyframes dxfFieldF { 0% { box-shadow: 0 0 0 1.5px var(--dxf-now), 0 0 0 1.5px var(--dxf-now-glow), 0 0 0 200vmax rgba(9, 12, 20, 0.45); } 45% { box-shadow: 0 0 0 1.5px var(--dxf-now), 0 0 0 7px var(--dxf-now-glow), 0 0 0 200vmax rgba(9, 12, 20, 0.45); } 100% { box-shadow: 0 0 0 1.5px var(--dxf-now), 0 0 0 4px var(--dxf-now-glow), 0 0 0 200vmax rgba(9, 12, 20, 0.45); } }
  #screen-drill .dr-field.active .dr-num, #screen-drill input[type="number"]:focus { border-color: var(--dxf-now); box-shadow: 0 0 0 2px var(--dxf-now-glow); }
  .kb-dock .kb-tx .dxf-nw { white-space: nowrap; }   /* 71번: 비율식 덩이 */
  .kb-dock .kb-tx .nm { margin-right: 0.25em; }   /* 78번 4항(사용자 '전체만 글씨가 왜 작아?'): 셈 안 칸 이름(전체 125)도 다른 낱말과 같은 크기 · 빛깔 */
  .kb-dock .kb-tx .kq-eq .ans { color: inherit; text-decoration: underline; text-underline-offset: 3px; }   /* 71번: 보라 말풍선 위에서도 보이게(답 자리 '?')*/
  /* ===== 73번 3 · 4항(사용자 10/26): 내렸을 때 붙는 말풍선 · 끌어서 다시 놓기 · 까망을 누르면 가까운 벽 (uidxf.js dockWire) ===== */
  #screen-drill .dxf-dhold { height: 0; transition: height 0.22s cubic-bezier(.2, .8, .2, 1); }   /* 78번: 끄는 동안 떠난 자리가 부드럽게 접힘 */
  #screen-drill .dxf-dock.dxf-docked { margin-left: var(--dxf-sl, 0px); margin-right: var(--dxf-sr, 0px); }   /* 75번 2항: 붙기 전후 같은 폭(앱 칸 가장자리 6px), 옆으로 움직이지 않음 */
  #screen-drill .dxf-dock.dxf-stuck:not(.dxf-at-bottom):not(.dxf-dragging)::before { content: ''; position: absolute; z-index: -1; left: -6px; right: -6px; top: -4px; bottom: -10px; background: var(--card); }   /* 75번 6항: 위에 붙은 말풍선 옆 · 사이로 아래 글 · 그림 선이 비치지 않게 */
  #screen-drill.dxf #dr-pane > .dr-card.dxf-on:has(.dxf-dock.dxf-at-bottom) { padding-bottom: calc(18px + var(--dxf-padb, 0px)); }
  #screen-drill .dxf-dock.dxf-docked .kb-bubble { touch-action: none; cursor: grab; }   /* 78번: 붙은 자리 어디서나 끌어 옮김 */
  #screen-drill .dxf-dock .kb-bubble { flex-shrink: 0; }   /* 78번: 펼친 말풍선(J flex 칸)이 가로 자리만큼 줄지 않게. 폭은 uidxf fitBub가 글 폭에 맞춰 정함 */
  #screen-drill .dxf-dock .kb-dock { margin-left: var(--dxf-gx, 0px); transition: margin-left 0.28s cubic-bezier(.2, .8, .2, 1); }   /* 78번 1항: 말풍선 묶음은 놓은 가로 자리 */
  #screen-drill .dxf-dock.dxf-in { position: relative; top: auto; z-index: 20; --kb-lift-z: 20; }   /* 78번 2항: 문제 칸 사이(흐름 안). 위로 지나가면 고정 문제 칸(30) 밑으로 */
  #screen-drill .dxf-gap { margin: 8px 0 10px; border: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--brand) 7%, transparent); transition: height 0.2s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }   /* 78번: 끄는 동안 놓을 자리 */
  #screen-drill.dxf #dr-pane .dr-card .dxf-dock.dxf-at-bottom { position: fixed; top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: var(--dxf-bl, 6px); right: var(--dxf-br, 6px); margin: 0 !important; z-index: 35; }
  #screen-drill.dxf #dr-pane .dr-card .dxf-dock.dxf-dragging { position: fixed; top: var(--dxf-dt); bottom: auto; left: var(--dxf-dl); width: var(--dxf-dw); margin: 0 !important; z-index: 70; transition: none;
    transform: translate(var(--dxf-dx, 0px), var(--dxf-dy, 0px)) rotate(var(--dxf-rot, 0deg)) scale(calc(1.02 * var(--dxf-ds, 1))); transform-origin: calc(var(--dxf-gx, 0px) + 22px) 22px; opacity: var(--dxf-op, 1); filter: drop-shadow(0 12px 22px rgba(20, 20, 40, 0.22)); }   /* 78번: 좌우 벽에 가까울수록 작고 옅게(--dxf-ds · --dxf-op), J처럼 살짝 기욺 */   /* 들어 올린 앱처럼 살짝 커지고 그림자 */
  #screen-drill .dxf-dock.dxf-dragging .kb-bubble { cursor: grabbing; }
  body[data-dxf-wall][data-screen="screen-drill"] #kk-buddy:not(.kb-drag) .kb-btn { left: var(--dxf-wl) !important; top: var(--dxf-wt) !important; right: auto !important; bottom: auto !important; }
  body[data-dxf-wall="left"][data-screen="screen-drill"] #kk-buddy .kb-face, body[data-dxf-wall="top"][data-screen="screen-drill"] #kk-buddy .kb-face, body[data-dxf-wall="bottom"][data-screen="screen-drill"] #kk-buddy .kb-face { transform: none; }
  body[data-dxf-wall="right"][data-screen="screen-drill"] #kk-buddy .kb-face { transform: scaleX(-1); }
  /* 76번 1항(사용자 '필요 이상으로 양옆이 넓지 않냐'): 600 이상에서 풀이 카드는 읽기 좋은 폭(560px, 여백까지 약 590px)에서 가운데, 노부유전 막대 칸은 440px. 360은 그대로 */
  @media (min-width: 600px) {
    #screen-drill.dxf[data-view="solve"] #dr-pane > .dr-card { max-width: 560px; margin-left: auto; margin-right: auto; }
    #screen-drill.dxf[data-view="solve"] #dr-age-grid { max-width: 440px; margin-left: auto; margin-right: auto; }
  }
  /* 76번 2항: 좌우 벽 쪽으로 끌면 작아지며 '나갈' 꼴, 떠 있는 까망을 끌 때 들어갈 자리(점선), 끝을 넘으면 회색 '까망' 글씨 */
  /* 78번: 벽 쪽(.dxf-out)은 위 끄는 꼴의 --dxf-ds · --dxf-op가 잇따라 줄임(76번 한 번에 0.9 · 0.72는 거둠) */
  .dxf-drop { position: fixed; z-index: 69; height: 60px; border: 2px dashed color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--brand) 7%, transparent); pointer-events: none; animation: blIn 0.18s ease-out; }
  .dxf-drop.bottom { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  #dr-pane > .dxp-gap { position: relative; height: 0; overflow: hidden; pointer-events: none; }
  #dr-pane > .dxp-gap > span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 1.3rem; font-weight: 900; letter-spacing: 0.12em; color: color-mix(in srgb, var(--muted) 60%, transparent); opacity: var(--dxp-o, 0); }
  html:has(body[data-screen="screen-drill"] #screen-drill[data-view="solve"]) { overscroll-behavior-y: none; }   /* 기기 끝 효과 대신 위 튕김(풀이 화면만) */
  @media (prefers-reduced-motion: reduce) { .dxf-drop { animation: none; } #screen-drill .dxf-dock .kb-dock, #screen-drill .dxf-dhold, #screen-drill .dxf-gap { transition: none; } html:has(body[data-screen="screen-drill"] #screen-drill[data-view="solve"]) { overscroll-behavior-y: auto; } }
  /* 92번(사용자 10/30 04:17 '색칠하는 거는 안까지 칠하면 안 돼. 테두리만', 89번 안 ㄱ 노랑 빛): 지금 칸 비추기는 칸 안을 칠하지 않고 테두리 밖으로만 노랑 빛이 번진다. 둘레 어둠은 0.45 → 0.30.
     위 고정 자료 카드에서 이 칸을 채울 때 볼 값 줄(.dxf-see, uidxf point)은 어둠 위에서도 옅게 칠해 보인다(연 · 인 · 수 표가 쓰는 줄 .dxf-lit과 같은 옅은 파랑) */
  #screen-drill { --dxf-dim: rgba(9, 12, 20, 0.30); --dxf-glow: 0 0 0 2px #f5b800, 0 0 10px 4px rgba(255, 206, 40, 0.70), 0 0 28px 12px rgba(255, 214, 80, 0.38); --dxf-see: var(--brand-soft); }
  #screen-drill .dr-field.dxf-flash, #screen-drill .dr-field.dxf-now.dxf-flash { box-shadow: var(--dxf-glow), 0 0 0 200vmax var(--dxf-dim); }
  #screen-drill .dr-field.dxf-pop.dxf-flash { animation-name: dxfFieldY; }
  @keyframes dxfFieldY { 0% { box-shadow: 0 0 0 2px #f5b800, 0 0 0 0 rgba(255, 206, 40, 0), 0 0 0 0 rgba(255, 214, 80, 0), 0 0 0 200vmax var(--dxf-dim); }   /* 그림자 수를 끝과 같게(어둠이 움직이는 동안 옅어지지 않게) */ 100% { box-shadow: var(--dxf-glow), 0 0 0 200vmax var(--dxf-dim); } }
  #screen-drill.dxf-flashing .dr-head::after { background: var(--dxf-dim); }
  #screen-drill.dxf-flashing .ks-pin, #screen-drill .ks-pin.dxf-spotpin { background: linear-gradient(var(--dxf-dim), var(--dxf-dim)), var(--card); }
  #dr-pane .ks-pin .dxf-see { background: var(--dxf-see) !important; transition: background-color 0.2s; }
  #dr-pane .ks-pin .dxf-see .dxf-cn { color: var(--brand-ink); font-weight: 800; }
  #dr-pane .ks-pin tr.dxf-see > td, #dr-pane .ks-pin tr.dxf-see > th { background: var(--dxf-see) !important; }
/* 164번(사용자 11/11 14:15 '계층 버튼이 너무 왼쪽에 쏠려 · ABC가 너무 휑하게 · ABC 마크 박스를 쳐서'): 고르기 줄(A · B · C 상 · 중 · 하 등)을 가운데로,
   이름(A · B · C · 나라)은 작은 상자 표지에 넣는다 */
  #dr-pane .dx-pick { justify-content: center; gap: 8px; }
  #dr-pane .dx-pick > b { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3em; height: 2.3em; margin-right: 4px; padding: 0 6px; border: 1.5px solid var(--ink-2); border-radius: 8px; background: var(--card); font-size: 0.95rem; font-weight: 900; color: var(--ink); white-space: nowrap; }
  /* 170번: 기출 데이터를 다 맞힌 뒤 화면 아래에 떠 있는 '다음 문제 ›' · '목록으로 ›'(가운데, 뚱뚱하지 않게) */
  .dxf-kqend { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9001;   /* 고칠 말 상자(9000)보다 위 */
    padding: 11px 26px; border: 0; border-radius: 999px; background: var(--brand); color: rgb(255, 255, 255); font-size: 1rem; font-weight: 800; line-height: 1.2; white-space: nowrap;
    box-shadow: 0 8px 22px -8px rgb(40 30 90 / .55); cursor: pointer; animation: dxfKqIn .28s ease-out; }
  .dxf-kqend:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  body:not([data-screen="screen-drill"]) .dxf-kqend, body:has(#screen-drill:not([data-view="solve"])) .dxf-kqend { display: none; }
  @keyframes dxfKqIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
  @media (prefers-reduced-motion: reduce) { .dxf-kqend { animation: none; } }
  /* 170번: 고칠 말 상자(KkBuddy.note, uibuddy.css)의 노랑 꼴 'display: flex'가 '.kb-note[hidden] { display: none }'보다 뒤에 있어
     걷힌 뒤에도 투명한 상자가 화면 아래(고르기 줄 · 버튼 자리)에 남아 누름을 가로챘다(앱 전체). 걷힌 상자 · 사라지는 중인 상자는 누름을 받지 않게 한다.
     본디 자리는 uibuddy.css(작업 J)라 정리 ⑥에 적어 옮겨 달라고 알린다 */
  .kb-note[hidden] { display: none !important; }
  .kb-note:not(.on) { pointer-events: none; }
  body:has(.dxf-kqend) #screen-drill #dr-pane { padding-bottom: 72px; }   /* 170번: 떠 있는 버튼 아래로 내용 끝(범례 · 진행 막대)이 가리지 않게 스크롤 자리 */
  /* 170번 ②: 기출 데이터 '1단계' A ~ C(계층 구조) 정하기 칸. 가운데 머리 · 이름마다 색 상자(A 보라 · B 주황 · C 초록) · 큰 버튼.
     다 맞히면 한 줄 요약(A 중층 · B 하층 · C 상층)으로 접히고, 누르면 다시 펼침. 그 아래 '2단계 풀이표' */
  #dr-pane .dx-kpre { margin: 12px 0 10px; padding: 10px 8px 6px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 5%, transparent); text-align: center; }
  #dr-pane .dx-kstep-h { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 10px; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
  #dr-pane .dx-kstep-h b { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.8rem; font-weight: 900; }
  #dr-pane #dx-kbody > .dx-kstep-h { margin-top: 14px; }
  #dr-pane .dx-kL { --kc: var(--brand); margin: 0 auto 8px; max-width: 30rem; padding: 8px 6px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--kc) 45%, transparent); background: color-mix(in srgb, var(--kc) 8%, var(--card)); }
  #dr-pane .dx-kL-1 { --kc: var(--accent); }
  #dr-pane .dx-kL-2 { --kc: var(--ok, #2f9e6b); }
  #dr-pane .dx-kpre .dx-pick { margin: 0; gap: 6px; flex-wrap: nowrap; }
  #dr-pane .dx-kpre .dx-pick > b { flex: none; width: 2.2em; min-width: 0; height: 2.2em; font-size: 1.15rem; font-weight: 900; color: var(--kc); border-color: var(--kc); background: var(--card); }
  #dr-pane .dx-kpre .dr-seg { min-height: 44px; flex: 1 1 0; min-width: 0; max-width: 6.5em; padding: 6px 4px; font-size: 0.98rem; font-weight: 800; }
  #dr-pane .dx-kpre-sub { margin: 10px 0 6px; font-size: 0.9rem; font-weight: 800; color: var(--ink-2); }
  #dr-pane .dx-kpre.done:not(.open) > :not(.dx-kstep-h):not(.dx-kpre-sum) { display: none; }
  #dr-pane .dx-kpre.done { padding-bottom: 8px; }
  #dr-pane .dx-kpre-open { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
  #dr-pane .dx-kchip { --kc: var(--brand); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--kc) 45%, transparent); background: color-mix(in srgb, var(--kc) 8%, var(--card)); font-size: 0.84rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
  #dr-pane .dx-kchip.dx-kL-1 { --kc: var(--accent); }
  #dr-pane .dx-kchip.dx-kL-2 { --kc: var(--ok, #2f9e6b); }
  #dr-pane .dx-kchip b { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--kc); color: rgb(255, 255, 255); font-weight: 900; }
  #dr-pane .dx-kpre.open .dx-kpre-sum { margin-top: 6px; }
  #dr-pane .dr-card:has(#dx-kpre:not(.done)) { padding-bottom: 96px; }   /* 170번 ②: 1단계 동안 아래 자리를 두어, 문제 칸이 위에 붙어 있어도 1단계 머리와 A ~ C 줄을 한 화면에 올려 볼 수 있게 */

/* 작업 I · 155 · 157번: 두 제도 벤 다이어그램(dx_ss.js vn2Diagram · vn2Svg · vn2PopGrid)
   157번(사용자 11/10 21:48 '가시성 구려 · 벤다이어그램 안에 버튼 · 포함관계 정리'): 그림은 카드 폭을 따라 늘고 줄고(줄이지 않는 글자), 칸 이름 단추를 누르면 칸이 칠해지며 뜻 · 값이 아래에.
   포함 관계 줄은 좁은 카드에서 '이름 · 입력칸' 아래에 '= 칸 + 칸'을 한 줄로 둔다 */
  #dr-pane .dx-v2 { margin: 10px 0 4px; }
  #dr-pane .dx-v2fig { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 320 / 244; }
  #dr-pane .dx-v2fig > .dx-v2s { position: absolute; inset: 0; width: 100%; height: 100%; }
  .dx-v2s { overflow: visible; }
  .dx-v2s .dx-v2r { transition: fill-opacity 0.18s; }
  .dx-v2fig .dx-v2r { cursor: pointer; }
  .dx-v2s .dx-v2r-a { fill: var(--brand); fill-opacity: 0.07; }
  .dx-v2s .dx-v2r-o { fill: color-mix(in srgb, var(--brand) 50%, var(--accent)); fill-opacity: 0.15; }
  .dx-v2s .dx-v2r-b { fill: var(--accent); fill-opacity: 0.09; }
  .dx-v2s .dx-v2r-z { fill: var(--ink); fill-opacity: 0; }
  .dx-v2s .dx-v2r.on { fill-opacity: 0.32; }
  .dx-v2s .dx-v2r-z.on { fill-opacity: 0.1; }
  .dx-v2s .dx-v2ca, .dx-v2s .dx-v2cb { fill: none; stroke-width: 2; pointer-events: none; vector-effect: non-scaling-stroke; }
  .dx-v2s .dx-v2ca { stroke: var(--brand); }
  .dx-v2s .dx-v2cb { stroke: var(--accent); }
  .dx-v2s .dx-v2box { fill: none; stroke: var(--line-strong, var(--line)); stroke-width: 1; pointer-events: none; vector-effect: non-scaling-stroke; }
  .dx-v2s .dx-v2t { font-size: 34px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; }
  .dx-v2s .dx-v2ts { font-size: 24px; font-weight: 700; fill: var(--ink-2); }
  #dr-pane .dx-v2cell { position: absolute; z-index: 1; top: 46.7%; display: flex; flex-direction: column; align-items: center; gap: 3px; transform: translate(-50%, -50%); }
  #dr-pane .dx-v2cell-a { left: 25.6%; }
  #dr-pane .dx-v2cell-o { left: 50%; }
  #dr-pane .dx-v2cell-b { left: 74.4%; }
  #dr-pane .dx-v2cell-z { top: auto; right: 2.5%; bottom: 2.5%; flex-direction: row; gap: 6px; transform: none; }
  #dr-pane .dx-v2cell .dr-field, #dr-pane .dx-v2row .dr-field { width: 52px; }
  #dr-pane .dx-v2cell .dr-num, #dr-pane .dx-v2row .dr-num, #dr-pane .dx-v2pl .dr-num { padding: 4px 1px; font-size: 0.92rem; border-radius: 8px; }
  #dr-pane .dx-v2k { padding: 1px 8px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 72%, transparent); font: inherit; font-size: 0.76rem; font-weight: 700; line-height: 1.5; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
  #dr-pane .dx-v2k.on { background: var(--brand); color: rgb(255, 255, 255); }
  #dr-pane .dx-v2info { min-height: 2.9em; margin: 8px 0 0; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); text-align: left; word-break: keep-all; }
  #dr-pane .dx-v2info b { margin-right: 6px; color: var(--ink); }
  #dr-pane .dx-v2info .dx-v2val { display: inline-block; min-width: 1.8em; margin-right: 8px; padding: 0 6px; border-radius: 6px; background: var(--card); font-weight: 800; color: var(--brand-ink, var(--brand)); text-align: center; font-variant-numeric: tabular-nums; }
  #dr-pane .dx-v2info .dx-v2d { display: inline; }
  #dr-pane .dx-v2hint { color: var(--muted); }
  #dr-pane .dx-v2rel { margin: 10px 0 0; container-type: inline-size; }
  #dr-pane .dx-v2rh { margin: 0 0 2px; font-size: 0.8rem; font-weight: 800; color: var(--muted); }
  #dr-pane .dx-v2row { display: grid; grid-template-columns: 5.2rem 52px minmax(0, 1fr); grid-template-areas: "lab inp rhs"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 5px 6px; border-radius: 10px; cursor: pointer; }
  #dr-pane .dx-v2row + .dx-v2row { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
  #dr-pane .dx-v2row.on { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
  #dr-pane .dx-v2lab { grid-area: lab; font-size: 0.88rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
  #dr-pane .dx-v2row > .dr-field, #dr-pane .dx-v2nil { grid-area: inp; }
  #dr-pane .dx-v2rhs { grid-area: rhs; display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
  #dr-pane .dx-v2rhs em { font-style: normal; color: var(--muted); }
  #dr-pane .dx-v2c { white-space: nowrap; }
  #dr-pane .dx-v2c i { font-style: normal; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
  @container (max-width: 430px) {
    #dr-pane .dx-v2row { grid-template-columns: 5.2rem 52px minmax(0, 1fr); grid-template-areas: "lab inp ." "rhs rhs rhs"; }
  }
  /* 수로 바꾸기: 지역 · 시기마다 작은 벤 다이어그램(2 × 2) */
  /* 169번: 비율을 수로. 연도 머리 한 줄(t년 · t+20년) 아래 지역 띠 둘((가) 보라 · (나) 주황), 띠 안에 두 연도 칸. 칸은 그림 + 식만 */
  #dr-pane .dx-v2pop { margin: 10px 0 4px; }
  #dr-pane .dx-v2yh { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 6px; text-align: center; }
  #dr-pane .dx-v2pop-b .dx-v2yh { grid-template-columns: 1fr 3.4em 1fr; }
  #dr-pane .dx-v2pop-b .dx-v2yh b:last-child { grid-column: 3; }
  #dr-pane .dx-v2yh b { font-size: 0.84rem; font-weight: 800; color: var(--ink); padding: 3px 0; border-bottom: 2px solid var(--ink); }
  #dr-pane .dx-v2band { position: relative; margin: 0 0 12px; padding: 22px 6px 6px; border-radius: 14px; }
  #dr-pane .dx-v2band-0 { background: color-mix(in srgb, var(--brand) 9%, transparent); }
  #dr-pane .dx-v2band-1 { background: color-mix(in srgb, var(--accent) 11%, transparent); }
  #dr-pane .dx-v2rh { position: absolute; top: 4px; left: 10px; font-size: 0.78rem; font-weight: 900; line-height: 1.2; }
  #dr-pane .dx-v2band-0 .dx-v2rh { color: var(--brand-ink, var(--brand)); }
  #dr-pane .dx-v2band-1 .dx-v2rh { color: var(--accent-ink, var(--accent)); }
  #dr-pane .dx-v2pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
  #dr-pane .dx-v2pop-b .dx-v2pair { grid-template-columns: 1fr 3.4em 1fr; gap: 0; }
  #dr-pane .dx-v2arr { position: relative; display: block; text-align: center; font-size: 0.72rem; font-weight: 900; line-height: 1.2; color: var(--ink); padding-bottom: 12px; white-space: nowrap; }
  #dr-pane .dx-v2arr::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 3px; height: 2px; background: var(--ink); border-radius: 1px; }
  #dr-pane .dx-v2arr::before { content: ''; position: absolute; right: 10%; bottom: -1px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
  #dr-pane .dx-v2pc { min-width: 0; padding: 2px 0; text-align: center; }   /* 상자 안 상자를 두지 않음(168번 한 겹) */
  #dr-pane .dx-v2f { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 3px 0 0; }
  #dr-pane .dx-v2fl { font-size: 0.8rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
  #dr-pane .dx-v2f .dr-field { width: 52px; flex: none; }
  #dr-pane .dx-v2mini { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto 2px; }
  #dr-pane .dx-v2mini .dx-v2mt { font-size: 40px; font-weight: 900; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 9px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
  #dr-pane .dx-v2mini .dx-v2ms { font-size: 24px; font-weight: 800; fill: var(--ink-2); paint-order: stroke; stroke: var(--card); stroke-width: 7px; stroke-linejoin: round; }
  #dr-pane .dx-v2mini .dx-v2mb { font-size: 24px; font-weight: 800; fill: var(--muted); }
  #dr-pane .dx-v2mini .dx-v2r-b { fill-opacity: 0.04; }
  /* 제시문 조건 줄(157번 '제시문 가독성'): 한 줄에 조건 하나, 머리(A · B · t년)는 굵게, 줄 사이는 좁게 */
  #screen-drill .dx-chart .dx-lead .dx-cond { margin: 0; padding: 0; list-style: none; }
  #screen-drill .dx-chart .dx-lead .dx-cond li { position: relative; margin: 0 0 3px; padding-left: 12px; font-size: 0.9rem; line-height: 1.5; letter-spacing: -0.01em; }
  #screen-drill .dx-chart .dx-lead .dx-cond li:last-child { margin-bottom: 0; }
  #screen-drill .dx-chart .dx-lead .dx-cond li::before { content: ''; position: absolute; left: 2px; top: 0.68em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); }
  #screen-drill .dx-chart .dx-lead .dx-cond b { margin-right: 4px; color: var(--ink); }
  #screen-drill .dx-chart .dx-lead:has(.dx-cond) { padding: 10px 12px; }
/* 163번(사용자 11/11 '좁은 곳에서는 그냥 그림으로 · 포함 관계 숫자를 벤 다이어그램 안에 적는 게 중요 · 연도 두 줄 · 지금 단계'):
   풀이 그림(틀 320 × 340): 위 양쪽 A 전체 · B 전체(제도 이름 작게), 원 안 A만 · 중복 · B만, 원 아래 가운데 수혜자 전체, 오른쪽 아래 비수혜자 */
  #dr-pane .dx-v2fig.dx-v2big { max-width: 420px; aspect-ratio: 320 / 340; }
  #dr-pane .dx-v2big .dx-v2cell-a, #dr-pane .dx-v2big .dx-v2cell-o, #dr-pane .dx-v2big .dx-v2cell-b { top: 50%; }
  #dr-pane .dx-v2top { position: absolute; z-index: 1; top: 2.5%; display: flex; flex-direction: column; gap: 1px; }
  #dr-pane .dx-v2top-a { left: 3%; align-items: flex-start; }
  #dr-pane .dx-v2top-b { right: 3%; align-items: flex-end; }
  #dr-pane .dx-v2top .dx-v2cell { position: static; flex-direction: row; gap: 5px; transform: none; }
  #dr-pane .dx-v2top-b .dx-v2cell { flex-direction: row-reverse; }
  #dr-pane .dx-v2nm { padding: 0 4px; font-size: 0.72rem; font-weight: 700; line-height: 1.3; color: var(--muted); white-space: nowrap; }
  #dr-pane .dx-v2top-a .dx-v2k { color: var(--brand-ink, var(--brand)); }
  #dr-pane .dx-v2top-b .dx-v2k { color: var(--accent-ink); }
  #dr-pane .dx-v2cell-u { top: 75.5%; left: 50%; flex-direction: row; gap: 5px; transform: translateX(-50%); }
  #dr-pane .dx-v2big .dx-v2cell-z { right: 2.5%; bottom: 2.5%; }
  /* 제시문: 이 그림의 시기 조건만 진하게, 그 조건을 그림 칸 식으로 붙임 */
  #screen-drill .dx-chart .dx-lead .dx-cond li.off { opacity: 0.5; }
  #screen-drill .dx-chart .dx-lead .dx-cond .dx-cond-f { display: inline-block; margin: 2px 0 0 6px; padding: 0 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
  /* 표: 지역 · 시기를 행으로(연도가 두 줄로 갈리지 않게), 이 그림의 행을 칠함 */
  #screen-drill .dx-v2tb tr > th:first-child { white-space: nowrap; }
  #screen-drill .dx-v2tb tr:first-child > th { font-size: 0.86rem; line-height: 1.3; word-break: keep-all; }
  #screen-drill .dx-v2tb tr.dx-cur > th, #screen-drill .dx-v2tb tr.dx-cur > td { background: color-mix(in srgb, var(--brand-soft) 80%, transparent); font-weight: 800; color: var(--ink); }
/* 179번(사용자 11/13 11:14 '위에 그 메뉴가 없어야 될 것 같아 … 뒤로 버튼, 두 제도 벤, 오른쪽 더보기 물음표 이것 때문에 밀려나가 정신이 없는'):
   풀이 화면은 머리 줄을 따로 두지 않고 ← · ≡를 카드 첫 줄 양끝에(통합C 33번 공용 꼴: 그림 32px 동그라미 · 옅은 테 · 누르는 자리 44px).
   어느 메뉴인지 알리는 제목은 숨김(화면 읽기는 남김), ?는 ≡ 메뉴 안(개념 · 튜토리얼 다시 보기)과 같아 뺌. 자리(--dxf-ht)는 uidxf.js headRow가 잼 */
#screen-drill.dxf[data-view="solve"] { position: relative; }
#screen-drill.dxf[data-view="solve"] .dr-head { position: absolute; z-index: 4; left: 12px; right: 12px; top: var(--dxf-ht, 8px); height: 44px; min-height: 0; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; background: transparent; box-shadow: none; border: 0; pointer-events: none; }
#screen-drill.dxf[data-view="solve"] .dr-head > *, #screen-drill.dxf[data-view="solve"] .dxf-right > * { pointer-events: auto; }
#screen-drill.dxf[data-view="solve"] .dr-back, #screen-drill.dxf[data-view="solve"] .dxf-menu { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; font-size: 0; line-height: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--card) 86%, transparent) 15px, var(--line) 15px 16px, transparent 16.5px); box-shadow: none; }
#screen-drill.dxf[data-view="solve"] .dr-back::before { content: '←'; font-size: 17px; line-height: 1; font-weight: 700; }   /* 문항 넘김 ‹ · ›와 헷갈리지 않게 화살표 */
#screen-drill.dxf[data-view="solve"] .dxf-menu .ic { width: 17px; height: 17px; }
#screen-drill.dxf[data-view="solve"] .dr-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#screen-drill.dxf[data-view="solve"] .dr-help { display: none !important; }
#screen-drill.dxf[data-view="solve"] .dxf-row1 { padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
/* 독해(grd)는 첫 줄이 출처 · 번호 한 줄이라 버튼을 그 줄에 두지 않고 카드 위 얇은 줄(44px)로 */
#screen-drill.dxf[data-view="solve"][data-group="grd"] .dr-head { position: static; height: 44px; margin: 0 0 2px; }
#dr-pane .dx-v2rh .dx-v2rk { margin-left: 4px; font-size: 0.82em; font-weight: 700; color: var(--ink-2); }   /* 179번: 'A 전체' · 'A만'은 지역 머리에 한 번 */
/* 178번: 도표 트레이닝 첫 화면 지도 아래 '먼저 다질 영역 · 아직 기록 없음' 목록을 뺌(아래 영역 칸과 같은 것을 되풀이, 사용자 'AI 같은 말') */
#dr-hex .kx-weak { display: none !important; }
/* 183번(사용자 11/15 13:12 '확대해서 박스 보여준 부분이 좀 부자연스럽게 위랑 아래랑 색깔이 너무 달라 … 회색'): 다음 칸을 비출 때(dxf-flashing) 붙은 문제 칸은
   바탕에만 어둠을 깔아, 제 바탕이 있는 표 머리 줄 · 제시문 상자는 희게 남고 값 줄은 회색이라 위 · 아래가 갈렸다. 문제 칸 위를 한 겹으로 고르게 덮는다.
   비추는 칸이 문제 칸 안에 있을 때와 읽기 차례 비추기(dxf-spotpin)는 그대로 */
#screen-drill.dxf-flashing .ks-pin:not(:has(.dxf-flash)) { background: var(--card) !important; }
#screen-drill.dxf-flashing .ks-pin:not(:has(.dxf-flash))::before { content: ''; position: absolute; inset: 0; z-index: 40; border-radius: inherit; background: var(--dxf-dim, rgba(9, 12, 20, 0.45)); pointer-events: none; }   /* 둘레 어둠(--dxf-dim)과 같은 값 */
/* 185번(탭 열기 멈춤): 러닝머신에서 유형을 골라 열 때 그 유형이 그려지기 전(약 60ms) 지난 풀이 칸이 비치지 않게 가림(uidxf.js DR.open · showGroup 감싼 곳) */
#screen-drill.dxf-pre #dr-pane, #screen-drill.dxf-pre #dr-groups, #screen-drill.dxf-pre #dr-tabs { visibility: hidden; }

/* ===== 러닝머신 N각형 능력치 지도(작업 I 26번 2항 안 라, D-211 · D-233, 35번 4항에서 앱에 넣음, uihex.js) =====
   납작한 결(D-181 · D-200): 그림자 · 그라데이션 · 이중 테 없음, 주 색 한 가지와 가는 회색 선
   움직임은 transform · opacity만, 0.6초 안. 움직임 줄이기면 움직이지 않음 */
.kx { position: relative; margin: var(--kk-sp-3, 12px) 0 var(--kk-sp-4, 16px); }
.kx-cap { margin: 0 0 var(--kk-sp-2, 8px); font-size: var(--kk-fs-2, .85rem); color: var(--muted); line-height: 1.5; text-align: center; }
.kx-stage { position: relative; max-width: 440px; margin: 0 auto; }
.kx-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.kx-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.kx-ring.is-out { stroke: var(--line-strong, var(--line)); }
.kx-axis { stroke: var(--line); stroke-width: 1; }
.kx-shape { fill: var(--brand); fill-opacity: .13; stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; }
.kx-vdot { fill: var(--brand); }
.kx-frame { fill: none; stroke: none; }

.kx-list { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.kx-btn { position: absolute; width: var(--kk-tap, 44px); height: var(--kk-tap, 44px); padding: 0; margin: 0; border: 0; border-radius: 50%; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: none; }
/* 22번 안이 왼쪽 위에서 미끄러져 온 까닭: 앱 전체의 'button { transition: .2s }'(모든 속성)이 마크 단추의 자리(transform: translate) 바뀜을
   0.2초 동안 움직여, 단추가 처음 자리(지도 왼쪽 위 0, 0)에서 제자리로 날아왔다. 그래서 자리는 left · top으로 두고 단추의 transition을 끈다 */
.kx-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.kx-mark { position: absolute; left: 50%; top: 50%; display: block; transition: transform .16s ease-out; }
.kx-lab { position: absolute; width: max-content; max-width: 4.6em; pointer-events: none; line-height: 1.25; word-break: keep-all; overflow-wrap: normal; }
.kx-lab[data-al="l"] { text-align: left; } .kx-lab[data-al="r"] { text-align: right; } .kx-lab[data-al="c"] { text-align: center; }
.kx-no { display: block; font-size: var(--kk-fs-1, .75rem); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.kx-nm { display: block; font-size: var(--kk-fs-2, .85rem); font-weight: 700; color: var(--ink); }

/* 다: 작은 점(중요도가 높으면 조금 크게). 바깥 고리 선 위에서 깔끔하게 보이도록 바탕색 띠 2px */
.kx-c .kx-mark { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--card); }
.kx-c .kx-mark[data-w="1"] { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.kx-c .kx-mark[data-w="2"] { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
/* 라: 영역 선 아이콘(바탕색 원 위, 가는 회색 테) */
.kx-d .kx-mark { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-strong, var(--line)); color: var(--brand); }
.kx-d .kx-mark[data-w="0"] { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.kx-d .kx-mark[data-w="2"] { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.kx-ic { display: block; width: 62%; height: 62%; margin: 19%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 약한 영역 줄 */
.kx-weak { max-width: 440px; margin: var(--kk-sp-3, 12px) auto 0; }
.kx-weak-h { margin: 0 0 4px; font-size: var(--kk-fs-1, .75rem); font-weight: 700; color: var(--muted); }
.kx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kx-row { transition: background-color .15s ease-out; display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--kk-tap, 44px); padding: 8px 2px; margin: 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kx-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.kx-row-mk { flex: none; display: block; }
.kx-c .kx-row-mk { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--brand); }
.kx-d .kx-row-mk { width: 22px; height: 22px; color: var(--brand); }
.kx-d .kx-row-mk .kx-ic { width: 100%; height: 100%; margin: 0; }
.kx-row-nm { flex: 1; min-width: 0; font-size: var(--kk-fs-2, .85rem); font-weight: 700; word-break: keep-all; }
.kx-row-lv { flex: none; font-size: var(--kk-fs-1, .75rem); font-weight: 600; color: var(--muted); }
.kx-row-go { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 처음 등장(0.6초 안, 제자리) ----
   SVG 요소의 transform 기준점은 따로 정하지 않으면 SVG 칸의 왼쪽 위(0 0)다. 그래서 기준점을 요소 자신의 상자(fill-box)로 두고,
   도형 묶음은 지도 가운데에 놓인 보이지 않는 원(kx-frame, 반지름 = 바깥 고리)으로 상자를 지도와 같게 맞춰 가운데에서 자라게 한다 */
.kx-grid, .kx-val { transform-box: fill-box; transform-origin: 50% 50%; }
.kx-axis { transform-box: fill-box; transform-origin: var(--ox, 0%) var(--oy, 0%); }
.kx.is-in .kx-grid { animation: kxFade .24s ease-out both; }
.kx.is-in .kx-axis { animation: kxAxis .28s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(.04s + var(--i, 0) * .012s); }
.kx.is-in .kx-val { animation: kxGrow .34s cubic-bezier(.2, .75, .25, 1) both; animation-delay: .12s; }
.kx.is-in .kx-btn, .kx.is-in .kx-lab { animation: kxFade .2s ease-out both; animation-delay: calc(.26s + var(--i, 0) * .015s); }
.kx.is-in .kx-weak { animation: kxFade .2s ease-out both; animation-delay: .34s; }
@keyframes kxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kxAxis { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes kxGrow { from { transform: scale(.001); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* ---- 들어가기(D-211: 마크가 커지며 그 영역으로) ---- */
.kx-btn.is-go .kx-mark { transform: scale(1.35); }
.kx-row.is-go { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.kx-pre { opacity: 0; }
.kx-enter { animation: kxFade .22s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .kx.is-in .kx-grid, .kx.is-in .kx-axis, .kx.is-in .kx-val, .kx.is-in .kx-btn, .kx.is-in .kx-lab, .kx.is-in .kx-weak, .kx-enter { animation: none; }
  .kx-mark { transition: none; }
}

/* 165번(작업 G): 이름 글자도 누르면 그 영역으로(그림 단추와 같은 곳). 누를 때 살짝 옅어짐 */
.kx-lab { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kx-lab:active { opacity: .6; }

/* 169 · 171번(사용자 11/7 '숙련도에 따라 아래부터 채워지게 · 무지갯빛 흰색 네온', '물결 애니 · 색상도 자연스럽게 · 배경에도 묻히지 않게'): 학습 육각형(ui76h)과 같은 결.
   마크 둥근 바탕에 숙련도(--kx-m)만큼 물이 차오르고 위 가장자리가 얕고 느리게 일렁임(움직임 줄이기면 멈춤). 빛깔은 uihex.js가 숙련도로 셈한 --k171-l(밝게) · --k171-d(어둡게).
   빈 곳은 옅은 회색과 또렷한 테, 기록 없음은 칠하지 않고 점선 테 */
@property --kx-m { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.kx-d .kx-mark[data-lv] { overflow: hidden; isolation: isolate; background: color-mix(in srgb, var(--ink) 7%, var(--card)); border-color: color-mix(in srgb, var(--ink) 28%, transparent); color: rgb(28, 26, 48); }
:root[data-mode="dark"] .kx-d .kx-mark[data-lv] { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); color: rgb(240, 238, 252); }
.kx-d .kx-mark[data-lv]::before { content: ''; position: absolute; left: -2px; right: -2px; bottom: 0; height: calc(var(--kx-m, 0%) + 3px); z-index: -1; background: var(--k171-l);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='4' viewBox='0 0 14 4'><path d='M0 2Q3.5 .4 7 2T14 2V4H0z'/></svg>") repeat-x 0 0 / 14px 4px, linear-gradient(#000 0 0) no-repeat 0 3.5px / 100% 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='4' viewBox='0 0 14 4'><path d='M0 2Q3.5 .4 7 2T14 2V4H0z'/></svg>") repeat-x 0 0 / 14px 4px, linear-gradient(#000 0 0) no-repeat 0 3.5px / 100% 100%;
  animation: k171wave 3.6s linear infinite, k171fill .9s cubic-bezier(.3, .7, .3, 1) both; transition: height .6s cubic-bezier(.3, .7, .3, 1); }
:root[data-mode="dark"] .kx-d .kx-mark[data-lv]::before { background: var(--k171-d); }
@keyframes k171wave { to { -webkit-mask-position: 14px 0, 0 3.5px; mask-position: 14px 0, 0 3.5px; } }
@keyframes k171fill { from { height: 0; } }
.kx-d .kx-mark[data-lv] .kx-ic { position: relative; }
.kx-d .kx-mark[data-lv="strong"] { border-color: rgba(176, 156, 255, .9); box-shadow: 0 0 6px rgba(186, 164, 255, .55), 0 0 11px rgba(140, 205, 255, .35); }
:root[data-mode="dark"] .kx-d .kx-mark[data-lv="strong"] { border-color: rgba(255, 255, 255, .9); box-shadow: 0 0 6px rgba(255, 255, 255, .6), 0 0 12px rgba(196, 176, 255, .5); color: rgb(28, 26, 48); }
.kx-d .kx-mark[data-lv="none"] { background: var(--card); border-style: dashed; color: var(--muted); }
.kx-d .kx-mark[data-lv="none"]::before { content: none; }
@media (prefers-reduced-motion: reduce) { .kx-d .kx-mark[data-lv]::before { animation: none; transition: none; } }
@media (forced-colors: active) { .kx-d .kx-mark[data-lv] { box-shadow: none; } }
/* 170번: 지도에서 영역을 눌러 도착한 카드 테두리가 두 번 부드럽게 빛남(학습 육각형 ui76h.css와 같은 결). 움직임 줄이기면 테두리만 잠깐 */
#dr-home-list .dxh-area.k170-hi { animation: k170hi 1.8s ease-in-out; }
@keyframes k170hi { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 18%, 58% { box-shadow: 0 0 0 2px var(--brand), 0 0 14px color-mix(in srgb, var(--brand) 35%, transparent); } 38%, 80% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { #dr-home-list .dxh-area.k170-hi { animation: none; box-shadow: 0 0 0 2px var(--brand); } }

  /* ===== 작업 I · 70번: 한 쪽 설명 페이지(DxPage, uiexpl.js). 68번 시안 3판 결에서 연습장 표 · 필기를 빼고 글로만 ===== */
  #dr-overlay.xp-on .box.xp { gap: 0; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  /* 120번(손님 고장 11/6, 아이패드 사파리 '지역 합산 설명에서 다음으로 안 넘어감'): 벼락치기 CSS(uicram.css 417줄, 작업 X)의 소품 규칙
     '.xp { position: absolute; inset: 0; height: 100%; pointer-events: none }'이 이름이 같은 설명 상자에도 걸려, 벼락치기를 켠 학생은
     상자가 누름 · 끌기를 받지 못했다(손가락 · 펜슬로 끌어도 제자리, 아래 모드 카드까지 못 감). 설명 상자는 원래 값으로 되돌린다 */
  #dr-overlay .box.xp { position: static; inset: auto; height: auto; pointer-events: auto; }
  #dr-overlay.xp-on .box.xp > .nav, #dr-overlay.xp-on .box.xp > .dxf-ovhead { display: none !important; }
  .box.xp .nw { white-space: nowrap; }
  .box.xp p { word-break: keep-all; text-wrap: pretty; }
  .box.xp h4, .box.xp .xp-sub { word-break: keep-all; text-wrap: balance; }
  /* 177번: 경로 줄이 길면(360 · 글자 130%) '← 뒤로'가 두 줄로 꺾이며 경로와 겹치던 것. 양옆 칸은 '← 뒤로' 폭(0.92rem 글 · 3.5rem 안팎)만큼 같게 두고(경로 가운데 유지), 경로는 남는 폭 안에서 줄바꿈 */
  .xp-top { display: grid; grid-template-columns: minmax(3.7rem, 1fr) minmax(0, max-content) minmax(3.7rem, 1fr); column-gap: 4px; align-items: center; min-height: 44px; margin: 0 -6px 4px; }
  .xp-top > span { min-width: 0; font-size: 0.8rem; font-weight: 600; line-height: 1.35; color: var(--muted); text-align: center; text-wrap: balance; overflow-wrap: anywhere; word-break: keep-all; }
  #dr-overlay .xp-top .xp-back { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; min-width: 0; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.92rem; font-weight: 600; white-space: nowrap; box-shadow: none; }
  .xp-hero { margin: 6px 0 4px; text-align: center; }
  .xp-hero h2 { margin: 6px 0 6px; font-size: 1.5rem; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
  .xp-nbu { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; margin: 6px 0 4px; }
  #dr-overlay .xp-nbu b { font-size: 2.1rem; line-height: 1.15; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
  #dr-overlay .xp-nbu i { font-style: normal; font-size: 1.3rem; font-weight: 700; color: var(--muted); align-self: center; }
  .xp-nbu b small { margin-left: 1px; font-size: 0.74rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
  #dr-overlay .xp-sub { margin: 4px auto 0 !important; max-width: 320px; font-size: 0.95rem !important; line-height: 1.5 !important; color: var(--ink-2) !important; }
  .xp-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
  .xp-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
  .xp-sec { margin: 0 0 22px; }
  /* 11/3판: 꼴이 여럿인 탭에서 이번 문제 꼴 꼬리표 */
  .xp-sec h4 .xp-tag { flex: none; align-self: center; margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-style: normal; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
  .xp-sec h4 { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; font-size: 1.02rem; line-height: 1.45; font-weight: 800; color: var(--ink); }
  .xp-sec h4 i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand); color: rgb(255, 255, 255); font-style: normal; font-size: 0.78rem; }
  .xp-body { margin-left: 30px; }
  #dr-overlay .xp-body p, #dr-overlay .xp-body li { margin: 0 0 5px; font-size: 0.95rem; line-height: 1.5; }   /* 113번(사용자 11/3 '설명할 때 행간이 너무 길어'): 1.7 → 1.58. 11/5(사용자 15:23 '기출 지문 분석 설명 부분이 행간이 너무 길어 … 책 읽듯이', G 149번 알림): 1.58 → 1.5, 문단 아래 8 → 5px */
  #dr-overlay .xp-body p.xp-f { color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
  .xp-body .dr-two { margin-top: 6px; grid-template-columns: 1fr; }
  @media (min-width: 560px) { .xp-body .dr-two { grid-template-columns: 1fr 1fr; } }
  .xp-body table { max-width: 100%; }
  .xp-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }   /* 73번 1항(D-475 ②): 칸이 홀수면 마지막 칸이 왼쪽에 홀로 남지 않고 가운데 */
  .xp-modes > .xp-mode { flex: 0 0 calc(50% - 5px); }
  #dr-overlay .xp-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 124px; margin: 0; padding: 14px 14px 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
    box-shadow: 0 1px 2px rgba(20, 20, 40, 0.04), 0 6px 18px -12px rgba(40, 40, 90, 0.22); color: inherit; font: inherit; text-align: left; cursor: pointer; }
  #dr-overlay .xp-mode.rec { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #9B8CFF, #5B4BE0 55%, #7B6CF6) border-box; box-shadow: 0 10px 24px -14px rgba(91, 75, 224, 0.55); }
  .xp-mode .ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
  .xp-mode .ic svg { width: 20px; height: 20px; }
  .xp-mode.rec .ic { background: linear-gradient(135deg, #8F7FFF, #5B4BE0); }
  .xp-mode.rec .ic svg * { stroke: rgb(255, 255, 255) !important; }
  #dr-overlay .xp-mode b { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); }
  .xp-mode small { display: block; margin-top: 3px; font-size: 0.82rem; line-height: 1.45; color: var(--muted); word-break: keep-all; }   /* 113번에 1.3으로 좁혔다가 사용자 11/4 '이건 원래 문제 없었는데?'로 처음 값(1.45 · 위 3px)으로 되돌림 */
  .xp-mode em { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #8F7FFF, #5B4BE0); color: rgb(255, 255, 255); font-style: normal; font-size: 0.7rem; font-weight: 800; }
  #dr-overlay .xp-again { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin: 14px 0 0; padding: 0 16px; border: 1px dashed var(--line-strong, var(--line)); border-radius: 14px; background: transparent; color: var(--ink-2); font: inherit; font-size: 0.95rem; font-weight: 700; box-shadow: none; }
  .xp-again .ic { width: 16px; height: 16px; transition: transform 0.2s; }
  .xp-again[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .xp-again + .xp-secs { margin-top: 18px; }
  .xp-go { display: flex; justify-content: flex-end; margin: 18px 0 0; }
  #dr-overlay .xp-start { min-height: 46px; min-width: 136px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--brand); color: rgb(255, 255, 255); font: inherit; font-size: 16px; font-weight: 700; }
  .xp-in { animation: xpIn 0.32s ease-out both; }
  @keyframes xpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .xp-in { animation: none; } .xp-again .ic { transition: none; } }
  @media (min-width: 600px) { .xp-modes:not(:has(> .xp-mode:nth-child(4))) > .xp-mode { flex: 1 1 0; } }   /* 셋이면 한 줄, 넷이면 2 × 2 */
  @media (min-width: 860px) { .xp-modes > .xp-mode { flex: 1 1 0; } }
  /* 103번 4항: 설명 페이지를 두 덩이씩 넘기는 장(1 · 2단계 / 3 · 4단계 / 5단계) */
  .xp-pgbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
  .xp-pglab { font-size: 0.86rem; font-weight: 800; color: var(--brand); }
  .xp-dots { display: inline-flex; gap: 6px; }
  .xp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong, var(--line)); transition: width 0.2s, background-color 0.2s; }
  .xp-dots i.on { width: 18px; border-radius: 4px; background: var(--brand); }
  /* 107번(D-607, #402 물을 것 1): 장 머리 줄 점 양옆 작은 화살표(아래 '‹ 이전 · 다음 ›'은 그대로) */
  .xp-pgctl { display: inline-flex; align-items: center; gap: 4px; }
  #dr-overlay .xp-pga { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand); cursor: pointer; }
  #dr-overlay .xp-pga::after { content: ''; position: absolute; inset: -6px; }   /* 누르는 칸 44px */
  #dr-overlay .xp-pga .ic { width: 18px; height: 18px; }
  #dr-overlay .xp-pga-p .ic { transform: scaleX(-1); }
  #dr-overlay .xp-pga:disabled { color: var(--muted); opacity: 0.35; cursor: default; }
  #dr-overlay .xp-pga:not(:disabled):active { background: var(--brand-soft); }
  .xp-pgs { touch-action: pan-y; }
  .xp-pg[hidden] { display: none; }
  .xp-pgnav { display: flex; justify-content: center; gap: 10px; margin: 4px 0 0; }
  #dr-overlay .xp-pgnav button { min-height: 44px; min-width: 112px; padding: 0 18px; border: 1px solid var(--line-strong, var(--line)); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
  #dr-overlay .xp-pgnav .xp-next:not(:disabled) { border-color: var(--brand); background: var(--brand); color: rgb(255, 255, 255); }
  #dr-overlay .xp-pgnav button:disabled { opacity: 0.4; cursor: default; }
  .xp-slide-l { animation: xpSlideL 0.26s ease-out; } .xp-slide-r { animation: xpSlideR 0.26s ease-out; }
  @keyframes xpSlideL { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
  @keyframes xpSlideR { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
  /* 103번 4항: 조각 이론 표(총부양비 · 부양 : 피부양 · 전체 조각 · 조각 막대) */
  .xp-tb { width: 100%; margin: 8px 0 12px; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
  .xp-tb th { padding: 6px 4px; border-bottom: 1.5px solid var(--line-strong, var(--line)); font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: center; white-space: nowrap; }
  .xp-tb td { padding: 7px 3px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; color: var(--ink); }
  .xp-tb td:first-child { font-weight: 800; color: var(--brand); }
  .xp-tb tr.xp-tb-hl td { background: var(--brand-soft); }
  .xp-pc { display: inline-flex; flex-wrap: nowrap; gap: 2px; vertical-align: middle; }   /* 103번: 글자 130%에서도 막대는 한 줄 */
  .xp-pc i { flex: none; width: 9px; height: 11px; border-radius: 3px; background: color-mix(in srgb, var(--brand) 70%, transparent); }
  .xp-pc i.r { background: #F2A33A; }
  .xp-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 0.8rem; color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { .xp-slide-l, .xp-slide-r { animation: none; } .xp-dots i { transition: none; } }
  /* 작업 I · 157번(사용자 11/10 21:48 '설명이 너무 길어 · 페이지 나누든 · 행간'): 두 제도 벤 다이어그램 설명 그림 · 포함 관계 줄 · 채우는 차례 칸 */
  #dr-overlay .xp-body .xp-v2 { display: block; width: 100%; max-width: 300px; margin: 4px auto 10px; }
  #dr-overlay .xp-body .xp-v2 .dx-v2t { font-size: 26px; font-weight: 800; }
  #dr-overlay .xp-v2rel { margin: 4px 0 10px; padding: 0; list-style: none; }
  #dr-overlay .xp-v2rel li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
  #dr-overlay .xp-v2rel li:last-child { border-bottom: 0; }
  #dr-overlay .xp-v2rel .dx-v2s { flex: none; width: 58px; height: auto; }
  #dr-overlay .xp-v2rel b { font-weight: 800; }
  #dr-overlay .xp-v2f { margin: 4px 0 10px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); font-size: 1rem; font-weight: 800; color: var(--ink); text-align: center; word-break: keep-all; }
  #dr-overlay .xp-v2st { margin: 4px 0 10px; padding: 0; list-style: none; counter-reset: v2st; }
  #dr-overlay .xp-v2st li { position: relative; margin: 0 0 6px; padding: 7px 12px 7px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); counter-increment: v2st; }
  #dr-overlay .xp-v2st li::before { content: counter(v2st); position: absolute; left: 11px; top: 50%; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-size: 0.76rem; font-weight: 800; }
  #dr-overlay .xp-v2st li b { display: block; color: var(--ink); }
  #dr-overlay .xp-v2pp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 10px; }
  #dr-overlay .xp-v2pp > div { padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
  #dr-overlay .xp-v2pp .dx-v2s { display: block; width: 100%; max-width: 160px; margin: 0 auto 2px; }
  #dr-overlay .xp-v2pp b { display: block; font-size: 0.92rem; color: var(--ink); }
  #dr-overlay .xp-v2pp span { display: block; font-size: 0.86rem; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 작업 I · 124 · 126 · 127 · 128번: 화살표로 이은 줄글(A → B → C, 3칸 이상)을 순서도로 세운다(uiexpl.js flow)
   - 단계 칸: 리퀴드 글래스 옅은 판(빛 결 + --kk-glass-soft + 옅은 보라 기운 테 1px), 모 12px, 글은 가운데. 굵은 테 · 그림자 없음
   - 칸 사이: 가는 선 + 작은 세모 화살촉. 번호는 옅은 보라 동그라미
   - 묻는 단계('…?'): 꼭짓점 넷인 마름모(SVG, 테 굵기 고름). 아래 꼭짓점에서 '예'가 내려가고, 오른쪽 꼭짓점에서 '아니요'가 나가 꺾인다(127번 갈래 짜임 그대로)
   - 글은 줄 길이를 고르게(text-wrap: balance), 끝 괄호 덧말은 둘째 줄, 두 낱말 용어는 .nw로 묶는다 */
  #dr-overlay .xp-body ol.xp-flow { --sp: 50%; --wire: color-mix(in srgb, var(--brand) 72%, transparent); --qw: min(70%, 15.5rem); --qh: 5.6rem; list-style: none; margin: 6px 0 10px; padding: 0; }
  #dr-overlay .xp-body li.xp-fs, .xp-fsd, .xp-fyb { box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--kk-glass-edge, var(--line))); border-radius: 12px; background: var(--kk-glass-sheen, linear-gradient(transparent, transparent)), var(--kk-glass-soft, var(--card)); word-break: keep-all; }
  #dr-overlay .xp-body li.xp-fs { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 14px; font-size: 0.93rem; line-height: 1.45; text-align: center; }
  #dr-overlay .xp-body li.xp-fs + li.xp-fs { margin-top: 24px; }
  /* 칸 사이 선 + 세모 화살촉(줄기는 가운데) */
  #dr-overlay .xp-body li.xp-fs + li.xp-fs::after { content: ''; position: absolute; left: var(--sp); top: -24px; height: 17px; margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  #dr-overlay .xp-body li.xp-fs + li.xp-fs::before { content: ''; position: absolute; left: var(--sp); top: -8px; width: 0; height: 0; margin-left: -4.5px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 6px solid var(--wire); transform: none; }
  .xp-fs > i { flex: none; align-self: flex-start; margin-top: calc(0.93rem * 1.45 / 2 - 9.5px); display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-style: normal; font-size: 0.72rem; font-weight: 800; }
  .xp-fs span, .xp-fsd span, .xp-fyb span { min-width: 0; text-wrap: balance; }
  .xp-fs > span { font-weight: 600; }
  /* 묻는 단계 줄: li는 틀만 */
  #dr-overlay .xp-body li.xp-fs.xp-fqw { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
  .xp-fq { position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: var(--qw); height: var(--qh); margin: 0 auto; padding: 0 15%; text-align: center; font-weight: 700; line-height: 1.3; }
  .xp-fqs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .xp-fqs polygon { fill: color-mix(in srgb, var(--brand-soft) 80%, var(--card)); stroke: color-mix(in srgb, var(--brand) 55%, transparent); stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .xp-fq > span { position: relative; text-wrap: balance; }
  .xp-fd { position: absolute; right: calc(100% + 6px); top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-top: -9.5px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-style: normal; font-size: 0.72rem; font-weight: 800; }
  /* 선: 아니요(오른쪽 꼭짓점 → 오른쪽 → 아래), 예(아래 꼭짓점 → 아래) */
  .xp-fw1, .xp-fw2, .xp-fsp { position: absolute; pointer-events: none; box-sizing: border-box; }
  .xp-fw1 { left: calc(var(--sp) + var(--qw) / 2); right: 5%; top: calc(var(--qh) / 2 - 0.75px); border-top: 1.5px solid var(--wire); border-right: 1.5px solid var(--wire); border-top-right-radius: 9px; }
  .xp-fqn .xp-fw1 { height: calc(var(--qh) / 2 + 12px); }
  .xp-fqn .xp-fw1::after, .xp-fsp::after { content: ''; position: absolute; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 6px solid var(--wire); }
  .xp-fqn .xp-fw1::after { right: -5.25px; bottom: -1px; }
  .xp-fqy .xp-fw1 { bottom: -1px; }
  .xp-fw2 { left: var(--sp); right: 5%; bottom: -12px; height: 11px; margin-left: -0.75px; border-bottom: 1.5px solid var(--wire); border-right: 1.5px solid var(--wire); border-bottom-right-radius: 9px; }
  .xp-fsp { left: var(--sp); top: var(--qh); margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fqn .xp-fsp { bottom: 0; }
  .xp-fqn .xp-fsp::after { display: none; }
  .xp-fqy .xp-fsp { height: 24px; }
  .xp-fqy .xp-fsp::after { left: -5.25px; bottom: -1px; }
  /* 이름표: 선 옆 작은 글 */
  .xp-fl { position: absolute; font-size: 0.74rem; font-weight: 800; line-height: 1.2; color: var(--brand-ink, var(--brand)); white-space: nowrap; }
  .xp-fl-n { right: calc(5% + 6px); top: calc(var(--qh) / 2 - 20px); }
  .xp-fl-y { left: calc(var(--sp) + 7px); top: calc(var(--qh) + 4px); }
  /* 갈래 칸: 아니요 결과(마름모 아래 오른쪽) · 예 다음 칸(줄기 위) */
  .xp-fsd, .xp-fyb { padding: 9px 12px; line-height: 1.45; text-align: center; }
  .xp-fsd { width: 44%; margin: 12px 0 0 56%; font-size: 0.88em; }
  .xp-fyb { width: 76%; margin: 24px auto 0; font-size: 0.95em; font-weight: 600; }
  .xp-fsub { display: block; margin-top: 2px; font-size: 0.86em; font-weight: 500; color: var(--ink-2); }
  .xp-fsub b { color: var(--ink); }
  #dr-overlay .xp-body p.xp-fpre { margin: 0 0 4px; font-size: 0.86rem; font-weight: 800; color: var(--brand); }
/* 작업 I · 130번: 기출 지문 분석(rs) 순서도는 그림 꼴을 따로 짠다(dx_end.js .xp-fc). 줄기는 왼쪽 칸(64%) 가운데, 오른쪽 칸(36%)은 '아니요' 길
   - ④ 직접 수집했나? 아니요 → 문헌 연구법 → ⑤의 아니요 칸(실험 집단 없음) → 오른쪽 길 → ⑥ 옆으로 합류. 모든 길이 ⑥ · ⑦을 거친다
   - 마름모는 번호 · 짧은 물음만, 긴 풀이는 '더보기'(details)와 아래 '구분하기'에 둔다
   - 칸: 옅은 유리 판 · 보라 기운 1px 테, 번호는 칸 왼쪽 위 모서리에 붙인 작은 동그라미, 선은 1.5px 보라 + 세모 화살촉 */
  .xp-fc { --qw: min(88%, 12rem); --qh: 4.6rem; --wire: color-mix(in srgb, var(--brand) 70%, transparent); --edge: color-mix(in srgb, var(--brand) 16%, var(--kk-glass-edge, var(--line)));
    display: grid; grid-template-columns: minmax(0, 70fr) minmax(0, 30fr); column-gap: 0; row-gap: 24px; margin: 12px 0 6px -22px; font-size: 0.82rem; line-height: 1.35; word-break: keep-all; }
  /* 133번(사용자 '박스를 전체적으로 왼쪽으로'): 그림을 설명 글 들여쓰기만큼 왼쪽으로 당기고(번호 동그라미 자리 8px만 남김), 단계 칸은 왼쪽 칸(70%) 안에만 둬 오른쪽 아니요 길(30%)과 겹치지 않는다.
     ⑤ 예 칸만 오른쪽 길 바로 앞까지(선 12px 앞) 넓힌다 */
  /* 134번: 오른쪽 아니요 길은 ④ · ⑤ 옆 ~ ⑥ 합류 구간에만 있으니, 그 밖의 칸(1 · 2 · 3 · 7)은 화면 폭 끝까지. 줄기는 왼쪽 칸 가운데(전체의 35%) */
  .xp-fc .fc-m.fc-wide { grid-column: 1 / -1; }
  .xp-fc .fc-m.fc-wide:not(.fc-r1)::before, .xp-fc .fc-m.fc-wide:not(.fc-r1)::after { left: 35%; }
  .xp-fc .fc-m.fc-y { margin-right: calc(-21.43% + 3px); }
  .xp-fc .fc-y::before, .xp-fc .fc-y::after { left: 41.2% !important; }
  .xp-fc .fc-r1 { grid-row: 1; } .xp-fc .fc-r2 { grid-row: 2; } .xp-fc .fc-r3 { grid-row: 3; } .xp-fc .fc-r4 { grid-row: 4; }
  .xp-fc .fc-r5 { grid-row: 5; } .xp-fc .fc-r6 { grid-row: 6; } .xp-fc .fc-r7 { grid-row: 7; } .xp-fc .fc-r8 { grid-row: 8; }
  .xp-fc .fc-m { grid-column: 1; position: relative; }
  .xp-fc .fc-x, .xp-fc .fc-bus, .xp-fc .fc-in { grid-column: 2; position: relative; }
  /* 단계 칸 */
  .xp-fc .fc-s, .xp-fc .fc-x { box-sizing: border-box; border: 1px solid var(--edge); background: var(--kk-glass-sheen, linear-gradient(transparent, transparent)), var(--kk-glass-soft, var(--card)); text-align: center; }
  .xp-fc .fc-s { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 12px 8px 14px; border-radius: 12px; text-align: left; }
  .xp-fc .fc-s > b { font-weight: 700; text-wrap: balance; }
  .xp-fc .fc-sub { display: block; margin-top: 1px; font-size: 0.9em; font-weight: 500; color: var(--ink-2); }
  .xp-fc .fc-n { position: absolute; left: -8px; top: -8px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid var(--card); border-radius: 50%; box-sizing: border-box; background: var(--brand-soft); color: var(--brand-ink, var(--brand)); font-style: normal; font-size: 0.7rem; font-weight: 800; }
  .xp-fc .fc-y { border-style: dashed; }
  /* 줄기: 칸 위 가는 선 + 세모 화살촉(첫 칸 빼고) */
  .xp-fc .fc-m:not(.fc-r1)::before { content: ''; position: absolute; left: 50%; top: -24px; height: 18px; margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fc .fc-m:not(.fc-r1)::after { content: ''; position: absolute; left: 50%; top: -7px; width: 0; height: 0; margin-left: -4.5px; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 6px solid var(--wire); }
  /* 마름모(묻는 단계) */
  .xp-fc .fc-q { align-self: stretch; min-height: var(--qh); }
  .xp-fc .fc-qs, .xp-fc .fc-qt { position: absolute; top: 0; left: calc(50% - var(--qw) / 2); width: var(--qw); height: var(--qh); }
  .xp-fc .fc-qs { overflow: visible; }
  .xp-fc .fc-qs polygon { fill: color-mix(in srgb, var(--brand-soft) 70%, var(--card)); stroke: color-mix(in srgb, var(--brand) 50%, transparent); stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
  .xp-fc .fc-qt { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; line-height: 1.25; text-align: center; }
  .xp-fc .fc-d { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--brand); color: rgb(255, 255, 255); font-style: normal; font-size: 0.66rem; font-weight: 800; }
  .xp-fc .fc-sp { position: absolute; left: 50%; top: var(--qh); bottom: 0; margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fc .fc-w { position: absolute; left: calc(50% + var(--qw) / 2); right: calc(-21.43% - 9px); top: calc(var(--qh) / 2 - 0.75px); height: 14.75px; box-sizing: border-box; border-top: 1.5px solid var(--wire); border-right: 1.5px solid var(--wire); border-top-right-radius: 9px; }
  .xp-fc .fc-w::after { content: ''; position: absolute; right: -5.25px; bottom: -1px; width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 6px solid var(--wire); }
  .xp-fc .fc-no, .xp-fc .fc-yes { position: absolute; font-size: 0.72rem; font-weight: 800; line-height: 1.2; color: var(--brand-ink, var(--brand)); white-space: nowrap; }
  .xp-fc .fc-no { left: calc(50% + var(--qw) / 2 + 6px); top: calc(var(--qh) / 2 - 1.1rem); }
  .xp-fc .fc-yes { left: calc(50% + 6px); top: calc(var(--qh) + 3px); }
  /* 오른쪽 길: 아니요 칸 · 길 · ⑥ 옆 합류 */
  .xp-fc .fc-x { align-self: start; margin: calc(var(--qh) / 2 + 14px) 0 0 18px; padding: 6px 8px 7px; border-radius: 10px; font-size: 0.92em; line-height: 1.3; }
  .xp-fc .fc-x > b { font-weight: 700; text-wrap: balance; }
  .xp-fc .fc-tag { display: block; margin-bottom: 1px; font-style: normal; font-size: 0.68rem; font-weight: 800; color: var(--brand-ink, var(--brand)); }
  .xp-fc .fc-x.fc-r4::after { content: ''; position: absolute; left: 50%; top: 100%; height: calc(24px + var(--qh) / 2 + 14px); margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fc .fc-x.fc-r5::after { content: ''; position: absolute; left: 50%; top: 100%; height: 26px; margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fc .fc-bus { align-self: stretch; }
  .xp-fc .fc-bus::before { content: ''; position: absolute; left: calc(50% + 9px); top: 0; bottom: -24px; margin-left: -0.75px; border-left: 1.5px solid var(--wire); }
  .xp-fc .fc-in { align-self: stretch; }
  .xp-fc .fc-in::before { content: ''; position: absolute; left: 0; width: calc(50% + 9px + 0.75px); top: 0; height: 50%; box-sizing: border-box; border-right: 1.5px solid var(--wire); border-bottom: 1.5px solid var(--wire); border-bottom-right-radius: 9px; }
  .xp-fc .fc-in::after { content: ''; position: absolute; left: 0; top: 50%; width: 0; height: 0; margin-top: -5.25px; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-right: 6px solid var(--wire); }   /* 133번: 아니요 길은 ⑥ 칸 오른쪽 옆으로 합류 */
  /* ⑦ 단계 가리기 */
  .xp-fc .fc-v { display: block; margin-top: 3px; font-size: 0.86em; line-height: 1.45; color: var(--ink-2); text-align: left; }
  .xp-fc .fc-v em { display: inline-block; margin-right: 5px; padding: 0 6px; border-radius: 6px; font-style: normal; font-weight: 800; font-size: 0.92em; line-height: 1.5; }
  .xp-fc .fc-vi { background: var(--brand-soft); color: var(--brand-ink, var(--brand)); }
  .xp-fc .fc-vn { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
  /* 더보기 */
  .xp-fc .fc-more { width: 100%; margin-top: 4px; }
  .xp-fc .fc-more summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-size: 0.8em; font-weight: 700; color: var(--brand-ink, var(--brand)); }
  .xp-fc .fc-more summary::-webkit-details-marker { display: none; }
  .xp-fc .fc-more summary::after { content: ''; width: 5px; height: 5px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
  .xp-fc .fc-more[open] summary::after { margin-top: 2px; transform: rotate(-135deg); }
  #dr-overlay .xp-body .xp-fc .fc-more p { margin: 4px 0 0; font-size: 0.82rem; line-height: 1.42; color: var(--ink-2); text-align: left; }
  #dr-overlay .xp-body .xp-fc .fc-more p.fc-ex { padding: 5px 8px; border-radius: 8px; background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
  #dr-overlay .xp-body .xp-fc .fc-ex em { display: block; font-style: normal; font-weight: 800; font-size: 0.9em; color: var(--brand-ink, var(--brand)); }
  /* 더보기 안 낱말 풀이: 왼쪽 이름 · 오른쪽 풀이 두 칸 */
  /* 134번: 이름 | 풀이 두 칸. 풀이 칸이 열 자 남짓보다 좁아지면 풀이가 이름 아래로 쌓인다(flex-wrap) */
  .xp-fc .fc-dl { display: block; margin: 4px 0 0; font-size: 0.82rem; line-height: 1.42; }
  .xp-fc .fc-dl > div { display: flex; flex-wrap: wrap; column-gap: 10px; margin: 0 0 2px; }
  .xp-fc .fc-dl dt { flex: 0 0 auto; min-width: 4.6em; font-weight: 800; color: var(--ink); }
  .xp-fc .fc-dl dd { flex: 1 1 14em; min-width: 0; margin: 0; color: var(--ink-2); }
  /* 133번: 본문 뒤 덧말은 괄호 · 작은 보조 글 색 */
  .xp-fc .fc-aside { font-size: 0.9em; color: var(--muted); }
  /* 구분하기 */
  #dr-overlay .xp-body .fc-diff { margin: 16px 0 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
  #dr-overlay .xp-body .fc-diff .fc-dh { display: block; margin-bottom: 4px; font-size: 0.86rem; color: var(--brand-ink, var(--brand)); }
  #dr-overlay .xp-body .fc-diff ul { margin: 0; padding: 0; list-style: none; }
  #dr-overlay .xp-body .fc-diff li { margin: 0 0 6px; font-size: 0.86rem; line-height: 1.42; color: var(--ink-2); }
  /* 132번(D-667 정보 글은 책처럼): 이 페이지 설명 글은 행간을 좁힌다 */
  #dr-overlay .xp-body .xp-tight > p { line-height: 1.42; }
  #dr-overlay .xp-body .fc-diff li:last-child { margin-bottom: 0; }
  #dr-overlay .xp-body .fc-diff li b { display: block; color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .xp-fc .fc-more summary::after { transition: none; } }
/* 183번(사용자 11/15 13:12 '연구 독해 순서도 … 텍스트들이 가운데 중심 정렬도 안 됐고'): 순서도 단계 칸 글(이름 · 덧말 · 가치 개입/중립 줄 · 더보기)은 칸 가운데.
   펼친 더보기 풀이 글(여러 줄 문단)은 읽기 쉽게 왼쪽 그대로 */
.xp-fc .fc-s { align-items: center; text-align: center; padding-left: 14px; padding-right: 14px; }
.xp-fc .fc-v { text-align: center; }
.xp-fc .fc-more { text-align: center; }
.xp-fc .fc-s > :not(details), .xp-fc .fc-s .fc-sub { text-wrap: balance; }   /* 가운데 맞춘 덧말이 두 줄이면 고르게(끝 낱말 하나만 넘어가지 않게) */

  /* ===== 작업 I · 74번: 도표 트레이닝 PC 키보드 (uidxkey.js) — 키보드 초점 테 · 처음 한 번 안내 ===== */
  #screen-drill #dr-pane :is(.dx-arw-cell, .dx-arw-b, .dr-choice, .dr-seg, .dxf-act):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
  /* 숫자 칸 · 막대는 마우스 · 손가락으로 눌러도 :focus-visible이라 키보드로 움직이는 동안(html[data-dx-kbd])만 테 */
  html[data-dx-kbd] #screen-drill #dr-pane :is(input.dr-num, input[type="text"]):focus { outline: 3px solid var(--brand); outline-offset: 2px; }
  html[data-dx-kbd] #screen-drill #dr-pane input.dr-range:focus { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
  html[data-dx-kbd] #screen-drill.dxf #dr-age-grid .dr-num:focus { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 8px; }   /* 색연필 칸은 칸 안쪽 테(형광펜 띠가 없는 실전에서도 보이게) */
  #screen-drill #dr-pane .kb-dock .dxf-act:focus-visible { outline-color: rgb(255, 255, 255); }
  .dxk-tip { position: fixed; left: 50%; bottom: 24px; z-index: 950; max-width: min(420px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 12px; background: rgba(28, 26, 48, 0.92); color: rgb(255, 255, 255); font-size: 0.88rem; font-weight: 600; line-height: 1.45; text-align: center; word-break: keep-all; transform: translateX(-50%); box-shadow: 0 8px 24px rgba(20, 20, 40, 0.25); animation: dxkIn 0.25s ease-out; transition: opacity 0.4s; pointer-events: none; }
  .dxk-tip.out { opacity: 0; }
  @keyframes dxkIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .dxk-tip { animation: none; transition: none; } }

  /* ===== 작업 I · 64 · 67 · 68 · 70번: 노부유전 색연필 칸(시험지). 풀이 화면 틀이 켜져 있을 때만(#screen-drill.dxf) =====
     사용자 10/25: 색연필 칸 괜찮음 · 수는 진한 연필 · 글꼴 ㉡ 고운돋움 · 밝은 화면 종이는 회색빛(어둡게는 (가) 짙은 종이, 10/24).
     이름 | 끌기 막대 | 수 세 칸 사이 세로 연필선, 맞으면 수 폭에 맞춘 손 동그라미(빨간 펜), 지금 칸은 형광펜 띠, 큰 수는 글자를 줄여 칸 안 */
  @font-face { font-family: 'KkPencil'; src: url(data:font/woff2;base64,d09GMgABAAAAAA9YAA8AAAAAHjgAAA8BAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGyAchTAGYAByEQgKqAigfgE2AiQDgngLgT4ABCAFg1AHIBckGIE+G+sYo6KaVR/BPxIyN280ozma4IrMWWRnZ8Vxt5Vl/l8Tz3QqlecRkswS1Y999uwLIDhAdoyKyJ68ilIpH4kyQodV6son9r+fx23/Z2O7MIwi1aeANlLDIkRGjJTQBqx8hfiiQl9U/650qi3dTRwuqSFRE3JMh6q+Ov1D+4OvxYSLuFR0Yf9vv2917r9nEB88cXiohiIh/dApZeZ+m7tv5e364A8fxC2LRQ51E9sQ05AgFLGQiYREpBIitamZLlmunIcsmAyxslL301Y5h41WlBrnxOTz6H0LMEGuPNiRY/5m4CEAfRqQta92M3z+1Ie3582BVHHhhI0ku6McEQ+Ff/v2rHlg0XZ5wN6bM3c2+B8sHB2AxsfzZyeg/el7jdD1YnTOEAz8w0AEYxTxkvjL734BUB0TUkCEfCSRixzEkViYJ4mEMe5+vtYMJJFV2ZFzuR8mC/FWzN6hXUTMfukWrdpEcYT/i5jfCaiZebUbMs8ak4654m4PetyzXvam933qaz9CSAVUajB8EKSQWi0bP4SriIaBXQOEp5iWkUMAQimhY+IUhPCVopmxQpAkZfTquIQhycpVsnBrhKRQqlLPowmSqkI1K69muDRSuHTZcBly4DLlwmWZASeQByeUDycigxOTw0ko4HBpJMBKFfiwXtneL+9tsoU5WYtOVihNrujfekQAVyrWSt9V/10qem04AKeQOrOWkyRZitQRHI7j+HTntcVUVPTcRBvKJBLU22oHTvPq5AY6Xnc9JeCA6zpz2e0Cq4qvBOdp3wRGDUemy6tFjWv9L8MBCrSfhQNThK7XdYZ0HDg1g/oVmTctOlh1JXuSmJ7GGtpvr2L/gOSXL7DZ9qX2k1qAyJQtfUFUCwy23kLxrpoPwEYwehUY8wbkC6hJQL1Dp811jFEwKsCr/cyBd6z7WGlp9h09XvoG9JLzUsjbZf4difH+/kxCUaBHarRfUMid21X7TdjE/IlxIUQA+3yoIaQjKMnh4cGrOqP3B+kGvWGRipIPpXFGJ0kFiKB3EHAY43hDo0NFldiUCRkhYX0RSmdSXC5So1o0CrbiPtqlKP/qIDSiSNY5VR+2ncOuZ+0dAqIIAJ09H0rDjG6QtRroHRQBEC31WLNp3pehO0I16THeXElNlON2MJUpfbTh0iI7Vc7rc9uOkjCux5YFRGTcGScK6M1Eqpmu0tmRwlE7axqikCi1LiNasgkZHQPxxBKSdNaAeDWLasaY6zGOLKzUjlGui/gtC7eaP0rro8WHlVu0GTOdgupFKdSM9feA1jRKPem2ADNr20nLiPMW/ShDd3OdMs89GlkpWmbhERDGrAqtgMFRoCh+Ih/CP5bpdFZe6bNJ5W8dE2Lr57INLb7IlmLkVLBLjRAgsh4rnvr+nf3JHXuIBCFDz2kUozK88R+XYxw1bnPnKEIl6mQWHwwncvOowi8lgHii4yX0QmdNgpJdt565cIn8nP8/zqgQlalj+ch/D8UFNxMNZmSXLWcSZAhfG1tDgRvp9dQEEKkaFULozr8QBIn0MxEaO7iprVuyDkTR6HSDnglNhbU1eT1GWMJCYUU1599ip4SxFr2I1agUlZncnD+lnGWZF5VPRo9lCMM4MI9OYUR4ntjenn8/qnUWG0q4eZelwizL6cz6HwRES8OMVVs4fOTUxpLXxyGjVo/2et6a5hpekbvSyzjl9VwbIa/D/IzyrRIGJ7GHbk3czetT64xgHP1PNtijs7DhwxyZqyKv1kSb6f0EcjbBUOiZnaLpYZ6JUEPs1rkOgLx07lo2TqjZ4FvSIIVETlsYzj3mM181DFPWYNvkbg+YHnoX8/jsiois4NCAGEKApqG53iRs+HAVVxtCzJla/b73OCaAjo05K55d7Cgag8g8pv1J+5szOKeOggd+aaH9gN6fudr7YxlW8Lg0hGBD5mX/UJyM+s3LsxRzdoazTffo7NTa6pkBSmy9wm6VaEOztEplHp+nFunsGp54s5RM7y8DMBB6xzxeHv9P3sNQOv1GyOihX/8aOOCn8ZGtfTz6mS5yZsC8Cu6r2eBBmV0WKekwGJLMiIdh0vxs6PZh29Bs6tOpFqKbbEtJj+iXf0XcxZ1bJbtDezlnsKyMT778MK4lcUxKZG/Nm/pxMtCMuXFZOEqtm2omzOREqus0fo4Df57iYZLDR1gbhJKP598QhuRjnEwqg+JMRsfwAYLOKe40ChzEhwyPn54v+YR7lmw7QizmFKLVjc89T5CahdgjvHlpizUHabjEOUmuoMgk32aaKDwYklZkJULhIzyIDOBdhG0FC1tgApPDO99fGlXVN4uqrM1j+o9YfERpbDLVWFtmaoNvEWSdA1aDhzKosbSe49aLPfFVFMcmuiVzkJqbacVGSYUCuXqglWWi8voHZZLy4JFArj1m92l9xS+UlD/vzwdb/nr9AIBHM7bSuDHpxZ90L50+PdkqAKzEXoFVkfFdD94UwV9hGO4eWYIQGZOSkvmCJOGNOD9zlSnT14G9aqVvevOy3ccqpv+n5zmV9S7W+flrsblu2v7rUBdBetMzPoy/njg5X2hmpbzxnxwQxjP2Fgc9AgeRWvwgyStEhd+lFVkXfydLVXYUdJaV8dGDJzGSL8Kz26QPf3gjBO34+FQHf/5UC7GCdKb2v0RCinXurMs3S2+ZdWnu3LHqFunN7iHn1IS8k3ulh7zbQiFUHZLuxaHBeYO07ns6eMWE0OVDVH1cR1/yyh9nhGDa+P67odAsu98/kca3hx0Qd9X/hVApVyQKJtpDsf6RFkd4S3vPRx7/g16ElAjtB4TAeWdV1Y/eXHXHSLe/xtk0/IxeiBAPIUFNS36eVseYDJWN+vNkOD8sfPzN5jxV21C7l1b5Fw+bu00269A8Y0PNQGGTvhKkSQjp2fv0RDVC9/YjpEKo/3GC8fVyXzHM4ATRLBh5Oe2rtQOSn9ikFzKxNHY2belhGfNIvC6g65Fp9IVPFjZ9E8pT0oEKdQNdW+lqL6gW/zYEE8e/b68yWdsN6l4zOGtH+kwvfjhkM2+CYb9ij2dRwhWSSpbaBFJhX/lCgX0wbNxJ3MYbahqyaR3aokYcfMFAnaHdBuxjfWev4LOj+May2rhXe0C+KYyYrb0oVnrScov3Rokf3n6O1TTd8Z0lZnJao8Mqk2lUZYvY6+2j0bvoBrXJ4I8W0ZXdJebA29/9/Am/T+Ys0qkZn6xc6ZVpGNrc0RK9UtuQzF1vzS5QvNXHhYDTlvIzTG3+31Flqm83qHrNrGG03/jih4M208ZRX8Fuz+IJd7gdIqeJYVFWk1DdDoWGGoEt0ftz0XHIJx76PSPx9HHPsN8/Vo2nx91D+pQ6TTia3qkO0jSqOtOjODQE35KMZ2ETreUUdeQQBR+A2WP9BbJGHKqmFp7qvaxwbP2OQO/EXQKXmCdINv4crK2xuBhDWWXIYlW8cfFFisrhUelAUeC4lkVl0Sfya516tfw+8ouCVIqSUlSqgakonnGsUO4bkq6lxiWPBJS02VWjNejzOoqs/YFgyR97q6pB/jrFU7ybricLKdk6RLm8dlUJsr96ir9EdT7jxJPQ2My/g6LeEvxCXEdxXZY/6q23doUbChlhH1tV6pzYbdK9Vaay6UwFb0K/54bb4vOkME1hG+aG5kFo14pjtCdYUVP67EDxXSW7I7mWcJTal7QgVjGWRv1XFgTPJxRPTlH5FCVeVTmknpDNYnk9bSf5jHJj/c46aLqWgl33FbnNLazD0cYai3fgJ77L0ftNZkuobt+Z1VNvnpMXb1epl5e4/YYN5fxUQXHhR2lJ6PwUlFc97LL4fHVMS5gBD9Y0GFOLo3pvsKI2qcTd75y6pi7+Hv5EtGKRtvTHspJNMBUvmZaw/0vE34slPwBr0Tdu35sreuZ5BQeFrmHp4wXX9gjUdPRxrQIS24ThU2HhvXMMZl1rUbWrSqmK/Bb+9ttyMSKVpJCbxq0qdfXZgnKnrNB6Xq4Ml8+cDHIlC9abq831g+Zdzes1AGOluRVvlu7lZhlub5bp/oIsWTOBu5oJXW8mclaK8yQ0psZIKzEdMzATs1CAQhShWEjYHWo0UNsB1CwANRVATQBIvQOhgRoNoEYDHGYC4GMxYPBgljZplw7plKx0Sbf0SC8wMCJt0i4d0ilZ6ZJu6UGvRxis0IZ2dKATWXShGz3CK6jW+cKW/i5oGx8X9TnjgZX9FA8t/fNL/1RMHWuiiIXya+P6Zo5qH2byAXtdgH8SXfeu+dM4HzT/EWsdN50HnQa8a+IG5E/L05h87XunUBQxrpr5QwyVs38PBOjiKSVGI6BZ86Nn6PIXoJR/9UOVPydWA/iBl4E7Ys08Qk7LnptZJA9dmRYa5boEZtb87Vm6/F8oo4wo71edp+yPpisbBPrz/s4ymrk4HT4r19AfSPtdSRgYtF9G1R+RDKiI0vxKNqGx6SqegJC/8z+NXmOsXEN/IGVKgog75qEqTiBDQDaNS+GjcyZdbUgg1/zdYjSzzpvCyjX0B9IcTMLAoH2MKqclAyqiNH+wI2L9kncdEFHqSfv8qbRWtZyUxFud2QADCizcPGXqTjP/53HaCODHnsYOfoi/zzdOu6Zb0Z2jMgqMobtDBYwaHnwIMOZPqM6//+8EhvyNts5Aa69oV6hcXLFvP0ediOv6Bj6AJ+FT+Ag+h3cX/qhy0XmYc+YqgBwEoAQaGCjdNiq5K1YDWAYe0EIeGMEMbEoaZxINCIAGlAVSDirJvJ8quVOIWN/24jG2dWIQmfhn7sTYYimpLSKwUagewAFx3PEJR70/31gRHNio8cB78K4jRuTWjrhUT3fkMHqzI6E4mR1J2am9daQwjezmilssYdSwEfPI0LRoOhVrXsAgu8J+ofnmFHDAAMx2IYnKY9Gw3wMzcPOMyCVMKCz1rCvHXWekGYYOGxXquO+j1l959nLyYr3m6ODBgRP+9vNpog+o2pIyVdx4Aw/raLP0SqCpaR9exqRRBzcXE1bEJlS0Rm1elThs1esmjBpZ5OKufaxSjrvB9iNor0amwf4NHJyR9uXg6+lfo7KBCHXgrPLMplOmVMSoCMPRfRbR8S3O1/m1E4gTgi8zkgSBQAiGhEQIBEIQwCcgEAhd8upbvalFI9aSr3veEw==) format('woff2'); font-display: swap; }
  #screen-drill.dxf { --kp-paper: #EEEEEC; --kp-pencil: #A9A9A6; --kp-ink: #4B3FD6; --kp-num: #2F2B3A; --kp-red: #E0574F; --kp-hl: rgba(255, 214, 92, 0.55); }
  :root[data-mode="dark"] #screen-drill.dxf { --kp-paper: #22252C; --kp-pencil: rgba(236, 238, 241, 0.30); --kp-ink: #C3BEFF; --kp-num: #F1F1F4; --kp-red: #FF8F86; --kp-hl: rgba(255, 255, 255, 0.13); }
  #screen-drill.dxf #dr-age-grid { grid-template-columns: 48px 1fr 96px; gap: 0 !important; margin-top: 8px; padding: 6px 14px 8px; border-radius: 14px; }
  #screen-drill.dxf #dr-age-grid > :is(.dr-lab, .dr-range, .dr-field) { margin: 0 !important; min-height: 58px; }
  #screen-drill.dxf #dr-age-grid { background-color: var(--kp-paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='200' viewBox='0 0 6 200' preserveAspectRatio='none'%3E%3Cpath d='M3 0 C 2.2 40, 3.9 90, 2.8 130 S 3.5 180, 3.1 200' fill='none' stroke='%23A9A9A6' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='200' viewBox='0 0 6 200' preserveAspectRatio='none'%3E%3Cpath d='M3 0 C 2.2 40, 3.9 90, 2.8 130 S 3.5 180, 3.1 200' fill='none' stroke='%23A9A9A6' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); background-size: 6px calc(100% - 14px), 6px calc(100% - 14px); background-position: 59px 7px, calc(100% - 107px) 7px; background-repeat: no-repeat; }
  #screen-drill.dxf #dr-age-grid > :is(.dr-lab, .dr-range, .dr-field) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3.2 C 30 2.1, 55 4.1, 90 3 S 150 2.2, 200 3.4' fill='none' stroke='%23A9A9A6' stroke-width='1.3' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E"); background-size: 100% 6px; background-position: left bottom; background-repeat: no-repeat; }
  #screen-drill.dxf #dr-age-grid > :is([data-lab="전"], #dr-r-T, #dr-f-T) { background-image: none; }
  :root[data-mode="dark"] #screen-drill.dxf #dr-age-grid { background-color: var(--kp-paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='200' viewBox='0 0 6 200' preserveAspectRatio='none'%3E%3Cpath d='M3 0 C 2.2 40, 3.9 90, 2.8 130 S 3.5 180, 3.1 200' fill='none' stroke='rgba%28236,238,241,.28%29' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='200' viewBox='0 0 6 200' preserveAspectRatio='none'%3E%3Cpath d='M3 0 C 2.2 40, 3.9 90, 2.8 130 S 3.5 180, 3.1 200' fill='none' stroke='rgba%28236,238,241,.28%29' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); background-size: 6px calc(100% - 14px), 6px calc(100% - 14px); background-position: 59px 7px, calc(100% - 107px) 7px; background-repeat: no-repeat; }
  :root[data-mode="dark"] #screen-drill.dxf #dr-age-grid > :is(.dr-lab, .dr-range, .dr-field) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='6' viewBox='0 0 200 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3.2 C 30 2.1, 55 4.1, 90 3 S 150 2.2, 200 3.4' fill='none' stroke='rgba%28236,238,241,.28%29' stroke-width='1.3' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E"); background-size: 100% 6px; background-position: left bottom; background-repeat: no-repeat; }
  :root[data-mode="dark"] #screen-drill.dxf #dr-age-grid > :is([data-lab="전"], #dr-r-T, #dr-f-T) { background-image: none; }
  #screen-drill.dxf #dr-age-grid .dr-lab { display: flex; justify-content: center; align-items: center; padding: 0 6px 0 0; border: 0; background-color: transparent; color: var(--kp-ink); font-family: 'KkPencil', var(--font, sans-serif); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
  #screen-drill.dxf #dr-age-grid .dr-range { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; height: 58px; padding: 0; border: solid transparent !important; border-width: 0 14px 0 12px !important; background-origin: border-box !important; background-clip: border-box !important; background-color: transparent; opacity: 1; }
  #screen-drill.dxf #dr-age-grid .dr-range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: var(--kp-pencil); }
  #screen-drill.dxf #dr-age-grid .dr-range::-moz-range-track { height: 2px; border-radius: 2px; background: var(--kp-pencil); }
  #screen-drill.dxf #dr-age-grid .dr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; background: var(--kp-ink); box-shadow: 0 0 0 3px var(--kp-paper); }
  #screen-drill.dxf #dr-age-grid .dr-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--kp-ink); box-shadow: 0 0 0 3px var(--kp-paper); }
  #screen-drill.dxf #dr-age-grid .dr-range:disabled::-webkit-slider-thumb { background: var(--kp-pencil); }
  #screen-drill.dxf #dr-age-grid .dr-range:disabled::-moz-range-thumb { background: var(--kp-pencil); }
  #screen-drill.dxf #dr-age-grid .dr-field { position: relative; display: flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background-color: transparent !important; animation: none !important; }
  #screen-drill.dxf #dr-age-grid .dr-field::before { content: ''; position: absolute; inset: 13px 10px 13px 14px; border-radius: 6px; background: transparent; pointer-events: none; }
  /* 87번: 지금 적을 칸 비추기(uidxf point flash). 이 표는 칸 그림자를 지워 둘레가 어두워지지 않고 머리 줄 · 고정 칸만 회색이 되던 것 → 노랑 칸 둘레로 어둡게 */
  #screen-drill.dxf #dr-age-grid .dr-field.dxf-flash::before { box-shadow: 0 0 0 200vmax rgba(9, 12, 20, 0.45); }   /* 머리 줄 · 고정 칸과 같은 때에 어두워짐 */
  #screen-drill.dxf #dr-age-grid .dr-field.active::before, #screen-drill.dxf #dr-age-grid .dr-field.dxf-now::before { background: var(--kp-hl); }
  #screen-drill.dxf #dr-age-grid .dr-num { position: relative; z-index: 1; width: 100% !important; padding: 0 0 0 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
    color: var(--kp-num) !important; -webkit-text-fill-color: var(--kp-num); opacity: 1 !important; font-family: 'KkPencil', var(--font, sans-serif); font-size: 1.45rem !important; font-weight: 400; text-align: center; animation: none !important; }
  #screen-drill.dxf #dr-age-grid .dr-num::placeholder { color: var(--kp-pencil); -webkit-text-fill-color: var(--kp-pencil); }
  #screen-drill.dxf #dr-age-grid .dr-num:focus, #screen-drill.dxf #dr-age-grid .dr-num:focus-visible { outline: none; }   /* 지금 칸은 형광펜 띠(.active)로 보임 */
  #screen-drill.dxf #dr-age-grid .dr-field[data-len="4"] .dr-num { font-size: 1.2rem !important; }
  #screen-drill.dxf #dr-age-grid .dr-field[data-len="5"] .dr-num, #screen-drill.dxf #dr-age-grid .dr-field[data-len="6"] .dr-num { font-size: 1.02rem !important; }
  #screen-drill.dxf #dr-age-grid .dr-field.ok::after { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: calc(var(--cw, 30px) + 26px); height: 44px; transform: translate(calc(-50% + 2px), -50%) rotate(-5deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M74 9 C 52 1, 14 6, 7 27 C 2 45, 26 57, 55 55 C 83 53, 98 41, 94 24 C 91 12, 76 5, 56 8' fill='none' stroke='%23E0574F' stroke-width='2.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M73 11 C 52 4, 17 9, 10 28 C 6 43, 28 54, 55 52' fill='none' stroke='%23E0574F' stroke-width='1' stroke-linecap='round' opacity='.45' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; pointer-events: none; }
  :root[data-mode="dark"] #screen-drill.dxf #dr-age-grid .dr-field.ok::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='60' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M74 9 C 52 1, 14 6, 7 27 C 2 45, 26 57, 55 55 C 83 53, 98 41, 94 24 C 91 12, 76 5, 56 8' fill='none' stroke='%23FF8F86' stroke-width='2.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M73 11 C 52 4, 17 9, 10 28 C 6 43, 28 54, 55 52' fill='none' stroke='%23FF8F86' stroke-width='1' stroke-linecap='round' opacity='.45' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
  #screen-drill.dxf #dr-age-grid .dr-field.bad::after { content: ''; position: absolute; z-index: 2; left: 50%; bottom: 14px; width: calc(var(--cw, 30px) + 8px); height: 6px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3 Q 6 0, 11 3 T 21 3 T 31 3 T 39 3' fill='none' stroke='%23E0574F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; pointer-events: none; }
  :root[data-mode="dark"] #screen-drill.dxf #dr-age-grid .dr-field.bad::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6' viewBox='0 0 40 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3 Q 6 0, 11 3 T 21 3 T 31 3 T 39 3' fill='none' stroke='%23FF8F86' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
  #screen-drill.dxf #dr-age-grid > .dxf-lab-line { margin: 4px 0 6px; }   /* 이름을 누르면 칸 아래 한 줄(연령) */
  /* 71번 3항(사용자 '이런 건 여유 좀 남잖아'): 문제 · 까망 말풍선 · 색연필 칸 사이를 더 띄운다 */
  #screen-drill.dxf .dr-card:has(#dr-age-grid) > .ks-pin { margin-bottom: 18px; }
  #screen-drill.dxf .dr-card:has(#dr-age-grid) .dxf-dock { margin-top: 20px !important; margin-bottom: 20px !important; }
  #screen-drill.dxf #dr-age-grid { margin-top: 18px; }
  /* 92번: 비추는 동안 칸 안은 칠하지 않고(노랑 칸 빛깔을 걷음) 테두리 밖으로만 노랑 빛, 둘레 어둠은 uidxf.css --dxf-dim */
  #screen-drill.dxf #dr-age-grid .dr-field.dxf-flash::before { background: transparent; box-shadow: var(--dxf-glow), 0 0 0 200vmax var(--dxf-dim); }



  /* ===== 작업 J · 15·16·18번(D-194·D-195·D-197·D-199): 까망이 한 부품 (kkamang.css, 그림은 kkamang.js) ===== */
  /* 색 판: 밝게(기본)와 어둡게 두 벌. 앱이 어둡게이면 어둡게 판, data-kkm-mode로 한쪽에 고정할 수도 있다(비교 그림 등).
     테두리 선(l1~l3, 파랑·보라·청록 윤기)과 눈·눈썹·땀은 두 판이 같고, 몸·부리·발·그림자·뒤 빛·붉은 기운이 다르다 */
  /* 31번(D-284): 몸 · 둘레 · 머리털 · 날개 · 부리 · 콧구멍 · 눈 · 눈썹은 작업 E 97번(#88 아이콘) 색. 어둡게 판은 같은 아이콘의 밝은 몸 칠(ink · mist)과 밝은 발 */
  .kkm, .kkm-vars, .kkm[data-kkm-mode="light"] { --kkm-l1: #345CDB; --kkm-l2: #6942DB; --kkm-l3: #199B8D; --kkm-t1: #3D6BFF; --kkm-t2: #7A4DFF; --kkm-t3: #1DB4A4;
    --kkm-b1: #4A3D9C; --kkm-b2: #2E2E7A; --kkm-b3: #1F2561; --kkm-mist: #8C7FE0; --kkm-mist-a: .26; --kkm-w1: #4A3D9C; --kkm-w2: #2A2A72;
    --kkm-beak: #1E1F3F; --kkm-nostril: #5E5A9A; --kkm-seam: #E9E6FF; --kkm-foot: #2E2A55; --kkm-dot: #F3F1FF; --kkm-brow: #E9E6FF; --kkm-soft: rgb(200, 192, 255); --kkm-anger: #7C6CF0;
    --kkm-redc: 239, 68, 68; --kkm-plate: rgba(101, 78, 219, .16); --kkm-shadow: rgba(30, 24, 70, .26);
    --kkm-plume: #8B7BF0; --kkm-steam: rgba(120, 112, 150, .5); --kkm-cloud: rgba(62, 54, 124, .96); --kkm-rain1: #8FD8FF; --kkm-rain2: #3D7BF0; --kkm-ease: cubic-bezier(.33, .9, .3, 1); }
  :root[data-mode="dark"] .kkm:not([data-kkm-mode="light"]), :root[data-mode="dark"] .kkm-vars, .kkm[data-kkm-mode="dark"] { --kkm-b1: #5C4DB1; --kkm-b2: #3B3A8E; --kkm-b3: #2B3275; --kkm-mist-a: .38;
    --kkm-w1: #574AAE; --kkm-w2: #35347F; --kkm-foot: #9C90E6; --kkm-anger: #9D90FF;
    --kkm-redc: 255, 96, 96; --kkm-plate: rgba(150, 132, 255, .2); --kkm-shadow: rgba(0, 0, 0, .6); --kkm-plume: #B4A8FF; --kkm-steam: rgba(220, 214, 255, .45); --kkm-cloud: rgba(186, 178, 250, .86); --kkm-rain1: #B6E6FF; --kkm-rain2: #6FA6FF; }
  .kkm { position: relative; display: inline-block; flex: none; width: 48px; height: 48px; line-height: 0; vertical-align: middle; }
  .kkm-plate { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, var(--kkm-plate) 0%, var(--kkm-plate) 55%, transparent 100%); pointer-events: none; }
  .kkm-layer { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .kkm-svg { pointer-events: auto; }
  /* 움직이는 층: 숨쉬기(.kkm-move) 안에 깡충·떨기(.kkm-act). HTML 층이라 transform이 합성 단계에서 돌아 그림을 다시 그리지 않는다 */
  .kkm-move, .kkm-tilt, .kkm-act { position: absolute; inset: 0; display: block; will-change: transform; transform-origin: 44.2% 98.5%; }
  /* 표정마다 몸 기울기(발을 축으로). 살짝 지나쳤다 돌아오는 탄력 */
  /* 바라보는 쪽(26번): 발 가운데(FOOT_X 29.2/66 = 44.24%)를 축으로 뒤집는다. 발·그림자·앉은 자리는 그대로 */
  .kkm-dir { position: absolute; inset: 0; display: block; will-change: transform; transform-origin: 44.24% 98.5%; }
  .kkm[data-dir="left"] .kkm-dir { transform: scaleX(-1); }
  /* (D-352) 성장 단계 자리: 몸 내림 · 눌림(sit)과 자세 기울기(tilt)는 transform과 따로 도는 translate · scale · rotate 속성이라 홱 돌기 · 표정 기울기와 겹치지 않는다 */
  .kkm.kkm-sit .kkm-dir { translate: 0 var(--kkm-sit-y, 0%); scale: var(--kkm-sit-sx, 1) var(--kkm-sit-sy, 1); }
  .kkm.kkm-ptilt .kkm-tilt { rotate: var(--kkm-ptilt, 0deg); }
  /* 홱 돌기 0.22초: 머리가 먼저 새 쪽으로 기울고(발을 축으로 기울임) 몸이 따라 뒤집힌 뒤 살짝 넘쳤다 멈춤 */
  .kkm.kkm-turn-l .kkm-dir { animation: kkmTurnL .22s cubic-bezier(.4, 0, .3, 1) 1; }
  .kkm.kkm-turn-r .kkm-dir { animation: kkmTurnR .22s cubic-bezier(.4, 0, .3, 1) 1; }
  @keyframes kkmTurnL { 0% { transform: none; } 30% { transform: skewX(13deg) scaleX(.62); } 56% { transform: skewX(9deg) scaleX(-.5); } 82% { transform: skewX(-2.5deg) scaleX(-1.04); } 100% { transform: scaleX(-1); } }
  @keyframes kkmTurnR { 0% { transform: scaleX(-1); } 30% { transform: skewX(-13deg) scaleX(-.62); } 56% { transform: skewX(-9deg) scaleX(.5); } 82% { transform: skewX(2.5deg) scaleX(1.04); } 100% { transform: none; } }
  /* 'ㄲ' 깃(detail 'gg')은 거꾸로 읽히지 않게 한 가닥씩 제자리에서 되뒤집는다(몸이 반쯤 돌았을 때 바뀜). 기본 두 가닥은 뒤집어도 V로 같게 읽혀 그대로 둔다 */
  .kkm-tf-a, .kkm-tf-b { transform-origin: 21.4px 18.6px; }   /* 'ㄲ' 깃 되뒤집기 축 = 갈래점(한 뿌리라 양쪽이 같은 자리에서 갈라짐) */
  .kkm.kkm-gg[data-dir="left"] .kkm-tf { transform: scaleX(-1); }
  .kkm.kkm-gg.kkm-turn-l .kkm-tf { animation: kkmTfL .22s step-end 1; }
  .kkm.kkm-gg.kkm-turn-r .kkm-tf { animation: kkmTfR .22s step-end 1; }
  @keyframes kkmTfL { 0% { transform: none; } 50%, 100% { transform: scaleX(-1); } }
  @keyframes kkmTfR { 0% { transform: scaleX(-1); } 50%, 100% { transform: none; } }
  /* 도는 동안과 깃이 잦아들 때까지는 숨쉬기·효과를 쉰다(한 번에 하나, D-179). 꼬리 깃도 한 박자 늦게 출렁임 */
  .kkm.kkm-turning .kkm-move { animation-play-state: paused; }
  .kkm.kkm-turning .kkm-fx { visibility: hidden; }
  .kkm.kkm-wob .kkm-tail { animation: kkmTailWob .8s cubic-bezier(.37, 0, .63, 1) .1s 1; }
  @keyframes kkmTailWob { 0% { transform: none; } 14% { transform: rotate(9deg); } 32% { transform: rotate(-5.4deg); } 50% { transform: rotate(3.2deg); } 68% { transform: rotate(-1.8deg); } 84% { transform: rotate(.8deg); } 100% { transform: none; } }
  /* (46번, 사용자 10/20 '머리끄덩이 잡혀서 늘어나는 느낌') 기울기는 작게, 넘치지 않고 부드럽게 들어가고 나온다(전에는 0.5초 · 넘침 1.5배라 머리만 당겨지는 듯했음) */
  .kkm-tilt { transition: transform .62s cubic-bezier(.45, .05, .3, 1) .05s; }
  /* (42번, 사용자) 몸을 기울여도 발바닥 높이는 그대로: 발바닥 줄(transform-origin 98.5%)을 축으로 한 기울임(skewX)이라 발이 땅을 뚫거나 뜨지 않는다. 위아래로 옮기던 값(translateY)은 뺌 */
  .kkm[data-face="joy"] .kkm-tilt { transform: skewX(3deg); }
  .kkm[data-face="glad"] .kkm-tilt { transform: skewX(1.5deg); }
  .kkm[data-face="focus"] .kkm-tilt { transform: skewX(-1.5deg); }
  .kkm[data-face="tense"] .kkm-tilt { transform: skewX(-2deg); }
  .kkm[data-face="panic"] .kkm-tilt { transform: skewX(1.5deg); }
  .kkm[data-face="cry"] .kkm-tilt { transform: skewX(-3deg); }
  .kkm[data-face="angry"] .kkm-tilt { transform: skewX(-2.5deg); }
  /* (46번) 표정이 바뀔 때(신남 · 울상 · 긴장 · 화남) 몸 전체가 살짝 눌렸다 펴진다(.kkm-settle, 0.7초). 발 → 몸 → 얼굴 → 머리털 차례로 조금씩 늦게 따라오고,
     크기는 4% 안, 시작과 끝은 부드럽게. 따로 쓰는 scale 속성이라 다른 움직임(transform: 깡충 · 떨기 · 곁눈질)과 겹치지 않는다 */
  .kkm.kkm-settle .kkm-feet { transform-origin: 29.2px 65px; animation: kkmSettleFoot .6s cubic-bezier(.45, 0, .55, 1) both; }
  .kkm.kkm-settle .kkm-svg { transform-origin: 44.2% 98.5%; animation: kkmSettle .7s cubic-bezier(.45, 0, .55, 1) .04s both; }
  .kkm.kkm-settle .kkm-face { transform-origin: 44.2% 98.5%; animation: kkmSettle .72s cubic-bezier(.45, 0, .55, 1) .09s both; }
  .kkm.kkm-settle .kkm-tuft-svg { transform-origin: 44.2% 98.5%; animation: kkmSettle .74s cubic-bezier(.45, 0, .55, 1) .13s both; }
  @keyframes kkmSettle { 0%, 100% { scale: 1 1; } 24% { scale: 1.03 .965; } 54% { scale: .988 1.018; } 80% { scale: 1.004 .996; } }
  @keyframes kkmSettleFoot { 0%, 100% { scale: 1 1; } 22% { scale: 1.05 .9; } 50% { scale: .99 1.02; } }
  .kkm-svg * { transform-box: view-box; }
  .kkm-beak { fill: var(--kkm-beak); }
  .kkm-nostril { fill: var(--kkm-nostril); }   /* 둥근 콧구멍 점(D-276) */
  .kkm-outline { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
  .kkm-jaw { fill: var(--kkm-beak); stroke-width: 1.2; stroke-linejoin: round; transform-origin: 42.4px 31.4px; transform: rotate(-12deg); opacity: 0; }   /* 다문 부리: 아래 부리는 말할 때만 보인다(31번: 아이콘 부리처럼 아랫선이 깔끔하게) */
  .kkm.kkm-talk .kkm-jaw { opacity: 1; }
  .kkm-foot { fill: none; stroke: var(--kkm-foot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .kkm-tuft path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
  .kkm-tuft-a, .kkm-tuft-b { transform-origin: 21.4px 18.6px; }   /* 표정마다 갈래점을 축으로 갈래만 움직여 한 뿌리가 늘 이어져 있다 */
  .kkm-hl { position: absolute; inset: 0; display: block; will-change: transform; }   /* 뒷머리 깃 층(축은 svg()가 정함) */
  /* 얼굴 층(31번): 눈은 작은 타원 하나, 눈썹은 짧은 선 하나. 꼴은 kkamang.js가 표정마다 이어 그린다 */
  .kkm-face * { transform-box: view-box; }
  .kkm-eye-p { fill: var(--kkm-dot); }
  /* 시선(32번): 눈이 --kkm-lx · --kkm-ly만큼 옮겨 간다(look()). 깜빡임은 그 자리에서 세로로 누름 */
  .kkm-eye { transform-origin: 32.8px 27.6px; transform: translate(var(--kkm-lx, 0px), var(--kkm-ly, 0px)); transition: transform .26s var(--kkm-ease); }
  .kkm-brow { fill: none; stroke: var(--kkm-brow); stroke-width: 1.25; stroke-linecap: round; }
  .kkm.kkm-sm .kkm-brow { stroke-width: 1.7; }
  /* 땀(긴장 하나 · 다급 둘) · 눈물(울상) · 화남 표시(먹보라, 머리 왼쪽 위): 표정에 따라 옅어지고 짙어짐 */
  .kkm-tr { fill: var(--kkm-soft); opacity: 0; transition: opacity .25s ease-out; transform-origin: 50% 0; transform-box: fill-box; }
  .kkm-anger { fill: none; stroke: var(--kkm-anger); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform-origin: 16.4px 22.6px; transform: scale(.6); transition: opacity .2s ease-out, transform .32s cubic-bezier(.34, 1.5, .64, 1); }
  /* 36번(사용자 10/18, 32번 #109의 화남 표시를 앞당김): 화남 표시는 먹보라로 나타나 0.35초 뒤 빨갛게 바뀌고, 머리털도 같은 때 빨간 겹이 짙어진다 */
  .kkm[data-face="angry"] .kkm-anger { opacity: 1; transform: none; stroke: rgb(var(--kkm-redc)); transition: opacity .2s ease-out, transform .32s cubic-bezier(.34, 1.5, .64, 1), stroke .7s ease .35s; }
  .kkm-tuft-red { stroke: rgb(var(--kkm-redc)); opacity: 0; transition: opacity .7s ease .35s; }
  .kkm[data-face="angry"] .kkm-tuft-red { opacity: .92; }
  /* 화남이면 붉은 기운 값이 없어도 정수리가 옅게 붉어진다(32번, 더 특정한 선택자라 아래 숨김 규칙을 이김). 값이 있으면 그 값을 따른다 */
  .kkm[data-face="angry"]:not([data-red-on]) .kkm-red-a { visibility: visible; opacity: .5; transition: opacity .6s var(--kkm-ease); }
  /* 화남 부들부들(32번): 2.8초마다 0.35초 잘게 떤다. 반응(떨기 · 극대노) · 말하기가 오면 그쪽 움직임이 이긴다(뒤에 적힌 규칙) */
  .kkm[data-face="angry"] .kkm-act { animation: kkmTremble 2.8s linear infinite; }
  @keyframes kkmTremble { 0%, 12.5%, 100% { transform: none; } 2% { transform: translateX(-.9%) rotate(-.4deg); } 4.5% { transform: translateX(.9%) rotate(.4deg); } 7% { transform: translateX(-.8%); } 9.5% { transform: translateX(.7%) rotate(.3deg); } 11.5% { transform: translateX(-.3%); } }
  .kkm[data-face="tense"] .kkm-tr1, .kkm[data-face="panic"] .kkm-tr1, .kkm[data-face="panic"] .kkm-tr2, .kkm[data-face="cry"] .kkm-tr3 { opacity: 1; }
  /* 머리와 부리 사이 옅은 경계(26번): 둘레 선과 같은 색, 가늘고 옅게 */
  .kkm-beak-seam { fill: none; stroke: var(--kkm-seam); stroke-width: 1.1; opacity: .7; }
  .kkm.kkm-mini .kkm-beak-seam { display: none; }
  /* 붉은 기운 두 겹(따로 띄운 층, 짙기만 바뀜): 정수리 둘레(값 0~0.45에서 짙어짐) · 넓은 겹(0.3부터 번져 1에서 가장 넓고 짙음). 칠과 둘레 선에 함께 돈다 */
  .kkm-red-a, .kkm-red-b { will-change: opacity; }
  /* 붉은 기운이 없으면 붉은 층은 0.3초 옅어진 뒤 그리지 않는다(표정이 바뀌어도 다시 그리지 않음) */
  .kkm:not([data-red-on]) .kkm-red-a, .kkm:not([data-red-on]) .kkm-red-b { visibility: hidden; transition: opacity .3s var(--kkm-ease), visibility 0s linear .35s; }
  .kkm-red-a { opacity: max(.004, calc(min(1, var(--kkm-red, 0) * 2.2) * .8)); transition: opacity .3s var(--kkm-ease); }
  .kkm-red-b { opacity: max(.004, calc(clamp(0, (var(--kkm-red, 0) - .3) / .7, 1) * .85)); transition: opacity .3s var(--kkm-ease); }
  .kkm-shadow-l { will-change: transform, opacity; transform-origin: 44.2% 98%; }
  /* 바닥 그림자 값(21번): shadow: { size, alpha } → 크기·짙기 배율 */
  .kkm-shadow { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(var(--kkm-shadow-size, 1)); opacity: var(--kkm-shadow-alpha, 1); }
  /* ---- 표정: 눈 꼴·눈썹은 kkamang.js가 이어 그리고, 여기서는 몸 기울기 · 뒷머리 깃 · 아래 부리만 정한다. 깃·부리는 살짝 지나쳤다 돌아온다 ---- */
  .kkm-tuft-a, .kkm-tuft-b, .kkm-jaw { transition: transform .4s cubic-bezier(.34, 1.45, .64, 1); }
  .kkm[data-face="joy"] .kkm-tuft-a { transform: rotate(7deg) scaleY(1.08); }
  .kkm[data-face="joy"] .kkm-tuft-b { transform: rotate(9deg) scaleY(1.12); }
  .kkm[data-face="glad"] .kkm-tuft-a { transform: rotate(3deg) scaleY(1.04); }
  .kkm[data-face="glad"] .kkm-tuft-b { transform: rotate(4deg) scaleY(1.05); }
  .kkm[data-face="tense"] .kkm-tuft-a { transform: rotate(-7deg); }
  .kkm[data-face="tense"] .kkm-tuft-b { transform: rotate(-5deg); }
  .kkm[data-face="panic"] .kkm-tuft-a { transform: rotate(9deg) scaleY(1.18); }
  .kkm[data-face="panic"] .kkm-tuft-b { transform: rotate(5deg) scaleY(1.22); }
  .kkm[data-face="cry"] .kkm-tuft-a { transform: rotate(-38deg); }
  .kkm[data-face="cry"] .kkm-tuft-b { transform: rotate(-30deg); }
  .kkm[data-face="angry"] .kkm-tuft-a { transform: rotate(11deg) scaleY(1.16); }
  .kkm[data-face="angry"] .kkm-tuft-b { transform: rotate(4deg) scaleY(1.22); }
  /* 땀·눈물이 천천히 흘러내림(보일 때만) */
  .kkm[data-face="tense"] .kkm-tr1, .kkm[data-face="panic"] .kkm-tr1, .kkm[data-face="panic"] .kkm-tr2, .kkm[data-face="cry"] .kkm-tr3 { animation: kkmDrip 1.6s cubic-bezier(.45, 0, .55, 1) infinite; }
  .kkm[data-face="panic"] .kkm-tr2 { animation-delay: .6s; }
  @keyframes kkmDrip { 0%, 100% { transform: none; } 50% { transform: translateY(.9px) scaleY(1.08); } }
  /* ---- 가만히 있을 때: 숨쉬기(발을 축으로 아주 조금, 마리마다 빠르기가 조금 다름) · 뒷머리 깃이 몸보다 살짝 늦게 따라옴 · 가끔 깜빡임 ---- */
  .kkm-move { animation: kkmBreath var(--kkm-breath, 3.4s) cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .kkm-tuft { animation: kkmTuftLag var(--kkm-breath, 3.4s) cubic-bezier(.45, 0, .55, 1) .32s infinite alternate; }
  @keyframes kkmBreath { from { transform: scale(1, 1); } to { transform: scale(.994, 1.02); } }
  @keyframes kkmTuftLag { from { transform: rotate(0deg); } to { transform: rotate(-3deg); } }
  .kkm.kkm-noidle .kkm-move, .kkm.kkm-noidle .kkm-tuft { animation: none; }
  .kkm.kkm-blink .kkm-eye { transform: translate(var(--kkm-lx, 0px), var(--kkm-ly, 0px)) scaleY(.12); transition-duration: .07s; }   /* 깜빡임: 눈을 세로로 눌렀다 폄(반달 눈은 이미 웃으며 감은 눈이라 깜빡이지 않음) */
  .kkm.kkm-blink[data-face="joy"] .kkm-eye { transform: translate(var(--kkm-lx, 0px), var(--kkm-ly, 0px)); }
  /* ---- 반응 ---- */
  /* 신남(깡충 두 번): 몸이 뛰면 발밑 그림자가 작아지고, 뒷머리 깃은 한 박자 늦게 휘청였다 돌아온다 */
  .kkm.kkm-hop .kkm-act { animation: kkmHop .5s linear 2; }
  .kkm.kkm-hop .kkm-shadow-l { animation: kkmShadowHop .5s linear 2; }
  .kkm.kkm-hop .kkm-wing { animation: kkmWingFlap .2s cubic-bezier(.45, 0, .55, 1) .19s 1, kkmWingFlap .2s cubic-bezier(.45, 0, .55, 1) .69s 1; }   /* 꼭대기마다 한 번 퍼덕 */
  .kkm.kkm-hop .kkm-tuft { animation: kkmTuftHop .5s linear .04s 2; }
  /* 한 번에 하나(D-179): 깡충·화내기 동안 숨쉬기는 멈춘다 */
  .kkm.kkm-hop .kkm-move, .kkm.kkm-rage .kkm-move { animation-play-state: paused; }
  /* 웅크림 → 늘어나며 튀어 오름 → 꼭대기 → 눌리며 내려앉음 → 살짝 튐(발을 축으로) */
  /* 깡충(29번): 웅크렸다 늘어나며 뛰고, 꼭대기에서 잠깐 머물며 날개를 퍼덕인 뒤 점점 빨리 떨어져 눌렸다 선다(한 번 0.5초) */
  @keyframes kkmHop {
    0% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    16% { transform: scale(1.08, .88); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
    30% { transform: translateY(-8%) scale(.92, 1.1); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
    48% { transform: translateY(-13%) scale(1, 1); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    56% { transform: translateY(-12.4%) scale(.99, 1.01); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
    76% { transform: scale(.95, 1.06); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
    84% { transform: scale(1.09, .87); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
    94% { transform: scale(.98, 1.02); }
    100% { transform: none; } }
  /* 크게 신남(leap, 29번): 깊게 웅크렸다 높이 뛰어 꼭대기에서 날개를 세 번 퍼덕이며 천천히 내려온 뒤 눌렸다 선다(1.4초) */
  .kkm.kkm-leap .kkm-act { animation: kkmLeap 1.4s linear 1; }
  .kkm.kkm-leap .kkm-shadow-l { animation: kkmShadowLeap 1.4s linear 1; }
  .kkm.kkm-leap .kkm-tuft { animation: kkmTuftLeap 1.4s linear .05s 1; }
  .kkm.kkm-leap .kkm-wing { animation: kkmWingFlap .3s cubic-bezier(.45, 0, .55, 1) .42s 3; }
  .kkm.kkm-leap .kkm-move { animation-play-state: paused; }
  @keyframes kkmLeap {
    0% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    12% { transform: scale(1.12, .84); animation-timing-function: cubic-bezier(.15, .8, .3, 1); }
    30% { transform: translateY(-30%) scale(.94, 1.08); animation-timing-function: cubic-bezier(.3, .3, .5, 1); }
    38% { transform: translateY(-33%) scale(1, 1); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
    78% { transform: translateY(-8%) scale(.99, 1.01); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
    86% { transform: scale(.95, 1.06); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
    92% { transform: scale(1.1, .86); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
    97% { transform: scale(.98, 1.02); }
    100% { transform: none; } }
  @keyframes kkmShadowLeap { 0%, 100% { transform: none; opacity: 1; } 12% { transform: scaleX(1.12); } 38% { transform: scale(.45); opacity: .35; } 78% { transform: scale(.8); opacity: .8; } 86% { transform: none; opacity: 1; } 92% { transform: scaleX(1.12); } }
  /* 날개 퍼덕임: 위로 크게 올렸다 내리기(어깨 축) */
  @keyframes kkmWingFlap { 0%, 100% { transform: none; } 45% { transform: rotate(34deg); } 75% { transform: rotate(-4deg); } }   /* 31번: 날개 끝이 뒤 위로 들림(어깨 축, 시계 방향) */
  /* 머리털이 몸을 따라감(29번): 웅크리면 앞으로, 솟구치면 뒤로 끌리고, 꼭대기에서 떠오르고, 내려앉을 때 앞으로 휘청(그 뒤 용수철 출렁임) */
  @keyframes kkmTuftLeap { 0%, 100% { transform: none; } 12% { transform: rotate(5deg); } 28% { transform: rotate(-16deg); } 42% { transform: rotate(6deg); } 60% { transform: rotate(-3deg); } 78% { transform: rotate(4deg); } 90% { transform: rotate(-10deg); } }
  @keyframes kkmShadowHop { 0%, 100% { transform: none; opacity: 1; } 16% { transform: scaleX(1.08); } 48% { transform: scale(.62); opacity: .48; } 76% { transform: scale(.96); opacity: 1; } 84% { transform: scaleX(1.1); } }
  @keyframes kkmTuftHop { 0%, 100% { transform: none; } 16% { transform: rotate(4deg); } 32% { transform: rotate(-13deg); } 50% { transform: rotate(6deg); } 70% { transform: rotate(2deg); } 86% { transform: rotate(-9deg); } }
  /* 표정이 바뀔 때 뒷머리 깃 출렁임(한 번, 점점 잦아듦) */
  /* 머리털 용수철(27번): 머리가 움직인 뒤 한 박자 늦게(0.06초) 출렁이다 흔들림이 줄며 멈춤(감쇠 진동) */
  .kkm.kkm-wob .kkm-tuft-w { animation: kkmTuftSpring .98s cubic-bezier(.37, 0, .63, 1) .06s 1; }
  /* (34번 20항) 작은 판 머리털 살랑: 옆으로 한 번 기울었다 반대로 조금, 천천히 멈춤(1.3초) */
  .kkm.kkm-sway .kkm-tuft-w { animation: kkmTuftSway 1.3s cubic-bezier(.45, 0, .55, 1) 1; }
  @keyframes kkmTuftSway { 0%, 100% { transform: none; } 28% { transform: rotate(-9deg); } 58% { transform: rotate(5deg); } 82% { transform: rotate(-2deg); } }
  @keyframes kkmTuftSpring { 0% { transform: none; } 10% { transform: rotate(-12deg); } 24% { transform: rotate(7.6deg); } 38% { transform: rotate(-4.7deg); } 52% { transform: rotate(2.9deg); } 66% { transform: rotate(-1.7deg); } 80% { transform: rotate(1deg); } 91% { transform: rotate(-.45deg); } 100% { transform: none; } }
  /* 화남(틀렸을 때): 부르르 떨고(0.07초 × 6) 오른발로 바닥을 두 번 참. 깃은 떨림을 늦게 따라온다 */
  .kkm.kkm-rage .kkm-act { animation: kkmShiver .07s linear 6; }
  .kkm.kkm-rage .kkm-tuft { animation: kkmShiverTuft .07s linear .035s 6; }
  .kkm.kkm-rage .kkm-fr { transform-box: fill-box; transform-origin: 50% 0; animation: kkmStomp .3s cubic-bezier(.5, 0, .7, 1) .08s 2; }
  .kkm.kkm-rage .kkm-shadow-l { animation: kkmShadowThump .3s ease-out .08s 2; }
  @keyframes kkmShiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.7%); } 75% { transform: translateX(1.7%); } }
  @keyframes kkmShiverTuft { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
  @keyframes kkmStomp { 0%, 100% { transform: none; } 45% { transform: translateY(-2.6px) rotate(-14deg); } 70% { transform: translateY(.3px); } }
  @keyframes kkmShadowThump { 0%, 60%, 100% { transform: none; } 72% { transform: scaleX(1.12); } }
  /* 극대노(fury, 23번): 붉어진 채 제자리에서 세 번 뛰며(웅크림·눌림) 내려앉을 때마다 발을 구른다. 숨쉬기는 멈춤 */
  .kkm.kkm-fury .kkm-move { animation-play-state: paused; }
  .kkm.kkm-fury .kkm-act { animation: kkmFury .47s linear 3; }
  .kkm.kkm-fury .kkm-shadow-l { animation: kkmShadowFury .47s linear 3; }
  .kkm.kkm-fury .kkm-fr { transform-box: fill-box; transform-origin: 50% 0; animation: kkmStomp .47s cubic-bezier(.5, 0, .7, 1) .2s 3; }
  .kkm.kkm-fury .kkm-fl { transform-box: fill-box; transform-origin: 50% 0; animation: kkmStomp .47s cubic-bezier(.5, 0, .7, 1) .02s 3; }
  .kkm.kkm-fury .kkm-tuft { animation: kkmTuftHop .47s linear .04s 3; }
  @keyframes kkmFury {
    0% { transform: none; animation-timing-function: cubic-bezier(.3, 0, .5, 1); }
    16% { transform: scale(1.08, .88); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
    38% { transform: translateY(-8%) scale(.94, 1.08) rotate(-2deg); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
    70% { transform: scale(1.1, .86) rotate(1deg); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
    86% { transform: translateX(-1.5%) scale(.98, 1.03); }
    100% { transform: none; } }
  @keyframes kkmShadowFury { 0%, 100% { transform: none; opacity: 1; } 38% { transform: scale(.7); opacity: .55; } 70% { transform: scaleX(1.14); opacity: 1; } }
  /* ---- 은은한 효과(fx, D-179): 신남에 작은 깃털 둘이 한 번 떠오름 · 화남에 작은 김 두 줄기 ---- */
  .kkm-plume { fill: var(--kkm-plume); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
  .kkm-st { fill: none; stroke: var(--kkm-steam); stroke-width: 1.3; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
  .kkm[data-face="joy"] .kkm-plume, .kkm.kkm-burst-plume .kkm-plume { animation: kkmPlume 1.5s var(--kkm-ease) 1 both; }
  .kkm[data-face="joy"] .kkm-p2 { animation-delay: .18s; }
  .kkm[data-face="angry"] .kkm-st { animation: kkmSteam 1.6s ease-out infinite; }
  .kkm.kkm-burst-steam .kkm-st { animation: kkmSteam 1.6s ease-out 1; }
  .kkm.kkm-burst-steam .kkm-st2 { animation-delay: .3s; }
  .kkm[data-face="angry"] .kkm-st2 { animation-delay: .8s; }
  /* (34번 10항) 퍼덕일 때 빠지는 깃털: 날개 꼭대기 박자(깡충 .19 · .69초, 크게 뛰기 .42초~)에 날개 끝에서 떨어져 뒤 아래로 나풀나풀(흔들리며 돌고 옅어짐).
     제자리 층(.kkm-wfl)이라 몸과 함께 뛰지 않고, 시작 높이(--wf-y0)는 그 박자의 몸 높이(깡충 꼭대기 13% · 크게 뛰기 33% · 8%) */
  .kkm-wfl { pointer-events: none; }
  .kkm[data-dir="left"] .kkm-wfl { transform: scaleX(-1); transform-origin: 44.24% 50%; }
  .kkm-wf { fill: var(--kkm-w1); stroke: var(--kkm-l2); stroke-width: .45; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; --wf-y0: 0px; }
  .kkm.kkm-flap.kkm-hop:not(.kkm-sm) .kkm-wf1 { --wf-y0: -8.6px; animation: kkmWf 1.15s cubic-bezier(.3, .4, .5, 1) .24s 1 both; }
  .kkm.kkm-flap.kkm-hop:not(.kkm-sm) .kkm-wf2 { --wf-y0: -8.4px; animation: kkmWf2 1.05s cubic-bezier(.3, .4, .5, 1) .74s 1 both; }
  .kkm.kkm-flap.kkm-leap:not(.kkm-sm) .kkm-wf1 { --wf-y0: -21.8px; animation: kkmWf 1.3s cubic-bezier(.3, .4, .5, 1) .52s 1 both; }
  .kkm.kkm-flap.kkm-leap:not(.kkm-sm) .kkm-wf2 { --wf-y0: -11px; animation: kkmWf2 1.15s cubic-bezier(.3, .4, .5, 1) .95s 1 both; }
  @keyframes kkmWf { 0% { opacity: 0; transform: translate(0, var(--wf-y0)); } 10% { opacity: .95; } 35% { transform: translate(-3.2px, calc(var(--wf-y0) + 3px)) rotate(28deg); } 60% { opacity: .8; transform: translate(-5.4px, calc(var(--wf-y0) + 6.6px)) rotate(-14deg); } 100% { opacity: 0; transform: translate(-10px, calc(var(--wf-y0) + 13px)) rotate(36deg); } }
  @keyframes kkmWf2 { 0% { opacity: 0; transform: translate(0, var(--wf-y0)); } 12% { opacity: .9; } 40% { transform: translate(-2.4px, calc(var(--wf-y0) + 3.4px)) rotate(-22deg); } 70% { opacity: .7; transform: translate(-4.6px, calc(var(--wf-y0) + 7px)) rotate(18deg); } 100% { opacity: 0; transform: translate(-6.8px, calc(var(--wf-y0) + 10px)) rotate(-26deg); } }
  .kkm-lite-1 .kkm .kkm-wf { animation: none !important; }
  @keyframes kkmPlume { 0% { opacity: 0; transform: translate(0, 2px) rotate(0); } 25% { opacity: .85; } 100% { opacity: 0; transform: translate(-2px, -7px) rotate(-24deg); } }
  @keyframes kkmSteam { 0% { opacity: 0; transform: translateY(1px) scale(.7); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px) scale(1.1); } }
  /* ---- 감정 파티클(32번, D-285를 넓힘): 작고 옅게, 먹보라 결 ---- */
  /* 기분 좋음: 음표 둘이 머리 위 오른쪽에서 살랑이며 떠올라 옅어짐(3.2초마다, 둘째는 반 박자 뒤) */
  .kkm-note { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
  .kkm-note ellipse { fill: var(--kkm-plume); }
  .kkm-note path { fill: none; stroke: var(--kkm-plume); stroke-width: .7; stroke-linecap: round; }
  .kkm[data-face="glad"] .kkm-note { animation: kkmNote 3.2s ease-out infinite; }
  .kkm[data-face="glad"] .kkm-n2 { animation-delay: 1.5s; }
  @keyframes kkmNote { 0% { opacity: 0; transform: translate(0, 1.5px) rotate(-6deg) scale(.85); } 12% { opacity: .8; } 40% { transform: translate(.8px, -3.2px) rotate(8deg); } 58% { opacity: 0; transform: translate(-.4px, -6.5px) rotate(-4deg); } 100% { opacity: 0; transform: translate(-.4px, -6.5px); } }
  /* 울상: 머리 위를 살짝 덮는 먹구름(까망 앞, 32번 답 1)이 조금 흔들리고, 그 아래로 빗줄기 셋이 번갈아 떨어짐 */
  .kkm-cloud { opacity: 0; transition: opacity .35s ease-out; transform-box: fill-box; transform-origin: 50% 50%; }
  .kkm-cloud-p { fill: var(--kkm-cloud); }
  .kkm-rain { fill: none; stroke-width: .75; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
  /* (42번) 울상 먹구름은 머리털 왼쪽 아래에서 생겨(작게 → 크게) 머리 뒤쪽 위에 머문다. 조금 더 크고(1.3 → 1.6) 짙게 */
  .kkm[data-face="cry"] .kkm-cloud { opacity: 1; transform-origin: 92% 85%; animation: kkmCloudIn .55s cubic-bezier(.2, .8, .2, 1) both, kkmCloud 2.6s ease-in-out .55s infinite; }
  @keyframes kkmCloudIn { from { opacity: 0; transform: translate(1.2px, 1.6px) scale(.25); } to { opacity: 1; transform: none; } }
  .kkm[data-face="cry"] .kkm-rain { animation: kkmRain 1.3s linear infinite; }
  .kkm[data-face="cry"] .kkm-r2 { animation-delay: .45s; }
  .kkm[data-face="cry"] .kkm-r3 { animation-delay: .9s; }
  @keyframes kkmCloud { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(.4px, -.5px); } }
  @keyframes kkmRain { 0% { opacity: 0; transform: translateY(-.3px); } 20% { opacity: .9; } 80% { opacity: .5; } 100% { opacity: 0; transform: translateY(2.2px); } }
  /* 48px 이하 작은 판: 음표 · 먹구름 · 김은 뺀다(땀 · 눈물 · 화남 표시는 97번 얼굴의 일부라 둠) */
  .kkm.kkm-sm .kkm-note, .kkm.kkm-sm .kkm-cloud, .kkm.kkm-sm .kkm-st { display: none; }
  .kkm.kkm-nofx .kkm-fx { display: none; }
  /* 부품에 든 접은 날개(wing: 'fold'). 날개 무리의 축은 어깨(ANCHOR.shoulder) */
  .kkm-wing { transform-origin: 31.6px 38.4px; }
  .kkm-wing-fold { transform: scale(1.14); transform-origin: 31.6px 38.4px; }   /* 31번(D-284): #88 아이콘의 통통 날개 그대로 1.14배 */
  .kkm-wing-f { stroke-width: 1.6; stroke-linejoin: round; }
  /* ---- 디테일 안(23번 6항, detail 값으로 켬) ---- */
  /* 꼬리(31번, D-284 97번 '나고침' 깃 셋): 몸 뒤 아래, 날개 끝 밑으로. 축은 꼬리 뿌리(ANCHOR.tail) */
  .kkm-tail { transform-origin: 18px 56px; transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
  .kkm-tail-f { stroke-width: 1.6; stroke-linejoin: round; }
  /* 꼬리 움직임(32번): 기분 좋음 · 신남은 살랑살랑, 화남은 곤두섬, 울상 · 긴장은 처짐, 자신만만은 한 번 튕겨 올려 둠(+ = 꼬리 끝이 위로) */
  .kkm[data-face="glad"] .kkm-tail { animation: kkmTailWag 1.6s ease-in-out infinite; }
  .kkm[data-face="joy"] .kkm-tail { animation: kkmTailWag 1s ease-in-out infinite; }
  @keyframes kkmTailWag { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(7deg); } 70% { transform: rotate(-3deg); } }
  .kkm[data-face="angry"] .kkm-tail { transform: rotate(9deg); animation: kkmTailBristle 2.8s linear infinite; }
  @keyframes kkmTailBristle { 0%, 12.5%, 100% { transform: rotate(9deg); } 3% { transform: rotate(11deg); } 6% { transform: rotate(7.5deg); } 9% { transform: rotate(10.5deg); } }
  .kkm[data-face="cry"] .kkm-tail { transform: rotate(-11deg); }
  .kkm[data-face="tense"] .kkm-tail, .kkm[data-face="panic"] .kkm-tail { transform: rotate(-5deg); }
  .kkm[data-face="smug"] .kkm-tail { transform: rotate(6deg); animation: kkmTailFlick .6s cubic-bezier(.3, .7, .4, 1) 1; }
  /* 꼬리 놀이(tailPlay): 두 번 튕김, 그 뒤 look('back')으로 뒤를 돌아봄 */
  .kkm.kkm-tailplay .kkm-tail { animation: kkmTailFlick .45s cubic-bezier(.3, .7, .4, 1) 2; }
  /* 갸웃(32번): 신남으로 바뀔 때 고개(몸)를 한 번 더 기울였다 돌아옴 */
  .kkm.kkm-cute .kkm-tilt { animation: kkmCock .85s cubic-bezier(.45, 0, .55, 1) .1s 1; }
  @keyframes kkmCock { 0% { transform: skewX(3deg); } 40% { transform: skewX(5deg); } 75% { transform: skewX(2.2deg); } 100% { transform: skewX(3deg); } }   /* (46번) 갸웃도 작게(전 11°) */
  /* 날개 끝 푸른 윤기(sheen): 깃 끝 두세 장이 청록. 깡충 뛸 때 한 번 반짝(밝기만) */
  .kkm-sheen-tip { fill: none; stroke: var(--kkm-l3); stroke-width: 1.2; stroke-linecap: round; opacity: .9; }
  .kkm-sheen { transform-box: view-box; }
  .kkm.kkm-hop .kkm-sheen, .kkm.kkm-leap .kkm-sheen { animation: kkmSheen .84s ease-out 1; }
  @keyframes kkmSheen { 0%, 100% { opacity: 1; } 30% { opacity: .55; } 55% { opacity: 1; filter: brightness(1.5); } }
  /* 작은 움직임(flap): 깡충 뛸 때 날개가 살짝 들리고 꼬리가 늦게 튕김(한 번에 하나, 몸 움직임에 딸려 감) */
  .kkm.kkm-flap.kkm-hop .kkm-tail { animation: kkmTailFlick .5s cubic-bezier(.3, .7, .4, 1) .1s 2; }
  .kkm.kkm-flap.kkm-leap .kkm-tail { animation: kkmTailFlick .7s cubic-bezier(.3, .7, .4, 1) .3s 2; }
  .kkm.kkm-flap.kkm-fury .kkm-tail { animation: kkmTailFlick .47s cubic-bezier(.3, .7, .4, 1) .1s 3; }
  @keyframes kkmTailFlick { 0%, 100% { transform: none; } 45% { transform: rotate(12deg); } 75% { transform: rotate(-4deg); } }
  /* 자신만만(smug): 눈썹 한쪽을 올리고 눈꺼풀을 반쯤 내림, 고개를 살짝 젖힘 */
  .kkm[data-face="smug"] .kkm-tilt { transform: skewX(3deg); }
  .kkm[data-face="smug"] .kkm-tuft-a { transform: rotate(5deg) scaleY(1.05); }
  .kkm[data-face="smug"] .kkm-tuft-b { transform: rotate(7deg) scaleY(1.08); }
  /* 곁눈질(glance): 눈동자를 뒤쪽으로 흘기고 위아래 눈꺼풀을 조금 좁힘 */
  .kkm[data-face="glance"] .kkm-tilt { transform: skewX(2.5deg); }   /* (38번) 곁눈질은 고개도 뒤(왼쪽)로 조금 돌림: 몸을 뒤로 살짝 기울이고 얼굴 층을 뒤로 옮김 */
  .kkm-face { transition: transform .5s var(--kkm-ease); }
  .kkm[data-face="glance"] .kkm-face { transform: translateX(-1.6%); }
  /* (38번) 긴장: 앞발을 들었다 놨다(꼼지락), 머무는 동안 */
  .kkm[data-face="tense"]:not(.kkm-rage):not(.kkm-fury) .kkm-fr { transform-box: fill-box; transform-origin: 30% 100%; animation: kkmFootTap 1.5s ease-in-out .4s infinite; }   /* 떨기 · 극대노의 발 구름이 오면 그쪽이 이김 */
  @keyframes kkmFootTap { 0%, 55%, 100% { transform: none; } 20%, 32% { transform: translateY(-1.3px) rotate(-14deg); } }
  .kkm-wing-tip { fill: none; stroke: var(--kkm-brow); stroke-width: 1.15; stroke-linecap: round; opacity: .5; }   /* 날개 안 짧은 두 선(아이콘처럼 조금 진하게) */
  .kkm-wing-sh { fill: none; stroke: var(--kkm-brow); stroke-width: 1.1; stroke-linecap: round; opacity: .45; }   /* 위쪽 긴 굽은 선(wingLine)*/
  /* ---- 작은 아이콘 자리용 머리 판(head: true, 24·32px): 몸·발·효과 없이 머리만, 선을 굵게 ---- */
  .kkm.kkm-mini .kkm-outline { stroke-width: 3.4; }
  .kkm.kkm-mini .kkm-tuft path { stroke-width: 3.4; }
  /* 상자 위에 앉음(seat): 발 바닥선이 윗변에 닿는다 */
  .kkm.kkm-seated { z-index: 1; pointer-events: none; }
  /* 움직임 줄이기: 멈춘 그림. 표정은 바로 바뀐다 */
  /* 말하기(28번): 세 박자 한 마디(크게 · 작게 · 중간) 0.66초를 --kkm-talk-n번. 아래 부리만 열렸다 닫히고, 머리는 발을 축으로 아주 살짝 끄덕임. 다른 작은 움직임은 쉼 */
  .kkm.kkm-talk .kkm-jaw { animation: kkmTalkJaw .66s cubic-bezier(.45, 0, .55, 1) var(--kkm-talk-n, 2); }
  .kkm.kkm-talk .kkm-act { animation: kkmNod .66s cubic-bezier(.45, 0, .55, 1) var(--kkm-talk-n, 2); }
  .kkm.kkm-talk .kkm-move { animation-play-state: paused; }
  .kkm.kkm-talk .kkm-fx { visibility: hidden; }
  @keyframes kkmTalkJaw { 0% { transform: rotate(-14deg); } 14% { transform: rotate(1deg); } 30% { transform: rotate(-12deg); } 44% { transform: rotate(-5deg); } 58% { transform: rotate(-13deg); } 76% { transform: rotate(-2deg); } 100% { transform: rotate(-14deg); } }
  @keyframes kkmNod { 0%, 100% { transform: none; } 20% { transform: rotate(1.2deg) translateY(.4%); } 52% { transform: rotate(-.4deg); } 78% { transform: rotate(.8deg) translateY(.2%); } }
  /* 느린 기기 덜어 내기(28번): 1 날개 끝 반짝임 · 날개·꼬리 작은 움직임 → 2 머리털·꼬리 용수철 · 효과 → 3 숨쉬기 · 머리털 따라오기 */
  .kkm-lite-1 .kkm .kkm-sheen, .kkm-lite-1 .kkm .kkm-wing, .kkm-lite-1 .kkm.kkm-flap .kkm-tail { animation: none !important; }
  .kkm-lite-2 .kkm .kkm-tuft-w, .kkm-lite-2 .kkm .kkm-tail { animation: none !important; }
  .kkm-lite-2 .kkm .kkm-fx { display: none; }
  .kkm-lite-2 .kkm[data-face="angry"] .kkm-act, .kkm-lite-2 .kkm[data-face="angry"] .kkm-tail { animation: none !important; }   /* 2단계부터 부들부들 · 꼬리 떨림도 끔 */
  /* (27번 3항, D-215) 들린 자세 '부둥부둥': 잡은 자리(머리 위, 44.2% 6%)를 축으로 대롱대롱(rotate 속성), 몸 · 얼굴 · 머리털은 아래로 살짝 늘었다 줄고(scale 속성),
     두 발은 번갈아 허우적, 날개 파닥, 꼬리 빠른 살랑. 숨쉬기는 쉰다. 멈춘 모습(움직임 줄이기)은 발이 아래로 늘어지고 날개를 조금 든 채 */
  .kkm.kkm-held .kkm-move { animation-play-state: paused; }
  .kkm.kkm-walking .kkm-move { animation-play-state: paused; }   /* (29번 6항) 걷는 동안 숨쉬기 쉼(움직임은 walk()의 웹 애니메이션) */
  .kkm.kkm-held .kkm-act { transform-origin: 44.2% 6%; animation: kkmHeldSwing .56s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
  .kkm.kkm-held .kkm-svg, .kkm.kkm-held .kkm-face, .kkm.kkm-held .kkm-tuft-svg { transform-origin: 44.2% 6%; animation: kkmHeldStretch .28s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .kkm.kkm-held .kkm-fl, .kkm.kkm-held .kkm-fr { transform-box: fill-box; transform-origin: 50% 0; }
  .kkm.kkm-held .kkm-fl { transform: rotate(14deg); animation: kkmPaddle .3s cubic-bezier(.45, 0, .55, 1) -.15s infinite alternate; }
  .kkm.kkm-held .kkm-fr { transform: rotate(-10deg); animation: kkmPaddle .3s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .kkm.kkm-held .kkm-wing { transform: rotate(12deg); animation: kkmHeldFlap .17s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .kkm.kkm-held .kkm-tail { animation: kkmTailWag .5s ease-in-out infinite; }
  @keyframes kkmHeldSwing { from { rotate: -6deg; } to { rotate: 6deg; } }
  @keyframes kkmHeldStretch { from { scale: .975 1.035; } to { scale: 1 1; } }
  @keyframes kkmPaddle { from { transform: translateY(0) rotate(-16deg); } to { transform: translateY(-1.4px) rotate(18deg); } }
  @keyframes kkmHeldFlap { from { transform: rotate(4deg); } to { transform: rotate(30deg); } }
  .kkm-lite-2 .kkm.kkm-held .kkm-svg, .kkm-lite-2 .kkm.kkm-held .kkm-face, .kkm-lite-2 .kkm.kkm-held .kkm-tuft-svg { animation: none !important; }   /* 느린 기기: 늘었다 줄기는 끔 */
  .kkm-lite-3 .kkm.kkm-held .kkm-fl, .kkm-lite-3 .kkm.kkm-held .kkm-fr { animation: none !important; }   /* 3단계: 흔들기만 */
  .kkm-lite-3 .kkm .kkm-move, .kkm-lite-3 .kkm .kkm-tuft { animation: none !important; }
  .kkm-lite-2 .kkm.kkm-settle .kkm-feet, .kkm-lite-2 .kkm.kkm-settle .kkm-face, .kkm-lite-2 .kkm.kkm-settle .kkm-tuft-svg { animation: none !important; }   /* (46번) 느린 기기는 몸 한 겹만 눌렸다 폄 */
  .kkm-lite-3 .kkm.kkm-settle .kkm-svg { animation: none !important; }
  @media (prefers-reduced-motion: reduce) {
    .kkm * { transition: none !important; animation: none !important; }
    .kkm .kkm-sheen { display: none; }   /* 움직임 줄이기면 움직임 디테일을 끔(28번). 꼬리는 모습이라 둔다 */
  }
  @media (forced-colors: active) { .kkm-head, .kkm-mist { fill: Canvas; } .kkm-eye-p { fill: CanvasText; } .kkm-brow { stroke: CanvasText; } .kkm-outline { stroke: CanvasText; } .kkm-red-a, .kkm-red-b, .kkm-fx, .kkm-shadow-l { display: none; } }

