
/* ===== 작업 O · 30 · 31번 3 · 4항: 빈곤 계산기(uipvc.js). 창(#app-sheet) 안 꼴 =====
   31번(사용자 '인터페이스가 너무 구려'): 앱 결(kkds.css)로 다시. 테두리 한 줄 카드 · 모서리 8/12/16px · 글자 단계(--kk-fs-*) · 그림자 없음.
   입력은 표처럼 줄을 나눈 한 상자 안의 가벼운 문장 줄, 결과는 차분한 카드 하나(판정 한 줄 + 근거 두 줄 + 가는 가로 막대), 큰 막대 그림은 접어 둠 */
#app-sheet .pvc { --pvc-a: var(--bad); --pvc-r: var(--brand); --pvc-b: color-mix(in srgb, var(--kk-accent) 72%, var(--card)); --pvc-o: color-mix(in srgb, var(--kk-accent) 32%, var(--card)); --pvc-n: var(--surface);
  font-size: var(--kk-fs-3); color: var(--ink); }
:root[data-mode="dark"] #app-sheet .pvc { --pvc-r: var(--brand-ink); --pvc-b: color-mix(in srgb, var(--kk-accent) 85%, var(--card)); --pvc-o: color-mix(in srgb, var(--kk-accent) 45%, var(--card)); }
#app-sheet .pvc-lead { margin: 0 0 var(--kk-sp-3); color: var(--muted); font-size: var(--kk-fs-2); line-height: 1.5;   /* 94번: 설명 · 안내 행간 1.5 이하(공통 값 1.55 대신) */ word-break: keep-all; }

/* 입력: 한 상자 안 줄마다 문장 한 줄 */
#app-sheet .pvc-rows { border: 1px solid var(--line); border-radius: var(--kk-r-l); background: var(--card); overflow: hidden; }
#app-sheet .pvc-row { display: grid; grid-template-columns: 18px 1fr 32px; gap: var(--kk-sp-2); align-items: center; padding: 10px 8px 10px 12px; }
#app-sheet .pvc-row + .pvc-row { border-top: 1px solid var(--line); }
#app-sheet .pvc-row.bad { background: color-mix(in srgb, var(--bad) 6%, var(--card)); }
#app-sheet .pvc-no { font-size: var(--kk-fs-1); font-weight: var(--kk-fw-ui); color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; line-height: 36px; }
#app-sheet .pvc-row.bad .pvc-no { color: var(--bad); }
#app-sheet .pvc-sen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
#app-sheet .pvc-u { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
#app-sheet .pvc-j { font-size: var(--kk-fs-2); color: var(--ink-2, var(--ink)); white-space: nowrap; }
#app-sheet .pvc-suf { white-space: normal; word-break: keep-all; }
#app-sheet .pvc-pill { position: relative; display: inline-flex; max-width: 100%; min-width: 0; }
#app-sheet .pvc-pill select { appearance: none; -webkit-appearance: none; max-width: 100%; height: 36px; margin: 0; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--kk-r-s); background: var(--card);
  padding: 0 26px 0 10px; color: var(--ink); font: inherit; font-size: var(--kk-fs-2); font-weight: var(--kk-fw-strong); cursor: pointer; text-overflow: ellipsis; }
