/* =====================================================================
   theme.css — 퀘스핀 라이트 테마: 테마 변수(0번) + 화면 틀의 모양 (2026-10-06 디자인 1단계b·2단계)
   ---------------------------------------------------------------------
   모든 페이지에서 CSS 중 맨 마지막에 불러옵니다 (페이지 CSS의 둥근 모서리·예전 바탕을 덮음).
   색·글꼴·페이지 상자 너비는 아래 0번 :root 의 테마 변수(--bg, --bg2, --ink, --ink2, --muted, --line, --acc, --acc2, --accbg, --box)만 씁니다 — 새 색을 만들지 않음.
   홈(index.html)도 읽음 (common.css → theme.css → home.css 순서 — 홈은 home.css가 마지막). 화면 디자인 규칙은 CLAUDE.md "디자인 테마" 끝
   시안: 선생님이 보낸 "워크북화면_라이트" (작업 화면), "첫화면_라이트" (홈 — css/home.css)

   ⚠️ 종이 안(.sheet-page 시험지, .pk-page 본문 학습자료, .wb-book 워크북 책자와 측정 칸)은 건드리지 않습니다.
      여기 규칙은 모두 화면 틀(위쪽 메뉴·STEP 칸·버튼·입력 칸·안내 칸·미리보기 바탕)에만 걸리게 썼습니다.
      종이 안의 예전 값·예전 글꼴은 common.css의 "종이 안" 묶음이 지킵니다. → 인쇄 결과는 테마와 상관없이 그대로

   목차: 0) 테마 변수·페이지 상자  1) 바탕·글꼴  2) 위쪽 메뉴  3) 버튼  4) 세그먼트·탭  5) 칩(번호·달·학년 버튼)  6) 입력 칸
         7) 칸·카드·STEP 머리  8) 안내 칸  9) 미리보기 바탕·종이 그림자  10) 모서리 모음  11) 페이지별 손질  12) 좁은 화면
   ===================================================================== */

/* ---------- 0) 테마 변수 — ✏️ 사이트 전체의 색·글꼴·페이지 상자 너비는 여기 한 곳 ----------
   색은 아래 9개 + 경고 --warn만 씁니다 (CLAUDE.md "화면 디자인 규칙"). 예전 이름(--navy-*, --accent …)은 common.css가 이 변수에 이어 줌
   페이지 상자(--box): 위쪽 메뉴·제목 띠·작업 영역이 모두 같은 가운데 상자 하나 — 로고 왼쪽 끝과 STEP 상자 왼쪽 끝이 세로로 맞음.
   1360px = 왼쪽 STEP 칸 + A4 미리보기(794px)가 나란히 들어가는 너비 (2026-10-06 선생님 결정). 화면이 더 좁으면 양옆 16px만 남기고 꽉 채움 */
:root {
  --bg: #ffffff;         /* 바탕 — 흰색 (STEP 칸·메뉴 띠·홈) */
  --bg2: #f5f7fa;        /* 바탕2 — 옅은 회색 (작업 화면 바탕·미리보기 바탕) */
  --ink: #0b1220;        /* 잉크 — 글자·고른 칩·인쇄 버튼·진한 타일 */
  --ink2: #1f2937;       /* 잉크2 — 본문 글자 */
  --muted: #5b6472;      /* 보조 글자 */
  --line: #e4e8ee;       /* 구분선·테두리 */
  --acc: #0a84d6;        /* 강조 — 주 버튼·지금 메뉴 밑줄·영문 라벨 */
  --acc2: #0668a8;       /* 진한 강조 */
  --accbg: #e8f3fc;      /* 연한 강조 바탕 */
  --ok: #13703a;         /* 해설 전용 — 옳은 선지(✓) 줄 머리(✓ + 선지 해석) 초록 (css/common.css .xp-h). 화면 틀에는 쓰지 않음 */
  /* 시험 달력 학교 색 10가지 (2026-11-22 본부 (c) — 선생님 "학교가 많아지니 같은 색·선이 힘들다" — 규칙 예외: 시험 달력의 학교 구분에만, js/school/calendar.js CAL_COLORS · css/school.css) */
  --cal-1: #0a84d6; --cal-2: #d9480f; --cal-3: #2b8a3e; --cal-4: #9c36b5; --cal-5: #c92a2a;
  --cal-6: #0c8599; --cal-7: #a0522d; --cal-8: #c2255c; --cal-9: #5c940d; --cal-10: #495057;
  --warn: #b42318;       /* 경고·오류 — 지금 쓰는 경고 빨강 (규칙 예외: 경고·오류에만). 노랑·초록 경고는 디자인 3단계에서 --acc 또는 --warn으로 */
  --font-sans: "Noto Sans KR", "Noto Sans CJK KR", "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;   /* 모든 글자 (제목은 굵게) */
  --font-mono: "Noto Sans Mono", "D2Coding", Consolas, "Courier New", monospace;   /* 작은 영문 라벨 (STEP 1, SCAN, 01 …) */
  --box: 1360px;         /* 페이지 상자 최대 너비 (안쪽 여백 포함) */
  --box-pad: 24px;       /* 페이지 상자 양옆 안쪽 여백 */
}
@media (max-width: 1360px) { :root { --box-pad: 16px; } }
/* 아주 넓은 화면(CSS 폭 2000px 이상 — 큰 모니터를 80% 배율 등으로 볼 때)에서만 새 화면(qs-rail) 상자를 조금 넓게 (2026-10-30 선생님 "너무 넓히지는 마")
   그 아래 폭(100% 노트북·1920 모니터)은 그대로 1360 · 예전 화면·공개 페이지도 그대로 */
@media (min-width: 2000px) { html.qs-rail { --box: 1640px; } }
/* 화면 바탕 세 벌 (2026-10-09 workbook-theme — 위쪽 메뉴 [?] 왼쪽에서 고름, site.js): 바뀌는 것은 종이 바깥 바탕(--bg2)과 테두리(--line)뿐.
   종이(시험지·워크북·학습자료 미리보기)는 늘 흰색 — 종이 안은 common.css "종이 안" 묶음이 --line을 다시 정함. 어두운 테마는 없음
   ✏️ 색값: 흰색 = 예전 화면 그대로(--bg2 #f5f7fa) · --bgs-paper(따뜻한 종이색) · --bgs-gray(연회색) */
