
/* ===== 작업 X · 19번 3항 첫 판(11/3판): 벼락치기 모드(uicram.css) =====
   1) 작업 W 부품 값(--kw-*, kw-btn · kw-top 등)을 벼락치기 층(#xc · 전환 단추 · 콰광 층 · 노트 코스 띠) 안에만 :where로 둔다.
      W 11/3판 부품(uiw.css)이 들어오면 같은 값이 앱 전체에 생기고, :where라 그쪽 규칙이 이긴다(이 사본은 그대로 두어도 같음)
   2) 벼락치기 화면(시안 1 ~ 12판에서 사용자가 고른 꼴). 흰 글자는 rgb(255, 255, 255)(ui389_html.py가 #fff를 바꾸므로). 움직임 줄이기면 움직임 없음 */
/* --- 1) 작업 W 부품 사본(벼락치기 층 안) --- */
/* 작업 W 시안 값 그대로(work/w-design b0a4786 docs/handover/전달/작업W_도구/w_parts.css). 작업 X 시안 사진에 두 모드를 입히려고 복사함. 고치지 않는다 */
/* ===== 작업 W 공통 부품(시안판, 11/3판에 uiNNN.css로 옮김) =====
   두 모드: html[data-look="soft"](기본, 부드러운 면) · html[data-look="paper"](시험지). 같은 부품에 값만 갈아 끼운다.
   밝게 · 어둡게는 앱 그대로 html[data-mode]. 색은 앱 테마 변수(--brand · --ink · --card …)를 먼저 따르고, 모드에 따라 바뀌는 값만 --kw-*로 둔다.
   까망고사 시험지(.kw-paperzone)는 모드와 상관없이 시험지 값(밝게 흰 종이 · 어둡게 먹지).
   움직임은 prefers-reduced-motion이면 모두 끈다(맨 아래). *//* ---------- 1. 값(기본 = 부드러운 면) ---------- */