#app-sheet .pvc-pill::after { content: ''; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
#app-sheet .pvc-num { display: inline-flex; align-items: center; gap: 2px; height: 36px; box-sizing: border-box; padding: 0 10px 0 6px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--kk-r-s); background: var(--card); }
#app-sheet .pvc-num input { width: 3em; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--kk-fs-3); font-weight: var(--kk-fw-strong); text-align: right; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
#app-sheet .pvc-num input::placeholder { color: var(--muted); opacity: .6; }
#app-sheet .pvc-num span { color: var(--muted); font-size: var(--kk-fs-2); }
#app-sheet .pvc-pill select:focus-visible, #app-sheet .pvc-num:focus-within { border-color: var(--brand); outline: 2px solid var(--brand-line, var(--brand)); outline-offset: 0; }
#app-sheet .pvc-del { width: 32px; height: 32px; border: 0; border-radius: var(--kk-r-s); background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; align-self: start; margin-top: 2px; }
#app-sheet .pvc-del svg { width: 16px; height: 16px; }
@media (hover: hover) { #app-sheet .pvc-del:hover { background: var(--surface); color: var(--ink); } }
#app-sheet .pvc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 6px 0 var(--kk-sp-3); }
#app-sheet .pvc-add { min-height: 36px; font-size: var(--kk-fs-2); padding: 0 6px; }
#app-sheet .pvc-add:disabled { opacity: .45; cursor: default; }
#app-sheet .pvc-ex { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--kk-fs-1); color: var(--muted); }
#app-sheet .pvc-ex .kk-tag { border: 0; cursor: pointer; font-family: inherit; }

/* 알림: 사실 문장 상자(맞지 않는 값은 빨간 머리 글, 모자람 · 두 갈래는 펼침 상자 결) */
#app-sheet .pvc-msg { border-radius: var(--kk-r-m); padding: 12px 14px; word-break: keep-all; }
#app-sheet .pvc-msg b { display: block; font-size: var(--kk-fs-2); font-weight: var(--kk-fw-ui); margin-bottom: 2px; }
#app-sheet .pvc-msg p { margin: 0; font-size: var(--kk-fs-2); line-height: 1.5; color: var(--ink); }
#app-sheet .pvc-msg.info { background: var(--kk-fold-bg); border: 1px solid var(--kk-fold-line); }
#app-sheet .pvc-msg.info b { color: var(--kk-fold-ink); }
#app-sheet .pvc-msg.bad { background: color-mix(in srgb, var(--bad) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); }
#app-sheet .pvc-msg.bad b { color: var(--bad); }

/* 결과 카드 */
#app-sheet .pvc-card { border: 1px solid var(--line); border-radius: var(--kk-r-l); background: var(--card); padding: var(--kk-card-pad); }
/* 32번: 판정은 나란한 두 칸(작은 이름 위 · 큰 숫자 아래). 55번(사용자 11/3 '왼쪽 선 · 테두리 쓰지 말 것'): 왼쪽 세로 막대 대신 빈곤선 색의 옅은 바탕 칸 */
#app-sheet .pvc-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: var(--kk-sp-3); margin: 0 0 12px; }
#app-sheet .pvc-vu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 12px 9px; border-radius: var(--kk-r-m); background: color-mix(in srgb, var(--pvc-a) 8%, var(--card)); min-width: 0; }
#app-sheet .pvc-vu.r { background: color-mix(in srgb, var(--pvc-r) 9%, var(--card)); }
#app-sheet .pvc-vl { font-size: var(--kk-fs-2); font-weight: var(--kk-fw-strong); color: var(--muted); line-height: var(--kk-lh-title); word-break: keep-all; }
#app-sheet .pvc-v { font-size: var(--kk-fs-7); font-weight: var(--kk-fw-title); line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
#app-sheet .pvc-v.a { color: var(--pvc-a); } #app-sheet .pvc-v.r { color: var(--pvc-r); }
#app-sheet .pvc-why { margin: 0; font-size: var(--kk-fs-2); line-height: 1.5; color: var(--ink-2, var(--ink)); word-break: keep-all; }
#app-sheet .pvc-strip { display: flex; height: 10px; margin: 12px 0 8px; border-radius: var(--kk-r-pill); overflow: hidden; background: var(--pvc-n); box-shadow: inset 0 0 0 1px var(--line); }
#app-sheet .pvc-strip i { display: block; height: 100%; transition: width .35s ease; }
#app-sheet .pvc-strip i + i { box-shadow: -1px 0 0 var(--card); }
#app-sheet .pvc-strip .b { background: var(--pvc-b); } #app-sheet .pvc-strip .o { background: var(--pvc-o); } #app-sheet .pvc-strip .n { background: var(--pvc-n); }
#app-sheet .pvc-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--kk-fs-1); color: var(--muted); }
#app-sheet .pvc-leg li { display: inline-flex; align-items: center; gap: 5px; }
#app-sheet .pvc-leg b { color: var(--ink); font-weight: var(--kk-fw-ui); font-variant-numeric: tabular-nums; }
#app-sheet .pvc-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
#app-sheet .pvc-sw.b { background: var(--pvc-b); } #app-sheet .pvc-sw.o { background: var(--pvc-o); } #app-sheet .pvc-sw.n { background: var(--pvc-n); }
#app-sheet .pvc-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
#app-sheet .pvc-more summary { cursor: pointer; font-size: var(--kk-fs-2); font-weight: var(--kk-fw-strong); color: var(--kk-fold-ink); list-style-position: inside; }
#app-sheet .pvc-more-b { display: flex; justify-content: center; padding-top: 8px; }
#app-sheet .pvc-bar { display: block; overflow: visible; }
#app-sheet .pvc-frame { fill: var(--pvc-n); stroke: var(--line-strong, var(--line)); }
#app-sheet .pvc-seg.b { fill: var(--pvc-b); } #app-sheet .pvc-seg.o { fill: var(--pvc-o); } #app-sheet .pvc-seg.n { fill: var(--pvc-n); }
#app-sheet .pvc-segt { font-size: 11px; font-weight: 700; fill: var(--ink); }
#app-sheet .pvc-ln { stroke-width: 2; stroke-dasharray: 6 4; } #app-sheet .pvc-ln.a { stroke: var(--pvc-a); } #app-sheet .pvc-ln.r { stroke: var(--pvc-r); }
#app-sheet .pvc-lt { font-size: 11px; font-weight: 800; } #app-sheet .pvc-lt.a { fill: var(--pvc-a); } #app-sheet .pvc-lt.r { fill: var(--pvc-r); }
#app-sheet .pvc-ax { font-size: 9.5px; fill: var(--muted); }
#app-sheet .pvc-play { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: var(--kk-sp-3) 0 2px; }
#app-sheet .pvc-play small { font-size: var(--kk-fs-1); color: var(--muted); text-align: center; word-break: keep-all; }
@media (prefers-reduced-motion: reduce) { #app-sheet .pvc-strip i { transition: none; } }
/* 4-3 머리 도구 줄 칩은 .nv-chip 꼴을 그대로 씀(notev.css, 아이콘 14px · 브랜드 색) */
/* 31번 6항(D-483 ①): 근거 · 알림 글은 끝 한두 낱말만 다음 줄로 밀리지 않게 줄 끝을 고르게 */
#app-sheet .pvc-why, #app-sheet .pvc-msg p, #app-sheet .pvc-lead { text-wrap: pretty; }
#app-sheet .pvc-c { display: inline-block; }
/* 69번(D-655 리퀴드 글래스, 작업 K 79번 '바꾸는 결'): 흰 판 · 회색 테 상자를 #421 유리 변수로. 입력 상자 · 결과 카드는 옅은 유리 판(흐림 없음) + 위에서 내려오는 빛 결 + 빛 테 + 작은 유리 그림자,
   채운 판정 칸 · 알림 상자는 빛깔이 위에서 옅어지는 판 + 안쪽 빛 테 한 줄. 고르기 · 숫자 칸은 반투명 판 + 옅은 테(누를 곳은 보이게). #421 변수가 없거나 흰 판으로 돌아가면(시험지 꼴 · 투명도 줄이기) 앞 꼴 그대로 */
#app-sheet .pvc-rows, #app-sheet .pvc-card { background: var(--kk-glass-sheen, linear-gradient(transparent, transparent)), var(--kk-glass-soft, var(--card)); border-color: var(--kk-glass-rim, var(--line)); box-shadow: var(--kk-glass-sh-s, none); }
#app-sheet .pvc-row + .pvc-row, #app-sheet .pvc-more { border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }
#app-sheet .pvc-row.bad { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 9%, transparent), color-mix(in srgb, var(--bad) 3%, transparent)); }
#app-sheet .pvc-pill select, #app-sheet .pvc-num { background: var(--kk-glass-sheen, linear-gradient(transparent, transparent)), color-mix(in srgb, var(--card) 72%, transparent); border-color: color-mix(in srgb, var(--line-strong, var(--line)) 80%, transparent); box-shadow: var(--kk-glass-sh-s, none); }
#app-sheet .pvc-vu { background: linear-gradient(180deg, color-mix(in srgb, var(--pvc-a) 13%, transparent), color-mix(in srgb, var(--pvc-a) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pvc-a) 16%, transparent); }
#app-sheet .pvc-vu.r { background: linear-gradient(180deg, color-mix(in srgb, var(--pvc-r) 14%, transparent), color-mix(in srgb, var(--pvc-r) 4%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pvc-r) 18%, transparent); }
#app-sheet .pvc-msg.info { background: linear-gradient(180deg, color-mix(in srgb, var(--kk-fold-ink) 10%, transparent), color-mix(in srgb, var(--kk-fold-ink) 3%, transparent)); border-color: color-mix(in srgb, var(--kk-fold-ink) 18%, transparent); }
#app-sheet .pvc-msg.bad { background: linear-gradient(180deg, color-mix(in srgb, var(--bad) 10%, transparent), color-mix(in srgb, var(--bad) 3%, transparent)); border-color: color-mix(in srgb, var(--bad) 24%, transparent); }
#app-sheet .pvc-strip { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }



  /* ===== 작업 A · 87번 2항: 도전 과제 아이콘(uiachicon.js KkAchIcon) =====
     (11/4 통합 알림) 새 그림은 svg.ki.ki-ach(KkAchIcon이 KIcon.html에 붙임)로 고른다. class 부분 일치 속성 선택자는 class가 바뀔 때마다 문서 전체 스타일을 다시 재게 해 쓰지 않는다
     선은 KIcon 그대로(아주 어두운 보랏빛 · 어둡게는 보랏빛 흰색). 포인트 한 획만 적보라 → 남색 그라데이션(하늘색은 쓰지 않음).
     대비(그림 3:1 이상): 밝게 #B42BCF 4.4:1 · #3A28A8 9.6:1(칩 #F3F0FF) / 어둡게 #F0B4FF 6.6:1 · #A194FF 5.2:1(칩 #221E45).
     바탕색(background-color)은 --ki-chip 그대로 두어 불꽃 맞춤(KFlameSync)이 칩 색을 읽는다. 달성한 칩은 흰빛 → 옅은 보라 → 옅은 적보라 그라데이션에 적보라 빛 테두리(밋밋한 단색 대신, 쨍하지 않게) */
  svg.ki.ki-ach .ki-a { stroke: url(#ka-gl); }
  :root[data-mode="dark"] svg.ki.ki-ach .ki-a, #toast-container svg.ki.ki-ach .ki-a { stroke: url(#ka-gd); }
  #ach-list-container .ki-chip.on.ka-chip { background-color: var(--ki-chip) !important; background-image: linear-gradient(140deg, #FFFFFF 0%, var(--ki-chip) 48%, #FBE9FD 100%) !important;
    box-shadow: inset 0 0 0 1.5px rgba(180, 43, 207, .28), 0 6px 14px -8px rgba(150, 40, 190, .55); }
  :root[data-mode="dark"] #ach-list-container .ki-chip.on.ka-chip { background-image: linear-gradient(140deg, #2D2660 0%, var(--ki-chip) 50%, #3A2152 100%) !important;
    box-shadow: inset 0 0 0 1.5px rgba(240, 180, 255, .32), 0 6px 16px -8px rgba(200, 120, 255, .45); }
  #ach-alert-icon.ki-pop { background: radial-gradient(circle at 50% 36%, var(--card) 0%, var(--ki-chip) 62%, #F7E4FC 100%);
    box-shadow: inset 0 0 0 1.5px rgba(180, 43, 207, .3), 0 10px 28px -12px rgba(150, 40, 190, .55); }
  :root[data-mode="dark"] #ach-alert-icon.ki-pop { background: radial-gradient(circle at 50% 36%, #2D2660 0%, var(--ki-chip) 62%, #3A2152 100%) !important;
    box-shadow: inset 0 0 0 1.5px rgba(240, 180, 255, .32), 0 10px 28px -12px rgba(200, 120, 255, .5); }
  /* ===== 105번 2항(사용자 11/2 '너무 두껍지 않게 깔끔하게 살짝 얇게, 너무 꽉 차면 여백') =====
     선 굵기 2 → 1.7(24 칸), 칩 안 그림 43 → 38px · 달성 창 56 → 50px로 둘레에 여백을 둔다. 나머지 KIcon 그림(메뉴 · 단추)은 그대로 */
  svg.ki.ki-ach g { stroke-width: 1.7; }
  #ach-list-container .ki-chip svg.ki.ki-ach { width: min(1.32em, 38px); height: min(1.32em, 38px); }
  #ach-alert-icon.ki-pop svg.ki.ki-ach { width: 50px; height: 50px; }
  /* 달성 움직임: 선 그리기를 조금 느긋하게(0.62초) → 포인트 한 획(0.42초부터) → 튀어 오름 → 둥근 칩에서 빛 고리가 퍼지고 반짝임 여덟. 칩도 한 번 숨 쉬듯 빛남 */
  svg.ki.ki-in.ki-ach .ki-l > * { animation-duration: .62s; }
  svg.ki.ki-in.ki-ach .ki-a > * { animation-delay: .42s; animation-duration: .42s; }
  svg.ki.ki-in.ki-ach { animation: kiPop .5s cubic-bezier(.34, 1.56, .64, 1) .58s both; }
  #ach-alert-icon.ki-pop { --ki-spark: #C04BD8; }
  :root[data-mode="dark"] #ach-alert-icon.ki-pop { --ki-spark: #F0B4FF; }
  .ka-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px rgba(180, 43, 207, .55); opacity: 0; animation: kaRing .8s cubic-bezier(.2, .7, .3, 1) .62s both; }
  :root[data-mode="dark"] .ka-ring { box-shadow: 0 0 0 2px rgba(240, 180, 255, .6); }
  #ach-alert-icon.ki-pop.ka-cel { animation: kaGlow 1s ease .6s both; }
  :root[data-mode="dark"] #ach-alert-icon.ki-pop.ka-cel { animation-name: kaGlowD; }
  @keyframes kaRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
  @keyframes kaGlow { 45% { box-shadow: inset 0 0 0 1.5px rgba(180, 43, 207, .45), 0 0 26px 2px rgba(180, 43, 207, .3); } }
  @keyframes kaGlowD { 45% { box-shadow: inset 0 0 0 1.5px rgba(240, 180, 255, .5), 0 0 26px 2px rgba(240, 180, 255, .25); } }
  @media (prefers-reduced-motion: reduce) { .ka-ring { display: none; } #ach-alert-icon.ki-pop.ka-cel { animation: none; } }



/* ===== 작업 A · 115번(작업 D 87번 점검 ㉒ · ⑳, 사용자_고침_방향 D-557 ⑩ · D-640): 꿀팁 상자 · 까망 말풍선 =====
   꿀팁 상자(.tip-box-content: 문제 화면 해설 카드 · 오답 목록 · 학습 복습): 노란 바탕 · 노란 테 · 주황 굵은 글을 걷고
   바탕 없이 가는 회색 선 상자 + 작은 머리표 '꿀팁 · 까망 曰'(글자 빛깔로 가름) + 본문은 보통 굵기 본문 빛깔. 왼쪽 세로 선은 쓰지 않는다.
   까망 말풍선(.kk-bubble, 해설 위 '까망 曰'): 왼쪽 꼬리를 걷고 DM 꼴(꼬리 없음, 까망 쪽 왼쪽 아래 모서리만 4px), 까망이는 말풍선 아래쪽에 붙는다.
   작업 H(uikk.css) · 작업 C(uiwrong.css) · 엔진(theme.py · ui392.css) 규칙이 !important라 body를 붙여 한 단계 위에서 덮는다(그 파일들은 고치지 않음) */
body .tip-box-content, body #explanation-box .tip-box-content {
  background: transparent !important; border: 1px solid var(--line-strong, var(--line)) !important; border-radius: 12px !important;
  color: var(--ink-2) !important; font-weight: 500 !important; box-shadow: none !important;
}
body .tip-box-content .tip-label, body #explanation-box .tip-box-content .tip-label {
  display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); letter-spacing: 0.01em;
}
body .tip-box-content .tip-label .ic, body .tip-box-content .tip-label [class^="ic-"] { display: inline-block !important; color: var(--accent); }
body .tip-box-content .kk-head, body .kw-it .tip-box-content .kk-head { color: var(--accent-ink); }
body .tip-box-content strong, body .tip-box-content b { color: var(--ink); }
/* 까망 말풍선 '까망 曰'(118번, 사용자 11/3 14:32 '까망이 한마디는 우리 디엠식으로'): 작업 J 까망 DM 말풍선(uitour.css .kbh-bub · uibuddy.css --kb-n1 · n2)과 같은 결.
   먹보라 그라데이션 바탕 · 흰 글 · 꼬리 없이 까망 쪽(왼쪽 아래) 귀퉁이만 4px · 둘레 빛. 115번 판(흰 카드 · 가는 테)은 git 기록 2a320fa5에 있다 */