:root { --bgs-paper: #f6f0e4; --bgs-gray: #e8ebef; }
html[data-site-bg="paper"] { --bg2: var(--bgs-paper); --line: #e6dccb; }
html[data-site-bg="gray"] { --bg2: var(--bgs-gray); --line: #d9dee5; }

/* 페이지 상자: 위쪽 메뉴 안쪽·제목 띠 안쪽·작업 영역 (페이지마다 다른 이름의 칸을 모두 같은 상자로).
   화면에서만 (인쇄는 페이지 CSS의 @media print 그대로 — 인쇄 결과가 바뀌지 않게) */
@media screen {
  .site-header-inner, .page-head-inner, .page, .wb-layout, .layout, .guide, .soon-page, .pk-preview-bar, .pk-preview > .msg {
    max-width: var(--box); margin-left: auto; margin-right: auto; padding-left: var(--box-pad); padding-right: var(--box-pad);
  }
  .pk-input, .an-input, .an-report, .sim-design, .admin { max-width: var(--box); }   /* 예전 1100~1280px 상한 → 상자 너비를 꽉 채움 (왼쪽에 붙고 오른쪽이 비던 것) */
  .soon-page > * { max-width: 880px; }   /* 준비 중 화면: 왼쪽 끝은 상자에 맞추고 글 줄은 예전 너비 */
  html { scrollbar-gutter: stable; }   /* 세로 스크롤바 자리를 늘 비워 둠 — 글이 짧아 스크롤바가 없는 페이지도 상자가 같은 자리 (페이지를 오가도 로고가 안 움직임) */
}
/* 왼쪽 STEP + 오른쪽 A4 미리보기(워크북·변형 문제·동형 모의고사): 미리보기 칸이 A4 쪽(794px) + 양옆 여백보다 좁아지지 않게,
   상자가 좁아지면 왼쪽 STEP 칸이 먼저 줄어듦 */
@media screen and (min-width: 1240px) {
  .wb-layout { grid-template-columns: minmax(300px, 400px) minmax(836px, 1fr); }
  .layout { grid-template-columns: minmax(340px, 480px) minmax(836px, 1fr); }
}

/* ---------- 1) 바탕·글꼴: 작업 화면 바탕은 옅은 회색, 칸은 흰색. 제목은 굵게·자간 좁게 ---------- */
body { background: var(--bg2); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.page-head { background: var(--bg); border-bottom-color: var(--line); }
.page-head h1 { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; }
.page-head p, .crumb { color: var(--muted); }

/* ---------- 2) 위쪽 메뉴: 흰 띠, 지금 메뉴만 포인트 밑줄. 로고 = Q 마크 그림(assets/brand/q-mark.png, 30×30 — js/common/site.js SITE_MARK) + 퀘스핀 + 작은 "QUESPIN" (모든 페이지 공통, 누르면 홈) ---------- */
.site-header { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header-inner { min-height: 64px; gap: 16px; flex-wrap: nowrap; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 16px; flex: none; }
.site-header .site-logo { color: var(--ink); align-items: center; gap: 8px; }
.site-logo-k { font-family: var(--font-sans); font-weight: 900; font-size: 18px; letter-spacing: -0.04em; }
/* 영문 라벨(모노·대문자·자간 2.5px) 안의 한글: 자간·대문자·모노 글꼴을 풀어 "변 형 문 제"처럼 벌어지지 않게 (2026-10-06)
   예: <span class="step-num">STEP 5 <span class="lb-ko">AI 출제</span></span>, 홈 카드 라벨·슬라이드 라벨, 파트너 문의 머리 라벨 */
.lb-ko { font-family: var(--font-sans); letter-spacing: normal; text-transform: none; }
.site-logo-sub { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc); }
.site-header nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.site-menu { flex-wrap: nowrap; gap: 0; }
.site-header .menu-link { min-height: 64px; padding: 0 12px; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-header .menu-link:hover, .site-header .menu-link:focus-visible { color: var(--ink); }
.site-header .menu-link.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--acc); }
.site-header .menu-caret { display: inline-block; width: 6px; height: 6px; margin: 0 2px 4px 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }   /* 아래 꺾쇠 — 선으로 (그림 문자 ▼ 대신) */
.site-header .has-sub:hover .menu-caret, .site-header .has-sub.open .menu-caret { transform: rotate(225deg); margin-bottom: 0; }
.submenu { border-radius: 0 0 var(--theme-radius) var(--theme-radius); box-shadow: 0 16px 32px -16px rgba(11, 18, 32, .25); }
.submenu a { border-radius: var(--theme-radius); font-size: 15px; }
.submenu a small { font-size: 13px; }
.submenu a:hover, .submenu a:focus-visible { background: var(--bg2); }
.submenu a.active { background: var(--accbg); color: var(--ink); }
.site-version { margin-left: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.site-version[hidden] { display: none; }   /* 베타·버전은 관리자에게만 (2026-10-29 — site.js siteVersionShow) */
/* html.qs-boot main { visibility: hidden; } — 2026-10-29 예전: <main>만 */
html.qs-boot body > * { visibility: hidden !important; }   /* 화면이 다 그려질 때까지 <body> 안 전부 (바탕색만 보임) — 2026-11-11 js/common/site-early.js */
.site-version b { color: var(--acc2); background: var(--accbg); border-radius: 4px; }
/* 설명서 [?] (2026-10-09 nav-cleanup → preview-spread): 파트너 문의 왼쪽 둥근 아이콘(24px) + 바로 아래 작은 글자 "설명서"(11px, --muted, 가운데) — 메뉴 줄 높이는 그대로
   설명서 페이지에서는 아이콘 테두리와 글자가 함께 --acc, 800px 이하는 글자 메뉴 "설명서" */
.site-header .site-help { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; margin-right: 8px; color: var(--ink2); text-decoration: none; line-height: 1; }
.site-header .site-help-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 13px; font-weight: 700; }
.site-header .site-help-txt { display: block; font-size: 11px; color: var(--muted); }
.site-header .site-help:hover .site-help-ico, .site-header .site-help:focus-visible .site-help-ico, .site-header .site-help.active .site-help-ico { border-color: var(--acc); color: var(--acc); }
.site-header .site-help:hover .site-help-txt, .site-header .site-help.active .site-help-txt { color: var(--acc); }
.site-header .site-help:focus-visible { outline: none; }
/* 화면 바탕 고르기 (2026-10-09 workbook-theme, site.js siteBgHTML): [?] 왼쪽 동그라미 셋(흰색·종이색·연회색) + 아래 작은 글자 "바탕" — [?]와 같은 높이 */
.site-header .site-bg { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-right: 16px; line-height: 1; }
.site-header .site-bg-dots { display: inline-flex; align-items: center; gap: 4px; height: 24px; }
.site-header .site-bg-dot { width: 16px; height: 16px; padding: 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.site-header .site-bg-white { background: var(--bg); } .site-header .site-bg-paper { background: var(--bgs-paper); } .site-header .site-bg-gray { background: var(--bgs-gray); }
.site-header .site-bg-dot.active, .site-header .site-bg-dot:hover, .site-header .site-bg-dot:focus-visible { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); outline: none; }
.site-header .site-bg-txt { font-size: 11px; color: var(--muted); }
/* 화면 모양 [사이트 | 스튜디오] (2026-10-30 — site.js siteUiHTML): 바탕 동그라미 옆 작은 두 칸 + 아래 "화면" · 휴대폰은 [목록] 서랍 맨 위(.site-ui-drawer) · 새 화면 회원 칸 작은 창(.site-ui-pop)
   비회원·결제 전(qs-guest)·토스 심사 계정(qs-noui)은 없음 */
.site-ui { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-right: 16px; line-height: 1; }
.site-ui-seg { display: inline-flex; height: 24px; border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); overflow: hidden; }
.site-ui-seg button { padding: 0 8px; border: 0; background: none; font: 700 11px/1 var(--font-sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.site-ui-seg button + button { border-left: 1px solid var(--line); }
.site-ui-seg button:hover, .site-ui-seg button:focus-visible { color: var(--acc); outline: none; }
.site-ui-seg button.active { background: var(--acc); color: var(--bg); }
.site-ui-txt { font-size: 11px; color: var(--muted); }
.site-ui-drawer { display: none; }
.site-ui-pop { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.site-ui-look { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }   /* [화면] 단추 작은 창 맨 위 */
.site-ui-pop .site-ui-txt, .site-ui-drawer .site-ui-txt, .site-ui-look .site-ui-txt { order: -1; font-size: 13px; color: var(--ink2); }
.site-ui-look .site-ui-txt { font-weight: 700; color: var(--ink); }
.site-ui-pop .site-ui-seg, .site-ui-drawer .site-ui-seg, .site-ui-look .site-ui-seg { height: 32px; }
.site-ui-pop .site-ui-seg button, .site-ui-drawer .site-ui-seg button, .site-ui-look .site-ui-seg button { padding: 0 16px; }
html.qs-guest .site-ui, html.qs-noui .site-ui { display: none !important; }
/* 위쪽 띠가 빠듯할 때 (2026-10-30 선생님 "바탕 색 고르는게 디자인실 내리는 부분이랑 화면이 겹친다"): 바탕 동그라미 + [사이트 | 스튜디오] → [화면] 단추 하나 (누르면 같은 작은 창, 맨 위에 화면 모양)
   1301~1599px는 처음부터, 그 밖의 폭은 site.js siteHdFit이 실제로 붙을 때 html.site-hd-tight · 예전 화면만 (새 화면 qs-rail 띠는 그대로) */
.site-header .site-look { display: none; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; line-height: 1; cursor: pointer; }
.site-look-dot { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.site-look-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.site-look-txt { font-size: 11px; color: var(--muted); }
.site-header .site-look:hover .site-look-dot, .site-header .site-look:focus-visible .site-look-dot, .site-header .site-look[aria-expanded="true"] .site-look-dot { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.site-header .site-look:hover .site-look-txt, .site-header .site-look[aria-expanded="true"] .site-look-txt { color: var(--acc); }
.site-header .site-look:focus-visible { outline: none; }
@media (min-width: 1301px) and (max-width: 1599px) {
  html:not(.qs-rail) .site-header .site-bg-dots, html:not(.qs-rail) .site-header .site-bg-txt, html:not(.qs-rail) .site-header .site-ui-bar { display: none; }
  html:not(.qs-rail) .site-header .site-look { display: inline-flex; }
}
html.site-hd-tight:not(.qs-rail) .site-header .site-bg-dots, html.site-hd-tight:not(.qs-rail) .site-header .site-bg-txt, html.site-hd-tight:not(.qs-rail) .site-header .site-ui-bar { display: none; }
html.site-hd-tight:not(.qs-rail) .site-header .site-look { display: inline-flex; }
.site-header .site-cta { flex: none; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: var(--theme-radius); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header .site-cta:hover, .site-header .site-cta:focus-visible { background: var(--ink2); color: var(--bg); outline: none; }
/* 회원 패널 (2026-10-09 member-panel — js/common/site.js "회원 패널"): 파트너 문의 오른쪽 둥근 사람 아이콘 → 작은 카드
   남은 날 7일 이하 = 주황 --due (회원 패널 전용 — 사용자 요청 색), 기간 만료 = --warn */
:root { --due: #c2410c; }
.site-header .site-me { position: relative; flex: none; margin-left: 8px; }
.site-header .site-me-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink2); cursor: pointer; }
.site-header .site-me-btn:hover, .site-header .site-me-btn:focus-visible, .site-header .site-me-btn[aria-expanded="true"] { border-color: var(--acc); color: var(--acc); outline: none; }
.site-me-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 288px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 8px 24px rgba(11, 18, 32, .12); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink2); text-align: left; }
.site-me-panel[hidden] { display: none; }
.site-me-panel .me-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.site-me-panel .me-email { color: var(--muted); word-break: break-all; }
.site-me-panel .me-plan b { color: var(--acc2); }
.site-me-panel .me-plan span { color: var(--muted); }
.site-me-panel .me-due { font-weight: 700; }
.site-me-panel .me-due.me-due-soon { color: var(--due); }
.site-me-panel .me-due.me-due-over { color: var(--warn); }
/* 요금제 줄 (2026-11-11 — js/common/site.js sitePlanHTML): [Pro 배지] 한 줄 + 보조 글 한 줄 · 강조는 남은 날 7일 이하일 때 --warn 하나만 */
.site-me-panel .me-plan { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink2); }
.site-me-panel .me-plan span { color: var(--ink2); }
.site-me-panel .me-plan .me-badge { padding: 0 8px; border: 1px solid var(--acc); border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 20px; color: var(--acc); }
.site-me-panel .me-plan-s { margin-top: -8px; font-size: 13px; color: var(--muted); }   /* 위 줄 바로 아래 (패널 간격 8px을 지움) */
.site-me-panel .me-soon { font-style: normal; font-weight: 700; color: var(--warn); }
.site-me .me-q-carry { display: block; }
.site-me .me-q-go { display: block; width: fit-content; margin-top: 8px; font-size: 13px; }   /* [정기 결제 등록하러 가기 →] — 패널 링크 모양 그대로 (--ink2 밑줄), 2026-11-11 */
.site-me .me-q-keep { display: block; font-size: 11px; color: var(--muted); }
.site-me-panel .me-lb { font-size: 11px; font-weight: 700; color: var(--muted); }
.site-me-panel .me-schools { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }   /* 2026-11-11 예전 gap 4 */
.site-me-panel .me-schools li { display: flex; justify-content: space-between; gap: 8px; }
.site-me-panel .me-schools span { color: var(--muted); white-space: nowrap; }
.site-me-panel .me-none { margin: 0; }
.site-me-panel .me-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.site-me-panel a { color: var(--ink2); text-decoration: underline; }
.site-me-panel a:hover { color: var(--acc); }
/* 소식 종 아이콘 (2026-10-23 site-news — js/common/site.js siteNewsBind, 소식 페이지 css/news.css) */
.site-header .site-news { position: relative; flex: none; margin-left: 8px; }
.site-header .site-news[hidden] { display: none; }
.site-header .site-news-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink2); cursor: pointer; }
.site-header .site-news-btn:hover, .site-header .site-news-btn:focus-visible, .site-header .site-news-btn[aria-expanded="true"] { border-color: var(--acc); color: var(--acc); outline: none; }
.site-news-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--bg); }
.site-news-dot[hidden] { display: none; }
/* 새 소식 알림 (js/common/site.js siteNewsHello, 2026-11-19): 종이 3번 은은하게 반짝이고 멈춤 · 종 아래 말풍선 "새 소식이 있어요" */
.site-header .site-news-btn.site-news-glow { animation: siteNewsGlow 1.2s ease-in-out 3; }
@keyframes siteNewsGlow { 0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--line); } 50% { box-shadow: 0 0 0 6px var(--accbg); border-color: var(--acc); color: var(--acc); } }
.site-news-hello { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; padding: 8px 16px; white-space: nowrap; font: 700 13px/1.4 var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--acc); border-radius: 6px; box-shadow: 0 8px 24px -16px rgba(11, 18, 32, .35); cursor: pointer; animation: siteNewsHelloIn .3s ease-out; }
.site-news-hello::before { content: ""; position: absolute; top: -5px; right: 12px; width: 8px; height: 8px; background: var(--bg); border-left: 1px solid var(--acc); border-top: 1px solid var(--acc); transform: rotate(45deg); }
.site-news-hello:hover { color: var(--acc); }
.site-news-hello.out { opacity: 0; transition: opacity .3s; }
@keyframes siteNewsHelloIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header .site-news-btn.site-news-glow { animation: none; } .site-news-hello { animation: none; } .site-news-hello.out { transition: none; } }
@media print { .site-news-hello { display: none !important; } }
.site-news-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 360px; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 8px 24px rgba(11, 18, 32, .12); font-size: 13px; color: var(--ink2); text-align: left; overflow: hidden; }
.site-news-panel[hidden] { display: none; }
.site-news-hd { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; }
.site-news-hd img { width: 36px; height: 36px; object-fit: contain; }
/* 종 패널 머리 여우 「퀘스」 (2026-10-23 — 소식 페이지 왼쪽 여우와 같은 그림·움직임을 작게) */
.site-news-hd .site-news-fox { width: 36px; height: 44px; object-fit: contain; object-position: 50% 100%; position: relative; left: 4px; transform-origin: 50% 100%; animation: siteNewsBob 2.6s ease-in-out infinite, siteNewsWave 3.2s ease-in-out infinite; }
@keyframes siteNewsBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes siteNewsWave { 0%, 100% { rotate: 0deg; } 50% { rotate: -4deg; } }
@media (prefers-reduced-motion: reduce) { .site-news-hd .site-news-fox { animation: none; } }
.site-news-hd b { font-size: 15px; font-weight: 800; color: var(--ink); }
.site-news-cnt { margin-left: auto; font-size: 11px; color: var(--muted); }
.site-news-it { display: block; padding: 8px 16px 8px 24px; border-top: 1px solid var(--line); color: var(--ink2); text-decoration: none; position: relative; }
.site-news-it:hover { background: var(--bg2); }
.site-news-it.new { background: var(--accbg); }
.site-news-it.new::before { content: ""; position: absolute; left: 10px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.site-news-m { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.site-news-nw { font-size: 11px; color: var(--acc); font-weight: 700; }
.site-news-tt { display: block; margin-top: 2px; font-size: 13px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.site-news-empty { margin: 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.site-news-ft { padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.site-news-ft a { color: var(--ink2); text-decoration: underline; }
.site-news-ft a:hover { color: var(--acc); }
/* 종 펼침 탭 [새 소식 | 만드는 중] (2026-11-19 news-merge — 예전 [퀘스 소식] 창을 합침, js/common/site.js siteNewsTab · fox-news.js foxDevMount) */
.site-news-panel { max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 480px) { .site-news-panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; max-height: calc(100vh - 80px); } }   /* 좁은 화면: 종이 맨 오른쪽이 아니어도(사이트 화면 — 뒤에 회원 칸) 화면 안에 */
.site-news-tabs { display: flex; gap: 24px; padding: 0 16px; border-top: 1px solid var(--line); }
.site-news-tabs button { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 13px/1.6 var(--font-sans); color: var(--muted); cursor: pointer; }
.site-news-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--acc); }
.site-news-tabs button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.site-news-tn { margin-left: 8px; font: 700 11px/1 var(--font-mono); color: var(--acc); }
.site-news-body[hidden] { display: none; }
.site-news-feed { padding: 16px; border-top: 1px solid var(--line); }
.fx-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fx-feed a { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.fx-feed a:hover, .fx-feed a:focus-visible { border-color: var(--acc); }
.fx-feed img { width: 100%; height: 100%; object-fit: cover; display: block; }
body:has(.site-news-panel:not([hidden]) > #siteNewsFeed:not([hidden])) :is(#wishDock, #foxDock) { visibility: hidden; }   /* 긴 피드 마지막 줄을 오른쪽 아래 퀘스가 가리지 않게 (펼침이 닫히면 다시 보임) */
.site-news-dev { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.site-news-ft { display: flex; align-items: center; gap: 16px; }
.site-news-ft .site-news-insta { margin-left: auto; }
.site-news-ft .site-news-insta[hidden] { display: none; }
.fx-none, .fx-note { margin: 0; font-size: 13px; color: var(--muted); }
.fx-dev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-dev li { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fx-dev li p { flex: 1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
.fx-vote { flex: none; white-space: nowrap; }
.fx-vote .fx-n { margin-left: 8px; font: 700 11px/1 var(--font-mono); }
.fx-vote[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.fx-req { display: flex; flex-direction: column; gap: 8px; }
.fx-req label { font-size: 13px; font-weight: 700; color: var(--ink); }
.fx-req textarea { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font: 13px/1.6 var(--font-sans); color: var(--ink); resize: vertical; }
.fx-req-go { display: flex; align-items: center; gap: 8px; }
.fx-req-msg { font-size: 13px; color: var(--ink2); }
.fx-req-guide { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.news-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; border-radius: 4px; padding: 0 6px; border: 1px solid; white-space: nowrap; }
.news-tag-f { color: var(--acc); border-color: var(--acc); }
.news-tag-x { color: var(--ink2); border-color: var(--line); background: var(--bg); }
.news-tag-n { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* 바닥글 (js/common/site.js renderSiteFooter — 홈·파트너 문의·개인정보 처리방침) */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); margin-top: 96px; }
.site-footer-inner { max-width: var(--box); margin: 0 auto; padding: 32px var(--box-pad) 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-footer-brand { display: flex; align-items: center; gap: 8px; }   /* Q + 여우 마크 + 이름 (2026-10-08 logo-v2) */
.site-footer-mark { flex: none; height: 28px; width: auto; display: block; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--ink); text-decoration: underline; }

/* ---------- 3) 버튼:모서리 6px. 기본 = 흰 바탕·옅은 테두리, 강조 = 포인트 파랑 바탕·흰 글자, 인쇄 = 잉크 바탕·흰 글자 (워크북 시안) ---------- */
.btn { border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); color: var(--ink); font-weight: 600; }
.btn:hover { border-color: var(--ink2); background: var(--bg); }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--ink2); color: var(--ink); }
.btn-big { border-radius: var(--theme-radius); }
.btn.cta { background: var(--acc); border-color: var(--acc); color: var(--bg); box-shadow: none; font-weight: 700; }
.btn.cta:hover { background: var(--acc2); border-color: var(--acc2); color: var(--bg); }
/* [인쇄·PDF] = 그 화면의 주 버튼 하나: --acc 바탕 + 흰 글자 (2026-10-07 — 예전 --ink) */
#wbPrint, #printBtn, #wbPrint.cta, #printBtn.cta { background: var(--acc); border-color: var(--acc); color: var(--bg); box-shadow: none; font-weight: 700; }
#wbPrint:hover, #printBtn:hover { background: var(--acc2); border-color: var(--acc2); color: var(--bg); }
/* "지금 눌러야 할 버튼" 강조(복사·배치·적용 — data-cta·요청문 카드)는 보조 버튼 모양 + 파란 테두리·글자 → 채운 파랑 주 버튼은 화면에 하나 */
[data-cta].btn.cta, [data-act].btn.cta { background: var(--bg); border-color: var(--acc); color: var(--acc); }
[data-cta].btn.cta:hover, [data-act].btn.cta:hover { background: var(--accbg); border-color: var(--acc2); color: var(--acc2); }
#wbPrint:hover, #printBtn:hover { background: var(--ink2); border-color: var(--ink2); color: var(--bg); }
.btn:disabled, #wbPrint:disabled, .wb-preview-bar .btn:disabled { background: var(--bg2); border-color: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.link, .link-sm { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }   /* 작은 글 링크(원문 보기·전체 선택·전체 해제 등) = --ink2 밑줄. 파랑은 고른 상태·주 버튼·라벨에만 (2026-10-07) */
.link:hover, .link-sm:hover { color: var(--ink); }
.link-sm.muted { color: var(--muted); text-decoration: none; }
.feedback-btn { border-radius: var(--theme-radius); background: var(--ink); }
.feedback-btn:hover { background: var(--ink2); }

/* ---------- 4) 세그먼트·탭: 옅은 테두리, 고른 칸만 --acc 바탕 + 흰 글자 (2026-10-07 도구 화면 색 통일 — 예전 잉크 바탕) ---------- */
.seg, .qt-seg, .page-tabs, .tabs { border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); padding: 0; gap: 0; overflow: hidden; }
.seg button, .qt-seg button, .page-tabs button, .tabs button { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--ink2); font-weight: 500; }
.seg button:last-child, .qt-seg button:last-child, .page-tabs button:last-child, .tabs button:last-child { border-right: 0; }
.seg button:hover, .page-tabs button:hover, .tabs button:hover { background: var(--bg2); }
.seg button.active, .qt-seg button.active, .page-tabs button.active, .tabs button.active { background: var(--acc); color: var(--bg); font-weight: 700; }
.seg-tips, .seg-wide { overflow: visible; }
.seg-tips button:first-child, .seg-wide button:first-child { border-radius: var(--theme-radius) 0 0 var(--theme-radius); }
.seg-tips button:last-child, .seg-wide button:last-child { border-radius: 0 var(--theme-radius) var(--theme-radius) 0; }
.wb-compose button[aria-checked="true"], .wb-compose button.on { background: var(--acc); color: var(--bg); }

/* ---------- 5) 칩: 지문 번호·달·학년 버튼 — 고른 것만 --acc 바탕 + 흰 글자 (2026-10-07) ---------- */
.wb-num, .xp-num, .xp-month, .xp-grade, .num, .sim-num, .wb-shelf-btn, .fchip, .qt-chip, .qt-zoom {
  border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); color: var(--ink2);
}
.qt-chip { border-right: 0; border-radius: var(--theme-radius) 0 0 var(--theme-radius); }
.qt-zoom { border-radius: 0 var(--theme-radius) var(--theme-radius) 0; }
.wb-num:hover, .xp-num:hover, .xp-month:hover, .xp-grade:hover:not(:disabled), .num:hover:not(:disabled), .sim-num:hover:not(:disabled),
.wb-shelf-btn:hover, .qt-chip:hover, .qt-chip:hover + .qt-zoom, .qt-zoom:hover { border-color: var(--ink2); }
.wb-num.on, .xp-num.on, .xp-month.on, .xp-grade.on, .num.on, .sim-num.on, .wb-shelf-btn.on, .qt-chip.on, .qt-chip.on + .qt-zoom {
  background: var(--acc); border-color: var(--acc); color: var(--bg);
}
.xp-grade:disabled, .num:disabled, .sim-num:disabled { background: var(--bg2); border-color: var(--line); color: var(--line); }
.xp-month.on small, .num.on small, .sim-num.on small, .wb-shelf-btn.on small, .qt-chip.on small { color: var(--accbg); }
.xp-month small, .xp-badge { color: var(--acc2); }
.xp-month.on .xp-badge { color: var(--accbg); }
.wb-shelf-new { border-style: dashed; color: var(--acc2); }

/* ---------- 6) 입력 칸 ---------- */
input[type="text"], textarea, .select, .wb-select, .wb-cfield input, .sim-design input[type="number"], .sim-design input[type="text"], .sim-design textarea, .an-table .cell, .qt-presets select, .qt-save-row input {
  border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); color: var(--ink);
}
.select:focus, input[type="text"]:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--accbg); }