:root :where(#xc, #xc-offtg, #xc-fill, #cn-band) {
  --kw-r-btn: 12px; --kw-r-card: 20px; --kw-r-chip: 8px; --kw-r-field: 12px; --kw-r-sheet: 24px;
  /* 단추(3번, 사용자 10/22 '뚱뚱한 버튼이 화면을 꽉 채우는 게 거부감'): 높이를 낮추고 화면 폭을 채우지 않는다. 할 일 하나만 채우는 규칙은 그대로 */
  --kw-h-btn: 46px; --kw-h-btn-sm: 38px; --kw-h-top: 56px; --kw-btn-min: 136px; --kw-btn-px: 22px; --kw-dock-px: 20px;
  --kw-bg: #F2F4F7; --kw-card: #FFFFFF; --kw-fill: #F0F2F5; --kw-fill-2: #E7EAEF; --kw-line: #E9EBEF; --kw-rule: #E9EBEF;
  --kw-ink: #16181D; --kw-ink-2: #3D424B; --kw-muted: #5B616C;
  --kw-pri: var(--kk-btn-bg, #3F58E5); --kw-pri-ink: #FFFFFF; --kw-pri-sh: inset 0 -1px 0 rgba(10, 14, 40, .10), 0 1px 2px rgba(20, 30, 90, .14);
  --kw-sub: var(--kw-fill-2); --kw-sub-ink: var(--kw-ink); --kw-sub-line: transparent;
  --kw-sel: var(--brand-soft, #ECF2FF); --kw-sel-line: var(--brand, #3F58E5); --kw-sel-ink: var(--brand-ink, #3643D2);
  --kw-sh-card: none; --kw-sh-float: 0 6px 20px rgba(20, 24, 40, .12), 0 1px 2px rgba(20, 24, 40, .06); --kw-sh-sheet: 0 -8px 30px rgba(10, 14, 30, .14);
  --kw-scrim: rgba(10, 12, 16, .42);
  --kw-hl: #E0A800; --kw-hl-soft: #FFF6D6;                      /* 지금 적을 칸 노랑 테(D-441 ②) */
  --kw-ok: #1E7A4C; --kw-ok-soft: #E6F4EC; --kw-bad: #B9443B; --kw-bad-soft: #FAEDEB; --kw-warn: #9A4E0F;
  --kw-ease: cubic-bezier(.2, .8, .2, 1); --kw-ease-out: cubic-bezier(.16, 1, .3, 1); --kw-spring: cubic-bezier(.34, 1.56, .64, 1);
  --kw-t-fast: .14s; --kw-t: .26s; --kw-t-slow: .5s;
  --kw-press: scale(.97); --kw-icon-stroke: 2;
}
:root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) {
  --kw-bg: #101215; --kw-card: #1A1C21; --kw-fill: #24272D; --kw-fill-2: #2C3037; --kw-line: #2A2D33; --kw-rule: #2A2D33;
  --kw-ink: #ECEEF1; --kw-ink-2: #C7CCD3; --kw-muted: #9BA2AD;
  --kw-pri: #444FD9; --kw-pri-sh: inset 0 -1px 0 rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .4);
  --kw-sel: #1B2440; --kw-sel-line: #597DF2; --kw-sel-ink: #97ADFD;
  --kw-sh-float: 0 6px 20px rgba(0, 0, 0, .5); --kw-sh-sheet: 0 -8px 30px rgba(0, 0, 0, .5); --kw-scrim: rgba(0, 0, 0, .55);
  --kw-hl: #F5C542; --kw-hl-soft: #33290F;
  --kw-ok: #5BC98E; --kw-ok-soft: #142A1E; --kw-bad: #F2685E; --kw-bad-soft: #35191A; --kw-warn: #F0A050;
}
/* 시험지 모드: 종이 바탕 · 가는 선 · 먹색 단추 · 작은 모서리 · 그림자 없음 */
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band), :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone {
  --kw-r-btn: 8px; --kw-r-card: 10px; --kw-r-chip: 4px; --kw-r-field: 6px; --kw-r-sheet: 0px;
  --kw-h-btn: 44px;
  --kw-bg: #F7F6F3; --kw-card: #FFFFFF; --kw-fill: #F3F1EC; --kw-fill-2: #ECE9E2; --kw-line: #E4E1DA; --kw-rule: #1B1D23;
  --kw-ink: #16181D; --kw-ink-2: #3D424B; --kw-muted: #5E636D;
  --kw-pri: #1B1D23; --kw-pri-ink: #FFFFFF; --kw-pri-sh: none;
  --kw-sub: transparent; --kw-sub-ink: var(--kw-ink); --kw-sub-line: var(--kw-line);
  --kw-sel: #F3F1EC; --kw-sel-line: #1B1D23; --kw-sel-ink: #16181D;
  --kw-sh-float: none; --kw-sh-sheet: none;
  --kw-press: none; --kw-icon-stroke: 1.75;
}
:root[data-look="paper"][data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band), :root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone {
  /* 먹지: 짙은 회색 종이에 밝은 글 */
  --kw-bg: #141518; --kw-card: #1C1D21; --kw-fill: #24252A; --kw-fill-2: #2B2D33; --kw-line: #33353B; --kw-rule: #D9D6CF;
  --kw-ink: #ECEAE4; --kw-ink-2: #CFCCC4; --kw-muted: #A3A099;
  --kw-pri: #ECEAE4; --kw-pri-ink: #141518;
  --kw-sel: #2B2D33; --kw-sel-line: #ECEAE4; --kw-sel-ink: #ECEAE4;
}
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone { --kw-bg: #FFFFFF; }
/* 까망고사 종이는 흰 종이 그대로 */
:root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone { --kw-bg: #1C1D21; }
/* ---------- 2. 아이콘 단추 · 머리 줄 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-ib { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--kw-ink); cursor: pointer;
  transition: background-color var(--kw-t-fast) ease, transform var(--kw-t-fast) ease; -webkit-tap-highlight-color: transparent; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-ib svg { width: 24px; height: 24px; stroke-width: var(--kw-icon-stroke); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-ib:active { background: var(--kw-fill); }
/* 설정 톱니: 열면 살짝 돌고, 닫으면 되돌아 돈다 */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-gear svg { transition: transform var(--kw-t-slow) var(--kw-spring); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-gear[aria-expanded="true"] svg { transform: rotate(72deg); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top { position: relative; z-index: 5; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: var(--kw-h-top); padding: 0 4px; background: var(--kw-bg); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top--wide { grid-template-columns: auto 1fr auto; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-top { background: var(--kw-card); border-bottom: 1px solid var(--kw-line); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top__t { min-width: 0; text-align: center; font-size: 1.0625rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top__t small { display: block; font-size: .7188rem; font-weight: 600; color: var(--kw-muted); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-top__r { display: flex; justify-content: flex-end; }
/* 홈 머리 줄: 가운데 로고, 오른쪽 종 · 톱니를 한 줄에(같은 44px 칸, 같은 기준선) */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-home-top { position: relative; display: flex; align-items: center; justify-content: center; height: 60px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-home-top .kw-top__r { position: absolute; right: 6px; top: 8px; gap: 0; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-home-top { background: var(--kw-card); border-bottom: 1px solid var(--kw-line); }
/* ---------- 3. 단추 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: var(--kw-h-btn); min-width: var(--kw-btn-min); padding: 0 var(--kw-btn-px); border: 1px solid transparent; border-radius: var(--kw-r-btn);
  background: var(--kw-pri); color: var(--kw-pri-ink); box-shadow: var(--kw-pri-sh); font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform var(--kw-t-fast) var(--kw-ease), background-color var(--kw-t) ease, opacity var(--kw-t-fast) ease; -webkit-tap-highlight-color: transparent; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn:active { transform: var(--kw-press); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn:active, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-btn:active { opacity: .84; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn svg { width: 18px; height: 18px; stroke-width: 2.2; flex: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--sub { background: var(--kw-sub); color: var(--kw-sub-ink); border-color: var(--kw-sub-line); box-shadow: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--text { min-width: 0; background: transparent; color: var(--kw-ink-2); border-color: transparent; box-shadow: none; padding: 0 12px; font-weight: 600; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--muted { color: var(--kw-muted); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--sq { width: var(--kw-h-btn); min-width: 0; padding: 0; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--sub { min-width: 0; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--sm { height: var(--kw-h-btn-sm); min-width: 0; padding: 0 14px; font-size: .875rem; border-radius: calc(var(--kw-r-btn) - 2px); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn--block { display: flex; width: 100%; }
/* 판 · 창 안처럼 좁은 곳에서만. 화면 아래 띠에는 쓰지 않는다 *//* 넘김 띠: 이전 · 건너뛰기는 낮게, 다음만 채움(오른쪽 끝, 화면 폭을 채우지 않음) */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-pager { display: flex; align-items: center; gap: 6px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-pager .kw-btn:last-child { margin-left: auto; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-dock--center { justify-content: center; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-dock--center .kw-btn:last-child { margin-left: 0; min-width: 168px; }
/* 아래 붙는 띠: 부드러운 면은 위로 흐려지는 바탕, 시험지는 가는 선 */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 22px var(--kw-dock-px) 18px; background: linear-gradient(to bottom, color-mix(in srgb, var(--kw-bg) 0%, transparent), var(--kw-bg) 42%); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-dock, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-dock { padding: 10px 16px 14px; background: var(--kw-card); border-top: 1px solid var(--kw-line); }
/* ---------- 4. 카드 · 꼬리표 · 고르기 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-card { box-sizing: border-box; background: var(--kw-card); border-radius: var(--kw-r-card); padding: 18px; box-shadow: var(--kw-sh-card); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-card { border: 1px solid var(--kw-line); padding: 16px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-label { font-size: .8125rem; font-weight: 700; color: var(--kw-muted); margin: 0 0 8px 4px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-label { margin-left: 0; font-size: .75rem; letter-spacing: .02em; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--kw-r-chip); background: var(--kw-fill); color: var(--kw-ink-2); font-size: .75rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tag--b { background: var(--kw-sel); color: var(--kw-sel-ink); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tag { height: 20px; padding: 0 6px; background: transparent; border: 1px solid var(--kw-line); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tag--b { border-color: var(--brand-line, #C6D4FD); color: var(--brand-ink, #3643D2); }
/* 고르기 띠(모드 · 기간 등): 고른 칸 표시가 미끄러진다 */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg { position: relative; display: flex; padding: 3px; border-radius: calc(var(--kw-r-btn) - 2px); background: var(--kw-fill); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg button { position: relative; z-index: 1; flex: 1; height: 38px; border: 0; background: none; font: inherit; font-size: .875rem; font-weight: 700; color: var(--kw-muted); cursor: pointer; transition: color var(--kw-t) ease; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg button[aria-pressed="true"] { color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg__i { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: calc(var(--kw-r-btn) - 4px); background: var(--kw-card); box-shadow: 0 1px 3px rgba(10, 14, 30, .12); transition: transform var(--kw-t) var(--kw-ease-out); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg { background: transparent; border: 1px solid var(--kw-line); padding: 2px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg__i { box-shadow: none; background: var(--kw-pri); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg button[aria-pressed="true"] { color: var(--kw-pri-ink); }
/* 글자 크기: 다섯 칸 미끄럼(작은 가 ─●─ 큰 가) */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size { display: flex; align-items: center; gap: 12px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size .a1 { font-size: .8125rem; font-weight: 700; color: var(--kw-muted); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size .a2 { font-size: 1.1875rem; font-weight: 700; color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__track { position: relative; flex: 1; height: 28px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__track::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; border-radius: 1px; background: var(--kw-fill-2); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__track i { position: absolute; top: 10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--kw-fill-2); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__thumb { position: absolute; top: 1px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--kw-card); box-shadow: 0 1px 2px rgba(10, 14, 30, .2), 0 3px 10px rgba(10, 14, 30, .14); transition: left var(--kw-t) var(--kw-ease-out); }
:root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__thumb { background: #ECEEF1; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__track::before { height: 1px; top: 14px; background: var(--kw-rule); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__track i { width: 1px; height: 9px; top: 10px; margin-left: 0; border-radius: 0; background: var(--kw-rule); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__thumb { width: 16px; height: 16px; top: 6px; margin-left: -8px; background: var(--kw-pri); box-shadow: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__v { min-width: 44px; text-align: right; font-size: .875rem; font-weight: 700; color: var(--kw-ink-2); font-variant-numeric: tabular-nums; }
/* 단계 막대(숫자 없음, D-465 ⑥) */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-steps { display: flex; gap: 4px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--kw-fill-2); transition: background-color var(--kw-t) ease; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-steps i.on { background: var(--kw-sel-line); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-steps i { height: 2px; border-radius: 0; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-steps i.on { background: var(--kw-rule); }
/* 남은 시간: 숫자만(가). 빨강은 끝 1분(기본, 까망고사도 1분 · 작업 J 54번 3항 ⑦). 화면이 data-low-sec로 바꿀 수 있고 JS가 .is-low를 붙인다(11/3판 uiw.js) */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-timer { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; font-size: 1rem; font-weight: 700; color: var(--kw-ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-timer svg { width: 16px; height: 16px; color: var(--kw-muted); stroke-width: 2; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-timer.is-low, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-timer.is-low svg { color: var(--kw-bad); }
/* ---------- 5. 아래 판 · 메뉴 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-scrim { position: absolute; inset: 0; z-index: 20; background: var(--kw-scrim); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; padding: 8px 8px 16px; background: var(--kw-card); border-radius: var(--kw-r-sheet) var(--kw-r-sheet) 0 0; box-shadow: var(--kw-sh-sheet); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheet__grab { width: 40px; height: 4px; margin: 2px auto 8px; border-radius: 2px; background: var(--kw-fill-2); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheet, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-sheet { border-top: 2px solid var(--kw-rule); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheet__grab, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-sheet__grab { display: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheet__h { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; font-size: 1.0625rem; font-weight: 800; color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu { list-style: none; margin: 0; padding: 0; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 12px; font-size: .9688rem; font-weight: 600; color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li > svg { width: 20px; height: 20px; color: var(--kw-ink-2); stroke-width: var(--kw-icon-stroke); flex: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li small { margin-left: auto; font-size: .8438rem; font-weight: 500; color: var(--kw-muted); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li.kw-menu__sep { min-height: 0; height: 1px; margin: 6px 12px; padding: 0; background: var(--kw-line); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li.kw-menu__block { display: block; padding-top: 10px; padding-bottom: 12px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-menu > li { border-radius: 0; border-bottom: 1px solid var(--kw-line); }
/* ---------- 6. 선지 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opts { display: flex; flex-direction: column; gap: 8px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: var(--kw-r-field); background: var(--kw-fill); font-size: .9688rem; color: var(--kw-ink); transition: background-color var(--kw-t) ease, box-shadow var(--kw-t) ease; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt__n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--kw-ink-2); font-size: .7812rem; font-weight: 700; color: var(--kw-ink-2); font-variant-numeric: tabular-nums; transition: background-color var(--kw-t) ease, color var(--kw-t) ease, box-shadow var(--kw-t) ease; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt__x { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--kw-muted); opacity: .55; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt__x svg { width: 16px; height: 16px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt.is-sel { background: var(--kw-sel); box-shadow: inset 0 0 0 2px var(--kw-sel-line); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt.is-sel .kw-opt__n { background: var(--kw-pri); box-shadow: none; color: var(--kw-pri-ink); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opts, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-opts { gap: 0; border-top: 1px solid var(--kw-line); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-opt { border-radius: 0; background: transparent; border-bottom: 1px solid var(--kw-line); padding: 0 2px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt.is-sel, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-opt.is-sel { background: transparent; box-shadow: none; font-weight: 700; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt__n, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-opt__n { width: 22px; height: 22px; box-shadow: inset 0 0 0 1.2px var(--kw-ink-2); font-size: .75rem; }
/* ---------- 7. 까망고사 시험지 · OMR 답안지 ---------- */
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheethead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding-bottom: 6px; font-size: .75rem; color: var(--kw-ink-2); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheethead b { font-size: 1.3125rem; font-weight: 800; letter-spacing: .34em; margin-right: -.34em; color: var(--kw-ink); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheethead .r { justify-self: end; border: 1px solid var(--kw-rule); padding: 0 6px; font-weight: 700; font-size: .7188rem; line-height: 18px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-sheetsub { text-align: center; font-size: .75rem; color: var(--kw-muted); padding-bottom: 8px; border-bottom: 3px double var(--kw-rule); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q { margin: 16px 0 14px; font-size: 1.0312rem; font-weight: 600; line-height: 1.62; color: var(--kw-ink); word-break: keep-all; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr { border-top: 1px solid var(--kw-rule); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r { display: grid; grid-template-columns: 28px repeat(5, 30px) 1fr; align-items: center; height: 34px; border-bottom: 1px solid var(--kw-line); font-size: .7812rem; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r > b { font-weight: 800; color: var(--kw-ink-2); font-variant-numeric: tabular-nums; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r > i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--kw-muted); font-style: normal; font-size: .6562rem; color: var(--kw-muted); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r > i.on { background: var(--kw-ink); box-shadow: none; color: var(--kw-card); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r.is-cur { background: var(--kw-hl-soft); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-omr__r > em { justify-self: end; padding-right: 4px; font-style: normal; font-size: .7188rem; font-weight: 700; color: var(--kw-warn); white-space: nowrap; }
/* ---------- 8. 넘김 움직임(문제 넘김) ---------- */
@keyframes kw-out { to { transform: translateX(-28px); opacity: 0; } }
@keyframes kw-in { from { transform: translateX(28px); opacity: 0; } }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-out { animation: kw-out .17s ease-in both; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-in { animation: kw-in .3s var(--kw-ease) both; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-out, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-q-out { animation-duration: .12s; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-in, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-paperzone .kw-q-in { animation-duration: .2s; }
/* ---------- 9. 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-gear svg, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-seg__i, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-size__thumb, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-opt__n, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-ib { transition: none !important; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-gear[aria-expanded="true"] svg { transform: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-btn:active { transform: none; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-out, :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-q-in { animation: none !important; }
}
/* ---------- 10. 해설 까망 말풍선(작업 H 화면 시안, 3번: 테가 보이게 · 꼬리 자연스럽게) ---------- */
:root :where(#xc, #xc-offtg, #xc-fill, #cn-band) { --kw-tip-line: #EBB65A; --kw-tip-soft: #FFF6E3; --kw-tip-ink: #8A4E00; }
:root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) { --kw-tip-line: #8C6A2A; --kw-tip-soft: #2A2214; --kw-tip-ink: #F2C46D; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip { display: flex; gap: 10px; align-items: flex-start; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip__bb { position: relative; flex: 1; min-width: 0; background: var(--kw-card); border: 1.5px solid var(--kw-tip-line); border-radius: 6px 16px 16px 16px; padding: 10px 14px 6px; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip__bb::before { content: ""; position: absolute; left: -7.5px; top: 12px; width: 12px; height: 12px; background: var(--kw-card); border-left: 1.5px solid var(--kw-tip-line); border-bottom: 1.5px solid var(--kw-tip-line); border-bottom-left-radius: 3px; transform: rotate(45deg); }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip--banner .kw-tip__bb { border-radius: 16px; padding-top: 0; overflow: hidden; }
:where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip--banner .kw-tip__bb::before { display: none; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip__bb { border-width: 1px; border-radius: 2px 10px 10px 10px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip__bb::before { border-width: 1px; left: -7px; }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) .kw-tip--banner .kw-tip__bb { border-radius: 10px; }
/* 떠 있는 까망 버튼(작업 J KkBuddy 값, 3번: 혼자 튀지 않게 무채색 · 먹색 선 머리) */
:root :where(#xc, #xc-offtg, #xc-fill, #cn-band) { --kw-kkb-bg: var(--kw-card); --kw-kkb-ink: #2B2E36; --kw-kkb-line: var(--kw-line); --kw-kkb-sh: 0 2px 10px rgba(20, 24, 40, .10), 0 1px 2px rgba(20, 24, 40, .06); }
:root[data-mode="dark"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) { --kw-kkb-ink: #D7DAE0; --kw-kkb-sh: 0 2px 10px rgba(0, 0, 0, .45); }
:root[data-look="paper"] :where(#xc, #xc-offtg, #xc-fill, #cn-band) { --kw-kkb-sh: none; }

/* --- 2) 벼락치기 화면 --- */
/* ===== 작업 X 벼락치기 코스 시안 CSS(첫 판 uicram.css의 바탕) =====
   값은 작업 W 부품(--kw-*)을 먼저 쓰고, 없으면 지금 앱 값(var(--card) 등)으로 받는다. 두 모드는 html[data-look]에 따라 W 값이 바뀌어 저절로 따라온다.
   흰 글자는 rgb(255, 255, 255)(ui389_html.py가 #fff를 바꾸므로). 움직임 줄이기면 움직임 없음(맨 아래) */
#xc, .xc-band, .xc-res, .xc-hcard, .xc-hline { --xc-bg: var(--kw-bg, var(--bg)); --xc-card: var(--kw-card, var(--card)); --xc-fill: var(--kw-fill, var(--bg)); --xc-fill2: var(--kw-fill-2, var(--line));
  --xc-line: var(--kw-line, var(--line)); --xc-ink: var(--kw-ink, var(--ink)); --xc-ink2: var(--kw-ink-2, var(--ink-2)); --xc-mut: var(--kw-muted, var(--muted));
  --xc-pri: var(--kw-pri, var(--brand)); --xc-sel: var(--kw-sel, var(--brand-soft)); --xc-selline: var(--kw-sel-line, var(--brand)); --xc-selink: var(--kw-sel-ink, var(--brand-ink));
  --xc-r: var(--kw-r-card, 20px); --xc-ok: var(--kw-ok, #1E7A4C); --xc-oks: var(--kw-ok-soft, #E6F4EC); --xc-warn: var(--kw-warn, #9A4E0F); --xc-hl: var(--kw-hl, #E0A800); --xc-hls: var(--kw-hl-soft, #FFF6D6); }
#xc { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--xc-maxw, 600px); bottom: 0; z-index: 7000; overflow-y: auto; overscroll-behavior: contain;
  background: var(--xc-bg); color: var(--xc-ink); font-family: inherit; -webkit-font-smoothing: antialiased; }
#xc * { box-sizing: border-box; }
#xc .xc-in { padding: 4px 16px 120px; }
#xc .kw-top { position: sticky; top: 0; }
#xc .kw-top button { color: var(--xc-ink); }

/* 머리 칸: D-day · 진도 막대(숫자 없음) · 오늘 할 칸 */

/* 지금 칸 카드: 까망이가 윗변에 앉고 말풍선은 KkBuddy 결 */

.xc-say { position: absolute; left: 82px; right: 2px; top: -78px; }
/* 말은 까망 버튼 부품(KkBuddy) 말풍선 그대로. 이 자리에서는 동그라미 대신 받은 2D 까망이 그림이 말한다(한 화면에 까망 하나, D-179 ①). 첫 판은 작업 J perch 꼴이 나오면 그리로 */
.xc-say .kb-dock > .kb-btn { display: none; }

/* 단계 줄: 노트 · 암기 · 문제(· 도표). 끝낸 단계는 체크, 지금 단계는 테 */

.xc-go .kw-btn { flex: none; min-width: 168px; }

/* 안 가: 날짜 길(곧은 세로 선 하나) */

/* 안 나: 노트 차례표 */

/* 늦음 알림 줄(줄이기 단계) */

   /* (작업 U 70 · 71번, D 86번 ⑨, 사용자 11/3 04:52) 왼쪽 세로 띠 · 테 없이 옅은 바탕 + 떠오른 그림자 */

/* 코스 시작 */

.xc-dock { position: fixed; left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: var(--xc-maxw, 600px); bottom: 72px; }
.xc-dock .kw-btn { min-width: 220px; }
/* 홈 · 학습 탭 들어가는 곳 */

.xc-hcard .xc-go .kw-btn { min-width: 136px; }

.xc-field { margin: 0 0 14px; }
.xc-field > label { display: block; margin: 0 0 8px 4px; font-size: .8125rem; font-weight: 700; color: var(--xc-mut); }

.xc-startgo .kw-btn { min-width: 220px; }

/* 단계 화면 코스 띠(노트 · 도표 머리 줄 아래에 붙음) */
/* 띠는 그 화면 머리 줄에 붙는다: 노트는 고정 머리(.nv-head) 안 맨 아래, 도표는 머리(.dr-head) 바로 다음 */

.xc-band .kw-btn { flex: none; min-width: 0; height: 36px; padding: 0 12px; font-size: .8438rem; }

/* 결과 화면 코스 카드 */

.xc-res-go .kw-btn { min-width: 0; }
.xc-res-go .kw-btn:last-child { min-width: 150px; }

@media (prefers-reduced-motion: reduce) { #xc *, .xc-band * { transition: none !important; animation: none !important; } }

/* ===== 3번: 벼락치기 소품(번개 구름 · 발에 불). 그림 상자 위에 한 겹, 넘쳐도 보이게 ===== */
:root { --xp-c1: #6B7090; --xp-c2: #3E4259; --xp-cl: #2C2F42; }
:root[data-mode="dark"] { --xp-c1: #9AA0BE; --xp-c2: #646A88; --xp-cl: #3B3F58; }
.xp { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .xp-cloud { animation: xpBob 2.6s ease-in-out infinite; }
  .xp-bolt { animation: xpZap 3.2s steps(1) infinite; }
  .xp-fl { animation: xpFl .46s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
}
@keyframes xpBob { 50% { transform: translateY(-1.2px); } }
@keyframes xpZap { 0%, 78%, 86%, 100% { opacity: 1; } 80%, 84% { opacity: .25; } 82% { opacity: 1; filter: drop-shadow(0 0 2px #FFE45C); } }
@keyframes xpFl { from { transform: scale(.94, .86) skewX(-3deg); } to { transform: scale(1.04, 1.08) skewX(3deg); } }

/* ===== 3번: 벼락치기 모드 · 홈 ===== */
:root { --xz-y: #FFE45C; --xz-c: #7DF9FF; --xz-v: #8B5CFF; --xz-ink: #2A1F6B; }
/* 전환 단추(왼쪽 위): 끔은 선 알약, 켬은 먹보라 알약 + 노란 번개 */
.xc-tg { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 3px; border-radius: 17px; justify-self: start; white-space: nowrap; border: 1px solid var(--kw-line, var(--line)); background: var(--kw-card, var(--card));
  color: var(--kw-ink-2, var(--ink-2)); font: inherit; font-size: .8125rem; font-weight: 800; letter-spacing: -.01em; cursor: pointer; --xc-charge: 0;
  box-shadow: 0 0 calc(var(--xc-charge) * 18px) calc(var(--xc-charge) * 3px) rgba(139, 92, 255, calc(var(--xc-charge) * .7)); transition: background-color .25s, color .25s, border-color .25s; }
.xc-tg-k { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--kw-fill, var(--bg)); color: var(--kw-muted, var(--muted)); transition: background-color .25s, color .25s; }
.xc-tg-k svg { width: 16px; height: 16px; }
.xc-tg.on { border-color: transparent; color: rgb(255, 255, 255); background: linear-gradient(120deg, #3B2BB8, #6A3FF0 55%, #2F7BEA); }
.xc-tg.on .xc-tg-k { background: #1E1650; color: var(--xz-y); box-shadow: 0 0 0 1.5px rgba(255, 228, 92, .55), 0 0 10px rgba(255, 228, 92, .6); }
.xc-tg.on .xc-tg-k svg { fill: var(--xz-y); }
:root[data-look="paper"] .xc-tg { border-radius: 4px; }
:root[data-look="paper"] .xc-tg-k { border-radius: 3px; }
:root[data-look="paper"] .xc-tg.on { background: #16181D; }
:root[data-look="paper"][data-mode="dark"] .xc-tg.on { background: #ECEAE4; color: #141518; }
:root[data-look="paper"][data-mode="dark"] .xc-tg.on .xc-tg-k { background: #141518; }
.xc-zap { position: absolute; left: -14px; top: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.xc-zap polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.xc-zap .z1 { stroke: var(--xz-c); stroke-width: 3.2; opacity: .55; filter: blur(1.6px); }
.xc-zap .z2 { stroke: rgb(255, 255, 255); stroke-width: 1.2; }
:root:not([data-mode="dark"]) .xc-zap .z2 { stroke: #5B3DF5; }
:root:not([data-mode="dark"]) .xc-zap .z1 { stroke: #8B5CFF; opacity: .45; }
#xc-offtg { position: fixed; left: calc(50% - min(300px, 50vw) + 12px); top: 15px; z-index: 7100; }
#xc-flash { position: fixed; inset: 0; z-index: 7500; pointer-events: none; opacity: 0; background: radial-gradient(circle at 18% 4%, rgb(255, 255, 255) 0, rgb(255, 255, 255) 22%, #EDE6FF 55%, #C9B9FF 100%); }
#xc-strike { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 7600; pointer-events: none; opacity: 0; overflow: visible; }
#xc-strike polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#xc-strike .s0 { stroke: #8B5CFF; stroke-width: 18; opacity: .45; filter: blur(6px); }
#xc-strike .s1 { stroke: var(--xz-y); stroke-width: 7; }
#xc-strike .s2 { stroke: rgb(255, 255, 255); stroke-width: 2.6; }

/* 벼락치기 홈 */
#xc.xc-home .xh-in { padding-top: 0; }
.xh-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 4px 0 12px; margin: 0 -16px; background: var(--xc-bg); }
.xh-top .xh-logo { font-size: .9375rem; } .xh-top .xh-logo .kk-hmark { height: 1.7em; width: calc(1.7em * 1.891); }
.xh-ri { display: flex; justify-content: flex-end; }
.xh-ri .kw-ib { color: var(--xc-ink); }
:root[data-look="paper"] .xh-top { background: var(--xc-card); border-bottom: 1px solid var(--xc-line); }
.xh-hero { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px 2px 4px; }
.xh-hl { display: flex; align-items: center; gap: 10px; }
.xh-dd { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--xc-ink); }
.xh-hl small { font-size: .75rem; font-weight: 600; color: var(--xc-mut); margin-top: 6px; align-self: flex-end; }
.xh-stat { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: .7812rem; font-weight: 800; white-space: nowrap; }
.xh-stat.ok, .xh-stat.ahead, .xh-stat.done { background: var(--xc-oks); color: var(--xc-ok); }
.xh-stat.fire { background: #FFEBD9; color: #B4400B; } .xh-stat.fry { background: #FFE0D6; color: #A3260E; } .xh-stat.back { background: var(--xc-sel); color: var(--xc-selink); }
:root[data-mode="dark"] .xh-stat.fire { background: #3A2210; color: #FFB27A; } :root[data-mode="dark"] .xh-stat.fry { background: #3D1A12; color: #FF9C84; }
:root[data-look="paper"] .xh-stat { border-radius: 3px; background: transparent !important; box-shadow: inset 0 0 0 1.2px currentColor; }
.xh-prog { display: flex; align-items: center; gap: 10px; font-size: .7812rem; font-weight: 700; color: var(--xc-mut); }
 .xh-prog .xc-bar i { background: linear-gradient(90deg, #5B3DF5, #2F7BEA); }

.xh-prog small { font-size: .7812rem; color: var(--xc-ink2); font-variant-numeric: tabular-nums; }
/* 까망이와 말: 까망이 왼쪽, 말풍선 꼬리가 부리 쪽을 가리킴(까망이와 글 사이 20px) */
.xh-talk { display: flex; align-items: flex-start; gap: 20px; margin: 14px 0 12px; min-height: 76px; }
.xh-kk { position: relative; flex: none; width: 72px; height: 72px; }
.xh-kk .kkm { width: 72px !important; height: 72px !important; }
.xh-say { flex: 1; min-width: 0; padding-top: 14px; }
.xh-say .kb-dock > .kb-btn { display: none; }
/* 오늘 */
.xh-today { position: relative; background: var(--xc-card); border-radius: var(--xc-r); padding: 14px 14px 14px; }
:root[data-look="paper"] .xh-today { border-top: 2px solid var(--kw-rule, var(--xc-ink)); border-radius: 0; padding: 12px 0 14px; background: transparent; }
.xh-th { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 6px; }
.xh-th b { font-size: 1.0625rem; font-weight: 800; color: var(--xc-ink); }
.xh-th span { font-size: .7812rem; font-weight: 600; color: var(--xc-mut); }
.xh-list { list-style: none; margin: 0; padding: 0; }
.xh-list li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 6px; border-top: 1px solid var(--xc-line); font-size: .8438rem; color: var(--xc-ink); }
.xh-list li:first-child { border-top: 0; }
.xh-list li b { font-weight: 800; }
.xh-list li em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--xc-mut); font-variant-numeric: tabular-nums; }
.xh-ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--xc-fill); color: var(--xc-ink2); }
.xh-list li.done { color: var(--xc-mut); } .xh-list li.done .xh-ic { background: var(--xc-oks); color: var(--xc-ok); }
.xh-list li.done span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--xc-mut) 60%, transparent); }
.xh-list li.now { border-radius: 12px; border-top-color: transparent; background: linear-gradient(100deg, color-mix(in srgb, #6A3FF0 13%, var(--xc-card)), color-mix(in srgb, #2F7BEA 8%, var(--xc-card))); box-shadow: 0 4px 14px -8px rgba(106, 63, 240, .5); }   /* (작업 U 71번) 테 없이 */
.xh-list li.now + li { border-top-color: transparent; }
.xh-list li.now .xh-ic { background: linear-gradient(135deg, #5B3DF5, #2F7BEA); color: rgb(255, 255, 255); }
.xh-list li.now em { color: #5B3DF5; } :root[data-mode="dark"] .xh-list li.now em { color: #B4A2FF; }
.xh-list li.rev .xh-ic { color: #B4400B; } :root[data-mode="dark"] .xh-list li.rev .xh-ic { color: #FFB27A; }
:root[data-look="paper"] .xh-list li.now { border-radius: 0; background: var(--xc-fill); box-shadow: 0 3px 10px -6px rgba(20, 24, 60, .35); }
:root[data-look="paper"] .xh-list li.now .xh-ic { background: var(--xc-ink); color: var(--xc-card); }
:root[data-look="paper"] .xh-ic { border-radius: 3px; }
.xh-go { display: flex; justify-content: flex-end; margin-top: 12px; }
.xh-main { position: relative; overflow: visible; min-width: 200px; background: linear-gradient(120deg, #4B32D8, #6A3FF0 55%, #2F7BEA); }
:root[data-look="paper"] .xh-main { background: var(--kw-pri); }
/* 코스 */
.xh-course { margin-top: 22px; }
.xh-ch { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.xh-ch b { font-size: 1.0625rem; font-weight: 800; color: var(--xc-ink); }
.xh-view { display: flex; padding: 3px; border-radius: 10px; background: var(--xc-fill2); }
.xh-view button { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .7812rem; font-weight: 700; color: var(--xc-mut); }
.xh-view button svg { width: 15px; height: 15px; }
.xh-view button[aria-pressed="true"] { background: var(--xc-card); color: var(--xc-ink); box-shadow: 0 1px 3px rgba(10, 14, 30, .12); }
:root[data-look="paper"] .xh-view { background: transparent; border: 1px solid var(--xc-line); border-radius: 4px; }
:root[data-look="paper"] .xh-view button { border-radius: 2px; } :root[data-look="paper"] .xh-view button[aria-pressed="true"] { background: var(--xc-ink); color: var(--xc-card); box-shadow: none; }
.xh-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.xh-wd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 7px; border-radius: 12px; color: var(--xc-ink); }
.xh-wd small { font-size: .6875rem; font-weight: 600; color: var(--xc-mut); } .xh-wd b { font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.xh-wd span { display: flex; gap: 2px; height: 6px; } .xh-wd span i { width: 5px; height: 5px; border-radius: 50%; background: #6A3FF0; } .xh-wd span i.r { background: #E8761B; }
.xh-wd.past b { color: var(--xc-mut); } .xh-wd.past span i { background: var(--xc-ok); }
.xh-wd.on { background: linear-gradient(160deg, #5B3DF5, #2F7BEA); } .xh-wd.on b, .xh-wd.on small { color: rgb(255, 255, 255); } .xh-wd.on span i { background: var(--xz-y); } .xh-wd.on span i.r { background: rgb(255, 255, 255); }
:root[data-look="paper"] .xh-wd { border-radius: 2px; } :root[data-look="paper"] .xh-wd.on { background: var(--xc-ink); } :root[data-look="paper"] .xh-wd.on b, :root[data-look="paper"] .xh-wd.on small { color: var(--xc-card); }
/* 알약(소단원 · 복습) */
.xh-p { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 30px; padding: 0 9px; border-radius: 9px; background: var(--xc-card); box-shadow: inset 0 0 0 1px var(--xc-line); font-size: .7812rem; font-weight: 600; color: var(--xc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xh-p b { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--xc-ink2); }
.xh-p.rev { background: color-mix(in srgb, #E8761B 9%, var(--xc-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #E8761B 30%, transparent); }
.xh-p.rev b { color: #B4400B; } :root[data-mode="dark"] .xh-p.rev b { color: #FFB27A; }
.xh-p.done { background: transparent; box-shadow: none; color: var(--xc-mut); padding: 0 4px; } .xh-p.done b { color: var(--xc-ok); }
.xh-p.now { box-shadow: 0 3px 10px -5px rgba(106, 63, 240, .5); background: color-mix(in srgb, #6A3FF0 12%, var(--xc-card)); font-weight: 700; }   /* (작업 U 71번) 지금 칸은 테 없이 옅은 바탕 · 그림자 · 굵기 */
.xh-p.fin { box-shadow: inset 0 0 0 1px dashed; border: 1px dashed var(--xc-mut); background: transparent; }
.xh-p .xh-weak { font-style: normal; font-size: .6562rem; font-weight: 800; color: var(--xc-warn); }
.xh-k { font-style: normal; font-size: .6875rem; font-weight: 600; color: var(--xc-mut); }
:root[data-look="paper"] .xh-p { border-radius: 2px; }
.xh-sum { font-size: .75rem; font-weight: 700; color: var(--xc-mut); }
/* 안 ㉮ 가운데 날짜선 */
.xh-cols { display: grid; grid-template-columns: 1fr 52px 1fr; font-size: .7188rem; font-weight: 800; color: var(--xc-mut); margin-bottom: 4px; }
.xh-cols span:first-child { text-align: right; padding-right: 2px; } .xh-cols span:last-child { padding-left: 2px; }
.xh-mid { list-style: none; margin: 0; padding: 0; position: relative; }
.xh-mid::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; border-radius: 1px; background: linear-gradient(var(--xc-ok) 0 9%, color-mix(in srgb, #6A3FF0 55%, transparent) 9% 100%); }
:root[data-look="paper"] .xh-mid::before { width: 1px; background: var(--xc-ink); }
.xh-dr { position: relative; display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 6px 0; }
.xh-dr .xh-l { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.xh-dr .xh-r { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.xh-dn { position: relative; z-index: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; width: 46px; padding: 4px 0; border-radius: 12px; background: var(--xc-bg); }
.xh-dn b { font-size: .8125rem; font-weight: 800; color: var(--xc-ink); font-variant-numeric: tabular-nums; } .xh-dn small { font-size: .6562rem; font-weight: 600; color: var(--xc-mut); }
.xh-dr.on .xh-dn { background: linear-gradient(160deg, #5B3DF5, #2F7BEA); box-shadow: 0 0 0 4px color-mix(in srgb, #6A3FF0 18%, transparent); }
.xh-dr.on .xh-dn b, .xh-dr.on .xh-dn small { color: rgb(255, 255, 255); }
:root[data-look="paper"] .xh-dr.on .xh-dn { background: var(--xc-ink); box-shadow: none; border-radius: 2px; } :root[data-look="paper"] .xh-dr.on .xh-dn b, :root[data-look="paper"] .xh-dr.on .xh-dn small { color: var(--xc-card); }
.xh-dr.past .xh-dn b { color: var(--xc-ok); }
/* 안 ㉯ 왼쪽 날짜 */
.xh-left { list-style: none; margin: 0; padding: 0; position: relative; }
.xh-left::before { content: ""; position: absolute; left: 25px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: color-mix(in srgb, #6A3FF0 40%, transparent); }
:root[data-look="paper"] .xh-left::before { width: 1px; background: var(--xc-ink); }
.xh-dl { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; padding: 6px 0; }
.xh-dl .xh-dn { justify-self: start; }
.xh-dl.on .xh-dn { background: linear-gradient(160deg, #5B3DF5, #2F7BEA); box-shadow: 0 0 0 4px color-mix(in srgb, #6A3FF0 18%, transparent); } .xh-dl.on .xh-dn b, .xh-dl.on .xh-dn small { color: rgb(255, 255, 255); }
:root[data-look="paper"] .xh-dl.on .xh-dn { background: var(--xc-ink); box-shadow: none; border-radius: 2px; } :root[data-look="paper"] .xh-dl.on .xh-dn b, :root[data-look="paper"] .xh-dl.on .xh-dn small { color: var(--xc-card); }
.xh-dl.past .xh-dn b { color: var(--xc-ok); }
.xh-its { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 4px; min-width: 0; }
/* 차례표 */
.xh-unit { margin-bottom: 10px; background: var(--xc-card); border-radius: 16px; padding: 4px 12px 6px; }
:root[data-look="paper"] .xh-unit { background: transparent; border-radius: 0; padding: 0; border-top: 1px solid var(--xc-line); }
.xh-uh { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: .8438rem; font-weight: 700; color: var(--xc-ink2); }
.xh-uh b { color: var(--xc-ink); font-weight: 800; } .xh-uh .xd-lv { margin-left: auto; }
.xh-unit ul { list-style: none; margin: 0; padding: 0; }
.xh-unit li { display: grid; grid-template-columns: 22px 34px 1fr auto; align-items: center; gap: 6px; min-height: 36px; border-top: 1px solid var(--xc-line); font-size: .8125rem; color: var(--xc-ink); }
.xh-unit li em { font-style: normal; font-size: .6875rem; font-weight: 800; color: var(--xc-mut); text-align: center; border-radius: 6px; background: var(--xc-fill); line-height: 18px; font-variant-numeric: tabular-nums; }
.xh-unit li b { font-size: .7812rem; font-weight: 800; color: var(--xc-mut); }
.xh-unit li small { font-size: .7188rem; font-weight: 700; color: var(--xc-mut); }
.xh-unit li.done span { color: var(--xc-mut); } .xh-unit li.done em { background: var(--xc-oks); color: var(--xc-ok); }
.xh-unit li.now { margin: 0 -12px; padding: 0 12px; background: color-mix(in srgb, #6A3FF0 10%, var(--xc-card)); } .xh-unit li.now em { background: #6A3FF0; color: rgb(255, 255, 255); }
:root[data-look="paper"] .xh-unit li.now { margin: 0; padding: 0; background: var(--xc-fill); } :root[data-look="paper"] .xh-unit li.now em { background: var(--xc-ink); color: var(--xc-card); }
.xh-etc { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 16px; padding: 14px 4px; border: 0; border-top: 1px solid var(--xc-line); background: none; font: inherit; font-size: .8438rem; font-weight: 700; color: var(--xc-ink2); }
/* 진단 */
#xc.xc-diag .xd-in { padding-bottom: 170px; }
.xd-lv { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: .7188rem; font-weight: 800; white-space: nowrap; }
.xd-lv.bad { background: #FDE3E0; color: #A3261B; } .xd-lv.warn { background: #FFEBD6; color: #9A4E0F; } .xd-lv.brand { background: var(--xc-sel); color: var(--xc-selink); } .xd-lv.ok { background: var(--xc-oks); color: var(--xc-ok); }
:root[data-mode="dark"] .xd-lv.bad { background: #3D1A17; color: #FF9C90; } :root[data-mode="dark"] .xd-lv.warn { background: #3A2410; color: #FFB27A; }
:root[data-look="paper"] .xd-lv { border-radius: 3px; background: transparent !important; box-shadow: inset 0 0 0 1.2px currentColor; }
.xd-h { margin: 6px 0 6px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--xc-ink); }
.xd-p { margin: 0 0 16px; font-size: .875rem; line-height: 1.5; color: var(--xc-ink2); }

 .xd-facts li + li { border-left: 1px solid var(--xc-line); }
 .xd-facts span { font-size: .7812rem; font-weight: 700; color: var(--xc-mut); }
.xd-alt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 4px; border: 0; background: none; font: inherit; font-size: .8438rem; font-weight: 700; color: var(--xc-selink); }
.xd-top { display: flex; align-items: center; gap: 16px; padding: 10px 2px 16px; }
.xd-top > div { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: max(92px, 5.75rem); height: max(92px, 5.75rem); border-radius: 50%; background: conic-gradient(#5B3DF5 0 var(--p, 0%), var(--xc-fill2) var(--p, 0%) 100%); position: relative; }   /* (작업 U 70번, D 86번 ①) 맞힌 몫만큼 칠함(60% 고정이었음) */
.xd-top > div::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--xc-bg); }
.xd-top > div > * { position: relative; } .xd-top small { font-size: .625rem; font-weight: 700; color: var(--xc-mut); white-space: nowrap; } .xd-top b { font-size: 1.625rem; font-weight: 800; line-height: 1.05; color: var(--xc-ink); } .xd-top span { font-size: .6875rem; font-weight: 700; color: var(--xc-mut); }
:root[data-look="paper"] .xd-top > div { background: conic-gradient(var(--xc-ink) 0 var(--p, 0%), var(--xc-line) var(--p, 0%) 100%); }
.xd-top p { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.5; color: var(--xc-ink); word-break: keep-all; }
.xd-top p .xd-lv { display: inline; height: auto; padding: 0; background: none !important; box-shadow: none !important; font-size: inherit; }
.xd-units { list-style: none; margin: 0 0 18px; padding: 0; }
.xd-units li { display: grid; grid-template-columns: 1fr 96px 44px; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--xc-line); }
.xd-units li:last-child { border-bottom: 1px solid var(--xc-line); }
.xd-un { min-width: 0; font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--xc-ink2); word-break: keep-all; }   /* (작업 U 70번, D 86번 ⑦) 글자를 키워도 단원 이름을 말줄임으로 자르지 않고 줄을 넘김 */ .xd-un b { margin-right: 6px; font-weight: 800; color: var(--xc-ink); }
.xd-bar { position: relative; height: 8px; border-radius: 4px; background: var(--xc-fill2); overflow: hidden; }
.xd-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; }
.xd-bar.bad i { background: #D4483C; } .xd-bar.warn i { background: #E8861B; } .xd-bar.brand i { background: #3F58E5; } .xd-bar.ok i { background: #1E9A5C; }
:root[data-look="paper"] .xd-bar { border-radius: 0; height: 6px; } :root[data-look="paper"] .xd-bar i { border-radius: 0; }
.xd-units .xd-lv { justify-self: end; }
.xd-ord { background: var(--xc-card); border-radius: var(--xc-r); padding: 14px; }
:root[data-look="paper"] .xd-ord { border-radius: 0; background: transparent; border-top: 2px solid var(--kw-rule, var(--xc-ink)); padding: 12px 0; }
.xd-oh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .xd-oh b { font-size: .9375rem; font-weight: 800; color: var(--xc-ink); } .xd-oh small { font-size: .7188rem; font-weight: 600; color: var(--xc-mut); }
.xd-ord ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; counter-reset: o; }
.xd-ord ol li { counter-increment: o; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px; background: var(--xc-fill); font-size: .8125rem; color: var(--xc-ink); }
.xd-ord ol li::before { content: counter(o); font-size: .6562rem; font-weight: 800; color: var(--xc-mut); width: 16px; text-align: center; }
.xd-ord ol li.w { background: color-mix(in srgb, #D4483C 10%, var(--xc-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #D4483C 28%, transparent); }
.xd-ord ol li.more { padding: 0 8px; } .xd-ord ol li.more::before { content: none; }
:root[data-look="paper"] .xd-ord ol li { border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1px var(--xc-line); }
.xd-note { margin: 10px 0 0; font-size: .75rem; color: var(--xc-mut); }
@media (prefers-reduced-motion: reduce) { .xc-zap { display: none; } .xc-tg.on { box-shadow: 0 0 0 2px rgba(255, 228, 92, .5); } }
.xh-p.rev { white-space: normal; line-height: 1.35; padding-top: 5px; padding-bottom: 5px; text-align: left; }

/* 4번: 맛보기 → 결제(첫날 끝 · 둘째 날 잠김 · 결제 유도 창) */
.xh-pay { margin-top: 10px; padding: 12px 12px 10px; border-radius: 14px; background: linear-gradient(110deg, color-mix(in srgb, #6A3FF0 12%, var(--xc-card)), color-mix(in srgb, #2F7BEA 8%, var(--xc-card))); box-shadow: inset 0 0 0 1px color-mix(in srgb, #6A3FF0 28%, transparent); }
.xh-pay > b { font-size: .9062rem; font-weight: 800; color: var(--xc-ink); }
.xh-pay p { margin: 4px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--xc-ink2); } .xh-pay p b { color: var(--xc-ink); }
:root[data-look="paper"] .xh-pay { border-radius: 0; background: transparent; box-shadow: none; border: 1px solid var(--xc-ink); }
.xh-lock .xh-list li em svg { width: 15px; height: 15px; color: var(--xc-mut); }
#xc .xh-scrim { position: fixed; z-index: 30; }
#xc .xh-sheet { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--xc-maxw, 600px); bottom: 0; z-index: 31; padding: 8px 18px 96px; }
.xh-sh { display: flex; align-items: center; gap: 10px; padding: 8px 0 12px; } .xh-sh b { font-size: 1.125rem; font-weight: 800; color: var(--xc-ink); }
 .xh-sh-ic svg { fill: var(--xz-y); }
.xh-sl { list-style: none; margin: 0; padding: 0; } .xh-sl li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; font-size: .875rem; line-height: 1.45; color: var(--xc-ink); } .xh-sl li svg { flex: none; margin-top: 2px; color: var(--xc-ok); }
.xh-price { margin: 8px 0 14px; font-size: .7812rem; color: var(--xc-mut); }
.xh-sgo { display: flex; justify-content: flex-end; gap: 6px; } .xh-sgo .kw-btn:last-child { min-width: 168px; }

/* ===== 5번: 노랑 · 파랑 네온, 누전, 깜빡, 켠 단추 먹남색 ===== */
.xc-tg.on { background: linear-gradient(120deg, #120F2E, #24196A 60%, #1B2E7A); color: rgb(255, 255, 255); box-shadow: 0 0 0 1px rgba(46, 200, 255, .35), 0 0 calc(6px + var(--xc-charge) * 14px) rgba(46, 200, 255, calc(.25 + var(--xc-charge) * .4)); }
.xc-tg.on .xc-tg-k { background: #0B0A1F; color: #FFE94A; box-shadow: 0 0 0 1.5px rgba(255, 233, 74, .7), 0 0 10px rgba(255, 233, 74, .65); }
.xc-tg.on .xc-tg-k svg { fill: #FFE94A; }
:root[data-look="paper"] .xc-tg.on { background: #121318; }
:root[data-look="paper"][data-mode="dark"] .xc-tg.on { background: #0B0C10; color: rgb(255, 255, 255); }
.xc-zap .z1, #xc-sparks .z1 { stroke-width: 4; opacity: .85; filter: blur(2.2px); }
.xc-zap .z2, #xc-sparks .z2 { stroke-width: 1.4; }
.xc-zap polyline:nth-child(4n+1), .xc-zap polyline:nth-child(4n+2) { stroke: #FFD400; } .xc-zap polyline:nth-child(4n+2) { stroke: #FFF6A8; }
.xc-zap polyline:nth-child(4n+3) { stroke: #1EA7FF; } .xc-zap polyline:nth-child(4n+4) { stroke: #C9F4FF; }
:root:not([data-mode="dark"]) .xc-zap polyline:nth-child(4n+2) { stroke: #FFE94A; } :root:not([data-mode="dark"]) .xc-zap polyline:nth-child(4n+4) { stroke: #7FE0FF; }
#xc-sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 7650; pointer-events: none; overflow: visible; }
#xc-sparks polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#xc-sparks .zy .z1 { stroke: #FFD400; } #xc-sparks .zy .z2 { stroke: #FFF6A8; } #xc-sparks .zy .z3 { fill: #FFF6A8; }
#xc-sparks .zb .z1 { stroke: #1EA7FF; } #xc-sparks .zb .z2 { stroke: #D6F7FF; } #xc-sparks .zb .z3 { fill: #D6F7FF; }
#xc-sparks .z3 { filter: drop-shadow(0 0 4px #FFE94A); }
#xc-flick { position: fixed; inset: 0; z-index: 7640; pointer-events: none; opacity: 0; background: rgba(8, 8, 24, .22); }
:root[data-mode="dark"] #xc-flick { background: rgba(200, 220, 255, .08); }
#xc-strike .s0 { stroke: #1EA7FF; } #xc-strike .s1 { stroke: #FFE94A; }
/* 오늘: 왜 이 차례 · 남은 날 */
.xh-why { display: flex; gap: 6px; align-items: flex-start; margin: 0 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--xc-fill); font-size: .7812rem; line-height: 1.45; color: var(--xc-ink2); }
.xh-why svg { flex: none; margin-top: 2px; color: #6A3FF0; } :root[data-mode="dark"] .xh-why svg { color: #B4A2FF; }
:root[data-look="paper"] .xh-why { border-radius: 0; background: var(--xc-fill); }
.xh-eta { margin: 2px 0 0; font-size: .7812rem; color: var(--xc-mut); } .xh-eta b { color: var(--xc-ink); }
/* 왼쪽 날짜 + 체크 */
.xh-legend { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: .7188rem; font-weight: 600; color: var(--xc-mut); }
.xh-dl .xh-its { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
.xh-it { display: grid; grid-template-columns: 20px 1fr; grid-template-areas: "c n" "c s"; column-gap: 8px; row-gap: 4px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--xc-card); box-shadow: inset 0 0 0 1px var(--xc-line); }
.xh-it > .xh-ck { grid-area: c; align-self: start; margin-top: 1px; }
.xh-it .xh-nm { grid-area: n; min-width: 0; font-size: .8125rem; font-weight: 600; color: var(--xc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .xh-it .xh-nm b { margin-right: 5px; font-weight: 800; color: var(--xc-ink2); }
.xh-it .xh-st { grid-area: s; display: flex; flex-wrap: wrap; gap: 4px; }
.xh-it.now { box-shadow: 0 3px 10px -5px rgba(106, 63, 240, .45); background: color-mix(in srgb, #6A3FF0 10%, var(--xc-card)); }
.xh-it.done { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--xc-ok) 30%, transparent); } .xh-it.done .xh-nm { color: var(--xc-mut); }
.xh-it.rev { background: color-mix(in srgb, #E8761B 7%, var(--xc-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #E8761B 28%, transparent); } .xh-it.rev .xh-nm b { color: #B4400B; } :root[data-mode="dark"] .xh-it.rev .xh-nm b { color: #FFB27A; }
.xh-it.fin { display: block; background: transparent; box-shadow: none; border: 1px dashed var(--xc-mut); }
.xh-ck { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--xc-fill2); color: rgb(255, 255, 255); }
.xh-ck.on { background: var(--xc-ok); box-shadow: none; } .xh-ck.r.on { background: #E8761B; }
.xh-s { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--xc-fill); font-style: normal; font-size: .7188rem; font-weight: 700; color: var(--xc-mut); }
.xh-s svg { width: 11px; height: 11px; }
.xh-s.on { background: var(--xc-oks); color: var(--xc-ok); } .xh-s.cur { background: #6A3FF0; color: rgb(255, 255, 255); } .xh-s.w { background: #FFEBD6; color: #9A4E0F; } :root[data-mode="dark"] .xh-s.w { background: #3A2410; color: #FFB27A; }
.xh-s.hand:not(.on) { box-shadow: inset 0 0 0 1px dashed; border: 1px dashed var(--xc-mut); background: transparent; }
:root[data-look="paper"] .xh-it { border-radius: 2px; } :root[data-look="paper"] .xh-s { border-radius: 2px; } :root[data-look="paper"] .xh-s.cur { background: var(--xc-ink); color: var(--xc-card); }
.xh-dl.past .xh-dn b { color: var(--xc-ok); }
.xh-more { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: .75rem; font-weight: 700; color: var(--xc-selink); }
.xh-dl.fold .xh-its { flex-direction: row; align-items: center; padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { #xc-sparks, #xc-strike, #xc-flick { display: none; } }

/* ===== 7번(D-475 ②): 단추는 카드 가운데 알맞은 폭 · 설명 줄은 '?'로 ===== */
.xh-go { justify-content: center; }
.xh-go .xh-main { min-width: 0; width: min(100%, 240px); }
.xh-sgo { justify-content: center; }
.xh-ch b { display: inline-flex; align-items: center; gap: 6px; }
.xh-q { width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center; border: 1.4px solid var(--xc-mut); border-radius: 50%; background: none; font: inherit; font-size: .75rem; font-weight: 800; line-height: 1; color: var(--xc-mut); cursor: pointer; }
.xh-tip { position: absolute; z-index: 8; left: 0; right: 0; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--xc-ink); color: var(--xc-bg); font-size: .7812rem; line-height: 1.5; box-shadow: 0 6px 20px rgba(10, 14, 30, .2); }
.xh-course { position: relative; }

/* ===== 8번: 흰색 → 검정 꽉 채움 · 노랑 파랑 조금 어둡게 · 한 줄 꽉 찬 큰 단추 · 덜 어지러운 날짜 길 ===== */
#xc-fill { position: fixed; inset: 0; z-index: 7600; pointer-events: none; opacity: 0; }
#xc-offtg { z-index: 7700; } #xc-strike { z-index: 7650; } #xc-sparks { z-index: 7620; }
.xc-zap polyline:nth-child(4n+1) { stroke: #C99A00; } .xc-zap polyline:nth-child(4n+2) { stroke: #F2C94C; }
.xc-zap polyline:nth-child(4n+3) { stroke: #135EA8; } .xc-zap polyline:nth-child(4n+4) { stroke: #5FA8E8; }
:root:not([data-mode="dark"]) .xc-zap polyline:nth-child(4n+2) { stroke: #E0B23A; } :root:not([data-mode="dark"]) .xc-zap polyline:nth-child(4n+4) { stroke: #2F86D6; }
#xc-sparks .zy .z1 { stroke: #C99A00; } #xc-sparks .zy .z2 { stroke: #F2C94C; } #xc-sparks .zy .z3 { fill: #F2C94C; }
#xc-sparks .zb .z1 { stroke: #135EA8; } #xc-sparks .zb .z2 { stroke: #5FA8E8; } #xc-sparks .zb .z3 { fill: #5FA8E8; }
#xc-strike .s0 { stroke: #135EA8; } #xc-strike .s1 { stroke: #E0B23A; }
.xc-tg.on .xc-tg-k { color: #F2C94C; box-shadow: 0 0 0 1.5px rgba(224, 178, 58, .7), 0 0 9px rgba(224, 178, 58, .5); } .xc-tg.on .xc-tg-k svg { fill: #F2C94C; }
.xc-tg.on { box-shadow: 0 0 0 1px rgba(47, 134, 214, .4), 0 0 calc(5px + var(--xc-charge) * 12px) rgba(47, 134, 214, calc(.2 + var(--xc-charge) * .35)); }
/* 말풍선 줄: 낱말 안에서 끊지 않고 줄 길이 맞춤 */
.xh-say .kb-body, .xh-say .kb-say { word-break: keep-all; text-wrap: balance; }
/* 큰 단추: 카드 한 줄을 꽉, 높이는 W 값 그대로 */
.xh-go.x4 { display: block; } .xh-go.x4 .xh-main { display: flex; width: 100%; }
/* 오늘(4판) 줄: 단계 글자 */
.xr-list li > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xr-list li > span > b { font-weight: 800; }
.xr-list li small { font-size: .75rem; font-weight: 700; color: var(--xc-mut); font-variant-numeric: tabular-nums; }
.xr-list li.now small { color: #5B3DF5; } :root[data-mode="dark"] .xr-list li.now small { color: #B4A2FF; }
.xr-tag { font-style: normal; margin-right: 6px; font-size: .7188rem; font-weight: 800; color: #B4400B; } :root[data-mode="dark"] .xr-tag { color: #FFB27A; }
.xr-st { display: inline-flex; flex-wrap: wrap; gap: 8px; font-size: .7188rem; font-weight: 600; color: var(--xc-mut); }
.xr-st i { font-style: normal; display: inline-flex; align-items: center; gap: 2px; } .xr-st i.on { color: var(--xc-ok); } .xr-st i.cur { color: #5B3DF5; font-weight: 800; }
:root[data-mode="dark"] .xr-st i.cur { color: #B4A2FF; } :root[data-look="paper"] .xr-st i.cur { color: var(--xc-ink); text-decoration: underline; text-underline-offset: 3px; }
/* 날짜 길(4판): 테두리 없이 날짜마다 한 덩이 */
.xr-road { list-style: none; margin: 0; padding: 0; position: relative; }
.xr-road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1.5px; background: var(--xc-line); }
.xr-day { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 4px 0; }
.xr-date { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0; background: var(--xc-bg); }
.xr-date b { font-size: .8125rem; font-weight: 800; color: var(--xc-ink); font-variant-numeric: tabular-nums; } .xr-date small { font-size: .6562rem; font-weight: 600; color: var(--xc-mut); }
.xr-day.past .xr-date b { color: var(--xc-mut); }
.xr-day.on .xr-date b { color: #5B3DF5; } :root[data-mode="dark"] .xr-day.on .xr-date b { color: #B4A2FF; } :root[data-look="paper"] .xr-day.on .xr-date b { color: var(--xc-ink); text-decoration: underline; }
.xr-box { display: flex; flex-direction: column; padding: 4px 4px 6px; border-radius: 14px; }
.xr-day.on .xr-box { background: var(--xc-card); box-shadow: 0 1px 3px rgba(20, 24, 40, .06); padding: 6px 10px 8px; }
:root[data-look="paper"] .xr-day.on .xr-box { border-radius: 0; background: var(--xc-fill); box-shadow: 0 4px 12px -6px rgba(20, 24, 60, .4); }
.xr-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 30px; font-size: .8125rem; color: var(--xc-ink); }
.xr-row > span { min-width: 0; } .xr-row b { margin-right: 5px; font-weight: 800; color: var(--xc-ink2); font-variant-numeric: tabular-nums; }
.xr-day.past .xr-row, .xr-row.rev { color: var(--xc-ink2); } .xr-day.past .xr-row b { color: var(--xc-mut); }
.xr-row.cur > span:first-of-type { font-weight: 700; } .xr-row .xr-st { flex-basis: 100%; padding-left: 26px; }
.xr-row.sum { color: var(--xc-mut); font-size: .7812rem; font-weight: 600; }
.xr-row.mile { color: var(--xc-ink); font-weight: 800; } .xr-row.mile svg { color: #5B3DF5; } :root[data-mode="dark"] .xr-row.mile svg { color: #B4A2FF; }
.xr-day.mile .xr-date b { color: var(--xc-ink2); }
.xr-ck { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--xc-fill2); color: rgb(255, 255, 255); }
.xr-ck.on { background: var(--xc-ok); box-shadow: none; } .xr-row.rev .xr-ck.on { background: #C8661A; }

@media (prefers-reduced-motion: reduce) { #xc-fill { display: none; } }

.xr-list li.one > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#xc.x4 .xh-talk { gap: 16px; } #xc.x4 .xh-kk { width: 64px; height: 64px; } #xc.x4 .xh-kk .kkm { width: 64px !important; height: 64px !important; }
#xc.x4 .xh-say { padding-top: 10px; }
#xc.x4 .xh-say .kb-body { text-wrap: wrap; }
#xc.x4 .xh-talk { gap: 12px; } #xc.x4 .xh-kk { width: 56px; height: 56px; } #xc.x4 .xh-kk .kkm { width: 56px !important; height: 56px !important; } #xc.x4 .xh-say { padding-top: 6px; }
/* 8번: 흰 · 검정 채움이 아래 메뉴 줄(z 8000)까지 덮게. 전환 단추와 번개는 그 위 */
#xc-fill { z-index: 8100; } #xc-strike { z-index: 8150; } #xc-sparks { z-index: 8120; } #xc-offtg { z-index: 8200; }
/* 8번: 벼락치기 홈일 때 아래 메뉴 줄 까망이 가끔 번쩍(6.4초마다 두 번 깜빡, 1초에 3번 넘지 않음). 움직임 줄이기면 안 함 */
@keyframes xc-navflash { 0%, 9%, 100% { filter: none; } 2% { filter: drop-shadow(0 0 2px #F2C94C) drop-shadow(0 0 7px #F2C94C) brightness(1.3); } 4% { filter: none; } 6% { filter: drop-shadow(0 0 2px #5FA8E8) drop-shadow(0 0 7px #5FA8E8) brightness(1.2); } }
body:has(#xc.xc-home) #bottom-nav-bar .kn-nav-item[data-k="home"] svg { animation: xc-navflash 6.4s linear 1.2s infinite; }
@media (prefers-reduced-motion: reduce) { body:has(#xc.xc-home) #bottom-nav-bar .kn-nav-item[data-k="home"] svg { animation: none; } }
/* 8번: 오늘 몫을 다 하면 큰 단추는 누르지 않는 모양(미리 풀기는 기본으로 끔) */
#xc .xh-main.fin { background: var(--xc-fill2); color: var(--xc-mut); box-shadow: none; pointer-events: none; }
/* ===== 9번(시안 5판) ===== */
/* 홈: 'D-23' 앞, 수능 날 작게, 상태 꼬리표는 같은 줄 끝 */
.xh-hero.x5 { gap: 10px; padding-top: 10px; }
.xh-hero.x5 .xh-hl { align-items: baseline; }
.xh-hero.x5 .xh-stat { margin-left: auto; align-self: center; }
/* 홈에서 코스가 빠진 만큼 오늘 카드에 여유 */
.xh-in.x5 .xh-talk { margin: 10px 0 8px; }
.xh-today.x5 { padding: 16px 14px 18px; }
:root[data-look="paper"] .xh-today.x5 { padding: 14px 0 18px; }
.xh-today.x5 .xh-th { padding-bottom: 10px; }
.xh-today.x5 .xh-why { margin-bottom: 12px; gap: 5px; padding: 8px 6px 8px 8px; letter-spacing: -.02em; }   /* 12px에서는 Pretendard 숫자 뒤가 벌어져 보여 12.5px 그대로 자간만 줄임 */
.xh-today.x5 .xh-list li { min-height: 54px; padding: 8px 6px; }
.xh-today.x5 .xh-list li.one { min-height: 48px; }
.xh-today.x5 .xr-list li > span { gap: 6px; }
.xh-today.x5 .xh-go { margin-top: 20px; }
/* 날짜 길 화면: 모든 소단원 줄에 점검표, 앞으로 할 칸은 흐림 */
.xh-course.x5 { margin-top: 10px; }
.xr-road.x5 .xr-row { min-height: 32px; }
.xr-road.x5 .xr-row .xr-st { padding-bottom: 4px; }
.xr-road.x5 .xr-day:not(.past):not(.on) .xr-st { opacity: .75; }
.xh-etc.x5 { margin-top: 22px; }
/* 콰광 5판: 먹구름 · 번쩍 · 잔상 */
#xc-fill .xf-cloud { position: absolute; inset: 0; background:
  radial-gradient(55% 32% at 18% 22%, #343a52 0%, rgba(52, 58, 82, 0) 72%),
  radial-gradient(50% 30% at 82% 30%, #2d3248 0%, rgba(45, 50, 72, 0) 70%),
  radial-gradient(70% 36% at 50% 58%, #262a3e 0%, rgba(38, 42, 62, 0) 72%),
  radial-gradient(45% 26% at 30% 80%, #30354c 0%, rgba(48, 53, 76, 0) 70%),
  radial-gradient(48% 28% at 78% 84%, #2a2e44 0%, rgba(42, 46, 68, 0) 70%),
  linear-gradient(180deg, #0b0c14 0%, #11131d 55%, #090a10 100%); }
#xc-fill .xf-lit { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(42% 26% at 50% 42%, rgba(248, 250, 255, .98) 0%, rgba(196, 210, 255, .75) 40%, rgba(120, 140, 210, 0) 78%),
  radial-gradient(60% 34% at 22% 24%, rgba(170, 186, 240, .55) 0%, rgba(120, 140, 210, 0) 70%),
  radial-gradient(60% 34% at 80% 64%, rgba(150, 170, 235, .45) 0%, rgba(120, 140, 210, 0) 70%); }
#xc-fill .xf-g { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
#xc-fill .xf-logo svg, #xc-fill .xf-logo img { width: 210px !important; height: auto !important; display: block; }
#xc-fill .xf-logo .kk-hlogo { display: block; width: 210px; }
#xc-fill .xf-face { width: 280px; height: 230px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
#xc-fill .xf-fc { position: absolute; left: -52px; top: -22px; }
#xc-fill .xf-fc svg { width: 330px !important; height: 330px !important; display: block; }
/* 번쩍일 때: 빛 앞에 선 검은 실루엣. 번쩍 뒤: 눈에 남는 밝은 잔상(로고 노랑 · 얼굴 파랑) */
#xc-fill .xf-logo.sil { filter: brightness(0); }
/* 얼굴은 실루엣이면 눈 · 부리가 사라져 알아보기 어려워, 번쩍일 때 제 빛깔에 흰 테두리 빛(뒤에서 비친 빛) */
#xc-fill .xf-face.sil { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 16px rgba(220, 230, 255, .9)); }
#xc-fill .xf-logo.aft { filter: brightness(0) invert(1) drop-shadow(0 0 10px #F2C94C) drop-shadow(0 0 22px #C99A00); }
#xc-fill .xf-face.aft { filter: brightness(1.15) drop-shadow(0 0 8px #5FA8E8) drop-shadow(0 0 20px #135EA8); }
/* ===== 10번(시안 6판) ===== */
/* 점검 칸: 칸마다 같은 폭, 체크 자리를 늘 비워 둠 → 체크가 붙어도 아래 줄과 열이 맞음 */
.xr-st.x6 { gap: 0; flex-wrap: nowrap; }
.xr-st.x6 i { width: 40px; flex: none; gap: 1px; }
.xr-st.x6 i .ck { display: inline-grid; place-items: center; width: 11px; height: 11px; }
/* 날짜 사이 가로선(두 모드 모두). 세로 길 선은 가로선과 겹쳐 어지러워 뺌 */
.xr-road.x6::before { display: none; }
.xr-road.x6 > .xr-day + .xr-day { border-top: 1px solid var(--xc-line); margin-top: 6px; padding-top: 10px; }
:root[data-look="paper"] .xr-road.x6 > .xr-day + .xr-day { border-top-color: color-mix(in srgb, var(--xc-ink) 28%, transparent); }
.xr-road.x6 .xr-date { background: transparent; }
/* 콰광 6판: 가운데 큰 로고 + 아래 상반신 */
#xc-fill .xf-lit.x6 { background:
  radial-gradient(46% 20% at 50% 36%, rgba(248, 250, 255, .98) 0%, rgba(196, 210, 255, .7) 45%, rgba(120, 140, 210, 0) 80%),
  radial-gradient(60% 30% at 50% 88%, rgba(220, 230, 255, .85) 0%, rgba(150, 170, 235, .45) 45%, rgba(120, 140, 210, 0) 80%),
  radial-gradient(60% 34% at 18% 20%, rgba(170, 186, 240, .45) 0%, rgba(120, 140, 210, 0) 70%); }
#xc-fill .xf-logo.x6 { top: 36%; }
#xc-fill .xf-logo.x6 .kk-hlogo, #xc-fill .xf-logo.x6 svg, #xc-fill .xf-logo.x6 img { width: 250px !important; }
#xc-fill .xf-body { left: 50%; top: auto; bottom: -112px; transform: translateX(-50%); width: 440px; height: 440px; }
#xc-fill .xf-bc, #xc-fill .xf-bc > * { width: 440px; height: 440px; }
#xc-fill .xf-bc svg { width: 440px !important; height: 440px !important; display: block; }
#xc-fill .xf-body.sil { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 18px rgba(220, 230, 255, .9)); }
#xc-fill .xf-body.aft { filter: brightness(1.15) drop-shadow(0 0 8px #5FA8E8) drop-shadow(0 0 22px #135EA8); }
/* 켠 동안 빛깔 안 가(포인트만 네온, 10번 ③ 안): html.xc-neon일 때. 바탕 · 글은 그대로, 큰 단추 · 진도 막대 · 지금 줄 · 상태 꼬리표 · 메뉴 밑줄만 노랑 · 파랑 네온 */
html.xc-neon #xc .xh-main:not(.fin) { background: linear-gradient(90deg, #1B1F3A, #232A52); color: rgb(255, 255, 255); box-shadow: inset 0 0 0 1.5px #F2C94C, 0 0 10px rgba(242, 201, 76, .55), 0 0 22px rgba(95, 168, 232, .35); }

html.xc-neon #xc .xh-list li.now { box-shadow: 0 0 12px rgba(95, 168, 232, .4); }
html.xc-neon #xc .xh-list li.now .xh-ic { background: #1B1F3A; color: #F2C94C; }
html.xc-neon #xc .xh-stat { box-shadow: inset 0 0 0 1.2px currentColor, 0 0 8px currentColor; }
html.xc-neon #bottom-nav-bar.xc-nav .kn-nav-item.kk-nav-on .kn-nav-u { background: #F2C94C; box-shadow: 0 0 8px #F2C94C; }
html.xc-neon #xc .xr-day.on .xr-box { box-shadow: 0 0 14px rgba(95, 168, 232, .3); }
/* 계정 첫 시작 물음(10번 3항): 아래 메뉴 위까지 꽉, 두 카드 */
#xc.xc-ask { z-index: 8300; background: var(--xc-bg); display: flex; align-items: center; }
#xc.xc-ask .xa-in { width: 100%; max-width: 440px; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.xa-kk { margin-bottom: 14px; }
.xa-d { margin: 0; font-size: .875rem; font-weight: 600; color: var(--xc-mut); } .xa-d b { color: var(--xc-ink); font-weight: 800; }
.xa-h { margin: 6px 0 22px; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.02em; color: var(--xc-ink); }
.xa-opts { width: 100%; display: grid; gap: 12px; }
.xa-opt { display: grid; grid-template-columns: 40px 1fr 18px; align-items: center; gap: 12px; width: 100%; padding: 16px 14px; border: 0; border-radius: 18px; background: var(--xc-card); box-shadow: inset 0 0 0 1.5px var(--xc-line); text-align: left; font: inherit; color: var(--xc-ink); cursor: pointer; }
.xa-opt .xa-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--xc-fill); color: var(--xc-mut); }
.xa-opt.on { box-shadow: inset 0 0 0 2px #5B3DF5; } :root[data-mode="dark"] .xa-opt.on { box-shadow: inset 0 0 0 2px #9C86FF; }
.xa-opt.on .xa-ic { background: #1B1F3A; color: #F2C94C; }
.xa-tx { display: flex; flex-direction: column; gap: 4px; } .xa-tx b { font-size: 1rem; font-weight: 800; } .xa-tx small { font-size: .7812rem; line-height: 1.45; color: var(--xc-mut); word-break: keep-all; }
.xa-opt > svg { color: var(--xc-mut); }
.xa-f { margin: 18px 0 0; font-size: .7812rem; color: var(--xc-mut); }
:root[data-look="paper"] .xa-opt { border-radius: 4px; background: transparent; box-shadow: inset 0 0 0 1.2px var(--xc-ink); }
:root[data-look="paper"] .xa-opt.on { box-shadow: inset 0 0 0 2.2px var(--xc-ink); }
.xr-day.gap .xr-row.sum span { color: var(--xc-mut); font-size: .7812rem; }
.xr-day.gap .xr-date b { color: var(--xc-mut); }
#xc-fill, #xc-fill * { pointer-events: none !important; }   /* 그림 부품(작업 Y · J)이 안쪽에서 누름을 받지 않게 */
#xc.xc-ask { max-width: none; }   /* 첫 시작 물음은 넓은 화면에서도 꽉(아래 메뉴 가장자리가 비치지 않게) */
/* 11번: 첫 시작 물음 왼쪽 맞춤(D-475 ②) · 카드 화살표 뺌(카드가 단추) */
#xc.xc-ask .xa-in { align-items: stretch; text-align: left; padding: 24px 20px 32px; }
#xc.xc-ask .xa-kk { align-self: flex-start; margin-left: -6px; margin-bottom: 8px; }
#xc.xc-ask .xa-h { margin: 4px 0 20px; }
#xc.xc-ask .xa-opt { grid-template-columns: 40px 1fr; }
#xc.xc-ask .xa-f { text-align: left; }
#xc.xc-ask .xa-h, #xc.xc-ask .xa-d { text-align: left; align-self: stretch; }
/* ===== 12번(시안 7판) ===== */
/* 전환 단추: 켜면 번개 칸이 오른쪽으로 · 끄면 왼쪽으로 미끄러짐(--xc-slide 0 → 1, 콰광 · 끌 때는 프레임마다 값을 줌) */
.xc-tg { --xc-slide: 0; width: 104px; padding: 0; justify-content: flex-start; gap: 0; overflow: visible; }
.xc-tg.on { --xc-slide: 1; }
.xc-tg .xc-tg-k { position: absolute; left: 3px; top: 3px; transform: translateX(calc(var(--xc-slide) * 72px)); }
.xc-tg .xc-tg-t { position: absolute; left: 35px; width: 58px; text-align: center; transform: translateX(calc(var(--xc-slide) * -25px)); }
/* 켠 글씨에 가끔 파랑 점멸(3.2초마다 두 번, 0.2초 안) */
@keyframes xc-tgblink { 0%, 3%, 7%, 100% { color: rgb(255, 255, 255); text-shadow: none; } 1.5% { color: #8FD0FF; text-shadow: 0 0 6px #5FA8E8, 0 0 12px #2F86D6; } 5% { color: #8FD0FF; text-shadow: 0 0 6px #5FA8E8; } }
.xc-tg.on .xc-tg-t { animation: xc-tgblink 3.2s linear 1s infinite; }
:root[data-look="paper"][data-mode="dark"] .xc-tg.on .xc-tg-t { animation-name: xc-tgblink; }
/* 위 '까망' 로고가 가끔 감전된 듯 지직(5.6초마다 0.3초, 노랑 · 파랑 어긋남 + 떨림) */
@keyframes xc-logozz { 0%, 6%, 100% { transform: none; filter: none; } 1% { transform: translate(1px, -.5px); filter: drop-shadow(1.5px 0 #5FA8E8) drop-shadow(-1.5px 0 #F2C94C); } 2% { transform: translate(-1px, .5px); filter: drop-shadow(-1px 0 #5FA8E8) drop-shadow(1px 0 #F2C94C); } 3% { transform: none; filter: none; } 4.2% { transform: translate(.8px, 0); filter: drop-shadow(1.5px 0 #5FA8E8) drop-shadow(-1px 0 #F2C94C) brightness(1.2); } 5% { transform: none; filter: none; } }
#xc .xh-top .xh-logo { display: inline-block; animation: xc-logozz 5.6s steps(1, end) 2s infinite; }
/* 꼬리표와 이름 같은 크기(다 했을 때 긋는 줄이 끊기지 않게, 사이는 띄어쓰기) */
#xc .xh-today .xr-list li .xr-tag { font-size: inherit; margin-right: 0; }
#xc .xh-today .xr-list li.done > span { text-decoration-thickness: 1.5px; }
/* 빛깔 안 가(12번에서 고름): 켠 동안 밝게 · 어둡게 모두 포인트만 네온. 테두리 선을 겹쳐 두르지 않고 빛만(덜 PPT 같게) */
html.xc-neon #xc .xh-main:not(.fin) { background: linear-gradient(180deg, #1F2448, #141831); color: rgb(255, 255, 255); box-shadow: 0 8px 22px -8px rgba(95, 168, 232, .75), inset 0 1px 0 rgba(255, 255, 255, .12); }
html.xc-neon #xc .xh-main:not(.fin)::after { content: none; }
html.xc-neon #xc .xh-list li.now { box-shadow: 0 4px 14px -6px rgba(95, 168, 232, .55); background: rgba(95, 168, 232, .12); }
:root[data-mode="dark"].xc-neon #xc .xh-list li.now { background: rgba(95, 168, 232, .14); }
html.xc-neon #xc .xh-list li.now .xh-ic { background: #1B1F3A; color: #F2C94C; }
html.xc-neon #xc .xh-stat { box-shadow: none; text-shadow: 0 0 8px currentColor; }
html.xc-neon #xc .xr-day.on .xr-box { box-shadow: 0 8px 24px -12px rgba(95, 168, 232, .6); }

/* 까망 말풍선도 네온 결: 짙은 남색 바탕 + 파랑 빛 */
html.xc-neon #xc-say { --kb-n1: #171B3E; --kb-n2: #2A3172; --kb-nmid: #20265A; --kb-glow: rgba(95, 168, 232, .5); --kb-glow-hi: rgba(95, 168, 232, .75); }
@media (prefers-reduced-motion: reduce) { .xc-tg.on .xc-tg-t, #xc .xh-top .xh-logo { animation: none; } .xc-tg .xc-tg-k, .xc-tg .xc-tg-t { transition: none; } }
.xc-tg .xc-tg-t { opacity: var(--xc-to, 1); }
/* ===== 13번(시안 8판) ===== */
/* 1항: 콰광 아래 번개 까망 상반신은 흑백 느낌(그림은 그대로 두고 빛깔만 뺌). 번쩍 때 흰 테두리 빛, 잔상은 은빛 */
#xc-fill .xf-body .xf-bc { filter: grayscale(1) contrast(1.08) brightness(1.06); }
#xc-fill .xf-body.sil { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 18px rgba(235, 238, 245, .85)); }
#xc-fill .xf-body.aft { filter: brightness(1.12) drop-shadow(0 0 8px rgba(255, 255, 255, .7)) drop-shadow(0 0 22px rgba(190, 200, 220, .55)); }
/* 2항: 단계 칸이 없는 줄(시작 안 함 · 완료)은 한 줄 높이 */
#xc .xh-today.x5 .xh-list li.bare { min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
.xr-road.x5 .xr-row.fin > span { color: var(--xc-mut); }
.xr-road.x5 .xr-row.fin > span b { color: var(--xc-mut); }
/* 2항: 지직은 박자 하나(html.xc-beat, 6.4초마다 0.42초)에만. 늘 도는 점멸 · 지직 · 번쩍은 멈춤 */
.xc-tg.on .xc-tg-t, :root[data-look="paper"][data-mode="dark"] .xc-tg.on .xc-tg-t { animation: none; }
#xc .xh-top .xh-logo { animation: none; }
body:has(#xc.xc-home) #bottom-nav-bar .kn-nav-item[data-k="home"] svg { animation: none; }
@keyframes xc-tgblink1 { 0%, 22%, 46%, 100% { color: rgb(255, 255, 255); text-shadow: none; } 11% { color: #8FD0FF; text-shadow: 0 0 6px #5FA8E8, 0 0 12px #2F86D6; } 34% { color: #8FD0FF; text-shadow: 0 0 6px #5FA8E8; } }
@keyframes xc-logozz1 { 0%, 100% { transform: none; filter: none; } 15% { transform: translate(1px, -.5px); filter: drop-shadow(1.5px 0 #5FA8E8) drop-shadow(-1.5px 0 #F2C94C); } 30% { transform: translate(-1px, .5px); filter: drop-shadow(-1px 0 #5FA8E8) drop-shadow(1px 0 #F2C94C); } 45% { transform: none; filter: none; } 65% { transform: translate(.8px, 0); filter: drop-shadow(1.5px 0 #5FA8E8) drop-shadow(-1px 0 #F2C94C) brightness(1.2); } 80% { transform: none; filter: none; } }
@keyframes xc-navflash1 { 0%, 96%, 100% { filter: none; } 21% { filter: drop-shadow(0 0 2px #F2C94C) drop-shadow(0 0 7px #F2C94C) brightness(1.3); } 43% { filter: none; } 64% { filter: drop-shadow(0 0 2px #5FA8E8) drop-shadow(0 0 7px #5FA8E8) brightness(1.2); } }
html.xc-beat .xc-tg.on .xc-tg-t { animation: xc-tgblink1 .42s linear 1; }
html.xc-beat #xc .xh-top .xh-logo { animation: xc-logozz1 .42s steps(1, end) 1; }
html.xc-beat body:has(#xc.xc-home) #bottom-nav-bar .kn-nav-item[data-k="home"] svg { animation: xc-navflash1 .42s linear 1; }
@media (prefers-reduced-motion: reduce) { html.xc-beat .xc-tg.on .xc-tg-t, html.xc-beat #xc .xh-top .xh-logo, html.xc-beat body:has(#xc.xc-home) #bottom-nav-bar .kn-nav-item[data-k="home"] svg { animation: none; } }
/* 안 가 네온: 남색 → 밝은 남보라 + 하늘빛 네온 */
:root.xc-lit-a .xc-tg.on { background: linear-gradient(120deg, #3B3FC9, #4C4FE6 55%, #2F86D6); box-shadow: 0 0 0 1px rgba(110, 200, 255, .55), 0 0 calc(8px + var(--xc-charge) * 12px) rgba(80, 180, 255, .55); }
:root.xc-lit-a .xc-tg.on .xc-tg-k { background: #1E2370; }
:root.xc-lit-a #xc .xh-main:not(.fin) { background: linear-gradient(180deg, #4248D4, #2C31A8); box-shadow: 0 8px 24px -8px rgba(70, 175, 255, .9), 0 0 14px rgba(70, 175, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .28); text-shadow: 0 0 8px rgba(160, 220, 255, .55); }
:root.xc-lit-a #xc .xh-list li.now { box-shadow: 0 4px 14px -6px rgba(63, 180, 255, .5); background: rgba(63, 180, 255, .12); }
:root.xc-lit-a[data-mode="dark"] #xc .xh-list li.now { background: rgba(63, 180, 255, .17); }
:root.xc-lit-a #xc .xh-list li.now .xh-ic { background: linear-gradient(135deg, #4A50E0, #2F86D6); color: #FFE45C; box-shadow: 0 0 10px rgba(63, 180, 255, .5); }

:root.xc-lit-a #xc .xr-day.on .xr-box { box-shadow: 0 8px 26px -10px rgba(63, 180, 255, .75); }
:root.xc-lit-a #xc-say { --kb-n1: #3138A8; --kb-n2: #4A55D6; --kb-nmid: #3D46C0; --kb-glow: rgba(70, 175, 255, .6); --kb-glow-hi: rgba(110, 200, 255, .85); }
/* 안 나 노랑 디테일: 남색을 한 단계 밝히고 노랑 번개 빛을 작게 */
/* ===== 14 · 15번(시안 9판) ===== */
/* 14번 2항: 근거 줄은 뜻 덩어리마다 한 줄, 줄 안에서 꺾이지 않게(D-483 ①). 넘치면 JS(fitWhy)가 글자를 줄임 */
.xh-why > span { flex: 1; min-width: 0; }
.xh-why .xw { display: block; font-style: normal; white-space: nowrap; }
.xh-why.wrap .xw { white-space: normal; word-break: keep-all; }
/* 15번 1항: 콰광 상반신. 쇼츠에서 '클로즈업됐다가 풀리는' 느낌을 덜게 화면을 덮지 않는 크기(440 → 300px, 머리부터 가슴까지 화면 안) · 로고 250 → 210px */
#xc-fill .xf-body { width: 300px; height: 300px; bottom: -64px; }
#xc-fill .xf-bc, #xc-fill .xf-bc > * { width: 300px; height: 300px; }
#xc-fill .xf-bc svg { width: 300px !important; height: 300px !important; }
#xc-fill .xf-logo.x6 { top: 34%; }
#xc-fill .xf-logo.x6 .kk-hlogo, #xc-fill .xf-logo.x6 svg, #xc-fill .xf-logo.x6 img { width: 210px !important; }
/* 흑백 위에 파랑 · 노랑 기운이 잠깐씩(fx6가 50ms마다 data-tint를 바꿈) */
#xc-fill .xf-bc[data-tint="b"] { filter: grayscale(1) sepia(1) hue-rotate(178deg) saturate(2.2) brightness(1.04); }
#xc-fill .xf-bc[data-tint="y"] { filter: grayscale(1) sepia(1) hue-rotate(8deg) saturate(2.6) brightness(1.12); }
/* 둘레를 감고 지나가는 번개(콰광 상반신 · 머리 줄 로고) */
#xc-fill .xf-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#xc .xh-top .xh-logo { position: relative; }
/* 로고는 떨지 않음(옮김 없음). 전기가 지나갈 때 빛만 살짝 */
@keyframes xc-logoglow { 0%, 100% { filter: none; } 30% { filter: drop-shadow(0 0 3px rgba(242, 201, 76, .8)); } 65% { filter: drop-shadow(0 0 3px rgba(30, 167, 255, .8)); } }
html.xc-beat #xc .xh-top .xh-logo { animation: xc-logoglow .42s linear 1; }
/* 15번 1항: 복습 글자 빛깔(주황 → 짙은 남보라, 테마와 같은 결) */
.xr-tag { color: #3F45B8; } :root[data-mode="dark"] .xr-tag { color: #AEB4FF; }
.xh-list li.rev .xh-ic { color: #3F45B8; } :root[data-mode="dark"] .xh-list li.rev .xh-ic { color: #AEB4FF; }
.xr-row.rev .xr-ck.on { background: #3F45B8; } :root[data-mode="dark"] .xr-row.rev .xr-ck.on { background: #6E76F0; }
:root[data-look="paper"] .xr-tag, :root[data-look="paper"] .xh-list li.rev .xh-ic { color: var(--xc-ink); }
:root[data-look="paper"] .xr-row.rev .xr-ck.on { background: var(--xc-ink); }
/* 15번 2항: 안 가 네온을 노랑을 더 섞고 무게 있게(xc-lit-a를 덮어씀). 하늘하늘한 둘레 빛은 걷고, 짙은 남보라 바탕 + 노랑 포인트 + 또렷한 그림자 */
:root.xc-lit-a:not([data-look="paper"]) #xc { --xc-bg: #E9EBF4; }
:root.xc-lit-a:not([data-look="paper"])[data-mode="dark"] #xc { --xc-bg: #0C0E1C; }
:root.xc-lit-a:not([data-look="paper"]) #xc .xh-today { box-shadow: 0 1px 0 rgba(20, 24, 70, .06), 0 10px 24px -14px rgba(20, 24, 70, .45); border: 1px solid rgba(40, 46, 120, .1); }
:root.xc-lit-a:not([data-look="paper"])[data-mode="dark"] #xc .xh-today { border-color: rgba(174, 180, 255, .1); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8); }
:root.xc-lit-a .xc-tg.on { background: linear-gradient(120deg, #262A86, #3338B0); box-shadow: 0 0 0 1px rgba(242, 201, 76, .6), 0 0 calc(4px + var(--xc-charge) * 10px) rgba(242, 201, 76, .45); }
:root.xc-lit-a .xc-tg.on .xc-tg-k { background: #14173F; }
:root.xc-lit-a #xc .xh-main:not(.fin) { background: linear-gradient(180deg, #343AB8, #22268A); text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 #F2C94C, 0 10px 22px -10px rgba(20, 24, 90, .85), 0 4px 14px -6px rgba(242, 201, 76, .55); }
:root.xc-lit-a #xc .xh-main:not(.fin)::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px; background: #FFE45C; clip-path: polygon(58% 0, 8% 58%, 44% 58%, 34% 100%, 92% 38%, 56% 38%); }
:root.xc-lit-a #xc .xh-list li.now { box-shadow: 0 6px 16px -8px rgba(20, 24, 90, .45); background: rgba(52, 58, 184, .09); }   /* (작업 U 70 · 71번, D 86번 ⑨, 사용자 11/3 04:52) 왼쪽 세로 띠 · 테 없이 옅은 바탕 + 떠오른 그림자 */
:root.xc-lit-a[data-mode="dark"] #xc .xh-list li.now { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); background: rgba(140, 150, 255, .12); }
:root.xc-lit-a[data-mode="dark"] #xc .xh-list li.now { background: rgba(110, 118, 240, .14); }
:root.xc-lit-a #xc .xh-list li.now .xh-ic { background: linear-gradient(135deg, #343AB8, #22268A); color: #FFE45C; box-shadow: none; }

:root.xc-lit-a #xc .xr-day.on .xr-box { background: rgba(52, 58, 184, .07); box-shadow: 0 10px 24px -12px rgba(20, 24, 90, .55); }   /* (작업 U 71번) 테 없이 하루 홈 지금 줄과 같은 옅은 보라 바탕 + 떠오른 그림자 */
:root.xc-lit-a[data-mode="dark"] #xc .xr-day.on .xr-box { background: rgba(140, 150, 255, .1); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .85); }
:root.xc-lit-a #xc-say { --kb-n1: #262A86; --kb-n2: #3338B0; --kb-nmid: #2C31A0; --kb-glow: rgba(20, 24, 90, .28); --kb-glow-hi: rgba(242, 201, 76, .35); }
:root.xc-lit-a[data-mode="dark"] #xc-say { --kb-glow: rgba(0, 0, 0, .55); --kb-glow-hi: rgba(242, 201, 76, .3); }
:root.xc-lit-a:not([data-look="paper"]):not([data-mode="dark"]) #xc .xr-ck:not(.on) { box-shadow: inset 0 0 0 1.5px #B9BED6; }   /* 바탕이 짙어져도 빈 체크 동그라미가 보이게 */
/* ===== 16번(시안 10판) ===== */
html.xc-beat #xc .xh-top .xh-logo { animation: none; }
/* 4항: 벼락치기 노트(작업 F KkCramNote) 머리 아래 코스 띠(#cn-band) */
.xn-band { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.xn-band b { color: var(--ink); font-weight: 800; }
.xn-band span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn-band button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.xn-band button.go { border: 0; background: linear-gradient(180deg, #343AB8, #22268A); color: rgb(255, 255, 255); box-shadow: inset 0 -2px 0 #F2C94C; }
/* ===== 17번(시안 11판) ===== */
/* 1항: '까망' 두 글자 획 전체에 지지직(charge). 로고 획보다 가늘고 빛나게: 심 1.3px · 빛 4px(화면 px) */
/* ===== 19번 ===== */
/* 1항: 로고를 휘감는 전선(.xc-wire.b 글자 뒤 · .f 글자 앞). 로고 그림 밖으로 나가도 보이게 */
#xc .xh-top .xh-logo svg { overflow: visible; }
.xc-wire polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.xc-wire .s1 { stroke-width: 3.2px; opacity: .55; filter: blur(8px); } .xc-wire .s2 { stroke-width: 1.4px; }
.xc-wire.b .s1 { stroke-width: 2.4px; opacity: .35; } .xc-wire.b .s2 { stroke-width: 1px; }
.xc-wire .wy .s1 { stroke: #FFD400; } .xc-wire .wy .s2 { stroke: #FFF3A0; }
.xc-wire .wb .s1 { stroke: #1EA7FF; } .xc-wire .wb .s2 { stroke: #CFF3FF; }
:root:not([data-mode="dark"]) .xc-wire .wy .s2 { stroke: #F5B800; } :root:not([data-mode="dark"]) .xc-wire .wb .s2 { stroke: #1E7FE8; }
@media (prefers-reduced-motion: reduce) { .xc-wire { display: none; } }

/* 첫 판: 벼락치기 층이 보이는 동안 떠 있는 돋보기(작업 G #53)는 숨김(큰 단추 · 날짜 길을 가리지 않게, 검색은 원래 홈 · 다른 화면에서) */
html.xc-show div[onclick="openMiniSearch()"] { display: none !important; }
/* 첫 판: 처음 설정의 하루 공부 시간(고른 칸은 카드 바탕 · 그림자, 시안 3판 kw-seg 결) */
#xc .xd-hours button { border-radius: calc(var(--kw-r-btn, 12px) - 4px); transition: background-color .15s, box-shadow .15s; }
#xc .xd-hours button[aria-pressed="true"] { background: var(--xc-card); font-weight: 800; box-shadow: 0 1px 2px rgba(20, 24, 40, .12), 0 0 0 1px var(--xc-line); }
#xc .xd-setup { margin-top: 8px; }
#xc .xd-setup .xd-h, #xc .xd-setup .xd-p { text-align: left; }
#xc .xd-setup .xd-go { display: flex; justify-content: center; margin-top: 18px; }
/* 18번 3항: 켠 동안 떠 있는 까망 버튼 얼굴은 빠망 선 그림(버튼 얼굴 칸 크기 그대로, 빛깔은 버튼 얼굴 빛깔 값) */
#kk-buddy .kb-face.xc-face, .kb-dock .kb-face.xc-face { color: var(--kb-f2, #6345F4); }
#kk-buddy .kb-face.xc-face svg, .kb-dock .kb-face.xc-face svg { width: 100%; height: 100%; display: block; }
/* 20번 3항: 로고 전기는 획마다 감는 지직 전기(crackle) + 튀는 불꽃, 선은 색 빛 + 색 선 + 흰 심(흰빛 네온). 19번 전선 값을 덮어씀 */
.xc-wire .s1 { stroke-width: 3.6px; opacity: .6; filter: blur(4px); } .xc-wire .s2 { stroke-width: 1.8px; } .xc-wire .s3 { stroke: rgb(255, 255, 255); stroke-width: .7px; }
.xc-wire.b .s1 { stroke-width: 3px; opacity: .4; } .xc-wire.b .s2 { stroke-width: 1px; } .xc-wire.b .s3 { stroke-width: .5px; opacity: .6; }
.xc-wire .wy .s2 { stroke: #FFE45C; } .xc-wire .wb .s2 { stroke: #6CCBFF; }
.xc-wire .wsp polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.xc-wire .wsp .s1 { stroke: #9FE2FF; stroke-width: 3px; opacity: .8; filter: blur(5px); } .xc-wire .wsp .s3 { stroke-width: 1px; }
:root:not([data-mode="dark"]) .xc-wire .wy .s2 { stroke: #F5B800; } :root:not([data-mode="dark"]) .xc-wire .wb .s2 { stroke: #1E7FE8; }
:root:not([data-mode="dark"]) .xc-wire .wsp .s1 { stroke: #2A8CFF; opacity: .75; } :root:not([data-mode="dark"]) .xc-wire .wsp .s3 { stroke: #FFF6C2; }
/* 20번 3항: 벼락치기 전환 단추 둘레 흰빛 네온(늘 옅게, 박자 때 밝게) · 찌릿은 색 빛 + 색 선 + 흰 심 + 꺾인 자리 불꽃 */
:root.xc-lit-a .xc-tg.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 1px rgba(255, 255, 255, .3), 0 0 6px 1px rgba(255, 255, 255, .35), 0 0 calc(6px + var(--xc-charge) * 12px) rgba(110, 190, 255, .5); transition: box-shadow .18s ease-out; }
:root.xc-lit-a.xc-beat .xc-tg.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 255, 255, .6), 0 0 10px 2px rgba(255, 255, 255, .55), 0 0 22px 4px rgba(110, 190, 255, .55); }
:root.xc-lit-a .xc-tg.on .xc-tg-k { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75), 0 0 7px rgba(255, 255, 255, .45), 0 0 12px rgba(242, 201, 76, .5); }
:root .xc-zap .zg > polyline { stroke-linecap: round; stroke-linejoin: round; }
:root .xc-zap .zg > .z1 { stroke-width: 4; opacity: .8; filter: blur(2.2px); } :root .xc-zap .zg > .z2 { stroke-width: 1.6; } :root .xc-zap .zg > .z3 { stroke: rgb(255, 255, 255); stroke-width: .7; }
:root .xc-zap .zg.zy > .z1 { stroke: #FFD400; } :root .xc-zap .zg.zy > .z2 { stroke: #FFE94A; } :root .xc-zap .zg.zb > .z1 { stroke: #1EA7FF; } :root .xc-zap .zg.zb > .z2 { stroke: #7FD6FF; }
:root .xc-zap .zs { fill: none; stroke: rgb(255, 255, 255); stroke-width: 1; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(160, 225, 255, .9)); }
@media (prefers-reduced-motion: reduce) { :root.xc-lit-a .xc-tg.on, :root.xc-lit-a.xc-beat .xc-tg.on { transition: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 0 1px rgba(255, 255, 255, .3), 0 0 6px 1px rgba(255, 255, 255, .35); } }
/* 20번 3항: 선 굵기를 로고 크기(글자 크기 em)에 맞춤. 머리 줄(15px)에서는 가늘게, 크게 볼 때는 위 값까지 */
.xc-wire .s1 { stroke-width: clamp(1.4px, .04em, 3.6px); } .xc-wire .s2 { stroke-width: clamp(.8px, .02em, 1.8px); } .xc-wire .s3 { stroke-width: clamp(.35px, .008em, .7px); }
.xc-wire.b .s1 { stroke-width: clamp(1.1px, .033em, 3px); } .xc-wire.b .s2 { stroke-width: clamp(.6px, .011em, 1px); }
.xc-wire .wsp .s1 { stroke-width: clamp(1.2px, .033em, 3px); } .xc-wire .wsp .s3 { stroke-width: clamp(.6px, .011em, 1px); }
/* 20번 4항: 설정 '벼락치기 버전' 줄 그림(설정 줄 그림 칸 크기) · 결과 화면 벼락치기 카드 */
#hamburger-menu .hb-cram .xc-set-ic { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; vertical-align: -.2em; color: var(--brand, #4C4FE6); }
#hamburger-menu .hb-cram .xc-set-ic svg { width: 100%; height: 100%; }
#result-stats .xc-rcard { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, #1A1A52, #262A86 60%, #1B3A8A); color: rgb(255, 255, 255); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 0 1px rgba(110, 190, 255, .35), 0 4px 14px rgba(40, 60, 160, .25); text-align: left; }
#result-stats .xc-rcard .xc-rc-ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: #FFE45C; }
#result-stats .xc-rcard .xc-rc-ic svg { width: 100%; height: 100%; }
#result-stats .xc-rcard .xc-rc-t { min-width: 0; display: grid; gap: 2px; }
#result-stats .xc-rcard .xc-rc-t b { font-size: .9375rem; font-weight: 700; line-height: 1.35; word-break: keep-all; }
#result-stats .xc-rcard .xc-rc-t span { font-size: .8125rem; line-height: 1.4; opacity: .85; word-break: keep-all; }
#result-stats .xc-rcard .xc-rc-go { grid-column: 1 / -1; justify-self: center; width: min(100%, 260px); height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: #FFE45C; color: #14123A; font: inherit; font-size: .875rem; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: none; }   /* (작업 U 70번, D 86번 ⑪) 왼쪽에 쏠린 뚱뚱한 알약 대신 카드 가운데 · 알맞은 폭 · 덜 둥근 단추 */
/* 25번 1항: 네온사인 결. 글씨 안 가운데 네온관(흰 심 + 색 빛)은 늘 옅게, 박자 때 깜빡이며 켜짐(--xn 0 ~ 1). 글씨 빛(.xc-nfill)도 함께 */
.xc-tube polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.xc-tube { opacity: calc(.28 + var(--xn, 0) * .72); }
.xc-tube .t1 { stroke-width: clamp(2px, .06em, 6px); opacity: .7; filter: blur(3px); }
.xc-tube .t2 { stroke-width: clamp(1px, .022em, 2.2px); opacity: .9; }
.xc-tube .t3 { stroke: rgb(255, 255, 255); stroke-width: clamp(.5px, .01em, 1px); }
.xc-nfill { pointer-events: none; }
.xc-wire .s1 { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .xc-tube, .xc-nfill { display: none; } }
/* 28번 1항(사용자 '파워레인저 같거든 … 클래시 로얄의 일렉트로 마법사 같은 느낌, 어두우면서도 세련된'): 26 · 27번의 획마다 다른 원색을 버리고
   한 결로. 가운데는 전기 같은 푸른 빛(얇은 심), 가장자리는 옅은 보랏빛으로 번져 사라짐. 빛은 얇고 낮게, 박자 때 번쩍임은 아주 작게.
   감김 전선도 노랑 대신 푸른 빛 · 옅은 보라. 가 = 글씨 빛깔 그대로, 나 = 글씨를 검정에 가까운 남색으로(html[data-xneon="b"]) */
.xc-tube { opacity: calc(.34 + var(--xn, 0) * .36); }
.xc-tube .t1 { stroke: #5A3FC4; stroke-width: clamp(2.4px, .07em, 7px); opacity: .5; filter: blur(3.5px); }
.xc-tube .t2 { stroke: #2F7DF2; stroke-width: clamp(.8px, .016em, 1.6px); opacity: .95; }
.xc-tube .t3 { stroke: #C8EEFF; stroke-width: clamp(.4px, .007em, .7px); opacity: .8; }
:root[data-mode="dark"] .xc-tube { opacity: calc(.42 + var(--xn, 0) * .36); } :root[data-mode="dark"] .xc-tube .t1 { stroke: #6C4BE0; opacity: .62; } :root[data-mode="dark"] .xc-tube .t2 { stroke: #4A95FF; stroke-width: clamp(.9px, .019em, 1.9px); }
:root[data-mode="dark"] .xc-nfill { fill: #3E7BFF; opacity: calc(var(--xn, 0) * .1); filter: drop-shadow(0 0 3px rgba(58, 139, 255, .7)) drop-shadow(0 0 10px rgba(108, 75, 224, .55)); }
:root:not([data-mode="dark"]) .xc-nfill { fill: #2F7DF2; opacity: calc(var(--xn, 0) * .1); filter: drop-shadow(0 0 3px rgba(47, 125, 242, .6)) drop-shadow(0 0 9px rgba(90, 63, 196, .45)); }
.xc-wire .s1 { opacity: .45; }
.xc-wire .wy .s1, :root:not([data-mode="dark"]) .xc-wire .wy .s1 { stroke: #7B5BEA; } .xc-wire .wy .s2, :root:not([data-mode="dark"]) .xc-wire .wy .s2 { stroke: #B9A8FF; }
.xc-wire .wb .s1, :root:not([data-mode="dark"]) .xc-wire .wb .s1 { stroke: #2F7DF2; } .xc-wire .wb .s2, :root:not([data-mode="dark"]) .xc-wire .wb .s2 { stroke: #8FD0FF; }
.xc-wire .wsp .s1, :root:not([data-mode="dark"]) .xc-wire .wsp .s1 { stroke: #5A8CFF; opacity: .55; } :root:not([data-mode="dark"]) .xc-wire .wsp .s3 { stroke: #E4F4FF; }
/* 31번 1항(사용자 '가운데 선이 그어지니까 유치해 … 근처에 스파클이 일어나는 건 나쁘지 않거든'): 획 가운데 선(네온관 .xc-tube)을 뺀다.
   글씨 둘레에 이는 감김 · 불꽃(.xc-wire)과 박자 때 글씨 둘레로 번지는 옅은 빛(.xc-nfill)만 남김. 빛깔은 28번 결(푸른 빛 · 옅은 보라) 그대로 */
.xc-tube { display: none; }
:root[data-mode="dark"] .xc-nfill { opacity: calc(var(--xn, 0) * .16); }
/* 34번 1항(사용자 '가가 더 좋아 · 반짝일 때 색깔이 너무 좀 짜치고 · 테두리가 생기는 게 별로 · 색깔 자체가 탁해 · 완전 진한 어두운 계열'):
   가(글씨 빛깔 그대로)로 정하고 나 판은 지움. 박자 때 글씨 둘레에 생기던 빛 테(.xc-nfill)를 없애고, 감김 · 불꽃은 탁한 중간 빛 대신
   짙은 남 · 짙은 보라 빛 번짐 위에 또렷한 선(빛 번짐은 좁게 · 진하게, 선은 맑게, 흰 심 가늘게) */
.xc-nfill { display: none; }
.xc-wire .s1, :root:not([data-mode="dark"]) .xc-wire .s1 { opacity: .85; filter: blur(2.5px); }
.xc-wire .wb .s1, :root:not([data-mode="dark"]) .xc-wire .wb .s1 { stroke: #1A1F9E; } .xc-wire .wb .s2, :root:not([data-mode="dark"]) .xc-wire .wb .s2 { stroke: #3D6BFF; }
.xc-wire .wy .s1, :root:not([data-mode="dark"]) .xc-wire .wy .s1 { stroke: #3A1696; } .xc-wire .wy .s2, :root:not([data-mode="dark"]) .xc-wire .wy .s2 { stroke: #7A4DFF; }
.xc-wire .wsp .s1, :root:not([data-mode="dark"]) .xc-wire .wsp .s1 { stroke: #2A1F9E; opacity: .8; } .xc-wire .wsp .s3, :root:not([data-mode="dark"]) .xc-wire .wsp .s3 { stroke: #E8EEFF; }
:root[data-mode="dark"] .xc-wire .wb .s1 { stroke: #2430D8; } :root[data-mode="dark"] .xc-wire .wb .s2 { stroke: #5C86FF; }
:root[data-mode="dark"] .xc-wire .wy .s1 { stroke: #5426C8; } :root[data-mode="dark"] .xc-wire .wy .s2 { stroke: #9A74FF; }
:root[data-mode="dark"] .xc-wire .wsp .s1 { stroke: #3A30D0; }
/* 28번 4항: 진단 시작 아래 날짜 길 흐린 미리 보기(누르지 못함). 아래로 갈수록 옅어져 사라짐 */
#xc .xd-peek { position: relative; margin: 30px 0 0; pointer-events: none; user-select: none; }
#xc .xd-peek-t { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 1; padding: 3px 10px; border-radius: 11px; background: var(--xc-fill2); color: var(--xc-mut); font-size: .75rem; font-weight: 700; white-space: nowrap; }
#xc .xd-peek-in { max-height: 290px; overflow: hidden; padding-top: 14px; filter: blur(2px); opacity: .5; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
/* 31번 3항: 진단 시작 화면. 위에 D-day 줄(홈과 같은 꼴), 진단 칸은 카드, 빠망은 카드 윗변에 걸터앉음(그림 아랫단이 카드 윗변에 닿고 조금 겹침) */
/* 34번 3항: D-day는 작은 칩 줄(큰 숫자 대신), 빠망은 카드 윗변 위에 앉음(아랫단이 카드 윗변에 꼭 닿고 겹치지 않음), 말풍선은 아랫단을 빠망과 맞춤 */
#xc.xc-setup .xd-dday { display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; }
#xc.xc-setup .xd-dchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 11px 0 9px; border-radius: 13px; background: #1E1C66; color: rgb(255, 255, 255); font-size: .8438rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#xc.xc-setup .xd-dchip svg { color: #FFD43B; flex: none; }
:root[data-mode="dark"] #xc.xc-setup .xd-dchip { background: #2E2C8C; }
#xc.xc-setup .xd-dday span { font-size: .8125rem; font-weight: 600; color: var(--xc-mut); white-space: nowrap; }
/* 38번 3항(사용자 '말풍선이 빠망이한테 안 맞아 … 약한 단원부터 시작합니다랑 겹쳐 … 빠망이가 그냥 날아다니면서 위에서 말하는 게'): 빠망은 카드 위 빈 하늘에서 천천히 오르내리며 날고(날개 펴는 그림이 없어 몸만 띄움 · 살짝 앞으로 기울임),
   말풍선 꼬리를 빠망 부리 높이에 맞춤. 카드와는 띄어 겹치지 않음. 움직임 줄이기면 멈춤 */
#xc.xc-setup .xd-perch { position: relative; z-index: 1; align-items: flex-start; min-height: 0; margin: 14px 0 16px 14px; }
#xc.xc-setup .xd-perch .xh-kk { margin: 0; }   /* 말풍선 꼬리는 말풍선 위에서 20px 안팎, 빠망 부리도 그림 위에서 20px 안팎: 윗단을 맞추면 꼬리가 부리를 가리킴(글자를 키워도 말풍선은 아래로만 자람) */
#xc.xc-setup .xd-perch .xh-kk > * { animation: xd-fly 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
#xc.xc-setup .xd-perch .xh-kk::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -14px; height: 6px; border-radius: 50%; background: rgba(30, 28, 102, .14); animation: xd-fly-sh 2.8s ease-in-out infinite; }
:root[data-mode="dark"] #xc.xc-setup .xd-perch .xh-kk::after { background: rgba(0, 0, 0, .35); }
#xc.xc-setup .xd-perch .xh-say { padding-top: 0; margin-bottom: 0; }
/* 40번 2항(사용자 '날갯짓 할 때마다 떴다가'): 한 바퀴 2.8초 = 날갯짓 둘(날개를 들 때 살짝 가라앉고, 내려칠 때 떠오름) → 미끄러지듯 천천히 내려옴. 날개 · 몸 · 그림자가 같은 박자 */
@keyframes xd-fly { 0% { transform: translateY(3px) rotate(-4deg); } 7% { transform: translateY(4px) rotate(-4deg); } 16% { transform: translateY(-1px) rotate(-5deg); } 25% { transform: translateY(0) rotate(-5deg); } 32% { transform: translateY(1px) rotate(-5deg); } 41% { transform: translateY(-5px) rotate(-6deg); } 100% { transform: translateY(3px) rotate(-4deg); } }
/* 39번 1항(사용자 '날아다니면은 … 날갯짓을 하든지 해야지'): 날개를 두 번 퍼덕이고 내려오는 동안은 미끄러지듯 멈춤. 날개 축 · 들림은 까망이 부품의 깡충 퍼덕임(kkmWingFlap)과 같음 */
#xc.xc-setup .xd-perch .kkm-wing { animation: xd-flap 2.8s ease-in-out infinite; }
@keyframes xd-flap { 0%, 100% { transform: none; } 7% { transform: rotate(34deg); } 16% { transform: rotate(-4deg); } 21% { transform: none; } 25% { transform: none; } 32% { transform: rotate(34deg); } 41% { transform: rotate(-4deg); } 46% { transform: none; } }
@keyframes xd-fly-sh { 0%, 7%, 100% { transform: scaleX(1); opacity: 1; } 16% { transform: scaleX(.88); opacity: .85; } 32% { transform: scaleX(.86); opacity: .82; } 41% { transform: scaleX(.72); opacity: .62; } }
@media (prefers-reduced-motion: reduce) { #xc.xc-setup .xd-perch .xh-kk > *, #xc.xc-setup .xd-perch .xh-kk::after, #xc.xc-setup .xd-perch .kkm-wing { animation: none; } #xc.xc-setup .xd-perch .xh-kk > * { transform: rotate(-4deg); } }
#xc.xc-setup .xd-setup { position: relative; margin-top: 0; padding: 24px 18px 18px; border-radius: 18px; background: var(--xc-card); box-shadow: 0 1px 0 var(--xc-line); }
:root[data-look="paper"] #xc.xc-setup .xd-setup { border-radius: 0; background: transparent; box-shadow: inset 0 2px 0 var(--kw-rule, var(--xc-ink)); }
/* 41번: 글자 크기를 키워 한 줄이 넘치면 두 줄 길이를 고르게(끝에 '봅니다.'만 남지 않게) */
#xc .xd-bal > span { display: block; text-wrap: balance; }
/* 43번 2항(사용자 '벼락치기 테두리 좀 구리네'): 왼쪽 위 벼락치기 단추를 다시. 흰 테 · 금빛 테를 걷고 짙은 먹색 한 판 + 노란 손잡이(번개는 먹색). 빛은 손잡이 둘레 노란 번짐만(박자에 한 번 밝아짐) */
.xc-tg.on, :root.xc-lit-a .xc-tg.on, :root[data-look="paper"] .xc-tg.on, :root[data-look="paper"][data-mode="dark"] .xc-tg.on { color: rgb(255, 255, 255); background: #191B33; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 8px rgba(25, 27, 51, .22), 0 0 calc(var(--xc-charge) * 14px) rgba(245, 197, 66, calc(var(--xc-charge) * .45)); transition: box-shadow .18s ease-out; }
:root[data-mode="dark"] .xc-tg.on, :root[data-mode="dark"].xc-lit-a .xc-tg.on, :root[data-look="paper"][data-mode="dark"] .xc-tg.on { background: #2B2E52; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 calc(var(--xc-charge) * 14px) rgba(245, 197, 66, calc(var(--xc-charge) * .45)); }
:root.xc-lit-a.xc-beat .xc-tg.on, :root.xc-beat .xc-tg.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 12px 1px rgba(245, 197, 66, .5); }
.xc-tg.on .xc-tg-k, :root.xc-lit-a .xc-tg.on .xc-tg-k, :root[data-look="paper"][data-mode="dark"] .xc-tg.on .xc-tg-k { background: #F5C542; color: #191B33; box-shadow: 0 0 8px rgba(245, 197, 66, .45); }
.xc-tg.on .xc-tg-k svg, :root.xc-lit-a .xc-tg.on .xc-tg-k svg { fill: #191B33; }
@media (prefers-reduced-motion: reduce) { .xc-tg.on, :root.xc-lit-a .xc-tg.on, :root.xc-lit-a.xc-beat .xc-tg.on { transition: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); } }
/* 44번 2항: 설정 '벼락치기 버전' 줄도 고르기 창 벼락치기 칸과 같은 스위치 꼴(켜면 노란 길) */
#hamburger-menu.rn-settings .hb-cram .rn-sw[aria-checked="true"]::before { background: #F5C542; }
/* 45번 3항(사용자 '진단하는 버튼 조금 구려'): 진단 시작 단추를 벼락치기 결로. 안 ㄱ(처음) 먹색 면 + 노란 번개 손잡이 · 안 ㄴ(html.xd-btn-b) 노란 면 + 먹색 번개 · 지직 빛이 한 번씩 훑음 */
#xc .xh-main.xd-start { display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
#xc .xh-main.xd-start .xd-k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F5C542; color: #191B33; }
#xc .xh-main.xd-start .xd-k svg { width: 16px; height: 16px; fill: #191B33; stroke: none; }
#xc .xh-main.xd-start::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 48%, transparent 58%) no-repeat; background-size: 250% 100%; background-position: 130% 0; animation: xd-zip 4.8s ease-in-out 1.2s infinite; }
@keyframes xd-zip { 0%, 74% { background-position: 130% 0; } 92%, 100% { background-position: -30% 0; } }
#xc .xh-main.xd-start:not(.fin), :root.xc-lit-a #xc .xh-main.xd-start:not(.fin), html.xc-neon #xc .xh-main.xd-start:not(.fin) { padding: 0 22px 0 8px; color: rgb(255, 255, 255); background: #191B33; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 20px -10px rgba(25, 27, 51, .7), 0 0 14px -2px rgba(245, 197, 66, .3); }
:root[data-mode="dark"] #xc .xh-main.xd-start:not(.fin), :root[data-mode="dark"].xc-lit-a #xc .xh-main.xd-start:not(.fin) { background: #2B2E52; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 16px -2px rgba(245, 197, 66, .3); }
:root.xc-lit-a #xc .xh-main.xd-start:not(.fin)::before, html.xc-neon #xc .xh-main.xd-start:not(.fin)::before, #xc .xh-main.xd-start::before { content: none; }

@media (prefers-reduced-motion: reduce) { #xc .xh-main.xd-start::after { animation: none; opacity: 0; } }
/* 45번 4항: 벼락치기를 켠 동안 바탕을 아주 살짝 바꾸는 안(html.xc-bg2): 같은 바탕에 옅은 먹색 기운과 노랑 · 파랑 전기 빛 번짐. 카드는 그대로라 글 대비는 같음 */

 :root.xc-lit-a.xc-bg2:not([data-look="paper"])[data-mode="dark"] body { background-color: #0D0F20; }
/* 46번: 벼락치기에 들어갈 때 한마디(중요한 대사 꼴: 뒤를 살짝 흐리고 가운데 빠망 + 말풍선, 꼬리는 빠망 부리를 가리킴) */
#xc-line { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; cursor: pointer; }
#xc-line .xl-scrim { position: absolute; inset: 0; background: rgba(10, 12, 30, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .26s; }
#xc-line .xl-box { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: -8vh; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .28s, transform .34s cubic-bezier(.2, .8, .2, 1); }
#xc-line.on .xl-scrim { opacity: 1; } #xc-line.on .xl-box { opacity: 1; transform: none; }
#xc-line .xl-kk { flex: none; width: 96px; height: 96px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
#xc-line .xl-say { position: relative; margin-top: 8px; padding: 14px 20px; border-radius: 4px 18px 18px 18px; color: rgb(255, 255, 255); background: linear-gradient(135deg, #4A4FD0, #2A2E9E); box-shadow: 0 10px 28px rgba(10, 12, 40, .4); }
#xc-line .xl-say p { margin: 0; min-width: 6.6em; font-size: 1.125rem; font-weight: 800; line-height: 1.5; letter-spacing: -.01em; }
#xc-line .xl-say p span { display: block; min-height: 1.5em; white-space: nowrap; }
#xc-line .xl-say .xl-b { color: #FFE27A; }
#xc-line .xl-tail { display: none; }   /* (작업 U 70번, D 86번 ⑫) DM 꼴(D-640): 꼬리 없이, 빠망 쪽 위 모서리만 덜 둥글게(D-647 ①) */
@media (prefers-reduced-motion: reduce) { #xc-line .xl-scrim, #xc-line .xl-box { transition: none; } }
/* 48번 1항 · 50번: 벼락치기에 처음 들어올 때 새 세상 장면. 까망 등장 부품(작업 J #kb-hero)과 같은 크기 · 자리 · 슉 길 · DM 꼴 말풍선, 바탕만 하얗게 + 큰 글 */
#xc-world { position: fixed; inset: 0; z-index: 9200; cursor: pointer; --xw-s: 180px; --xw-x: 10px; --xw-y: calc(10px + env(safe-area-inset-bottom, 0px)); }
#xc-world .xw-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease-out; background: radial-gradient(90% 55% at 22% 92%, rgba(245, 197, 66, .2), transparent 70%), radial-gradient(70% 45% at 92% 6%, rgba(120, 128, 255, .14), transparent 70%), rgb(255, 255, 255); }
:root[data-mode="dark"] #xc-world .xw-bg { background: radial-gradient(90% 55% at 22% 92%, rgba(245, 197, 66, .22), transparent 70%), radial-gradient(70% 45% at 92% 6%, rgba(120, 128, 255, .16), transparent 70%), #F3F4FA; }
#xc-world.on .xw-bg { opacity: 1; }
#xc-world .xw-kk { position: absolute; left: var(--xw-x); bottom: var(--xw-y); width: var(--xw-s); height: var(--xw-s); pointer-events: none; transform-origin: 30% 100%; transform: translate(-125%, 38%) rotate(-16deg) scale(.72); filter: drop-shadow(0 10px 24px rgba(25, 27, 51, .25)); }
#xc-world .xw-kk .kyc { width: 100% !important; height: 100% !important; }
#xc-world.in .xw-kk { transform: none; transition: transform .44s cubic-bezier(.2, 1.3, .35, 1); }
#xc-world.out .xw-kk { transform: translate(-125%, 38%) rotate(-16deg) scale(.72); transition: transform .3s cubic-bezier(.55, 0, .9, .35); }
#xc-world .xw-cap { position: absolute; left: max(24px, calc(var(--xw-x) + 14px)); right: 24px; top: 22%; max-width: 552px; margin: 0; font-size: 2rem; font-weight: 900; line-height: 1.32; letter-spacing: -.02em; color: #191B33; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
#xc-world .xw-cap span { display: block; min-height: 1.32em; }
#xc-world .xw-cap .xw-b { color: #A06F00; }
#xc-world.c .xw-cap { opacity: 1; transform: none; }
#xc-world .xw-bub { position: absolute; left: calc(var(--xw-x) + var(--xw-s) * .5); bottom: calc(var(--xw-y) + var(--xw-s) * .78); box-sizing: border-box; width: max-content; max-width: min(320px, calc(100vw - var(--xw-x) - var(--xw-s) * .5 - 14px)); padding: 12px 16px 10px; border-radius: 18px 18px 18px 5px; color: rgb(255, 255, 255); background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, var(--kb-n1, #4A4BF5), var(--kb-n2, #7B3FF2)); filter: drop-shadow(0 6px 18px rgba(110, 82, 255, .4)); opacity: 0; transform: scale(.86); transform-origin: 0 100%; transition: opacity .14s ease, transform .22s cubic-bezier(.2, .9, .3, 1.15); cursor: default; }
#xc-world .xw-bub p { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.55; word-break: keep-all; text-wrap: balance; }
#xc-world .xw-bub span { display: block; min-height: 1.55em; }
#xc-world .xw-acts { display: flex; justify-content: flex-end; margin-top: 8px; }
#xc-world .xw-ok { position: relative; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .2); color: rgb(255, 255, 255); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
#xc-world .xw-ok::after { content: ''; position: absolute; inset: -6px -2px; }
#xc-world .xw-ok:focus-visible { outline: 2px solid rgb(255, 255, 255); outline-offset: 2px; }
#xc-world.b .xw-bub { opacity: 1; transform: none; }
#xc-world.out { opacity: 0; transition: opacity .3s ease .06s; }
@media (prefers-reduced-motion: reduce) { #xc-world .xw-bg, #xc-world .xw-kk, #xc-world.in .xw-kk, #xc-world.out .xw-kk, #xc-world .xw-cap, #xc-world .xw-bub, #xc-world.out { transition: opacity .15s ease !important; transform: none !important; } }
/* 48번 2항: 한 줄에 이어 붙인 문장은 한 덩이(좁아지면 문장 사이에서 줄바꿈) */
.xh-say .xc-sn { display: inline-block; }
/* 51번(사용자 '조금 더 크게, 내가 말했던 것처럼 더 크게'): 빠망 상반신이 화면을 크게 차지(아랫단 26%는 화면 밑으로 내려 잘린 끝이 보이지 않게) · 말풍선은 머리 위 오른쪽(DM 꼴 그대로) */
#xc-world .xw-kk { bottom: calc(var(--xw-y) - var(--xw-s) * .26); }
#xc-world .xw-bub { left: calc(var(--xw-x) + var(--xw-s) * .4); bottom: calc(var(--xw-y) + var(--xw-s) * .7); max-width: min(320px, calc(100vw - var(--xw-x) - var(--xw-s) * .4 - 16px)); }   /* 머리털 오른쪽 · 부리 위 */
#xc-world .xw-cap { top: 16%; }   /* 51번: 빠망이 커져 큰 글을 조금 위로(글자 130% · 넓은 화면에서 말풍선과 안 겹침) */
/* 53번: 빠망 큰 등장 크기 · 자리를 작업 J 큰 등장(#kb-hero 114번)과 같은 값으로(uicram.js world()가 --xw-* 를 줌). 슉 길 · 말풍선 꼴도 J 114번 값 */
#xc-world .xw-kk { left: var(--xw-bl); bottom: var(--xw-bb); transform-origin: 40% 80%; transform: translate(-55%, 45%) rotate(-10deg) scale(.82); filter: drop-shadow(0 14px 30px rgba(25, 27, 51, .3)); }
#xc-world.in .xw-kk { transform: none; transition: transform .48s cubic-bezier(.2, 1.25, .35, 1); }
#xc-world.out .xw-kk { transform: translate(-55%, 45%) rotate(-10deg) scale(.82); transition: transform .3s cubic-bezier(.55, 0, .9, .35); }
#xc-world .xw-bub { left: var(--xw-ul); bottom: var(--xw-ub); max-width: var(--xw-uw); padding: 9px 12px 10px; border-radius: 16px 16px 16px 5px; filter: drop-shadow(0 4px 12px rgba(110, 82, 255, .35)); }
#xc-world .xw-cap { left: calc(var(--xw-cl) + 24px); }
/* 54번(J 122번 1항): 큰 등장 말풍선은 꼬리 없는 DM 꼴(빠망 쪽 아래 귀퉁이만 4px, 안 여백 10 · 14px), 자리는 world()가 재어 줌 */
#xc-world .xw-bub { padding: 10px 14px; border-radius: 18px 18px 18px 4px; }

/* 57번(사용자 '날짜별 길 화면은 박스들이 없어서 헐벗은 느낌'): 날마다 상자(테 · 바탕). 시안 10판부터 바탕이 #E9EBF4라 날 사이 선(#E9EBEF)이 묻혀 보이지 않았음.
   지난 날은 옅게, 오늘은 그림자 · 노란 띠 그대로, 이정표(1회독 · 2회독 · 3회독)는 점선 상자 */
.xr-road.x6 > .xr-day + .xr-day { border-top: 0; margin-top: 8px; padding-top: 0; }
.xr-road.x6 > .xr-day:not(.mile):not(.fold):not(.gap) > .xr-box { background: var(--xc-card); border: 1px solid var(--xc-line); padding: 6px 10px 8px; box-shadow: 0 1px 2px rgba(20, 24, 40, .04); }
.xr-road.x6 > .xr-day.past:not(.fold) > .xr-box { background: color-mix(in srgb, var(--xc-card) 55%, transparent); box-shadow: none; }
.xr-road.x6 > .xr-day.on > .xr-box { border-color: transparent; box-shadow: 0 2px 10px rgba(20, 24, 40, .08); }
.xr-road.x6 > .xr-day.mile > .xr-box { border: 1px dashed color-mix(in srgb, var(--xc-ink) 20%, transparent); padding: 4px 10px; }
.xr-road.x6 > .xr-day .xr-date { padding-top: 7px; }
:root[data-mode="dark"] .xr-road.x6 > .xr-day:not(.mile):not(.fold):not(.gap) > .xr-box { box-shadow: none; }
/* 57번: 홈 '날짜 길' 카드(이번 주 줄 · 다음 2 · 3회독) */
.xh-next { margin-top: 14px; background: var(--xc-card); border-radius: var(--xc-r); padding: 6px 12px 10px; }
.xh-nh { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 2px; border: 0; background: none; font: inherit; color: var(--xc-ink); cursor: pointer; text-align: left; }
.xh-nh b { flex: 1; font-size: 1rem; font-weight: 800; }
.xh-nh svg:last-child { color: var(--xc-mut); }
.xh-next .xh-week { margin-bottom: 6px; }
.xh-next .xr-road { margin: 4px 0 0; padding: 0; }
.xh-next .xr-road.x6 > .xr-day.mile > .xr-box { border-color: color-mix(in srgb, var(--xc-ink) 16%, transparent); }
/* 59번 ③: 수능 다음 날부터 홈의 '원래 홈으로 돌아가기'(오늘 카드 자리) */
.xh-endgo { margin-top: 16px; }
/* 60번: 수능 날 · 다음 날부터 말풍선 아래(가 지금까지 한 것 · 나 하늘 장면) */
.xh-rec { margin-top: 14px; background: var(--xc-card); border-radius: var(--xc-r); padding: 12px 14px 14px; }
.xh-rh b { font-size: 1rem; font-weight: 800; color: var(--xc-ink); }
.xh-rec ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.xh-rec li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; }
.xh-rec li + li { border-left: 1px solid var(--xc-line); }
.xh-rec li b { font-size: 1.5rem; font-weight: 900; color: var(--xc-ink); font-variant-numeric: tabular-nums; }
.xh-rec li b i { font-style: normal; font-size: .875rem; font-weight: 700; color: var(--xc-mut); }
.xh-rec li small { font-size: .75rem; font-weight: 600; color: var(--xc-mut); }
:root.xc-lit-a:not([data-look="paper"]) #xc .xh-rec, :root.xc-lit-a:not([data-look="paper"]) #xc .xh-sky { box-shadow: 0 1px 0 rgba(20, 24, 70, .06), 0 10px 24px -14px rgba(20, 24, 70, .45); border: 1px solid rgba(40, 46, 120, .1); }
:root.xc-lit-a:not([data-look="paper"])[data-mode="dark"] #xc .xh-rec, :root.xc-lit-a:not([data-look="paper"])[data-mode="dark"] #xc .xh-sky { border-color: rgba(174, 180, 255, .1); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8); }
.xh-sky { margin-top: 14px; border-radius: var(--xc-r); overflow: hidden; height: 190px; }
.xh-sky svg { display: block; width: 100%; height: 100%; }
.xh-sky.dawn .s0 { stop-color: #CFE1FF; } .xh-sky.dawn .s1 { stop-color: #FFE7C2; }
.xh-sky.dawn .sun { fill: #FFC24A; opacity: .9; } .xh-sky.dawn .hill { fill: #C9D3F0; }
.xh-sky.dawn .cl ellipse { fill: rgb(255, 255, 255); opacity: .9; }
:root[data-mode="dark"] .xh-sky.dawn .s0 { stop-color: #27306B; } :root[data-mode="dark"] .xh-sky.dawn .s1 { stop-color: #8C5A6E; }
:root[data-mode="dark"] .xh-sky.dawn .hill { fill: #1C2250; } :root[data-mode="dark"] .xh-sky.dawn .cl ellipse { opacity: .35; }
.xh-sky.night .s0 { stop-color: #1B2160; } .xh-sky.night .s1 { stop-color: #3A3F8F; }
.xh-sky.night .moon { fill: #FFE6A3; } .xh-sky.night .moon-cut { fill: #1F2566; }
.xh-sky.night .st { fill: rgb(255, 255, 255); } .xh-sky.night .cl ellipse { fill: rgb(255, 255, 255); opacity: .14; }
.xh-sky .cl { animation: xs-drift 26s ease-in-out infinite alternate; } .xh-sky .cl.c2 { animation-duration: 34s; animation-direction: alternate-reverse; } .xh-sky .cl.c3 { animation-duration: 20s; }
.xh-sky .sun { animation: xs-rise 6s ease-out both; transform-origin: 214px 150px; }
.xh-sky .st { animation: xs-tw 3.2s ease-in-out infinite; } .xh-sky .st.s1 { animation-delay: 1.1s; } .xh-sky .st.s2 { animation-delay: 2.2s; }
@keyframes xs-drift { from { transform: translateX(-14px); } to { transform: translateX(18px); } }
@keyframes xs-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes xs-tw { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xh-sky .cl, .xh-sky .sun, .xh-sky .st { animation: none; } }
/* 60번(사용자 '밝은 버전에서 … 세로선이라든지 가로선이라든지 … 없어'): 15번에서 밝게 바탕을 #E9EBF4로 짙게 한 뒤 선 값(#E9EBEF)이 그대로라
   칸 사이 선 · 상자 테가 바탕과 흰 칸 모두에서 묻혔다. 밝게(네온 가)에서만 선을 한 단계 짙게. 어둡게는 그대로 */
:root.xc-lit-a:not([data-look="paper"]):not([data-mode="dark"]) #xc { --xc-line: #D5D9E6; }
:root.xc-lit-a:not([data-look="paper"]) #xc .xh-next { box-shadow: 0 1px 0 rgba(20, 24, 70, .06), 0 10px 24px -14px rgba(20, 24, 70, .45); border: 1px solid rgba(40, 46, 120, .1); }
:root.xc-lit-a:not([data-look="paper"])[data-mode="dark"] #xc .xh-next { border-color: rgba(174, 180, 255, .1); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8); }
/* 61번: 끈 홈 왼쪽 위 칩 세로 자리는 홈 톱니 가운데(uicram.js alignY가 --xc-offy를 잼). 재기 전에는 앞 값 15px */
#xc-offtg { top: var(--xc-offy, 15px); }
/* 64번 1 · 3항: 수능 날 · 다음 날 홈은 하늘(그 시간 배경) 한 장 위에 빠망 · 말풍선 · 지금까지 한 것(60번 가 · 나를 합침, 까망 말 줄이 허전하지 않게) */
.xh-scene { position: relative; margin-top: 12px; border-radius: var(--xc-r); overflow: hidden; padding: 14px 14px 14px; isolation: isolate; }
.xh-scene > .xs-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.xh-scene .xh-talk { margin: 4px 0 14px; min-height: 80px; align-items: center; }
#xc.x4 .xh-scene .xh-kk, #xc.x4 .xh-scene .xh-kk .kkm { width: 72px !important; height: 72px !important; }
.xh-scene .xh-rec { margin-top: 0; background: color-mix(in srgb, var(--xc-card) 78%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--xc-card) 40%, transparent); }
.xh-scene.dawn .s0 { stop-color: #CFE1FF; } .xh-scene.dawn .s1 { stop-color: #FFE7C2; }
.xh-scene.dawn .sun { fill: #FFC24A; opacity: .85; } .xh-scene.dawn .hill { fill: #C9D3F0; } .xh-scene.dawn .cl ellipse { fill: rgb(255, 255, 255); opacity: .9; }
:root[data-mode="dark"] .xh-scene.dawn .s0 { stop-color: #27306B; } :root[data-mode="dark"] .xh-scene.dawn .s1 { stop-color: #8C5A6E; }
:root[data-mode="dark"] .xh-scene.dawn .hill { fill: #1C2250; } :root[data-mode="dark"] .xh-scene.dawn .cl ellipse { opacity: .35; }
.xh-scene.night .s0 { stop-color: #1B2160; } .xh-scene.night .s1 { stop-color: #3A3F8F; }
.xh-scene.night .moon { fill: #FFE6A3; } .xh-scene.night .moon-cut { fill: #1F2566; }
.xh-scene.night .st { fill: rgb(255, 255, 255); } .xh-scene.night .cl ellipse { fill: rgb(255, 255, 255); opacity: .14; }
.xh-scene.night .xh-rec { background: color-mix(in srgb, #12153F 62%, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.xh-scene.night .xh-rec .xh-rh b, .xh-scene.night .xh-rec li b { color: rgb(255, 255, 255); }
.xh-scene.night .xh-rec li b i, .xh-scene.night .xh-rec li small { color: rgba(255, 255, 255, .72); }
.xh-scene.night .xh-rec li + li { border-left-color: rgba(255, 255, 255, .16); }
.xh-scene .cl { animation: xs-drift 26s ease-in-out infinite alternate; } .xh-scene .cl.c2 { animation-duration: 34s; animation-direction: alternate-reverse; } .xh-scene .cl.c3 { animation-duration: 20s; }
.xh-scene .sun { animation: xs-rise 6s ease-out both; transform-origin: 236px 96px; }
.xh-scene .st { animation: xs-tw 3.2s ease-in-out infinite; } .xh-scene .st.s1 { animation-delay: 1.1s; } .xh-scene .st.s2 { animation-delay: 2.2s; }
:root.xc-lit-a:not([data-look="paper"]) #xc .xh-scene { box-shadow: 0 1px 0 rgba(20, 24, 70, .06), 0 10px 24px -14px rgba(20, 24, 70, .45); }
@media (prefers-reduced-motion: reduce) { .xh-scene .cl, .xh-scene .sun, .xh-scene .st { animation: none; } }
/* 64번 4항: 수능 다음 날 '수고하셨습니다.' 한 줄과 '홈으로 돌아가기' */
.xh-endgo { flex-direction: column; align-items: center; gap: 8px; }
.xh-endmsg { margin: 0; font-size: .9375rem; font-weight: 800; color: var(--xc-ink); text-align: center; }
/* 64번 1항 ②: 날짜 길. 날짜와 상자 사이 세로선(이어지는 줄), 날짜마다 가는 가름 선, 오늘 날짜는 테두리로. 오늘 상자의 왼쪽 노란 선 · 노란 테는 쓰지 않음 */
.xr-road.x6 { position: relative; }
.xr-road.x6 > .xr-day { grid-template-columns: 48px 1fr; gap: 0 14px; }
.xr-road.x6 > .xr-day::before { content: ""; position: absolute; left: 55px; top: 0; bottom: -8px; width: 2px; border-radius: 1px; background: color-mix(in srgb, var(--xc-ink) 14%, transparent); }
.xr-road.x6 > .xr-day:last-child::before { bottom: 50%; }
.xr-road.x6 > .xr-day:first-child::before { top: 18px; }
.xr-road.x6 > .xr-day::after { content: ""; position: absolute; left: 50px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--xc-bg); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--xc-ink) 26%, transparent); }
.xr-road.x6 > .xr-day.past::after { background: color-mix(in srgb, var(--xc-ink) 26%, var(--xc-bg)); box-shadow: none; }
.xr-road.x6 > .xr-day.on::after { background: #5B3DF5; box-shadow: 0 0 0 3px color-mix(in srgb, #5B3DF5 22%, transparent); }
:root[data-mode="dark"] .xr-road.x6 > .xr-day.on::after { background: #B4A2FF; box-shadow: 0 0 0 3px rgba(180, 162, 255, .22); }
.xr-road.x6 > .xr-day > .xr-box { margin-left: 12px; }
.xr-road.x6 > .xr-day + .xr-day { margin-top: 8px; padding-top: 8px; border-top: 0; }
.xr-road.x6 > .xr-day + .xr-day > .xr-date, .xr-road.x6 > .xr-day + .xr-day > .xr-box { position: relative; }
.xr-road.x6 > .xr-day + .xr-day { background: linear-gradient(color-mix(in srgb, var(--xc-ink) 10%, transparent), color-mix(in srgb, var(--xc-ink) 10%, transparent)) 0 0 / 46px 1px no-repeat; }
.xr-road.x6 > .xr-day.on > .xr-date { border-radius: 10px; padding: 6px 0; align-self: start; background: color-mix(in srgb, #5B3DF5 10%, var(--xc-card)); box-shadow: 0 4px 12px -6px rgba(91, 61, 245, .45); }   /* (작업 U 74번, 사용자 고침 방향 59줄) 오늘 날짜는 테두리 없이 옅은 보라 바탕 + 그림자 */
:root[data-mode="dark"] .xr-road.x6 > .xr-day.on > .xr-date { background: rgba(180, 162, 255, .14); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .7); }
:root.xc-lit-a #xc .xr-road.x6 > .xr-day.on > .xr-box { background: rgba(52, 58, 184, .07); box-shadow: 0 10px 24px -12px rgba(20, 24, 90, .55); }
:root.xc-lit-a[data-mode="dark"] #xc .xr-road.x6 > .xr-day.on > .xr-box { background: rgba(140, 150, 255, .1); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .85); }   /* (작업 U 74번) 오늘 칸도 테 없이(71번 결) */
:root[data-look="paper"] .xr-road.x6 > .xr-day.on > .xr-box { border-left: 0; }

/* 64번 1항 ④: 벼락치기 홈에서 말 자리가 화면 밖으로 나가 떠 있는 까망 버튼(작업 J 고정 자리)이 나온 동안(html.xc-perch-out)만, 벼락치기 판(#xc 7000) 위 · 콰광 장면(7100 넘음) 아래에 */
html.xc-show.xc-perch-out #kk-buddy { z-index: 7050; }
/* 64번: 빠망 말풍선은 붙은 자리 버튼(숨김, .xh-say .kb-dock > .kb-btn) 몫 58px을 비우지 않고 말 자리 폭을 다 씀
   ('아름답게 빛날 것이다, 까망.' · 글자 130% '수험표 · 신분증은 꼭 챙기고'가 한 줄에) */
#xc .xh-say .kb-dock .kb-bubble { max-width: 100%; }
/* (작업 U 70번, D 86번 ⑮) 넓은 화면(태블릿 폭, html.kk-tab)에서 벼락치기 판 · 아래 단추 줄 · 시트를 기본 홈 · 아래 메뉴와 같은 폭으로(600px에 묶여 양옆 가장자리가 보였음) */
html.kk-tab { --xc-maxw: calc(600px * var(--kk-tab, 1)); }
/* (작업 U 75번, 사용자 11/3 13:18) 하루 홈 위쪽 두 안. 진도는 소단원 25칸(단원 다섯 묶음), 빠망은 숨 쉬듯 살짝 움직임 */
.xh-pdw { display: flex; align-items: center; gap: 10px; }
.xh-pd { flex: 1; min-width: 0; display: flex; gap: 6px; }
.xh-pu { flex: 1; display: flex; gap: 2px; }
.xh-pu i { flex: 1; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--xc-ink) 10%, transparent); }
.xh-pu i.on { background: linear-gradient(180deg, #6A4BFF, #4A3BE0); }
.xh-pu i.td { background: color-mix(in srgb, #6A4BFF 30%, transparent); }
:root[data-mode="dark"] .xh-pu i { background: rgba(255, 255, 255, .12); } :root[data-mode="dark"] .xh-pu i.on { background: linear-gradient(180deg, #A994FF, #7C66FF); } :root[data-mode="dark"] .xh-pu i.td { background: rgba(169, 148, 255, .35); }
:root[data-look="paper"] .xh-pu i.on { background: var(--xc-ink); }
.xh-pdn { flex: none; font-size: .7812rem; font-weight: 700; color: var(--xc-mut); font-variant-numeric: tabular-nums; white-space: nowrap; } .xh-pdn b { color: var(--xc-ink); }
.xh-live { animation: xh-breathe 3.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes xh-breathe { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-2deg); } 60% { transform: translateY(0) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .xh-live { animation: none; } }
/* 가: 한 장 카드(D-day · 진도 칸 · 1회독 줄 · 빠망 말) */
.xt-a .xh-hero.xh-card { margin-top: 6px; padding: 16px 16px 6px; border-radius: var(--xc-r); background: var(--xc-card); box-shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 10px 26px -18px rgba(20, 24, 90, .45); }
.xt-a .xh-card .xh-talk { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--xc-line); min-height: 0; }
.xt-a .xh-card + .xh-today { margin-top: 12px; }
:root[data-look="paper"] .xt-a .xh-hero.xh-card { background: transparent; box-shadow: none; border-radius: 0; padding: 10px 0 4px; }
/* 나: 빠망 말이 위, D-day · 진도 칸 · 1회독 줄은 '오늘' 카드 머리에 붙임 */
.xt-b > .xh-talk { margin: 10px 0 12px; }
.xt-b .xh-hero.xh-cap { padding: 14px 14px 12px; border-radius: var(--xc-r) var(--xc-r) 0 0; background: color-mix(in srgb, #5B3DF5 7%, var(--xc-card)); }
.xt-b .xh-cap + .xh-today { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
:root[data-mode="dark"] .xt-b .xh-hero.xh-cap { background: color-mix(in srgb, #8C78FF 10%, var(--xc-card)); }
:root[data-look="paper"] .xt-b .xh-hero.xh-cap { background: transparent; border-radius: 0; padding: 10px 0; }
/* (작업 U 75번, 사용자 11/3 13:18 '왔냐 까망 할 때 까망이 왼쪽 아래 크게 떠 있어야 된다니까') 다시 켤 때 장면: 빠망을 화면 왼쪽 아래에 크게(처음 들어올 때 새 세상 장면과 같은 자리), 말풍선은 그 머리 오른쪽 */
#xc-line { place-items: stretch; }
#xc-line .xl-box { position: absolute; left: max(4px, calc(50% - var(--xc-maxw, 600px) / 2 + 4px)); right: max(12px, calc(50% - var(--xc-maxw, 600px) / 2 + 12px)); bottom: 76px; margin: 0; align-items: flex-start; gap: 0; }
#xc-line .xl-kk { width: clamp(150px, 44vw, 250px); height: clamp(150px, 44vw, 250px); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); }
#xc-line .xl-say { margin-top: 6%; margin-left: -6px; }

/* (작업 U 75번, 사용자 11/3 13:18 '진단 결과에서 너무 단색이 강하고 박스를 조금 짰죠'): 진한 단색 막대 · 알약 꼬리표 · 테두리 칩 · 회색 상자를 덜어 냄.
   맞힌 수 고리는 보라 → 파랑 그라데이션, 단원 막대는 얇은 그라데이션, 수준은 글자 빛깔(바탕 알약 없음), '공부 차례'는 상자 없이 위 가는 줄, 차례 칩은 테두리 없이 옅은 바탕 */
.xd-top > div { background: conic-gradient(from -90deg, #7A5CFF 0, #3F7BEA var(--p, 0%), var(--xc-fill2) var(--p, 0%) 100%); }
.xd-units .xd-lv, .xd-units .xd-lv.bad, .xd-units .xd-lv.warn, .xd-units .xd-lv.brand, .xd-units .xd-lv.ok { height: auto; padding: 0; background: none !important; font-size: .75rem; }
.xd-bar { height: 6px; border-radius: 3px; }
.xd-bar.bad i { background: linear-gradient(90deg, #F29387, #D4483C); } .xd-bar.warn i { background: linear-gradient(90deg, #F6BE7A, #E8861B); }
.xd-bar.brand i { background: linear-gradient(90deg, #8FA2FF, #3F58E5); } .xd-bar.ok i { background: linear-gradient(90deg, #7FD3A6, #1E9A5C); }
.xd-ord { background: transparent; border-radius: 0; padding: 14px 2px 0; border-top: 1px solid var(--xc-line); }
.xd-ord ol li.w { background: color-mix(in srgb, #D4483C 9%, transparent); box-shadow: none; color: color-mix(in srgb, #D4483C 70%, var(--xc-ink)); }
:root[data-mode="dark"] .xd-ord ol li.w { background: rgba(255, 140, 128, .12); color: #FFB3A9; }
:root[data-look="paper"] .xd-top > div { background: conic-gradient(var(--xc-ink) 0 var(--p, 0%), var(--xc-line) var(--p, 0%) 100%); }
/* (75번 4항) 날짜 길 날짜 칸: 44px 고정이면 글자를 키웠을 때 '~10/25'가 칸 밖(왼쪽 끝)으로 나가고 오른쪽 칸과 붙음. 글자 크기를 따라 넓히고 오른쪽 사이를 12px로 */
.xr-road.x6 > .xr-day { grid-template-columns: calc(2.75rem + 2px) minmax(0, 1fr); column-gap: 12px; }
.xr-road.x6 .xr-date { white-space: nowrap; }
/* (75번 6항, 사용자 11/3 '홈으로 돌아가기 밑에 노란색 줄') 수능 뒤 '홈으로 돌아가기'는 끝맺음 단추라 벼락치기 단추의 노랑 밑줄 · 번개 없이 남색 단추만 */
:root.xc-lit-a #xc #xc-end:not(.fin) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(20, 24, 90, .85); }
:root.xc-lit-a #xc #xc-end:not(.fin)::before { content: none; }

/* (78번, 사용자 '벼락치기 온걸 환영한다 너무 아래로 길게 내려갔어 · 이런 거 주의해') 하루 홈 말풍선은 빠망 옆 남은 폭을 다 쓴다(작업 J 붙임 말풍선이 비워 두던 왼쪽 58px를 쓰지 않음) → 줄 수가 줄어 세로로 길게 내려가지 않음 */
.xh-say .kb-dock .kb-bubble { left: 0; max-width: 100%; }
/* (87번) 78번의 지우는 동안 글 끝 커서(세로 줄)는 걷음: 사용자 '선 긋고 지우는 게 어색' */
/* (78번) 맞힌 몫 고리도 게이지처럼: 50% 아래 붉게 · 70% 아래 주황(단원 막대와 같은 빛깔) */
.xd-top > div.lo { background: conic-gradient(from -90deg, #F29387 0, #D4483C var(--p, 0%), var(--xc-fill2) var(--p, 0%) 100%); }
.xd-top > div.mid { background: conic-gradient(from -90deg, #F6BE7A 0, #E8861B var(--p, 0%), var(--xc-fill2) var(--p, 0%) 100%); }

/* 74번(사용자 11/3 스크롤 때 말풍선 · 빠망이 부자연스럽게 사라짐): 홈 빠망 말풍선(붙은 말)이 위 머리 줄(.xh-top z 5) 위로 뜨지 않게 머리 줄 아래에 둠.
   말 자리는 스크롤에 맞춰 옅어지며 살짝 처짐(uicram.js perch, 옅어지는 기준점은 왼쪽 가운데) */
#xc .xh-say .kb-dock { --kb-lift-z: 2; }
#xc .xh-talk { transform-origin: 0 50%; will-change: opacity, transform; }
/* 74번(사용자 11/3 '엔터 치고 수능까지 수고 많으셨습니다 … 홈으로 돌아가기랑 간격'): 끝맺음 말을 두 줄(낱말을 가르지 않음), 단추와 사이를 띄움 */
.xh-endgo .xh-endmsg { margin: 0 0 20px; line-height: 1.5; }   /* .xh-go.x4는 display: block이라 gap 대신 아래 여백 */
.xh-endmsg > span { display: block; white-space: nowrap; }
/* (작업 U · 사용자 11/4 '대화가 아래로 너무 길어지잖아. 나눠 보내든 줄 빈곳 너무 줄이지 말아 … 한 문장 말하고 다음 문장 갈 땐 조금 쉬어야') 처음 장면 환영 말은
   한 말풍선에 세 문장을 쌓지 않고 문장마다 따로 보내는 DM 말풍선 셋(위로 쌓임). 줄 사이는 그대로(1.55), 말풍선 사이 6px, 빠망 쪽 맨 아래 말풍선만 왼쪽 아래 귀퉁이 4px.
   '확인'은 말풍선 밖 오른쪽 아래(흰 바탕 위라 테 · 글자를 보라로) */
#xc-world .xw-bub { padding: 0; border-radius: 0; background: none; filter: none; color: inherit; }
#xc-world .xw-bub p { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
#xc-world .xw-bub p span { box-sizing: border-box; width: max-content; max-width: 100%; min-height: 0; padding: 9px 14px 10px; border-radius: 18px; color: rgb(255, 255, 255); background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, var(--kb-n1, #4A4BF5), var(--kb-n2, #7B3FF2)); filter: drop-shadow(0 4px 12px rgba(110, 82, 255, .3)); animation: xwPop .22s ease-out both; }
#xc-world .xw-bub p span:empty { display: none; }
#xc-world .xw-bub p span:last-of-type, #xc-world .xw-bub p span:has(+ span:empty) { border-bottom-left-radius: 4px; }
@keyframes xwPop { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
#xc-world .xw-acts { margin-top: 8px; }
#xc-world .xw-ok { border-color: color-mix(in srgb, var(--kb-n2, #7B3FF2) 45%, transparent); background: rgba(255, 255, 255, .85); color: var(--kb-n2, #6A3BE0); }
#xc-world .xw-ok:focus-visible { outline-color: var(--kb-n2, #7B3FF2); }
@media (prefers-reduced-motion: reduce) { #xc-world .xw-bub p span { animation: none; } }
/* (작업 J 알림 11/4) 나오는 중에 눌러 끝 꼴로 바꿀 때 움직임은 끝 자리로 바로(J 큰 등장과 같은 결) */
#xc-world.xw-snap .xw-kk, #xc-world.xw-snap .xw-cap, #xc-world.xw-snap .xw-cap span, #xc-world.xw-snap .xw-bub, #xc-world.xw-snap .xw-bub p span, #xc-world.xw-snap .xw-acts { transition: none !important; animation: none !important; }
#xc-line.xl-snap .xl-box, #xc-line.xl-snap .xl-say, #xc-line.xl-snap .xl-kk { transition: none !important; animation: none !important; }
/* (작업 U 95번) 처음 장면 큰 글: 한 줄 안에 까망 글(.xw-a) · 빠망 글(.xw-n, 빠망 색) · 깜빡이는 입력 막대(.xw-car). 막대는 치고 지우는 동안(.ty)만 */
#xc-world .xw-cap .xw-line { display: block; min-height: 1.32em; }
#xc-world .xw-cap .xw-line span { display: inline; min-height: 0; }
#xc-world .xw-cap .xw-n { color: #A06F00; }
#xc-world .xw-car { display: inline-block; width: 3px; height: 1.02em; margin-left: 2px; vertical-align: -.14em; border-radius: 1px; background: #191B33; opacity: 0; }
#xc-world.ty .xw-car { opacity: 1; animation: xwCar 1s steps(1, end) infinite; }
@keyframes xwCar { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #xc-world.ty .xw-car { animation: none; } }
#xc-offtg { top: calc(var(--xc-offy, 15px) - var(--xc-offs, 0px)); }   /* 작업 Y 20번: 홈을 내린 만큼(uicram.js follow가 --xc-offs를 둠) 머리와 함께 올라감 */
:root.dp-show #xc-offtg { top: var(--xc-offy, 15px); }   /* 심화 홈은 머리가 위에 붙어 있어 칩도 그 자리 */

/* 작업 Y 20번 2항: '왔냐, 까망…'에서 '까망'을 줄 그어 지우개로 지움(첫 줄 안 덩이는 줄 안에 이어 씀) */

/* 작업 Y 21번(사용자 11/3 '화면이랑 하단 메뉴바가 안 맞네', PC 넓은 창): 앱 칸은 태블릿 · 넓은 창에서 600px × 배율(uitab --kk-tab, 1.12 · 1.18)로 넓어지는데
   벼락치기 칸 · 아래 붙는 층 · 끈 홈 칩이 600px에 묶여 아래 메뉴 막대(같은 셈)보다 좁았다. 같은 셈으로 맞추고, 칸 안 스크롤 막대는 얇게 · 바탕 없이(칸 끝이 어긋나 보이지 않게) */
#xc, .xc-dock, #xc .xh-sheet { max-width: calc(600px * var(--kk-tab, 1)); }
#xc-offtg { left: calc(50% - min(300px * var(--kk-tab, 1), 50%) + 12px * var(--kk-tab, 1)); }
#xc { scrollbar-width: thin; scrollbar-color: rgba(25, 27, 51, .22) transparent; }
:root[data-mode="dark"] #xc { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
#xc::-webkit-scrollbar { width: 6px; } #xc::-webkit-scrollbar-track { background: transparent; } #xc::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(25, 27, 51, .22); }
:root[data-mode="dark"] #xc::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); }
/* 81번(학생 문의 · 사용자 11/6): 오늘 몫을 다 끝낸 뒤에만 '내일 몫 미리 풀기'. 위 주 단추와 같은 폭(한 창의 단추 줄 가로 길이를 맞춤), 끝낸 회색 단추와 다르게 옅은 고른 빛(누를 수 있게 보임) */
#xc .xh-go.x4 .xh-ahead { display: flex; width: 100%; margin-top: 8px; gap: 4px; background: var(--xc-sel, var(--brand-soft)); color: var(--xc-selink, var(--brand-ink)); box-shadow: inset 0 0 0 1px var(--xc-selline, var(--brand)); border-color: transparent; }
#xc .xh-go.x4 .xh-ahead svg { width: 16px; height: 16px; }
/* 오늘로 당긴 칸: 이름 옆 작은 '미리' 칩 */
#xc .xh-pre { display: inline-flex; align-items: center; height: 1.5em; margin-left: 4px; padding: 0 .5em; border-radius: .75em; vertical-align: .1em; font-style: normal; font-size: .6875rem; font-weight: 800; color: var(--xc-selink, var(--brand-ink)); background: var(--xc-sel, var(--brand-soft)); }
/* 84번(사용자 11/6 '4-5 노트 보기 그 아래 노란색 선도 좀 별로' · '박스 옆이나 아래에다가 선 그어가지고 … 체크된 것처럼 하는 거를 내가 디자인 안 좋아해'):
   큰 단추 아래 금색 선(inset -2px)과 노란 번짐을 뺀다. 남보라 바탕 · 번개 아이콘 · 떠오른 그림자는 그대로. 노트 띠 단추도 같은 선을 뺌.
   지금 칸 왼쪽 노란 띠는 #394(작업 U 70 · 71번) 판에서 이미 빠짐(테 없이 옅은 바탕 + 그림자) */
:root.xc-lit-a #xc .xh-main:not(.fin) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(20, 24, 90, .85); }
.xn-band button.go { box-shadow: none; }
/* 87번: 홈 위 빠망을 누르면 까망 대화 창. 누를 수 있게 손가락 · 살짝 눌림(앱 단추와 같은 결, 움직임 줄이기면 눌림 없음) */
#xc .xh-kk[role="button"] { cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
#xc .xh-kk[role="button"]:active { transform: scale(.94); }
#xc .xh-kk[role="button"]:focus-visible { outline: 2px solid var(--brand, #6A3FF0); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { #xc .xh-kk[role="button"] { transition: none; } #xc .xh-kk[role="button"]:active { transform: none; } }
/* 90번: 벼락치기 홈 맨 위 빠망 말풍선이 빠망보다 아래로 쏠려 보이던 것(360에서 말풍선 가운데가 8 ~ 10px 아래) → 세로 가운데를 빠망 그림 가운데에 맞춤. 글자를 키워 말풍선이 길어져도 위아래로 고르게 자람 */
#xc .xh-card .xh-talk { align-items: center; }
#xc .xh-card .xh-talk .xh-say { padding-top: 0; }
/* 93번(사용자 '빠망이 또 동그라미 안에서 조금 왼쪽 위로'): 빠망 선 그림은 옷자락이 아래 · 오른쪽으로 무거워 까망 · 똘망보다 2px쯤 아래에 앉음 → 버튼 얼굴만 왼쪽 위로(30px에서 약 1 · 2px) */
#kk-buddy .kb-face.xc-face svg { translate: 5.5% -6.5%; }   /* 99번 사용자 '빠망이는 살짝 왼쪽': 화면에서 0.8px쯤 왼쪽(뒤집혀 양수가 왼쪽) */   /* 98번: 버튼 얼굴은 좌우로 뒤집혀 있어(작업 J scale -1 1) 93번 -3%가 오히려 오른쪽으로 밀었음 → 앱 버튼에서 잰 잉크 가운데를 까망과 맞춤 */
/* 96번 까딱 기울어짐은 작업 J #626(kbPeekNod가 --kb-fr 바탕, 유리 판 0deg)이 맡아 X 줄(--kb-pr 0deg)은 뺌(104번 · J 11/7 알림) */
/* 103번 3항: 모드 홈 머리 줄 알림 · 설정 그림 빛깔과 인사말 빛깔을 기본 홈과 같은 테마 값으로(자리 · 꼴은 uicram.js greet · alignHead가 기본 홈에서 옮김) */
#xc .xh-ri .kw-ib, #dp .xg-ib { color: var(--ink-2); }
:is(#xc, #dp) .xg-greet .k98-gr, :is(#xc, #dp) .xg-greet h2 { color: var(--ink); }
:is(#xc, #dp) .xg-greet .kk-greet-sub { color: var(--muted); }
:is(#xc, #dp) .xg-greet > div > div:first-child { background: color-mix(in srgb, var(--ink) 5%, transparent) !important; color: var(--muted) !important; }
/* 111번: 벼락치기 홈 까망고사 진행 중 칸(작업 G KkGosaSlot) — 인사말과 D-day 카드 사이, 카드 폭 그대로 */
#xc .k181.xg-gosa { margin: 0 0 14px; }
/* 115번(사용자 11/9 '말풍선이 너무 위에 떠 있다. 빠망이를 조금 올리고 말풍선을 조금 내려 둘이 붙어 보이게'): D-day 카드 안 빠망 말 자리.
   빠망을 4px 올리고 말풍선을 8px 내려, 말풍선 위 모서리(DM 꼴의 덜 둥근 쪽)가 빠망 부리 높이에 오게 함. 사이는 10px로 조금 좁힘 */
#xc .xt-a .xh-card .xh-talk { gap: 10px; }
#xc .xt-a .xh-card .xh-talk .xh-kk { top: -4px; }   /* 자리만 올림(누름 때 작아지는 transform과 겹치지 않게) */
#xc .xt-a .xh-card .xh-talk .xh-say { padding-top: 14px; }

/* ===== 작업 X · 125 · 128번: 진단 결과 머리(맞힘 칸 + 먼저 학습할 단원 상자). 화면 배경 위 흰 판 한 겹, 판 안에 판을 또 치지 않음 ===== */
.xd-hd { padding: 6px 0 18px; }
.xd-fh { margin: 0 0 8px; font-size: .8125rem; font-weight: 700; line-height: 1.4; color: var(--xc-mut); }
.xd-sc, .xd-u1 { border: 1px solid color-mix(in srgb, var(--xc-line) 70%, transparent); border-radius: 16px; background: var(--xc-card); box-shadow: 0 1px 2px rgba(20, 24, 60, .05), 0 6px 18px -10px rgba(40, 40, 120, .18); }
:root[data-mode="dark"] .xd-sc, :root[data-mode="dark"] .xd-u1 { box-shadow: none; }
/* 맞힘 칸: 문항마다 한 칸(맞힘 주 색 · 틀림 옅은 빨강), 누르면 그 문항 */
.xd-sc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; margin: 0 0 18px; padding: 14px 16px; }
.xd-sct { font-size: .8125rem; font-weight: 700; color: var(--xc-mut); white-space: nowrap; }
.xd-scn { font-size: .875rem; font-weight: 700; color: var(--xc-ink2); white-space: nowrap; }
.xd-scn b { font-size: 1.25rem; font-weight: 800; color: var(--xc-ink); }
.xd-seg { grid-column: 1 / -1; display: flex; gap: 4px; min-width: 0; }
.xd-seg > i, .xd-seg > button { flex: 1; min-width: 0; height: 12px; border: 0; border-radius: 4px; padding: 0; }
.xd-seg > button { height: 26px; border-radius: 7px; font: inherit; font-size: .6875rem; font-weight: 800; line-height: 26px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.xd-seg > button:active { transform: scale(.94); }
.xd-seg > button:focus-visible { outline: 2px solid var(--xc-selline); outline-offset: 2px; }
.xd-seg .o { background: linear-gradient(90deg, #7A5CFF, #3F7BEA); color: rgb(255, 255, 255); } .xd-seg .x { background: #F6D3CE; color: #A3261B; }
:root[data-mode="dark"] .xd-seg .x { background: #4A2420; color: #FF9C90; }
/* 단원 상자: 단원 이름은 한 줄, '진단 % · 수준'은 상자 아래쪽에 맞춤. 좁으면 한 줄에 하나, 넓으면 둘 */
.xd-ub { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .xd-ub:not(.n1) { grid-template-columns: 1fr 1fr; } }
.xd-u1 { display: flex; align-items: stretch; gap: 12px; min-width: 0; padding: 12px 14px; }
.xd-u1 > span { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; }
.xd-u1.ok > span { justify-content: center; }   /* W 58 표 284: 약점 없음은 한 줄이라 가운데 */
.xd-u1 b { font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--xc-ink); white-space: nowrap; }
.xd-u1 b em { font-style: normal; font-size: .875rem; font-weight: 600; color: var(--xc-ink2); }
.xd-u1 small { font-size: .75rem; font-weight: 700; line-height: 1.35; color: var(--xc-mut); }
.xd-u1.bad small { color: #A3261B; } .xd-u1.warn small { color: #9A4E0F; } .xd-u1.ok small { color: var(--xc-ok); }
:root[data-mode="dark"] .xd-u1.bad small { color: #FF9C90; } :root[data-mode="dark"] .xd-u1.warn small { color: #FFB27A; }
.xd-uic { flex: none; align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--xc-sel); color: var(--xc-selink); }
.xd-uic .ic { width: 22px; height: 22px; }
.xd-u1.bad .xd-uic { background: #FDE3E0; color: #B3332A; } .xd-u1.warn .xd-uic { background: #FFEBD6; color: #A85A12; } .xd-u1.ok .xd-uic { background: var(--xc-oks); color: var(--xc-ok); }
:root[data-mode="dark"] .xd-u1.bad .xd-uic { background: #3D1A17; color: #FF9C90; } :root[data-mode="dark"] .xd-u1.warn .xd-uic { background: #3A2410; color: #FFB27A; }
:root[data-look="paper"] .xd-u1, :root[data-look="paper"] .xd-sc { border-radius: 4px; box-shadow: none; }
/* 129번 문항 보기: 맞힘 칸 바로 아래(같은 흰 판 안)에서 펼침. 판 안에 판을 또 치지 않고 바로 선지 상자. 배경은 어둡게 하지 않음 */
.xd-seg > button.cur { box-shadow: 0 0 0 2px var(--xc-card), 0 0 0 4px var(--xc-selline); }
.xd-qv { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.xd-qv.on { grid-template-rows: 1fr; }
.xd-qin { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .2s ease .06s; }
.xd-qv.on .xd-qin { opacity: 1; }
.xd-qv.on .xd-qin { position: relative; margin-top: 6px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--xc-line) 80%, transparent); }
.xd-qv.on .xd-qin::before { content: ""; position: absolute; top: -6px; left: calc(var(--cx, 50%) - 6px); width: 10px; height: 10px; transform: rotate(45deg); border-left: 1px solid color-mix(in srgb, var(--xc-line) 80%, transparent); border-top: 1px solid color-mix(in srgb, var(--xc-line) 80%, transparent); background: var(--xc-card); }
.xd-qv .xd-qin { padding-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .xd-qv, .xd-qin { transition: none; } }
.xd-qh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.xd-qh b { font-size: 1rem; font-weight: 800; color: var(--xc-ink); } .xd-qh small { font-size: .8125rem; font-weight: 700; color: var(--xc-mut); }
.xd-qq { font-size: .9375rem; font-weight: 500; line-height: 1.5; color: var(--xc-ink); word-break: keep-all; }
.xd-qo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.xd-qo li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 9px 14px; border: 1px solid color-mix(in srgb, var(--xc-line) 85%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--xc-fill) 55%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--xc-ink); word-break: keep-all; }
.xd-qo li em { flex: none; font-style: normal; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.xd-qo li.ok { border-color: #2E9A62; background: color-mix(in srgb, #2E9A62 10%, transparent); } .xd-qo li.ok em { color: #1E7A4C; }
.xd-qo li.bad { border-color: #D4483C; background: color-mix(in srgb, #D4483C 9%, transparent); } .xd-qo li.bad em { color: #A3261B; }
:root[data-mode="dark"] .xd-qo li.ok em { color: #6FD39C; } :root[data-mode="dark"] .xd-qo li.bad em { color: #FF9C90; }

/* ===== 작업 X · 143번(학생 문의 11/15): 지금 소단원 건너뛰기 · 차례 보기에서 고르기 · 다시 하기 ===== */
#xc .xh-go.x4 .xh-skip { display: block; margin: 10px auto 0; padding: 6px 12px; border: 0; background: none; font: inherit; font-size: .8125rem; font-weight: 700; color: var(--xc-mut); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#xc .xh-go.x4 .xh-skip:focus-visible { outline: 2px solid var(--xc-selline, var(--brand)); outline-offset: 2px; border-radius: 8px; }
#xc .xh-pickrow { display: flex; justify-content: center; margin: 0 0 10px; }
#xc .xh-pick { padding: 7px 14px; border: 1px solid var(--xc-line); border-radius: 999px; background: var(--xc-card); font: inherit; font-size: .8125rem; font-weight: 700; color: var(--xc-ink); cursor: pointer; }
#xc .xh-pick[aria-pressed="true"] { border-color: var(--xc-selline, var(--brand)); background: var(--xc-sel, var(--brand-soft)); color: var(--xc-selink, var(--brand-ink)); }
#xc .xh-unit li.skip span, #xc .xh-unit li.skip b { color: var(--xc-mut); text-decoration: line-through; text-decoration-thickness: 1px; }
#xc .xh-unit li small .xh-unskip, #xc .xh-unit li small .xh-skp { margin-left: 6px; padding: 3px 9px; border: 1px solid var(--xc-line); border-radius: 999px; background: var(--xc-card); font: inherit; font-size: .6875rem; font-weight: 800; color: var(--xc-ink); cursor: pointer; white-space: nowrap; }
#xc .xh-unit li small .xh-skp { margin-left: 0; }
#xc .xh-unit li.skip small { white-space: nowrap; }