body .kk-bubble-row { align-items: flex-end; }
body .kk-bubble { border: 0; border-radius: 18px 18px 18px 4px; padding: 10px 14px; color: var(--kb-ink, rgb(255, 255, 255)); box-shadow: none;
  background: var(--kb-nmid, #6345F4);   /* DM 그라데이션의 가운데 빛깔 한 가지(작업 H 검사 t_kk가 이 말풍선에 그라데이션을 두지 않게 봄) */
  filter: drop-shadow(0 4px 12px var(--kb-glow, rgba(110, 82, 255, .3))); }
body .kk-bubble::before { display: none !important; }
body .kk-bubble .kk-bh, body .kk-bubble .kk-bh .kk-head { color: var(--kb-sub, rgba(236, 232, 255, .86)); }
body .kk-bubble .kk-bh-tip .ic { color: var(--kb-sub, rgba(236, 232, 255, .86)); }
body .kk-bubble .kk-btx, body .kk-bubble .kk-tx { color: var(--kb-ink, rgb(255, 255, 255)); }
body .kk-bubble .kk-btx strong, body .kk-bubble .kk-btx b { color: var(--kb-ink, rgb(255, 255, 255)); }
body .kk-bubble.kk-over:not(.kk-open) .kk-btx { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 1.3em), rgba(0, 0, 0, .15) 100%); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 1.3em), rgba(0, 0, 0, .15) 100%); }
/* 말풍선 안 꼬리표 · 단추('노트 보기' · '나머지 보기' · 추천 단추): 어두운 바탕 위 흰 테 알약(작업 U 채팅창 단추와 같은 결) */
body .kk-bubble .kk-note, body .kk-bubble .kk-rb { background: var(--kb-tag-bg, rgba(255, 255, 255, .16)) !important; color: var(--kb-ink, rgb(255, 255, 255)) !important; border: 1px solid rgba(255, 255, 255, .55) !important; box-shadow: none !important; }
body .kk-bubble .kk-note .ic, body .kk-bubble .kk-rb .ic { color: inherit; }
/* '나머지 보기'(.kk-more, 글 줄 꼴)는 흰 글 그대로 */
body .kk-bubble .kk-more, body .kk-bubble .kk-more span, body .kk-bubble .kk-more .ic { color: var(--kb-sub, rgba(236, 232, 255, .86)) !important; }
body .kk-bubble .kk-note:focus-visible, body .kk-bubble .kk-more:focus-visible, body .kk-bubble .kk-rb:focus-visible { outline: 2px solid rgb(255, 255, 255); outline-offset: 2px; }
/* ===== 작업 A · 126번(사용자 11/3 20:38 '디엠꼴 맞긴 한데 … 눌러서 까망 버튼이랑 연동 … 너무 쏠리지 않게'): (다) DM 꼴 확정 · 누를 수 있음 · 자리 · 폭 =====
   쏠림: 118번 판은 말풍선이 flex: 1로 오른쪽 끝까지 늘어나 넓은 화면(600 · 900)에서 글은 왼쪽, 오른쪽은 빈 보라 띠였다(사용자_고침_방향 '오른쪽 빈 곳이 큰 상자' · D-506 ④).
   → 글만큼만 넓고(fit-content) 넓은 화면에서는 36rem까지(DM처럼 까망이 옆에서 시작해 글 길이만큼). 좁은 화면에서는 전과 같이 남은 폭을 다 쓴다.
   누를 수 있음: 손가락 커서 · 머리 줄 끝 작은 꺾쇠(> 꼴, 그림 없이 테두리로) · 누르면 살짝 눌림. 실제 일은 uitip.js(까망 버튼 click). */