/* ---------- 7) 칸·카드·STEP 머리 (시안: STEP 칸은 흰색, "STEP 1"은 고정폭·자간 넓게·포인트 색, 제목은 굵게) ---------- */
.card, .wb-step, .step, .sim-step, .guide-sec, .board, .options, .soon-card, .modal-box, .beta-notice-card, .qt-hover, .qt-panel, .save-bar {
  border-radius: var(--theme-radius); border-color: var(--line); background: var(--bg);
}
.card, .wb-step, .step, .sim-step, .board, .options { box-shadow: none; border-width: 1px; }
.step-head { align-items: baseline; gap: 10px; }
.step-num { background: none; color: var(--acc); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; padding: 0; border-radius: 0; text-transform: uppercase; }
.step-head h2, .pk-step .step-head h2 { color: var(--ink); font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.blk-title, .opt-title { font-weight: 800; letter-spacing: -0.02em; }
/* "문서 생성 옵션" 머리: 진한 상자 대신 흰 카드 + --line 선 + 모노 라벨(--acc) + 제목(--ink) (2026-10-07) */
.options-head { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); border-radius: var(--theme-radius) var(--theme-radius) 0 0; }
.options-head h2 { color: var(--ink); }
.options-head h2::before { content: "Options"; display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc); }
.options-head p { color: var(--muted); }
.options-head .options-icon { background: var(--accbg); color: var(--acc); }
.options-icon { border-radius: var(--theme-radius); }
.filter-bar { border-radius: 0 0 var(--theme-radius) var(--theme-radius); background: var(--bg2); }
.status-pill, .qt-badge, .qt-count, .qt-tag, .kind, .batch-head .status, .pk-req-head .status, .pk-check em, .wb-kind .wb-later, .cut-ed-head b, .cut-ed-head em, .beta-tag { border-radius: 4px; }
.status-pill.soon { background: var(--bg2); color: var(--muted); }
.home-icon { border-radius: var(--theme-radius); }

/* ---------- 8) 안내 칸: "사이트가 이렇게 정했습니다" 등 — 흰 바탕 + 왼쪽 포인트 선 (시안) ---------- */
.msg { border-radius: var(--theme-radius); }
.msg.info { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--acc); }
.msg.info b { color: var(--ink); }
/* 다시 쓴 문항 안내 (2026-11-04 js/common/reuse.js reuseNoteHTML): 한 줄 요약 + [목록 보기]·[×] · 펼치면 출처별로 묶은 짧은 목록 */
.reuse-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; white-space: normal; }
.reuse-note .reuse-sum { flex: 1; min-width: 0; font-size: 15px; }
.reuse-note .reuse-more { padding: 0; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.reuse-note .reuse-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.reuse-note .reuse-x:hover { background: var(--bg2); color: var(--ink); }
.reuse-note .reuse-list { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.reuse-note .reuse-list[hidden] { display: none; }
.reuse-note .reuse-grp b { display: block; font-size: 13px; }
.reuse-note .reuse-grp ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); line-height: 1.6; }
/* STEP 4 AI 재료의 연한 파랑 칸 (시안) — 요청문 도구 */
.req-tools { background: var(--accbg); border: 0; border-radius: var(--theme-radius); }
.req-stats { background: var(--bg); border-radius: var(--theme-radius); }
.batch { border-width: 1px; border-radius: var(--theme-radius); background: var(--bg); }

/* ---------- 9) 미리보기 바탕 · 종이 그림자 (시안: 옅은 회색 위의 흰 쪽, 아래로 깔리는 그림자) ---------- */
.preview, .preview-bar, .wb-preview, .wb-preview-bar, .pk-preview, .pk-preview-bar { background: var(--bg2); }
.preview, .wb-preview { border-radius: var(--theme-radius); }
@media screen {
  .sheet-page, .wb-page, .pk-page { box-shadow: 0 22px 44px -26px rgba(11, 18, 32, .35); outline: 1px solid var(--line); }   /* outline은 쪽 크기를 바꾸지 않음 */
}
.wb-empty { border-radius: var(--theme-radius); border-color: var(--line); color: var(--ink); background: var(--bg); }

/* ---------- 10) 모서리 모음 (페이지 CSS의 둥근 모서리를 화면 틀에서만 6px로) ---------- */
.compare, .pcard, .pt-item, .req-guide, .req-admin, .req-layout,
.wb-cform, .wb-citem, .wb-admin, .wb-mat-state, .wb-mat-row,
.sim-saved, .sim-chip, .sim-alloc, .sim-summary, .sim-levels, .sim-summary .sim-reveal,
.dropzone, .file-card, .claude-help, .src-card, .src-id, .src-bulk, .tile, .rp-comment, .row-toggle,
.guide-toc, .guide-toc a, .g-no, .g-card, .g-flow span, .g-tip,
.pk-load, .pk-check, .pk-req, .pk-batch, .sx-suggest, .pk-opts, .ref-img, .ref-drop, .cut-ed,
.qt-ex, .qt-ex-explain, .qt-summary, .qt-near, .qt-stepper, .modal-close, .logo-preview, .req-bulk textarea, .batch-wait {
  border-radius: var(--theme-radius);
}

/* ---------- 11) 페이지별 손질 (예전의 파란 회색 바탕 → 테마 바탕) ---------- */
.src-card, .cut-ed { background: var(--bg); }
.rp-detail td, .pcard.empty, .pcard.excluded, .req-admin, .wb-admin { background: var(--bg2); }
.pk-req.soon .status { background: var(--bg2); }
.g-flow span { border-color: var(--line); background: var(--accbg); }
.g-no, .g-steps li::before { border-radius: var(--theme-radius); }
.home-card.featured .home-card-desc { color: var(--line); }
.wb-step .step-head small { color: var(--muted); font-weight: 500; }

/* ---------- 12) 좁은 화면 ---------- */
/* 메뉴가 한 줄에 안 들어가면: 로고·버튼 줄 아래에 메뉴 줄 (2026-10-14: 바탕 [+] 단추가 생겨 1180 → 1300px) */
@media (max-width: 1300px) {
  .site-header-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
  .site-header nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .site-menu { flex-wrap: wrap; }
  .site-header .menu-link { min-height: 40px; }
}
/* 1300px보다 넓어도 [화면] 단추로 줄인 뒤 메뉴가 여전히 붙으면 같은 두 줄 모양 (site.js siteHdFit — html.site-hd-wrap, 2026-10-30) */
html.site-hd-wrap:not(.qs-rail):not(.qs-guest) .site-header-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
html.site-hd-wrap:not(.qs-rail):not(.qs-guest) .site-header nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
html.site-hd-wrap:not(.qs-rail):not(.qs-guest) .site-menu { flex-wrap: wrap; }
html.site-hd-wrap:not(.qs-rail):not(.qs-guest) .site-header .menu-link { min-height: 40px; }
@media (max-width: 800px) {
  .site-header .menu-link { padding: 0 8px; }
  .site-logo-sub, .site-version { display: none; }
  .site-header .site-help { padding: 8px; }
  .site-header .site-help-ico { display: none; }
  .site-header .site-help-txt { display: inline; font-size: 15px; font-weight: 500; color: var(--ink2); }
  .site-header .site-bg-txt, .site-header .site-ui-bar .site-ui-txt { display: none; }
}

/* ---------- 도구 화면 색 통일 (2026-10-07, 브랜치 tool-colors) — 다섯 도구 화면(변형 문제·동형·워크북·본문 학습자료·시험지 분석)의 화면 틀만, 종이 안은 그대로 ---------- */
/* 켜짐 스위치: 잉크 → --acc */
.qt-desc-switch input:checked + i, .logo-switch input:checked + i, .toggle input:checked + i { background: var(--acc); }
/* 시험지 분석 본문 번호 배지 (P1 …): 진한 바탕 대신 연한 강조 */
.src-id { background: var(--accbg); color: var(--acc2); }
/* 옵션 아래 설명 글: --muted 13px (예전 10.5~12.5px) */
.opt-desc, .req-note, .xp-note, .logo-src, .options .opt small, .options label small, .toggle-row small,
.wb-step label small, .wb-subopt + small, .pk-step label small, .pk-step .check small, .sim-step label small { font-size: 13px; color: var(--muted); }