body #kk-bubble-row .kk-bubble, body .kk-rec-row .kk-bubble { flex: 0 1 auto; width: fit-content; max-width: min(100%, 36rem); min-width: 12rem; padding: 10px 14px 10px 14px;
  transition: transform .16s ease, filter .16s ease; }
/* 누를 수 있음은 까망 버튼이 받아 줄 때만 보인다: 버튼이 떠 있거나(body.kb-on, uibuddy.js sync) 채팅을 켠 판(body.kbc-on, uibchat.js setChat). 아닐 때는 보통 말풍선(누르면 글만 다 보임) */
body:is(.kb-on, .kbc-on) #kk-bubble-row .kk-bubble, body:is(.kb-on, .kbc-on) .kk-rec-row .kk-bubble { cursor: pointer; }
body:is(.kb-on, .kbc-on) #kk-bubble-row .kk-bubble:hover, body:is(.kb-on, .kbc-on) .kk-rec-row .kk-bubble:hover { filter: drop-shadow(0 6px 14px var(--kb-glow, rgba(110, 82, 255, .36))); }
body:is(.kb-on, .kbc-on) #kk-bubble-row .kk-bubble:active, body:is(.kb-on, .kbc-on) .kk-rec-row .kk-bubble:active { transform: scale(.985); }
body #kk-bubble-row .kk-bubble:focus-visible, body .kk-rec-row .kk-bubble:focus-visible { outline: 3px solid var(--brand-line, var(--brand)); outline-offset: 3px; }
/* 머리 줄('까망 曰' · 노트 보기) 끝의 꺾쇠: 누르면 열린다는 표시. '노트 보기'가 있으면 그 오른쪽, 없으면 줄 끝 */
body .kk-bubble .kk-bh::after { content: ''; display: none; flex: none; width: 7px; height: 7px; margin-left: 6px; margin-right: 1px; border-right: 2px solid var(--kb-sub, rgba(236, 232, 255, .86)); border-bottom: 2px solid var(--kb-sub, rgba(236, 232, 255, .86)); transform: rotate(-45deg); opacity: .9; }
body:is(.kb-on, .kbc-on) .kk-bubble .kk-bh::after { display: block; }
body .kk-bubble .kk-bh:not(:has(.kk-note))::after { margin-left: auto; }
body .kk-bubble .kk-note { margin-right: 0 !important; }
/* 까망이와 말풍선 사이 · 위 여백: 선지 줄과 해설 카드 사이에서 고르게 */
body .kk-bubble-row { gap: 10px; margin-top: 14px; }
body .kk-bubble-row + .explanation { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { body #kk-bubble-row .kk-bubble, body .kk-rec-row .kk-bubble { transition: none; } body #kk-bubble-row .kk-bubble:active, body .kk-rec-row .kk-bubble:active { transform: none; } }



  /* ===== 작업 A · 94번: 알림함 안 정리(KkNotifBox) · 지난 공지 한 줄 ===== */
  /* 목록 높이: 화면에 맞춤(300px 고정이라 글자 130%에서 두 줄만 보이던 것). 안쪽만 스크롤, 넘친 스크롤이 뒤 화면으로 번지지 않게 */
  #notif-panel { max-height: min(62vh, 480px) !important; overscroll-behavior: contain; }
  #notif-list-container { padding-bottom: 0 !important; }
  /* 날짜 묶음 머리 */
  #notif-list-container .kn-day { margin: 12px 2px 6px; font-size: var(--kk-fs-1, .75rem); font-weight: 800; color: var(--muted-2); letter-spacing: .02em; }
  #notif-list-container .kn-day:first-child, #notif-list-container .kn-notice + .kn-day { margin-top: 2px; }
  /* 안 읽은 알림: 제목 앞 작은 점(적보라 → 남색), 읽은 알림은 제목 굵기만 한 단계 낮춤 */
  /* 96번(사용자 '줄바꿈이 너무 두 줄씩'): 알림 하나는 제목 한 줄 · 설명 한 줄(넘치면 줄임표). 안 읽은 점은 제목 글 앞에 붙어 따로 칸을 차지하지 않음(작업 O 51번) */
  #notif-list-container .notif-item .notif-title, #notif-list-container .notif-item .notif-desc { display: block; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; word-break: normal !important; }
  #notif-list-container .notif-item .notif-desc { line-height: 1.35 !important; }
  #notif-list-container .notif-item:not(.kn-unread) .notif-title { font-weight: 700 !important; }
  #notif-list-container .kn-dot { display: inline-block; vertical-align: .18em; margin-right: 5px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #B42BCF, #3A28A8); }
  :root[data-mode="dark"] #notif-list-container .kn-dot { background: linear-gradient(135deg, #F0B4FF, #A194FF); }
  /* 그릴 때마다 모든 알림이 다시 내려오던 것을 끄고, 이번에 새로 온 알림만 한 번 */
  #notif-list-container .notif-new { animation: none !important; }
  #notif-list-container .kn-in { animation: knIn .32s ease-out both; }
  @keyframes knIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { #notif-list-container .kn-in { animation: none; } }
  /* 빈 상태 */
  #notif-list-container .kn-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px 6px; color: var(--muted-2); font-size: .9rem; font-weight: 600; }
  #notif-list-container .kn-empty .ic { font-size: 1.4rem; opacity: .55; }
  /* 지난 공지 다시 보기 한 줄(맨 위). 107번(사용자 11/3 '바꾼 건 별로야. 전에 거 훨씬 나아. 그냥 색깔만 조금 다르게 해서 연하게'): 94번 꼴(둥근 줄 · 알약 '공지' 표)로 되돌리고 색만 연하게.
     줄은 옅은 보라 결 바탕 · 옅은 테두리, '공지' 표는 진한 보라 그라데이션 대신 연보라 바탕 · 보라 글자 */
  #notif-list-container .kn-notice { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 10px 12px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font: inherit;
    background: linear-gradient(135deg, var(--card), #F8F4FD); box-shadow: inset 0 0 0 1px rgba(160, 90, 200, .22); color: var(--ink); }
  :root[data-mode="dark"] #notif-list-container .kn-notice { background: linear-gradient(135deg, var(--card), rgba(200, 150, 255, .07)); box-shadow: inset 0 0 0 1px rgba(220, 180, 255, .24); }
  #notif-list-container .kn-tag { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #7A2E9A; background: #F1E4FA; }
  :root[data-mode="dark"] #notif-list-container .kn-tag { color: #EBCBFF; background: rgba(220, 170, 255, .16); }
  #notif-list-container .kn-nt { flex: 1; min-width: 0; font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #notif-list-container .kn-notice .ic { flex-shrink: 0; color: var(--muted-2); }
  /* '전체 삭제': 목록 위에 떠서 마지막 알림을 가리던 것(지금 판) → 목록 끝에 붙는 아래 띠(스크롤해도 맨 아래, 뒤 글은 옅게 가림) */
  #notif-panel > div.kn-foot { position: sticky !important; bottom: -15px !important; right: auto !important; display: flex; justify-content: flex-end;
    margin: 0 -15px -15px; padding: 18px 15px 12px; background: linear-gradient(to bottom, transparent, var(--card) 45%); pointer-events: none; }
  #notif-panel > div.kn-foot > span { pointer-events: auto; }
  /* 97번(사용자 11/1 15:04 '원 테두리 없애는 게 낫지 않나 … 없는 게 더 깔끔'): 홈 머리 줄 알림 · 설정 단추의 둥근 테두리 원을 뺌. 누르는 자리 크기는 그대로,
     누르는 동안 · 키보드 초점일 때만 옅은 원이 보인다 */
  html body #notif-bell#notif-bell, html body div.kk-fab-ic.rn-gear.rn-gear { background: transparent !important; border-color: transparent !important; box-shadow: none !important; transition: background-color .15s ease; }
  html body #notif-bell#notif-bell:active, html body div.kk-fab-ic.rn-gear.rn-gear:active { background: var(--surface) !important; }
  html body #notif-bell#notif-bell:focus-visible, html body div.kk-fab-ic.rn-gear.rn-gear:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  /* 99번(사용자 11/1 18:19 '알림 · 설정 단추가 애매하게 붙어 … 둘이 거리가 너무 멀어'): 원을 뺀 두 단추를 한 덩이로. 누르는 칸 크기 · 높이는 그대로(종 44px · 톱니 48px,
     높이는 머리 줄이 잰 로고 가운데 --k59-gt를 따름), 두 칸 사이 8px 틈을 없애 아이콘 사이를 54 → 46px로 좁히고 오른쪽 끝 여백을 6px 줄인다 */
  html body #screen-dashboard .kk-hhead #notif-bell#notif-bell { right: calc(var(--k58-gr, 20px) + 42px) !important; }
  body[data-screen="screen-dashboard"] div[onclick="openHamburger()"][style*="position:fixed"].rn-gear.rn-gear { right: calc(var(--k58-gr, 20px) - 6px) !important; }
  /* 109번: 알림 칸 머리 접기는 글씨 없이 위 화살표 단추 하나(누르는 자리 36px) */
  #notif-panel .kn-fold { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted-2); cursor: pointer; }
  #notif-panel .kn-fold svg { width: 20px; height: 20px; }
  #notif-panel .kn-fold:active { background: var(--surface); }
  #notif-panel .kn-fold:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
  /* 11/4 사용자 답(#412 '아래 시간 뜨는 게 다소 부자연스러워 … 그냥 저것도 박스칠까 알림 하나하나도?'):
     ① 알림 하나하나를 옅은 테두리 상자로(칸 바탕은 그대로 · 그림자 대신 가는 선, 상자 사이 8px)
     ② 받은 때는 굵은 셋째 줄 대신 제목 줄 오른쪽 끝에 작고 옅게(제목 · 받은 때 한 줄, 설명은 그 아래 상자 너비 그대로)
     ③ 상자 안을 가르던 세로 선을 걷고(둥근 칸에 선을 긋지 않음), 지우기 단추는 상자 오른쪽 위 작은 X로 */
  #notif-list-container .notif-item { border-radius: 12px !important; box-shadow: none !important; border: 1px solid var(--line); padding: 11px 6px 11px 12px !important; align-items: flex-start !important; }
  :root[data-mode="dark"] #notif-list-container .notif-item { border-color: rgba(255, 255, 255, .09); }
  #notif-list-container .notif-item > div[style*="width: 1px"] { display: none !important; }
  #notif-list-container .notif-item .notif-icon { width: 36px !important; height: 36px !important; font-size: 1.15rem !important; margin-right: 11px !important; }
  #notif-list-container .notif-item .notif-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; padding-right: 0 !important; }
  #notif-list-container .notif-item .notif-title { grid-column: 1; grid-row: 1; margin-bottom: 2px !important; }
  #notif-list-container .notif-item .notif-desc { grid-column: 1 / -1; grid-row: 2; }
  #notif-list-container .notif-item .k45-ntime { grid-column: 2; grid-row: 1; margin: 0 !important; font-weight: 500 !important; font-size: .72rem !important; color: var(--muted-2); white-space: nowrap; }
  #notif-list-container .notif-item .notif-del { align-self: flex-start; width: 32px; height: 32px; padding: 0 !important; margin: -6px 0 0 4px; font-size: 1rem !important; border-radius: 50%; }
  #notif-list-container .notif-item .notif-del:active { background: var(--surface); }
  /*   설명은 두 줄까지 낱말 단위로 꺾고(그 넘어서만 줄임표) 제목은 한 줄(넘치면 줄임표, 받은 때는 늘 제목 줄 오른쪽 끝). 지우기 X는 상자 오른쪽 위 구석에 작게 */
  #notif-list-container .notif-item .notif-desc { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal !important; word-break: keep-all !important; overflow-wrap: anywhere; text-wrap: pretty; }
  #notif-list-container .notif-item { position: relative; padding-right: 34px !important; }
  #notif-list-container .notif-item .notif-del { position: absolute; top: 5px; right: 4px; width: 30px; height: 30px; margin: 0; font-size: .95rem !important; }

  /* ===== 134번 1항(사용자 11/6 12:52 '알림창에서도 박스가 너무 노란색 박스가 촌스럽거든? 알림창 자체도 리퀴드 글래스로 다 바꾸면서 자연스럽게'
     · 12:53 '박스 옆이나 아래에다가 선 그어가지고 … 체크된 것처럼 하는 거를 안 좋아해') =====
     작업 W #516(공지 창 · 앱 안 알림 창 유리, 사용자 '그대로 좋아')과 같은 결: 알림함 판은 떠 있는 유리 판(흐림 · 위 빛 · 흰빛 밑바탕), 알림 칸은 옅은 유리 칸.
     엔진이 알림 갈래마다 칠하던 칸 바탕(불꽃 = 노랑 · 시계 = 빨강 · 꿀팁 = 파랑)은 걷고, 갈래 빛깔은 왼쪽 아이콘 칩에만 옅게 남긴다. 칸 옆 · 아래 선은 긋지 않는다.
     값은 작업 K #421(kkds.css) 공통 유리 값을 쓰고, 그 값이 없는 판에서는 같은 결 값으로 대신한다. 시험 중 · 시험지 레이아웃 · 흐림 못 씀 · 투명도 줄이기는 #421 값이 흰 판으로 돌린다 */
  :root { --kn-glass: var(--kk-glass, linear-gradient(165deg, rgb(255 255 255 / .7), rgb(255 255 255 / .38))); --kn-soft: var(--kk-glass-soft, rgb(255 255 255 / .6));
    --kn-sheen: var(--kk-glass-sheen, linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0) 55%)); --kn-rim: var(--kk-glass-rim, rgb(255 255 255 / .9));
    --kn-sh: var(--kk-glass-sh, inset 0 1px 0 rgb(255 255 255), inset 0 -1px 0 rgb(120 110 220 / .1), 0 1px 2px rgb(40 30 120 / .05), 0 14px 30px -20px rgb(70 50 170 / .5));
    --kn-sh-s: var(--kk-glass-sh-s, inset 0 1px 0 rgb(255 255 255), 0 6px 16px -12px rgb(70 50 170 / .45)); --kn-blur: var(--kk-glass-blur, blur(18px) saturate(1.7));
    --kn-under: rgb(255 255 255 / .74); }
  :root[data-mode="dark"] { --kn-glass: var(--kk-glass, linear-gradient(165deg, rgb(62 62 86 / .52), rgb(36 36 52 / .38))); --kn-soft: var(--kk-glass-soft, rgb(44 44 62 / .6));
    --kn-sheen: var(--kk-glass-sheen, linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / 0) 55%)); --kn-rim: var(--kk-glass-rim, rgb(255 255 255 / .13));
    --kn-sh: var(--kk-glass-sh, inset 0 1px 0 rgb(255 255 255 / .16), inset 0 -1px 0 rgb(0 0 0 / .2), 0 14px 30px -20px rgb(0 0 0 / .8));
    --kn-sh-s: var(--kk-glass-sh-s, inset 0 1px 0 rgb(255 255 255 / .14), 0 6px 16px -12px rgb(0 0 0 / .7)); --kn-under: rgb(24 24 38 / .84); }
  body.kk-exam-live, :root[data-look="paper"] { --kn-under: var(--card); }
  /* 판: 떠 있는 유리(W 판 값). 머리 아래 가르던 선은 걷음 */
  /* (W 알림) 시험 중 · 시험지 레이아웃 · 흐림 못 씀에서는 --kk-glass가 단색(var(--card))이 되는데, 여러 겹 background의 가운데 겹에 단색이 오면 선언이 통째로 무효가 되어 판이 투명해진다.
     그래서 유리 겹을 맨 아래 겹(단색이어도 됨)으로 두고 밑바탕 흰빛은 background-color로 깐다 */
  /*   유리 값은 :root에서 한 번 푼 --kn-* 대신 --kk-*를 판에서 바로 읽는다(시험 중 body.kk-exam-live · 시험지 :root[data-look] 덮어쓰기가 판까지 내려오게) */
  html body #notif-panel { background: var(--kk-glass-sheen, var(--kn-sheen)), var(--kk-glass, var(--kn-glass)) !important; background-color: var(--kn-under) !important; border: 1px solid var(--kk-glass-rim, var(--kn-rim)) !important; border-radius: 16px !important;
    box-shadow: var(--kk-glass-sh, var(--kn-sh)), 0 28px 60px -28px rgb(40 26 120 / .55) !important; -webkit-backdrop-filter: var(--kk-glass-blur, var(--kn-blur)); backdrop-filter: var(--kk-glass-blur, var(--kn-blur)); }
  :root[data-mode="dark"] body #notif-panel { box-shadow: var(--kn-sh), 0 28px 60px -28px rgb(0 0 0 / .85) !important; }
  #notif-panel > div:first-child { border-bottom: 0 !important; }
  /* 알림 칸: 옅은 유리 칸(갈래 바탕색 · 가는 테 선 대신 흰빛 테 한 겹과 작은 그림자) */
  html body #notif-list-container .notif-item { background: var(--kk-glass-sheen, var(--kn-sheen)), var(--kk-glass-soft, var(--kn-soft)) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--kk-glass-rim, var(--kn-rim)), var(--kk-glass-sh-s, var(--kn-sh-s)) !important; border-radius: 14px !important; }
  /* 갈래 빛깔은 아이콘 칩에만, 옅게. 노랑 칩은 쓰지 않고 앱 아이콘 칩 색(--ki-chip, 불꽃 그림이 이 색을 읽어 빛을 맞춤) 하나로, 마감 알림만 옅은 빨강 */
  #notif-list-container .notif-item .notif-icon { background: var(--ki-chip, #F3F0FF) !important; color: var(--ki-line, var(--ink)) !important; }
  #notif-list-container .notif-item.kn-k-due .notif-icon { background: var(--bad-soft) !important; color: var(--bad) !important; }
  #notif-list-container .notif-item.kn-k-brand .notif-icon { color: var(--brand) !important; }   /* 106번(취약 단원 복습 · 꿀팁): 옅은 바탕 + 주 색 선 그림 */
  /* 유리 위 옅은 회색 글은 한 단계 진하게(대비 4.5 이상) */
  #notif-list-container .kn-day, #notif-list-container .notif-item .k45-ntime { color: var(--ink-2) !important; opacity: .78; }
  #notif-list-container .notif-item .notif-desc { color: var(--ink-2) !important; }
  /* 지난 공지 줄도 같은 유리 칸(공지 표 빛깔 그대로) */
  html body #notif-list-container .kn-notice { background: var(--kk-glass-sheen, var(--kn-sheen)), var(--kk-glass-soft, var(--kn-soft)); box-shadow: inset 0 0 0 1px var(--kk-glass-rim, var(--kn-rim)), var(--kk-glass-sh-s, var(--kn-sh-s)); border-radius: 14px; }
  /* '전체 삭제' 띠: 카드 흰색 대신 판 밑바탕 빛으로 옅게 가림 */
  #notif-panel > div.kn-foot { background: linear-gradient(to bottom, transparent, var(--kn-under) 50%) !important; }
  /* 통합C 화면 점검(11/6): 머리 '알림' 글자(누르면 접힘)의 누르는 자리가 22px이라 접기 단추와 같은 36px로. 보이는 자리는 그대로(위아래 음수 여백) */
  #notif-panel .kn-nhead { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin: -7px 0; padding-right: 6px; }

/* 작업 A · 170번(사용자_고침_방향 '한 단어 때문에 줄이 하나 더 생기는 곳'): 알림 설명 줄이 두 줄로 꺾일 때 끝 낱말 하나만 둘째 줄에 남던 것('해설 오른쪽 별을 누르면 / 모입니다.')을 두 줄 길이를 고르게 나눈다 */
#notif-list-container .notif-item .notif-desc { text-wrap: balance; }