/* 말풍선이 있는 옵션 칸 (2026-10-08 어휘 [틀린 단어]·[단어 수준]): 칸 밖으로 말풍선이 보이게 — 둥근 모서리는 첫·끝 단추에 */
.qt-seg.qt-seg-tip, .seg.qt-seg-tip { overflow: visible; }
.qt-seg-tip button[data-tip] { position: relative; }
.qt-seg-tip button:first-child { border-radius: var(--theme-radius) 0 0 var(--theme-radius); }
.qt-seg-tip button:last-child { border-radius: 0 var(--theme-radius) var(--theme-radius) 0; }
/* 회원 패널 — 관리자 미리보기 (2026-10-09 member-preview) */
.site-me-panel .me-pv { font-size: 11px; color: var(--muted); }
.site-me-panel .me-pv-back { padding: 0; border: 0; background: none; font: inherit; color: var(--ink2); text-decoration: underline; cursor: pointer; }
.site-me-panel .me-pv-back:hover { color: var(--acc); }
.site-me-panel .me-preview { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.site-me-panel .me-preview select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink2); background: var(--bg); }

/* 서버 저장 줄 (2026-10-10 server-store — js/common/store.js storeSyncBar): 보낼 것이 남았고 서버에 보내지 못했을 때만, 위쪽 메뉴 바로 아래 가운데 작은 줄 — 작업은 막지 않음 */
.store-sync-bar { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 4px 8px 4px 16px; border: 1px solid var(--acc); border-radius: 6px; background: var(--bg); color: var(--ink2); font-size: 13px; line-height: 1.6; box-shadow: 0 2px 8px rgba(11, 18, 32, .08); pointer-events: none; }
/* [×] 닫기 (2026-10-31 선생님 말씀): 줄은 마우스를 통과시키고 단추만 누를 수 있게 */
.store-sync-bar .store-sync-x { pointer-events: auto; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.store-sync-bar .store-sync-re { pointer-events: auto; flex: none; padding: 0 8px; border: 1px solid var(--acc); border-radius: 6px; background: var(--bg); color: var(--acc); font: inherit; font-size: 13px; font-weight: 700; line-height: 22px; cursor: pointer; }   /* [새로고침] (2026-11-08 선생님) */
.store-sync-bar .store-sync-re:hover { background: var(--accbg); }
.store-sync-bar .store-sync-x:hover { background: var(--bg2); color: var(--ink); }
/* 받는 동안 안내 — 퀘스 + "내려받는 중입니다" (2026-11-21 본부, js/common/store.js storeDl) · 끊기면 [다시 시도] */
.store-dl { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 41; display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink2); box-shadow: 0 2px 8px rgba(11, 18, 32, .08); }
.store-dl[hidden] { display: none; }
.store-dl img { flex: none; width: 48px; height: 48px; object-fit: contain; } .store-dl img[hidden] { display: none; }
.store-dl-t { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.store-dl-t b { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.store-dl-t small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.store-dl[data-st="fail"] { border-color: var(--acc); }
.store-dl-re { flex: none; height: 32px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--acc); color: var(--bg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.store-dl-re:hover { background: var(--acc2); }
@media print { .store-dl { display: none !important; } }
/* z-index 40 (2026-10-31 선생님 신고 — 내 자료실 고르기 창 제목을 덮음): 열린 창(.modal 50 · .lm-back 60 이상)보다 아래 — 창이 열리면 창 뒤로 숨음 */
.site-me-panel .me-sync { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.site-me-panel .me-sync-st { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.site-me-panel .me-sync-up { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; }
.site-me-panel .me-sync-up:hover { border-color: var(--acc); color: var(--acc); }
.site-me-panel .me-admin a { font-size: 13px; color: var(--ink2); text-decoration: underline; }

/* 미리보기 도구 줄: [한 쪽|펼침] · [글자·간격] · [인쇄·PDF]를 같은 높이·같은 글자 크기로 (2026-10-11) */
.pv-tools .seg.pv-toggle button, .pv-tools .btn.lk-toggle, .btn#printBtn, .btn#wbPrint, #printBtn, #wbPrint, #wbExport, #pkExport { height: 36px !important; min-height: 0 !important; padding: 0 16px !important; font-size: 13px !important; line-height: 1 !important; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

/* 회원 패널 — 이번 기간 만들기 횟수 (2026-10-13 quota) */
.site-me .me-quota { margin: 8px 0 0; font-size: 13px; color: var(--ink2); }
.site-me .me-quota .me-lb { display: block; margin: 0; }   /* 2026-11-11 간격 8px 배수 (예전 아래 2px) */
.site-me .me-quota small { color: var(--muted); font-size: 11px; }
.site-me .me-quota b { color: var(--ink); }
.site-me .me-quota-bar { display: block; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.site-me .me-quota-bar i { display: block; height: 100%; background: var(--acc); }
.site-me .me-quota-out b { color: var(--warn); }
.site-me .me-quota-out .me-quota-bar i { background: var(--warn); }

/* ---------- 화면 바탕 20가지 · 강조 색 20가지 (2026-10-14 — 위쪽 메뉴 바탕 [+] 더보기, site.js) ---------- */
:root { --bgs-sky: #eef4fb; --bgs-mint: #ecf6f2; --bgs-pink: #f9eff2; --bgs-lavender: #f2f0f8; --bgs-beige: #f1ece2; --bgs-cream: #fbf7ec; --bgs-sand: #efe6d6; --bgs-sage: #e9efe6; --bgs-ice: #eef3f7; --bgs-peach: #fbefe7; --bgs-lilac: #f4eef8; --bgs-lemon: #fbf8e3; --bgs-stone: #ebe9e5; --bgs-aqua: #e8f5f6; --bgs-black: #0f1115; --bgs-darkgray: #1c1f24; --bgs-darknavy: #0e1626; }
html[data-site-bg="sky"] { --bg2: var(--bgs-sky); --line: #d8e3f0; }
html[data-site-bg="mint"] { --bg2: var(--bgs-mint); --line: #d3e6de; }
html[data-site-bg="pink"] { --bg2: var(--bgs-pink); --line: #ecd8de; }
html[data-site-bg="lavender"] { --bg2: var(--bgs-lavender); --line: #dfdbee; }
html[data-site-bg="beige"] { --bg2: var(--bgs-beige); --line: #e0d6c4; }
html[data-site-bg="cream"] { --bg2: var(--bgs-cream); --line: #ece3cc; }
html[data-site-bg="sand"] { --bg2: var(--bgs-sand); --line: #ddd0b8; }
html[data-site-bg="sage"] { --bg2: var(--bgs-sage); --line: #d3ddcd; }
html[data-site-bg="ice"] { --bg2: var(--bgs-ice); --line: #d9e2ea; }
html[data-site-bg="peach"] { --bg2: var(--bgs-peach); --line: #efd8c9; }
html[data-site-bg="lilac"] { --bg2: var(--bgs-lilac); --line: #e2d6ec; }
html[data-site-bg="lemon"] { --bg2: var(--bgs-lemon); --line: #ece5bf; }
html[data-site-bg="stone"] { --bg2: var(--bgs-stone); --line: #d6d3cc; }
html[data-site-bg="aqua"] { --bg2: var(--bgs-aqua); --line: #cbe5e8; }
/* 2026-10-29 더함 (선생님 요청): 리넨·안개·연잎·버터 + 어두운 깊은 숲 */
:root { --bgs-linen: #f4efe8; --bgs-fog: #e9edf1; --bgs-leaf: #edf3e6; --bgs-butter: #fbf5dc; --bgs-darkforest: #101a15; }
html[data-site-bg="linen"] { --bg2: var(--bgs-linen); --line: #e2d9cc; }
html[data-site-bg="fog"] { --bg2: var(--bgs-fog); --line: #d6dce3; }
html[data-site-bg="leaf"] { --bg2: var(--bgs-leaf); --line: #d5e1c9; }
html[data-site-bg="butter"] { --bg2: var(--bgs-butter); --line: #ebe0b6; }
/* 어두운 바탕: 화면 틀(칸·메뉴·글자)을 어둡게 — 종이 안은 common.css "종이 안"이 예전 값을 다시 정해 흰 종이 그대로 */
html[data-site-bg="black"] { color-scheme: dark; --bg: #1a1d23; --bg2: #0f1115; --line: #2c313a; --ink: #f2f4f7; --ink2: #d9dde3; --muted: #9aa3af; --accbg: color-mix(in srgb, var(--acc) 22%, #1a1d23); }
html[data-site-bg="darkgray"] { color-scheme: dark; --bg: #262a31; --bg2: #1c1f24; --line: #383e48; --ink: #f2f4f7; --ink2: #d9dde3; --muted: #9aa3af; --accbg: color-mix(in srgb, var(--acc) 22%, #262a31); }
html[data-site-bg="darkforest"] { color-scheme: dark; --bg: #1a2620; --bg2: #101a15; --line: #2c3b33; --ink: #f2f4f7; --ink2: #d9dde3; --muted: #9aa3af; --accbg: color-mix(in srgb, var(--acc) 22%, #1a2620); }
html[data-site-bg="darknavy"] { color-scheme: dark; --bg: #17223a; --bg2: #0e1626; --line: #2a3854; --ink: #f2f4f7; --ink2: #d9dde3; --muted: #9aa3af; --accbg: color-mix(in srgb, var(--acc) 22%, #17223a); }
.site-bg-black { background: var(--bgs-black); } .site-bg-darkgray { background: var(--bgs-darkgray); } .site-bg-darknavy { background: var(--bgs-darknavy); } .site-bg-sky { background: var(--bgs-sky); } .site-bg-mint { background: var(--bgs-mint); } .site-bg-pink { background: var(--bgs-pink); } .site-bg-lavender { background: var(--bgs-lavender); } .site-bg-beige { background: var(--bgs-beige); } .site-bg-cream { background: var(--bgs-cream); } .site-bg-sand { background: var(--bgs-sand); } .site-bg-sage { background: var(--bgs-sage); } .site-bg-ice { background: var(--bgs-ice); } .site-bg-peach { background: var(--bgs-peach); } .site-bg-lilac { background: var(--bgs-lilac); } .site-bg-lemon { background: var(--bgs-lemon); } .site-bg-stone { background: var(--bgs-stone); } .site-bg-aqua { background: var(--bgs-aqua); }
.site-bg-linen { background: var(--bgs-linen); } .site-bg-fog { background: var(--bgs-fog); } .site-bg-leaf { background: var(--bgs-leaf); } .site-bg-butter { background: var(--bgs-butter); } .site-bg-darkforest { background: var(--bgs-darkforest); }
.site-bg-white { background: #fff; } .site-bg-paper { background: var(--bgs-paper); } .site-bg-gray { background: var(--bgs-gray); }
/* 강조 색: --acc · 진한 강조 --acc2 · 연한 바탕 --accbg 를 함께 바꿈 (파랑은 예전 값 그대로) */
html[data-site-acc="navy"] { --acc: #1f4f8f; --acc2: color-mix(in srgb, #1f4f8f 78%, #000); --accbg: color-mix(in srgb, #1f4f8f 10%, #fff); }
html[data-site-acc="indigo"] { --acc: #3f4aa8; --acc2: color-mix(in srgb, #3f4aa8 78%, #000); --accbg: color-mix(in srgb, #3f4aa8 10%, #fff); }
html[data-site-acc="sky"] { --acc: #2a8ac4; --acc2: color-mix(in srgb, #2a8ac4 78%, #000); --accbg: color-mix(in srgb, #2a8ac4 10%, #fff); }
html[data-site-acc="teal"] { --acc: #0f7a8a; --acc2: color-mix(in srgb, #0f7a8a 78%, #000); --accbg: color-mix(in srgb, #0f7a8a 10%, #fff); }
html[data-site-acc="mint"] { --acc: #17867a; --acc2: color-mix(in srgb, #17867a 78%, #000); --accbg: color-mix(in srgb, #17867a 10%, #fff); }
html[data-site-acc="green"] { --acc: #2f8550; --acc2: color-mix(in srgb, #2f8550 78%, #000); --accbg: color-mix(in srgb, #2f8550 10%, #fff); }
html[data-site-acc="forest"] { --acc: #1e6b3a; --acc2: color-mix(in srgb, #1e6b3a 78%, #000); --accbg: color-mix(in srgb, #1e6b3a 10%, #fff); }
html[data-site-acc="olive"] { --acc: #6a7d23; --acc2: color-mix(in srgb, #6a7d23 78%, #000); --accbg: color-mix(in srgb, #6a7d23 10%, #fff); }
html[data-site-acc="amber"] { --acc: #c98a00; --acc2: color-mix(in srgb, #c98a00 78%, #000); --accbg: color-mix(in srgb, #c98a00 10%, #fff); }
html[data-site-acc="orange"] { --acc: #c8641c; --acc2: color-mix(in srgb, #c8641c 78%, #000); --accbg: color-mix(in srgb, #c8641c 10%, #fff); }
html[data-site-acc="coral"] { --acc: #d9583a; --acc2: color-mix(in srgb, #d9583a 78%, #000); --accbg: color-mix(in srgb, #d9583a 10%, #fff); }
html[data-site-acc="red"] { --acc: #c0392b; --acc2: color-mix(in srgb, #c0392b 78%, #000); --accbg: color-mix(in srgb, #c0392b 10%, #fff); }
html[data-site-acc="pink"] { --acc: #c2457a; --acc2: color-mix(in srgb, #c2457a 78%, #000); --accbg: color-mix(in srgb, #c2457a 10%, #fff); }
html[data-site-acc="magenta"] { --acc: #a8337f; --acc2: color-mix(in srgb, #a8337f 78%, #000); --accbg: color-mix(in srgb, #a8337f 10%, #fff); }
html[data-site-acc="purple"] { --acc: #7b4fb8; --acc2: color-mix(in srgb, #7b4fb8 78%, #000); --accbg: color-mix(in srgb, #7b4fb8 10%, #fff); }
html[data-site-acc="brown"] { --acc: #8a5a2c; --acc2: color-mix(in srgb, #8a5a2c 78%, #000); --accbg: color-mix(in srgb, #8a5a2c 10%, #fff); }
html[data-site-acc="slate"] { --acc: #4a5a6e; --acc2: color-mix(in srgb, #4a5a6e 78%, #000); --accbg: color-mix(in srgb, #4a5a6e 10%, #fff); }
html[data-site-acc="charcoal"] { --acc: #3b4048; --acc2: color-mix(in srgb, #3b4048 78%, #000); --accbg: color-mix(in srgb, #3b4048 10%, #fff); }
html[data-site-acc="black"] { --acc: #111318; --acc2: color-mix(in srgb, #111318 78%, #000); --accbg: color-mix(in srgb, #111318 10%, #fff); }
/* 2026-10-29 더함: 바다·와인·자두·소나무·벽돌 (흰 글자 대비 5.6~8.3:1) */
html[data-site-acc="ocean"] { --acc: #0b6e99; --acc2: color-mix(in srgb, #0b6e99 78%, #000); --accbg: color-mix(in srgb, #0b6e99 10%, #fff); }
html[data-site-acc="wine"] { --acc: #8c2a45; --acc2: color-mix(in srgb, #8c2a45 78%, #000); --accbg: color-mix(in srgb, #8c2a45 10%, #fff); }
html[data-site-acc="plum"] { --acc: #6d3f8c; --acc2: color-mix(in srgb, #6d3f8c 78%, #000); --accbg: color-mix(in srgb, #6d3f8c 10%, #fff); }
html[data-site-acc="pine"] { --acc: #2b6355; --acc2: color-mix(in srgb, #2b6355 78%, #000); --accbg: color-mix(in srgb, #2b6355 10%, #fff); }
html[data-site-acc="brick"] { --acc: #a0442a; --acc2: color-mix(in srgb, #a0442a 78%, #000); --accbg: color-mix(in srgb, #a0442a 10%, #fff); }
.site-acc-ocean { background: #0b6e99; } .site-acc-wine { background: #8c2a45; } .site-acc-plum { background: #6d3f8c; } .site-acc-pine { background: #2b6355; } .site-acc-brick { background: #a0442a; }
.site-acc-blue { background: #0a84d6; } .site-acc-navy { background: #1f4f8f; } .site-acc-indigo { background: #3f4aa8; } .site-acc-sky { background: #2a8ac4; } .site-acc-teal { background: #0f7a8a; } .site-acc-mint { background: #17867a; } .site-acc-green { background: #2f8550; } .site-acc-forest { background: #1e6b3a; } .site-acc-olive { background: #6a7d23; } .site-acc-amber { background: #c98a00; } .site-acc-orange { background: #c8641c; } .site-acc-coral { background: #d9583a; } .site-acc-red { background: #c0392b; } .site-acc-pink { background: #c2457a; } .site-acc-magenta { background: #a8337f; } .site-acc-purple { background: #7b4fb8; } .site-acc-brown { background: #8a5a2c; } .site-acc-slate { background: #4a5a6e; } .site-acc-charcoal { background: #3b4048; } .site-acc-black { background: #111318; }
.site-header .site-bg-more { width: 16px; height: 16px; padding: 0; border: 1px dashed var(--muted); border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.site-header .site-bg-more:hover, .site-header .site-bg-more[aria-expanded="true"] { border-color: var(--acc); color: var(--acc); }
.site-bg-pop { position: absolute; z-index: 90; width: 340px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 18, 32, .14); }
.site-bg-pop-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.site-bg-pop-h small { font-weight: 400; color: var(--muted); }
.site-bg-pop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.site-bg-pop-grid:last-child { margin-bottom: 0; }
.site-bg-pop-grid button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; font-size: 11px; color: var(--ink2); cursor: pointer; }
.site-bg-pop-grid i { display: block; width: 100%; height: 22px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line) inset; }
.site-bg-pop-grid button.active { color: var(--ink); font-weight: 700; }
.site-bg-pop-grid button.active i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
/* 추천 조합 (2026-10-29): 바탕 칸 위에 강조 색 막대 — 4개씩 두 줄 */
.site-bg-pop-combos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.site-bg-pop-combos button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; font-size: 11px; color: var(--ink2); cursor: pointer; }
.site-bg-pop-combos i { position: relative; display: block; width: 100%; height: 32px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line) inset; }
.site-bg-pop-combos i b { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 8px; border-radius: 6px; }
.site-bg-pop-combos button.active { color: var(--ink); font-weight: 700; }
.site-bg-pop-combos button.active i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.site-bg-pop-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.site-bg-pop-foot small { font-size: 11px; color: var(--muted); }

/* 어두운 바탕 마무리 (2026-10-14): 화면 틀 CSS의 고정 색(밝은 바탕·선·진한 글자)이 var(--dk-…, 원래 색)으로 바뀌어 있음 → 어두운 바탕에서만 테마 색으로.
   강조 색을 고른 때도 연한 강조 바탕(--accbg)이 어둡게 (강조 색 규칙보다 뒤·더 구체적으로) */
html[data-site-bg="black"], html[data-site-bg="black"][data-site-acc],
html[data-site-bg="darkgray"], html[data-site-bg="darkgray"][data-site-acc],
html[data-site-bg="darknavy"], html[data-site-bg="darknavy"][data-site-acc],
html[data-site-bg="darkforest"], html[data-site-bg="darkforest"][data-site-acc] {
  --dk-surface: var(--bg); --dk-line: var(--line); --dk-text: var(--ink2);
  --accbg: color-mix(in srgb, var(--acc) 22%, var(--bg));
}

/* 회원 패널 [API로 만들기 (테스트)] — 관리자만 (2026-10-13 api-integration 가지) */
.me-api { margin-top: 8px; font-size: 13px; color: var(--ink2); }
.me-api small { display: block; color: var(--muted); font-size: 11px; }

/* 예상 남은 시간 상자 — 오래 걸리는 작업 (js/common/progress.js, 2026-10-15) */
@media screen {
  .prg-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9000; min-width: 320px; max-width: calc(100vw - 32px); padding: 16px 24px; background: var(--bg); border: 1px solid var(--acc); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 18, 32, .12); font-size: 15px; color: var(--ink2); }
  .prg-box[hidden] { display: none; }
  .prg-line { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; }
  .prg-label { color: var(--ink); }
  .prg-left { color: var(--acc2); font-weight: 700; white-space: nowrap; }
  .prg-bar { height: 4px; margin-top: 8px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .prg-bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width 1s linear; }
  .prg-long { margin-top: 8px; font-size: 13px; color: var(--muted); }
  /* 퀘스 모양 (opt.ques — 2026-11-14): 같은 자리에 퀘스 + 말풍선(예전 상자와 같은 테두리·글·막대) */
  .prg-box.prg-ques { display: flex; align-items: flex-end; gap: 8px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .prg-box.prg-ques[hidden] { display: none; }
  .prg-pic { flex: none; width: 88px; height: 88px; }
  .prg-pic img { display: block; width: 88px; height: 88px; object-fit: contain; }
  .prg-ques .prg-say { position: relative; flex: 1; min-width: 0; margin-bottom: 24px; padding: 16px 24px; background: var(--bg); border: 1px solid var(--acc); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 18, 32, .12); }
  .prg-ques .prg-line { flex-wrap: wrap; gap: 0 16px; }   /* 좁은 화면: 글 한 줄 → 남은 시간은 아래 줄 */
  .prg-ques .prg-label { word-break: keep-all; }
  .prg-ques .prg-say::before { content: ''; position: absolute; left: -7px; bottom: 16px; width: 12px; height: 12px; background: var(--bg); border-left: 1px solid var(--acc); border-bottom: 1px solid var(--acc); transform: rotate(45deg); }
}
@media print { .prg-box { display: none !important; } }
/* 비밀번호 만들기 안내 창 (js/common/site.js sitePwNudge — 2026-10-15) */
.pw-nudge-ov { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 32, .45); }
.pw-nudge { width: min(480px, 100%); padding: 32px; background: var(--bg); border-radius: 10px; box-shadow: 0 16px 48px rgba(11, 18, 32, .2); color: var(--ink2); font-size: 15px; line-height: 1.7; }
.pw-nudge-lb { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; color: var(--acc); }
.pw-nudge h2 { margin: 0 0 16px; font-size: 22px; color: var(--ink); }
.pw-nudge p { margin: 0 0 16px; }
.pw-nudge ul { margin: 0 0 24px; padding-left: 20px; font-size: 13px; color: var(--muted); }
.pw-nudge-btns { display: flex; gap: 8px; margin-bottom: 16px; }
.pw-nudge small { font-size: 13px; color: var(--muted); }

/* 사용법 영상 단추·창 (2026-10-15 — js/common/site.js siteHowto) */
.site-howto-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 16px; vertical-align: middle; height: 32px; padding: 0 16px 0 8px;
  font: 700 13px/1 var(--font-sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.site-howto-btn:hover, .site-howto-btn:focus-visible { border-color: var(--acc); color: var(--acc); }
.site-howto-play { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 9px; padding-left: 2px; box-sizing: border-box; }
.site-howto { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 82%, transparent); padding: 16px; }
.site-howto[hidden] { display: none; }
.site-howto-box { position: relative; width: min(1200px, calc(100vw - 128px), calc((100vh - 120px) * 16 / 9)); }
.site-howto-box video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.site-howto-x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.site-howto-note { margin: 8px 0 0; color: #fff; font-size: 13px; text-align: center; opacity: .8; }
@media (max-width: 600px) { .site-howto-box { width: calc(100vw - 32px); } .site-howto-btn { margin: 8px 0 0; display: flex; } }
@media print { .site-howto-btn, .site-howto { display: none !important; } }

/* 회원 패널 요청 기록 (2026-10-15 — site.js siteQuotaHTML) */
.me-ai { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink2); }
.me-ai small { color: var(--muted); font-size: 11px; }

/* 회원 패널 사용 횟수 (2026-10-15 — "12 / 500회 사용" 큰 숫자) */
.site-me .me-q-big { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }   /* 2026-11-11 간격 8px 배수 (예전 gap 6 · 위 4) */
.site-me .me-q-big b { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.site-me .me-q-big span { font-size: 13px; color: var(--ink2); }
.site-me .me-q-big em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 700; color: var(--acc); }
.site-me .me-q-sub { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.site-me .me-quota-low .me-q-big em { color: var(--warn); }   /* 2026-11-11 패널 강조는 --warn 하나 (예전 --due 주황) */
.site-me .me-quota-out .me-q-big em, .site-me .me-quota-out .me-q-sub { color: var(--warn); }

/* 사용법 영상 말풍선 (2026-10-15 — site.js siteHowtoTip) */
.site-howto-tip { position: absolute; z-index: 900; width: 320px; max-width: calc(100vw - 32px); padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(11, 18, 32, .3); }
.site-howto-tip::before { content: ""; position: absolute; top: -7px; left: var(--ht-arrow, 24px); width: 12px; height: 12px; background: var(--bg); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.site-howto-tip-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; }
.site-howto-tip p { margin: 8px 0 16px; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.site-howto-tip-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-howto-tip-btns .link { margin-left: auto; font-size: 13px; color: var(--ink2); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.site-howto-glow { box-shadow: 0 0 0 4px var(--accbg), 0 0 0 6px var(--acc); }
@media print { .site-howto-tip { display: none !important; } }

/* 새 기능 공지 카드 (2026-10-29 — site.js siteNotice, 공지 목록 data/notices.js): 오른쪽 아래 작은 카드, 아래쪽 단계 줄이 있으면 그 위로 (--sn-bottom) */
.site-notice { position: fixed; right: 16px; bottom: var(--sn-bottom, 16px); z-index: 50; width: 320px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(11, 18, 32, .3); overflow: hidden; animation: sn-in .3s ease both; }
@keyframes sn-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-notice { animation: none; } }
.site-notice .sn-img { background: var(--bg2); border-bottom: 1px solid var(--line); }
.site-notice .sn-img img { display: block; width: 100%; height: 128px; object-fit: cover; object-position: left top; }
.site-notice .sn-body { padding: 16px; }
.site-notice .sn-lb { margin: 0; font: 700 11px/1.4 var(--font-mono); letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc); }
.site-notice .sn-lb .lb-ko { font-weight: 700; }
.site-notice .sn-more { font-family: var(--font-sans); letter-spacing: normal; font-weight: 400; color: var(--muted); }
.site-notice .sn-t { margin: 8px 0 0; font-size: 15px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.site-notice .sn-x { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.site-notice .sn-path { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 8px 0 0; padding: 8px; border-radius: 6px; background: var(--bg2); font-size: 13px; line-height: 1.6; color: var(--ink2); }
.site-notice .sn-path b { font-weight: 700; color: var(--ink); }
.site-notice .sn-k { width: 100%; font-size: 11px; color: var(--muted); }
.site-notice .sn-ar { color: var(--muted); }
.site-notice .sn-btns { display: flex; justify-content: flex-end; margin-top: 8px; gap: 8px; }
@media (max-width: 600px) { .site-notice { right: 16px; left: 16px; width: auto; max-width: none; } .site-notice .sn-img img { height: 112px; } }
@media print { .site-notice { display: none !important; } }
/* 새 기능 크게 보기 (2026-11-01 — js/common/site.js siteNoticeZoom: 회원 홈 "이번 주 새 기능"·퀘스 소식 창 공지를 누르면) */
.sn-zoom { position: fixed; inset: 0; z-index: 960; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(11, 18, 32, .6); }
.sn-zoom[hidden] { display: none; }
/* 2026-11-08 선생님 "조금 깔끔하게 — 1 2 3" → 가운데 카드 한 장 (위 그림 · 제목 · 번호 단계 · 아래 단추) */
.sn-zoom .snz-box { position: relative; display: flex; flex-direction: column; width: min(840px, 100%); max-height: calc(100vh - 48px); background: var(--bg); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .3); }
.sn-zoom .snz-pic { flex: none; height: 420px; background: var(--bg2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sn-zoom .snz-pic img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 2px 8px rgba(11, 18, 32, .08); }
.sn-zoom .snz-txt { flex: 1 1 auto; min-height: 0; padding: 24px 24px 8px; overflow: auto; }
.sn-zoom .snz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 32px; }
.sn-zoom .sn-lb { margin: 0; font: 700 11px/1.4 var(--font-mono); letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc); }
.sn-zoom h2 { margin: 8px 0 0; font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.sn-zoom .snz-x2 { margin: 8px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.sn-zoom .snz-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-zoom .snz-step { display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 8px; margin: 0 -8px; border: 0; border-radius: 6px; background: none; color: var(--ink2); font: inherit; text-align: left; cursor: pointer; }
.sn-zoom .snz-step:hover, .sn-zoom .snz-step.on { background: var(--bg2); }
.sn-zoom .snz-step:focus-visible { outline: 2px solid var(--acc); outline-offset: 0; }
.sn-zoom .snz-n { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 6px; background: var(--accbg); color: var(--acc); font: 700 13px/24px var(--font-mono); text-align: center; }
.sn-zoom .snz-step.on .snz-n { background: var(--acc); color: var(--bg); }
.sn-zoom .snz-step b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.sn-zoom .snz-step small { display: block; margin-top: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sn-zoom .snz-note { margin: 16px 0 0; padding: 8px 16px; border-left: 3px solid var(--acc); background: var(--bg2); font-size: 13px; line-height: 1.6; color: var(--ink2); }
.sn-zoom .snz-note b { color: var(--ink); }
.sn-zoom .sn-path { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sn-zoom .sn-path b { font-weight: 700; color: var(--ink2); }
.sn-zoom .sn-k { margin-right: 8px; font-size: 11px; color: var(--muted); }
.sn-zoom .sn-ar { margin: 0 8px; color: var(--muted); }
.sn-zoom .snz-nav { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sn-zoom .snz-nav button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; }
.sn-zoom .snz-nav button[disabled] { opacity: .35; cursor: default; }
.sn-zoom .snz-foot { flex: none; display: flex; gap: 8px; padding: 16px 24px 24px; }
.sn-zoom .snz-foot .btn { flex: 1; justify-content: center; text-align: center; }
.sn-zoom .snz-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.sn-zoom .snz-x:focus-visible, .sn-zoom .snz-nav button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 760px) { .sn-zoom .snz-pic { height: 216px; } .sn-zoom .snz-txt { padding: 16px 16px 8px; } .sn-zoom .snz-foot { padding: 16px; } }
@media print { .sn-zoom { display: none !important; } }
/* 움직이는 장면 (2026-11-12 본부 — js/common/site.js siteScenePlay): 창 폭 840(예전 560)·그림 칸 420(예전 280, 1.5배)
   장면 그림을 겹쳐 두고 바꿈 · 커서는 선으로 그린 화살표(검정 + 흰 테두리) · 누름 = --acc 고리 · 글자 치기 = 흰 칸 + --acc 테두리 */
.sn-zoom .snz-pic-play { padding: 16px; container-type: size; }
.sn-zoom .snz-stage { position: relative; flex: none; width: min(100cqw, 160cqh); aspect-ratio: 16 / 10;   /* 그림 비율 그대로 칸에 맞춤 — 커서 %가 그림과 어긋나지 않게 (캡처는 16:10) */ border-radius: 6px; overflow: hidden; background: var(--bg); box-shadow: 0 2px 8px rgba(11, 18, 32, .08); }
.sn-zoom .snz-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .35s ease; box-shadow: none; border-radius: 0; max-width: none; max-height: none; }
.sn-zoom .snz-scene.on { opacity: 1; }
.sn-zoom .snz-cur { position: absolute; left: 80%; top: 80%; z-index: 3; width: 16px; height: 24px; margin: -1px 0 0 -1px; opacity: 0; pointer-events: none; transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), opacity .2s, transform .12s; filter: drop-shadow(0 0 1px var(--bg)) drop-shadow(0 0 1px var(--bg)) drop-shadow(0 1px 2px rgba(11, 18, 32, .3)); }
.sn-zoom .snz-cur.on { opacity: 1; }
.sn-zoom .snz-cur.snz-jump { transition: none; }
.sn-zoom .snz-cur.down { transform: scale(.86); }
.sn-zoom .snz-cur i { display: block; width: 100%; height: 100%; background: var(--ink); clip-path: polygon(0 0, 0 76%, 24% 60%, 42% 100%, 58% 93%, 40% 56%, 74% 56%); }
.sn-zoom .snz-ring { position: absolute; z-index: 2; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid var(--acc); border-radius: 50%; opacity: 0; pointer-events: none; }
.sn-zoom .snz-ring.go { animation: snz-ring .55s ease-out; }
@keyframes snz-ring { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.sn-zoom .snz-type { position: absolute; z-index: 2; max-width: 60%; padding: 4px 8px; margin: 16px 0 0 8px; border: 1px solid var(--acc); border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; }
.sn-zoom .snz-type.on { opacity: 1; }
.sn-zoom .snz-type.on::after { content: ''; display: inline-block; width: 1px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: snz-caret 1s steps(1) infinite; }
@keyframes snz-caret { 50% { opacity: 0; } }
.sn-zoom .snz-still .snz-cur, .sn-zoom .snz-still .snz-ring, .sn-zoom .snz-still .snz-type { display: none; }
@media (prefers-reduced-motion: reduce) { .sn-zoom .snz-scene { transition: none; } }
@media (max-width: 760px) { .sn-zoom .snz-pic-play { padding: 8px; } .sn-zoom .snz-cur { width: 12px; height: 18px; } }
/* 사용법 보기 모양 장면 카드 (2026-11-18 선생님 "사용법 보기처럼 새 소식이 나오면" — js/common/site.js siteNoticeZoom 장면 카드):
   위 제목 줄 · 가운데 넓은 화면(나머지는 어둡게 + 밝힌 칸 --acc 테두리 = 사용법 보기 구멍 .qs-tour-hole과 같은 모양) · 커서 · 말풍선(.qs-tour-card 모양)
   · 아래 장면 점·[이전]·[멈춤 / 자동 넘김]·[다음] + [닫기]·[가 보기]. 좁은 창(그림 폭 560 아래)이면 말풍선은 그림 아래 */
.sn-zoom.snz-tourmode { padding: 16px; }
.sn-zoom .snz-tbox { width: min(1200px, 100%); height: min(880px, calc(100vh - 32px)); max-height: none; }
.sn-zoom .snz-head { position: relative; flex: none; display: flex; align-items: center; gap: 16px; padding: 16px 64px 16px 24px; border-bottom: 1px solid var(--line); }
.sn-zoom .snz-ht { flex: 1 1 auto; min-width: 0; }
.sn-zoom .snz-head h2 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-zoom .snz-head .snz-x { top: 50%; margin-top: -16px; right: 16px; }
.sn-zoom .snz-tbox .snz-pic { flex: 1 1 auto; height: auto; min-height: 0; border-bottom: 0; }
.sn-zoom .snz-play { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sn-zoom .snz-hole { position: absolute; z-index: 1; border-radius: 6px; box-shadow: 0 0 0 2400px rgba(11, 18, 32, .5); outline: 2px solid var(--acc); opacity: 0; pointer-events: none;
  transition: left .5s cubic-bezier(.4, 0, .2, 1), top .5s cubic-bezier(.4, 0, .2, 1), width .5s cubic-bezier(.4, 0, .2, 1), height .5s cubic-bezier(.4, 0, .2, 1), opacity .3s; }
.sn-zoom .snz-hole.on { opacity: 1; }
.sn-zoom .snz-bub { position: absolute; z-index: 4; width: 300px; box-sizing: border-box; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(11, 18, 32, .45); color: var(--ink2);
  transition: left .4s ease, top .4s ease; }
.sn-zoom .snz-bub:empty { display: none; }
.sn-zoom .snz-bub-k { margin: 0 0 8px; font: 700 11px/1 var(--font-mono); letter-spacing: 2.5px; color: var(--acc); }
.sn-zoom .snz-bub-t { display: block; font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.sn-zoom .snz-bub-x { display: block; margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.sn-zoom .snz-narrow { justify-content: flex-start; }
.sn-zoom .snz-narrow .snz-bub { position: static; width: 100%; margin-top: 8px; box-shadow: none; transition: none; }
.sn-zoom .snz-sub { flex: none; padding: 0 24px 8px; }
.sn-zoom .snz-sub .snz-note, .sn-zoom .snz-sub .sn-path { margin: 8px 0 0; }
.sn-zoom .snz-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.sn-zoom .snz-dots { display: inline-flex; align-items: center; gap: 8px; }
.sn-zoom .snz-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 6px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.sn-zoom .snz-dot.on { width: 24px; background: var(--acc); }
.sn-zoom .snz-dot:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sn-zoom .snz-ctl, .sn-zoom .snz-end { display: inline-flex; gap: 8px; }
.sn-zoom .snz-end { margin-left: auto; }
.sn-zoom .snz-ctl .btn[disabled] { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sn-zoom .snz-hole, .sn-zoom .snz-bub, .sn-zoom .snz-dot { transition: none; } }
@media (max-width: 760px) {
  .sn-zoom.snz-tourmode { padding: 8px; }
  .sn-zoom .snz-tbox { height: calc(100vh - 16px); }
  .sn-zoom .snz-head { padding: 16px 56px 16px 16px; }
  .sn-zoom .snz-tbox .snz-pic-play { padding: 8px; }
  .sn-zoom .snz-sub { padding: 0 16px 8px; }
  .sn-zoom .snz-bar { padding: 16px; gap: 8px; }
  .sn-zoom .snz-end { width: 100%; margin-left: 0; }
  .sn-zoom .snz-end .btn { flex: 1; justify-content: center; }
}
/* 정기 결제 안내 (2026-11-09 — js/common/site.js sitePayNudge): 같은 가운데 카드 + 이용 예정 상자 · 장점 세 줄 · "이렇게 등록합니다" 라벨 */
.sn-zoom .pn-who { margin: 16px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--accbg); }
.sn-zoom .pn-who p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.sn-zoom .pn-who p:first-child { font-size: 15px; font-weight: 700; color: var(--ink); }
.sn-zoom .pn-who p + p { margin-top: 8px; }
.sn-zoom .pn-who b { color: var(--acc2); }
.sn-zoom .pn-who .pn-note { padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.sn-zoom .pn-why { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sn-zoom .pn-why li { padding: 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sn-zoom .pn-why b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.sn-zoom .pn-k { margin: 24px 0 0; font: 700 11px/1.4 var(--font-sans); color: var(--acc); }
.sn-zoom.pn-nudge .snz-box { width: min(640px, 100%); }
@media (max-width: 760px) { .sn-zoom .pn-why { grid-template-columns: 1fr; } .sn-zoom.pn-nudge .snz-pic { height: 160px; } }

/* 위쪽 메뉴 펼침: 설명 글은 숨기고 마우스를 올리면(초점이 가면) 오른쪽 옆에 말풍선 (2026-10-17 선생님 요청) */
.submenu > li { position: relative; }
.submenu a small {
  display: none; position: absolute; left: calc(100% + 8px); top: 0; width: 260px; z-index: 5;
  background: var(--bg); color: var(--ink2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 16px; font-size: 13px; font-weight: 400; line-height: 1.6; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); white-space: normal;
}
.submenu a:hover small, .submenu a:focus-visible small { display: block; }

/* 결제 전 계정 = 둘러보기만 (2026-10-19 paywall — js/common/site.js sitePayApply가 <html class="qs-unpaid">를 붙임)
   ① 미리보기 종이마다 비스듬한 "샘플" 글씨 (종이 위 겹친 층 — 쪽 나누기에는 영향 없음, 인쇄에도 같이)
   ② 인쇄(Ctrl+P)하면 빈 종이 + 맨 위 작은 안내 한 줄
   ③ 위쪽 메뉴 아래 안내 띠 · 막힌 단추를 누르면 안내 창 (.qs-pay-*) */
html.qs-unpaid :is(.sheet-page, .pk-page, .wb-page, .bk-pg, body[data-page="vocab"] article.sheet) { position: relative; isolation: isolate; }   /* isolate: 샘플 층이 위쪽 도구 줄을 덮지 않게 */
html.qs-unpaid :is(.sheet-page, .pk-page, .wb-page, .bk-pg, body[data-page="vocab"] article.sheet)::after {
  content: ""; position: absolute; inset: 0; z-index: 60; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='210'%3E%3Ctext x='150' y='118' text-anchor='middle' font-family='Noto Sans KR, Malgun Gothic, sans-serif' font-size='54' font-weight='800' fill='%23000' fill-opacity='0.08' transform='rotate%28-30 150 105%29'%3E%EC%83%98%ED%94%8C%3C/text%3E%3C/svg%3E") repeat center / 300px 210px;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
@media print {
  html.qs-unpaid body > * { display: none !important; }
  html.qs-unpaid body::before { content: "퀘스핀 · 결제 후 인쇄할 수 있습니다"; display: block; padding: 16mm; font-size: 9pt; color: #999; }
}
/* 기간 지난 회원 (2026-11-21 — js/common/site.js siteEndedApply, SITE_ENDED.exports가 켜졌을 때만 qs-ended-noprint): 인쇄는 빈 종이 + 한 줄 · "샘플" 글씨는 없음 */
@media print {
  html.qs-ended-noprint body > * { display: none !important; }
  html.qs-ended-noprint body::before { content: "퀘스핀 · 이용 기간이 끝났습니다 — 결제 후 다시 인쇄할 수 있습니다"; display: block; padding: 16mm; font-size: 9pt; color: var(--muted); }
}
.qs-pay-bar { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 8px 16px; background: var(--accbg); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.qs-pay-bar b { color: var(--ink); }
.qs-pay-bar a { color: var(--acc); font-weight: 700; }
.qs-pay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 18, 32, .45); }
.qs-pay[hidden] { display: none; }
.qs-pay-box { width: 420px; max-width: 100%; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(11, 18, 32, .3); }
.qs-pay-box .qs-pay-lb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--acc); }
.qs-pay-box h2 { margin: 8px 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.qs-pay-box p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.qs-pay-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media print { .qs-pay, .qs-pay-bar { display: none !important; } }

/* 바닥글 사업자 정보 · 회원 패널 [결제하기] (2026-10-20 토스 결제) */
.site-footer-biz { max-width: var(--box); margin: -32px auto 0; padding: 0 var(--box-pad) 32px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.site-me .me-pay-go { color: var(--acc) !important; font-weight: 700; }

/* 새 화면 — 왼쪽 메뉴 막대 (2026-10-29 — 관리자만 · 끄면 예전 화면): <html class="qs-rail">는 site-early.js가 첫 그림 전에 붙임.
   여기는 첫 그림부터 필요한 자리만 (막대 폭만큼 비우기 · 위쪽 메뉴의 메뉴 줄 숨기기) — 막대·위 탭·회원 칸 모양은 css/rail.css (js/common/rail.js가 불러옴) */
html.qs-rail { --rail-w: 64px; --rail-h: 64px; }
html.qs-rail body { padding-left: var(--rail-w); }
html.qs-rail .site-header .site-brand, html.qs-rail .site-header nav,
html.qs-rail .site-header .site-help, html.qs-rail .site-header .site-cta, html.qs-rail .site-header .site-me { display: none; }
html.qs-rail .wbs-foot, html.qs-rail .mks-foot, html.qs-rail .pks-foot, html.qs-rail .vst-foot, html.qs-rail .bkp-foot, html.qs-rail .be-foot, html.qs-rail .an-foot { left: var(--rail-w); }
@media (max-width: 760px) {   /* 좁은 화면: 막대는 [목록]으로 여는 왼쪽 서랍 (2026-10-30 — 예전엔 화면 아래 탭 줄, css/rail.css 5번) */
  html.qs-rail body { padding-left: 0; }
  html.qs-rail .wbs-foot, html.qs-rail .mks-foot, html.qs-rail .pks-foot, html.qs-rail .vst-foot, html.qs-rail .bkp-foot, html.qs-rail .be-foot, html.qs-rail .an-foot { left: 0; }
}
@media print { html.qs-rail body { padding: 0 !important; } }

/* ---------- 비회원 위쪽 띠 (2026-10-30 선생님 "로그인(결제)하기 전에는 위 메뉴 목록을 아예 안 보이게, 결제한 회원이 들어오면 화면이 바뀌는 식") ----------
   <html class="qs-guest">(site.js siteGuest — 로그인 안 함 · 결제 전 계정): 로고 + [요금·파트너 문의] + [로그인](qs-anon) 또는 회원 아이콘만
   결제한 회원·관리자·토스 심사 계정은 이 묶음이 걸리지 않음 (예전 띠 그대로) */
.site-header .site-guest-cta, .site-header .site-login, .site-header .site-nav-btn { display: none; }
html.qs-guest .site-header nav, html.qs-guest .site-header .site-bg, html.qs-guest .site-header .site-help,
html.qs-guest .site-header .site-cta, html.qs-guest .site-header .site-news, html.qs-guest.qs-anon .site-header .site-me { display: none; }
html.qs-guest .site-header .site-guest-cta { display: inline-flex; align-items: center; margin-left: auto; padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
html.qs-guest .site-header .site-guest-cta:hover, html.qs-guest .site-header .site-guest-cta:focus-visible { color: var(--acc); outline: none; }
html.qs-guest.qs-anon .site-header .site-login { display: inline-flex; align-items: center; flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
html.qs-guest.qs-anon .site-header .site-login:hover, html.qs-guest.qs-anon .site-header .site-login:focus-visible { border-color: var(--acc); color: var(--acc); outline: none; }
html.qs-guest .site-header-inner { flex-wrap: nowrap; padding-top: 0; gap: 16px; }
html.qs-guest #qsPayBar { display: none; }   /* 결제 전 띠 "둘러보기 중"은 비회원 띠가 대신 (결제 화면·소식) */

/* ---------- 목록 서랍 — 좁은 화면(760px 이하) (2026-10-30 선생님 "모바일로 보면 왼쪽에 있어야 할 목록이 아래로 떨어진다") ----------
   띠 왼쪽 [목록] 단추 → 왼쪽에서 메뉴 서랍. 예전 화면 = 위쪽 메뉴 줄(html.site-nav-open) · 새 화면 = 왼쪽 막대(html.rail-open, css/rail.css 5번)
   바탕 색 동그라미·[파트너 문의]는 좁은 화면에서 숨김 (서랍 맨 아래 없이 — 넓은 화면에서 고름) · 움직임 줄이기 설정이면 미끄러짐 없이 */
.site-nav-dim { display: none; }
@media (max-width: 760px) {
  html:not(.qs-guest) .site-header .site-nav-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 16px 0 8px; border: 1px solid var(--line); border-radius: var(--theme-radius); background: var(--bg); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .site-header .site-nav-btn:hover, .site-header .site-nav-btn:focus-visible, .site-header .site-nav-btn[aria-expanded="true"] { border-color: var(--acc); color: var(--acc); outline: none; }
  .site-nav-ico { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 16px; height: 16px; }
  .site-nav-ico i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
  html:not(.qs-guest) .site-header-inner { flex-wrap: nowrap; padding-top: 0; gap: 8px; }
  html:not(.qs-guest) .site-header .site-brand { margin-right: auto; }
  .site-header .site-bg, .site-header .site-cta, .site-header .site-ui-bar { display: none; }
  .site-ui-drawer { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin: 0 24px 8px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
  .rail-bar .site-ui-drawer { flex: none; margin-top: 8px; }
  html:not(.qs-rail) .site-header nav { display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; width: min(288px, 85vw); padding: 16px 0 32px; background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  html.site-nav-open:not(.qs-rail) .site-header nav { transform: none; visibility: visible; box-shadow: 0 16px 40px -16px rgba(11, 18, 32, .3); }
  html:not(.qs-rail) .site-header .site-menu { flex-direction: column; flex-wrap: nowrap; }
  html:not(.qs-rail) .site-header nav, html:not(.qs-rail) .site-header .submenu a { color: var(--ink2); }   /* 홈의 어두운 띠(밝은 글자)를 서랍 안 글자가 물려받지 않게 (2026-10-30 선생님 휴대폰 캡처 — 홈 서랍 아래 메뉴가 흰 글자로 안 보임) */
  html:not(.qs-rail) .site-header .site-menu > li { display: block; position: static; }
  html.site-nav-open .site-header, html.rail-open .site-header { z-index: 95; }   /* 서랍(띠 안의 nav)이 어두운 막(85)·아래 단추 줄 위로 */
  html.qs-rail .site-header .site-nav-btn { order: -1; }   /* 새 화면: 경로 글보다 앞 (띠 왼쪽 끝) */
  html:not(.qs-rail) .site-header .menu-link { display: flex; width: 100%; min-height: 48px; padding: 0 24px; border-bottom: 0; border-left: 3px solid transparent; background: none; color: var(--ink2); text-align: left; }
  html:not(.qs-rail) .site-header .menu-link.active { border-left-color: var(--acc); background: var(--accbg); }
  html:not(.qs-rail) .site-header .has-sub > .menu-link { pointer-events: none; color: var(--ink); font-weight: 700; }   /* 묶음 이름 = 제목 (아래 목록이 늘 펼쳐져 있음) */
  html:not(.qs-rail) .site-header .menu-caret { display: none; }
  html:not(.qs-rail) .site-header .submenu { display: block; position: static; min-width: 0; padding: 0 8px 8px 24px; border: 0; border-radius: 0; box-shadow: none; background: none; }
  html:not(.qs-rail) .site-header .submenu a { padding: 8px 16px; }
  html:not(.qs-rail) .site-header .submenu a small { display: none; }
  .site-nav-dim { position: fixed; inset: 0; z-index: 85; background: color-mix(in srgb, var(--ink) 40%, transparent); }
  html.site-nav-open .site-nav-dim, html.rail-open .site-nav-dim { display: block; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .site-header nav { transition: none !important; } }
/* 좁은 화면 한글 줄 바꿈 (2026-10-30 본부 — 375px에서 "있습/니다" · "수능특/강"처럼 낱말 가운데서 끊김): 화면 틀의 제목·글·단추는 낱말 단위로 (긴 낱말은 칸 안에서만 끊음)
   종이(미리보기 = 인쇄) 안은 건드리지 않음 — 인쇄 폭(A4)은 760px보다 넓어 인쇄에도 안 걸림 */
@media screen and (max-width: 760px) {
  :is(h1, h2, h3, p, button, label, .btn):not(:is(.sheet-page, .sheet-measure, .pk-page, .pk-measure, .wb-book, .wb-page, .bk-pg, article.sheet) *) { word-break: keep-all; overflow-wrap: anywhere; }
}
/* 새 버전 안내 띠 (2026-10-31 — js/common/site.js siteUpdateBar): 화면 아래 가운데, 인쇄물에는 안 나옴 */
.site-update { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; border: 1px solid var(--acc); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 700; box-shadow: 0 2px 8px rgba(11, 18, 32, .12); }
.site-update .btn { flex: none; }
.site-update .site-update-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.site-update .site-update-x:hover { background: var(--bg2); color: var(--ink); }

/* 위쪽 띠 안의 말풍선(data-tip — 종 "소식" · 사람 "내 정보")은 단추 아래로 (2026-10-31 선생님 "위쪽 바에서 위에 나오는 글씨가 잘린다" — 공통 말풍선은 단추 위에 떠서 화면 맨 위 밖으로 잘렸음) */
.site-header [data-tip]:not([data-tip=""]):hover::after { bottom: auto; top: calc(100% + 8px); z-index: 95; }
.site-header [data-tip][aria-expanded="true"]:hover::after { display: none; }   /* 소식 창·내 정보 창을 열면 이름표는 숨김 (열린 창 위를 가리지 않게) */

/* 따라 보기 안내 (2026-11-01 — js/common/tour.js qsTour, 시험지 분석부터. 새 화면 처음 안내 css/rail.css .rail-tour와 같은 모양) */
.qs-tour { position: fixed; inset: 0; z-index: 120; }
.qs-tour-hole { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(11, 18, 32, .55); outline: 2px solid var(--acc); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.qs-tour.mid { display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 32, .55); }
.qs-tour.mid .qs-tour-hole { display: none; }
.qs-tour-card { position: fixed; box-sizing: border-box; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(11, 18, 32, .45); color: var(--ink2); }
.qs-tour.mid .qs-tour-card { position: static; width: min(440px, 100%); }
.qs-tour-step { margin: 0 0 8px; font: 700 11px/1 var(--font-mono); letter-spacing: 2.5px; color: var(--acc); }
.qs-tour-card h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--ink); }
.qs-tour-text { margin: 0; font-size: 15px; line-height: 1.7; }
.qs-tour-text b { color: var(--ink); }
.qs-tour-go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.qs-tour-hide { margin-right: auto; font-size: 13px; color: var(--ink2); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }   /* [일주일 동안 보지 않기] — 왼쪽 작은 글 링크 */
.site-howto-btn.qs-tour-btn { padding: 0 16px; margin-left: 8px; }   /* 제목 옆 [사용법 보기] (js/common/tours.js) */
@media (prefers-reduced-motion: reduce) { .qs-tour-hole { transition: none; } }
@media print { .qs-tour { display: none !important; } }

/* 돋보기 설명 (2026-11-03, js/common/peek.js) — 체크 칸 옆 작은 돋보기 · 설명 풍선 · 미리보기 자리 표시 */
.qs-peek { position: relative; display: inline-block; width: 24px; height: 24px; padding: 0; margin-left: 4px; vertical-align: middle; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: help; flex: none; }
.qs-peek::before { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border: 1.5px solid var(--muted); border-radius: 50%; }
.qs-peek::after { content: ''; position: absolute; left: 14px; top: 14px; width: 5px; height: 1.5px; background: var(--muted); transform: rotate(45deg); transform-origin: 0 0; }
.qs-peek:hover, .qs-peek:focus-visible { border-color: var(--acc); outline: none; }
.qs-peek:hover::before, .qs-peek:focus-visible::before { border-color: var(--acc); }
.qs-peek:hover::after, .qs-peek:focus-visible::after { background: var(--acc); }
.qs-peek-tip { position: fixed; z-index: 10050; display: grid; gap: 8px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; box-shadow: 0 8px 24px rgba(11, 18, 32, .12); font-size: 13px; line-height: 1.6; color: var(--ink2); pointer-events: none; }
.qs-peek-tip[hidden] { display: none; }
.qs-peek-tip b { font-size: 15px; color: var(--ink); }
.qs-peek-tip small { font-size: 11px; color: var(--muted); }
.qs-peek-on { outline: 2px solid var(--acc) !important; outline-offset: 2px; border-radius: 2px; }
.qs-peek-w { display: inline-flex; align-items: center; gap: 4px; }
@media print { .qs-peek, .qs-peek-tip { display: none !important; } .qs-peek-on { outline: 0 !important; } }
/* 회원 패널 퀘스코인 한 줄 + (?) (2026-11-10 — site.js siteQuotaFoot): 설명은 눌렀을 때만 */
.site-me .me-qd { margin-top: 8px; }
.site-me .me-qd summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 13px; color: var(--ink2); }
.site-me .me-qd summary::-webkit-details-marker { display: none; }
.site-me .me-qd summary b { color: var(--ink); }
.site-me .me-qd-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--muted); }
.site-me .me-qd summary:hover .me-qd-i, .site-me .me-qd[open] .me-qd-i { border-color: var(--acc); color: var(--acc); }
.site-me .me-qd ul { margin: 8px 0 0; padding: 8px 16px 8px 24px; border-radius: 6px; background: var(--bg2); font-size: 11px; line-height: 1.6; color: var(--muted); }
/* 이용 기간 7일 미만 안내 (2026-11-11 — js/common/site.js siteDueNudge·siteDuePanelHTML·siteDueBank): 맨 위 한 줄 · 회원 패널 상자 · 계좌 입금 작은 창 — 테마 변수만 */
.site-due { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-due-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; max-width: 1280px; margin: 0 auto; padding: 8px 16px; border-left: 3px solid var(--acc); }
.site-due-t { flex: 1 1 420px; min-width: 0; }
.site-due-t p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.site-due-t b { color: var(--ink); }
.site-due-t .site-due-s { color: var(--muted); }
.site-due-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-due-btns .btn, .me-end-btns .btn { padding: 8px 16px; font-size: 13px; }
.site-due-x { padding: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.site-due-x:hover, .site-due-x:focus-visible { color: var(--acc); outline: none; }
.site-me-panel .me-end { padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; background: var(--bg); font-size: 13px; line-height: 1.6; color: var(--ink2); }
.site-me-panel .me-end p { margin: 0 0 8px; }
.site-me-panel .me-end .me-end-h { font-weight: 700; color: var(--ink); }
.site-me-panel .me-end .me-end-s { color: var(--muted); }
.site-me-panel .me-end-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.site-me-panel .me-end-btns a.btn { text-decoration: none; }   /* 패널 링크 밑줄 규칙이 단추에 묻지 않게 */
.due-bank-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.due-bank-dl dt { color: var(--muted); }
.due-bank-dl dd { margin: 0; color: var(--ink); }
.due-bank-dl b { letter-spacing: .5px; }
.due-bank .due-copy { margin-left: 8px; padding: 0 8px; font-size: 13px; line-height: 24px; }
.due-copied { margin-left: 8px; font-size: 13px; color: var(--muted); }
.due-bank ul { margin-bottom: 16px; }
/* 가운데 창 (2026-11-12 siteDuePop) — 다른 창(하던 작업 묻기 950)보다 위 · 계좌 창은 그 위 */
.due-pop-ov { z-index: 1000; }
#siteDueBank { z-index: 1010; }
.due-pop h2 { margin: 0 0 16px; font-size: 22px; font-weight: 800; color: var(--ink); }
.due-pop p { margin: 0 0 8px; }
.due-pop p b { color: var(--ink); }
.due-pop .due-pop-s { margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.due-pop .pw-nudge-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.due-pop .pw-nudge-btns a.btn { text-decoration: none; }
/* 크게 (2026-11-18 선생님 "도구화면 들어갈 때 팝업뜨도록해줘 크게") — 넓은 상자 · 큰 제목 42px · 본문 18px · 큰 단추 */
.due-pop { width: min(640px, 100%); padding: 48px; font-size: 18px; }
.due-pop h2 { margin-bottom: 24px; font-size: 42px; line-height: 1.25; letter-spacing: -1px; }
.due-pop p { margin-bottom: 16px; }
.due-pop .due-pop-s { margin-bottom: 32px; font-size: 15px; }
.due-pop .pw-nudge-btns .btn { padding: 0 24px; line-height: 48px; font-size: 18px; }
@media (max-width: 479px) { .due-pop { padding: 24px; font-size: 15px; } .due-pop h2 { font-size: 22px; letter-spacing: 0; } .due-pop .pw-nudge-btns .btn { flex: 1 1 100%; text-align: center; font-size: 15px; } }
@media print { .site-due, #siteDueBank, #siteDuePop { display: none !important; } }

/* 미리보기 위 "다시 받아야 하는 문항" 줄 (2026-11-11 — js/common/util.js pwBar) · 종이 안은 화면에서만 테두리 */
.pw-bar { margin: 0 0 16px; padding: 16px 24px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; font-size: 15px; color: var(--ink2); }
.pw-bar[hidden] { display: none; }
.pw-bar-h { display: block; margin-bottom: 8px; color: var(--warn); font-weight: 800; }
.pw-bar ul { margin: 0; padding: 0; list-style: none; }
.pw-bar li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.pw-bar li:first-child { border-top: 0; }
.pw-name { flex: 1 1 240px; min-width: 0; }
.pw-name b { color: var(--ink); }
.pw-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media screen {
  .pk-kbad-on, section.q.q-flag, .wb-flag { outline: 2px solid var(--warn); outline-offset: 2px; border-radius: 6px; }
  .pw-flash { animation: pwFlash 1.6s ease-out; }
}
@keyframes pwFlash { 0%, 40% { box-shadow: 0 0 0 6px var(--accbg); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media print { .pw-bar { display: none !important; } .pk-kbad-on, section.q.q-flag, .wb-flag { outline: 0 !important; } }
html.pdf-mode .pk-kbad-on, html.pdf-mode section.q.q-flag, html.pdf-mode .wb-flag { outline: 0 !important; animation: none !important; box-shadow: none !important; }   /* PDF 저장(js/common/pdf-save.js)은 화면 모양을 그리므로 테두리를 뗌 */

/* ---------- 지문 고르기 칸 한 벌 (2026-11-13 본부 — 변형 문제 STEP 1이 기준, css/mock.css .mk-sh·.mk-no·.src-tabs)
   01·02 머리: 파란 동그라미 번호 + 제목 + 설명이 한 줄 / 출처 탭 줄(모의고사·교과서·수능특강·EBS연계·내 자료실): 큰 탭 (15px · 46px)
   본문 학습자료 #pkMulti · 워크북 .wbs-s1 · 동형 .sim-range · 나만의 교재 .bk-step1 · 단어장 1단계 · 시험지 분석 .an-two — 하는 일·단추는 그대로, 모양만 */
#pkMulti .pkm-h .pkm-lb, .wbs-s1 .wbs-h .wbs-lb, .sim-range .sim-col-h .sim-colnum, .bk-step1 .bkp-h .bkp-num,
.vc-card[data-vcstep] > .vc-card-h > .vc-label, .an-two .an-col-h > .an-lb {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: var(--acc); color: var(--bg); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1; }
#pkMulti .pkm-h, .wbs-s1 .wbs-h, .an-two .an-col-h { align-items: center; }
#pkMulti .pkm-h > div, .wbs-s1 .wbs-h > div, .an-two .an-col-h > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
#pkMulti .pkm-h p, .wbs-s1 .wbs-h p, .an-two .an-col-h p { margin: 0; }
.sim-range .sim-col-h, .bk-step1 .bkp-h, .vc-card[data-vcstep] > .vc-card-h { flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.sim-range .sim-col-h h3, .bk-step1 .bkp-h h3, .vc-card[data-vcstep] > .vc-card-h h2 { font-weight: 800; }
.sim-range .sim-col-h small { margin-left: 0; }
.bk-step1 .bkp-h .bkp-hsub { margin: 0; }
/* 출처 탭 줄 */
#pkmSrc, .sim-tabs, .bkp-tabs, .vst-tabs, .wbs-tabs { display: flex; flex-wrap: wrap; width: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--theme-radius, 6px); overflow: hidden; background: var(--bg); margin-bottom: 16px; }
#pkmSrc button, .sim-tabs button, .bkp-tabs button, .vst-tabs button, .wbs-tabs button {
  min-height: 46px; padding: 8px 16px; border: 0; border-right: 1px solid var(--line); background: var(--bg); color: var(--ink2);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
#pkmSrc button:last-child, .sim-tabs button:last-child, .bkp-tabs button:last-child, .vst-tabs button:last-child, .wbs-tabs button:last-child { border-right: 0; }
#pkmSrc button.active, .sim-tabs button.active, .bkp-tabs button.active, .vst-tabs button.active, .wbs-tabs button.active { background: var(--acc); color: var(--bg); font-weight: 700; }
.wbs-tabs[hidden] { display: none; }
body.wbs-on #wbExamPicker .xp-extra, body.wbs-on #wbExamPicker .xp-sep { display: none !important; }   /* 워크북: 출처는 위 탭 줄로 (동형·나만의 교재·단어장과 같음) */
@media (max-width: 600px) { #pkmSrc button, .sim-tabs button, .bkp-tabs button, .vst-tabs button, .wbs-tabs button { flex: 1 1 auto; } }
#pkMulti .pkm-col > #pkmFind, #pkMulti #pkmSrc, .wbs-s1 .wbs-col > #wbFind, .wbs-s1 #wbsTabs { margin-bottom: 0; }   /* 이 두 칸은 줄 사이를 칸(gap 16px)이 띄움 — 변형 문제와 같은 16px */
.an-two .an-col-h .r { flex: none; white-space: nowrap; }
.an-two .an-col-h { flex-wrap: wrap; }
.an-two .an-col-h > div { flex: 1 1 240px; min-width: 0; }

/* 정답 노출 경고 한 줄 + [자세히] (2026-11-14 — js/common/sheet.js revealMsgHTML) */
.reveal-fold > summary { cursor: pointer; list-style: none; font-size: 13px; }
.reveal-fold > summary::-webkit-details-marker { display: none; }
.reveal-fold .reveal-more { margin-left: 8px; color: var(--ink2); text-decoration: underline; }
.reveal-fold[open] .reveal-more { display: none; }
.reveal-fold ul { margin: 8px 0 0; font-size: 13px; }
.reveal-fold .reveal-tip { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* AI 비서 작업 주소로 연 화면 위 안내 한 줄 (2026-11-17 코워크 2단계 — js/common/job-link.js jobBanner) */
.qs-job-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px; padding: 16px 24px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; }
.qs-job-bar p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.qs-job-bar b { color: var(--ink); margin-right: 8px; }
.qs-job-miss { display: block; font-size: 13px; color: var(--ink); font-weight: 700; }
/* [오늘 하루 보지 않음] (2026-11-18) — 단추 줄 아래 작은 글 링크 (--ink2 밑줄) */
.due-pop .due-pop-day { margin: 16px 0 0; text-align: right; }
.due-pop-day-b { padding: 0; border: 0; background: none; color: var(--ink2); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* 크리스마스 퀘스 눈 (2026-11-26 선생님 "계속 눈이 떨어지는 느낌") — 오른쪽 아래 퀘스(wish.js)·회원 홈 퀘스(fox-news.js)가 11-25 ~ 12-26에만
   단추 안에 <span class="qs-snow"><i>…</i></span>를 넣음. 눈송이 12개가 서로 다른 자리·속도로 위에서 아래로 계속. 움직임 줄이기면 멈춘 눈 몇 개만 */
.wish-btn, .fox-btn { position: relative; }
.qs-snow { position: absolute; left: -16px; right: -16px; top: -24px; bottom: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.qs-snow i { position: absolute; top: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 3px var(--acc); opacity: .9; animation: qs-snow-fall 6s linear infinite; }
.qs-snow i:nth-child(1)  { left: 6%;  animation-duration: 6.5s; animation-delay: -0.4s; }
.qs-snow i:nth-child(2)  { left: 18%; width: 4px; height: 4px; animation-duration: 5.2s; animation-delay: -2.1s; }
.qs-snow i:nth-child(3)  { left: 29%; animation-duration: 7.4s; animation-delay: -4.6s; }
.qs-snow i:nth-child(4)  { left: 41%; width: 5px; height: 5px; animation-duration: 5.8s; animation-delay: -1.3s; }
.qs-snow i:nth-child(5)  { left: 53%; width: 4px; height: 4px; animation-duration: 6.9s; animation-delay: -3.5s; }
.qs-snow i:nth-child(6)  { left: 64%; animation-duration: 5.5s; animation-delay: -5.0s; }
.qs-snow i:nth-child(7)  { left: 75%; width: 5px; height: 5px; animation-duration: 7.0s; animation-delay: -0.9s; }
.qs-snow i:nth-child(8)  { left: 86%; width: 4px; height: 4px; animation-duration: 6.1s; animation-delay: -2.8s; }
.qs-snow i:nth-child(9)  { left: 94%; animation-duration: 6.6s; animation-delay: -4.1s; }
.qs-snow i:nth-child(10) { left: 12%; width: 5px; height: 5px; animation-duration: 7.8s; animation-delay: -6.2s; }
.qs-snow i:nth-child(11) { left: 47%; width: 3px; height: 3px; animation-duration: 4.9s; animation-delay: -3.0s; }
.qs-snow i:nth-child(12) { left: 70%; width: 3px; height: 3px; animation-duration: 5.9s; animation-delay: -5.6s; }
@keyframes qs-snow-fall {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(6px, 80px); }
  90%  { opacity: .9; }
  100% { transform: translate(-4px, 170px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .qs-snow i { animation: none; top: auto; opacity: .7; }
  .qs-snow i:nth-child(odd) { top: 20%; } .qs-snow i:nth-child(even) { top: 55%; } .qs-snow i:nth-child(n+7) { display: none; }
}
@media print { .qs-snow { display: none; } }
