@charset "utf-8";
/* =========================================================
   3lue (spark*) in my (heart<3) — Tistory skin
   레이아웃: 화면 가운데에 얇은 헤더 상자, 그 아래 10px 띄운 본문 상자가 펼쳐짐
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #7d8592;          /* 외곽선: 진한 회색 실선 */
  --hair: #7d8592;          /* 글 목록 구분선 (파선) */
  --ink: #1d222a;
  --sub: #4f5a6b;
  --muted: #8a93a1;
  --faint: #c3c9d2;         /* 아래 줄(문구·테마 버튼) */
  --icon: #56627a;
  --sky: #e7eff9;
  --sky-line: #c3d4e9;
  --accent: #6c9bd2;
  --logo-blue: #9cb8d0;     /* 로고 <3 색 */
  --ph: #eef1f4;
  --pop-shadow: 0 6px 18px rgba(40, 60, 90, .08);
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.3, .7, .2, 1);
  /* PC 프레임 폭: 모든 화면 공통, 화면 높이에 맞춰 440~500px (얄쌍하게, 갤러리 3×3이 한 화면에 들어가는 폭) */
  --frame-w: clamp(440px, calc(100vh - 230px), 500px);
  /* 마우스 포인터: 작은 삼각형 + 하늘색 픽셀 고양이 */
--cur: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2016%2016%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%233d5a78%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%233d5a78%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f6c7d4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f6c7d4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23dcebf9%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%237aa0c6%27%2F%3E%3C%2Fsvg%3E") 0 0, auto;
  --cur-link: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2016%2016%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20x%3D%270%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%270%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%271%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%272%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%270%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%273%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23ffffff%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%274%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%275%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%276%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%232f4a66%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%232f4a66%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%277%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f6c7d4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23f6c7d4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%278%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%273%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2714%27%20y%3D%279%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%23c4ddf4%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%2710%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%275%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%276%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%277%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%279%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2711%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3Crect%20x%3D%2712%27%20y%3D%2711%27%20width%3D%271%27%20height%3D%271%27%20fill%3D%27%235b86b3%27%2F%3E%3C%2Fsvg%3E") 0 0, pointer;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121519;
  --surface: #15191e;
  --line: #6b7584;
  --hair: #6b7584;
  --ink: #e4e8ee;
  --sub: #b4bfcd;
  --muted: #7f8a99;
  --faint: #4a5361;
  --icon: #aeb9c8;
  --sky: #1d2938;
  --sky-line: #34495f;
  --accent: #8fb8e3;
  --logo-blue: #accae4;
  --ph: #1e242c;
  --pop-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html, body { cursor: var(--cur); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 13px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transition: background-color .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
a, button, select, label[for], summary { cursor: var(--cur-link); }
input[type="text"], input[type="password"], textarea { cursor: text; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 로딩 화면 (처음 들어올 때만) ---------- */
.loader { display: none; }
html.show-loader .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  transition: opacity .4s ease .25s;
}
html.show-loader { overflow: hidden; }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader svg { width: 46px; height: 58px; overflow: visible; } /* 가로:세로 = 1:1.3 */
/* 끝: 번개가 화면 쪽으로 쓩 커지며 다가오고, 그 사이로 홈 화면이 드러남 */
.loader svg, .loader-text { transition: transform .65s cubic-bezier(.6, 0, .85, .4), opacity .5s ease-in .15s; }
.loader.is-done svg { transform: scale(20); opacity: 0; }
.loader.is-done .loader-text { transform: translateY(8px); opacity: 0; transition: opacity .15s, transform .3s; }
.loader .bolt {
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: miter; stroke-miterlimit: 12;
  filter: url(#boil);
}
.loader .bolt.draw { transition: stroke-dashoffset 1.4s cubic-bezier(.5, 0, .5, 1); /* 천천히 시작 → 빨라짐 → 끝에서 늦춤 */ }
.loader-text {
  min-height: 1.6em; margin: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--muted); white-space: pre;
}
.loader-text::after {
  content: ""; display: inline-block; width: 1px; height: 1em;
  margin-left: 2px; vertical-align: -2px; background: currentColor;
}
/* 타이핑 중엔 커서가 켜져 있고, 다 치면 깜빡임 (0.9초에 한 번) */
.loader-text.typed::after {
  animation: caret .9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- page ---------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 40px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.stack { width: min(var(--frame-w), 100%); min-width: 0; }

/* ---------- header: 높이 28px, 드롭다운이 오른쪽에 붙어 녹아듦 ---------- */
.head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0 0 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; width: 112px; height: auto; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }

.nav { display: flex; align-items: stretch; margin-left: auto; }
.icon-btn {
  position: relative;
  width: 24px; height: 28px;
  display: grid; place-items: center;
  color: var(--icon);
  transition: color .15s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover, .icon-btn[aria-current="page"] { color: var(--accent); }
.icon-btn::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translate(-50%, -2px);
  padding: 2px 7px;
  font: 500 11px/1.6 var(--font);
  white-space: nowrap;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity .12s, transform .12s;
  z-index: 30;
}
.icon-btn:hover::after, .icon-btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .icon-btn::after { display: none; } }

/* ---------- category dropdown ---------- */
.dd { position: relative; display: flex; margin-left: 4px; }
.dd-btn {
  height: 28px; min-width: 112px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px 0 14px;
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px; font-weight: 400; letter-spacing: .03em; /* 카테고리 이름: PC·모바일 모두 얇게 */
  cursor: var(--cur-link);
  transition: color .15s, background-color .1s;
}
.dd-btn:hover { color: var(--accent); }
.dd-btn:active { background: var(--sky); }
.dd-btn .chev { width: 9px; height: 9px; flex: none; color: var(--icon); transition: transform .18s var(--ease); }
.dd-btn:hover .chev { color: var(--accent); }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd-label { max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dd-pop {
  position: absolute; top: calc(100% + 1px); right: -1px;
  min-width: calc(100% + 1px);
  max-width: min(200px, calc(100vw - 32px));
  max-height: min(60vh, 340px);
  overflow-y: auto;
  margin: 0; padding: 4px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--pop-shadow);
  z-index: 40;
  animation: pop .14s var(--ease);
}
.dd-pop[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.dd-pop a {
  position: relative; display: block;
  padding: 5px 14px;
  font-size: 12px; line-height: 1.4; letter-spacing: -0.2px;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dd-pop a:hover, .dd-pop a:focus-visible { color: var(--accent); outline: none; }
.dd-pop a[aria-current="page"] { color: var(--accent); }

/* ---------- body box (펼침/접힘) ---------- */
.body-wrap { overflow: hidden; }
/* 처음엔 직전 페이지의 상자 높이(--prev-h, 스크립트가 넣음)로 시작 */
html.js .body-wrap { height: var(--prev-h, 0px); }
html.js .body-wrap.is-open { height: auto; overflow: visible; }
.body-wrap.is-moving { overflow: hidden; transition: height .4s var(--ease); }
.body-inner {
  margin-top: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.body-inner:empty { display: none; }
.body-inner > :first-child { margin-top: 0; }
.body-inner > :last-child { margin-bottom: 0; }

/* 카테고리 글 목록: 정렬이 정해지기 전(티스토리 기본 최신순)에는 안 보이게. 머리도 스킨 모양으로 바뀐 뒤에 */
html.js:not(.list-ready) #tt-body-category #listBox, html.js:not(.list-ready) #tt-body-category h2#listHead:not(.cat-head) { visibility: hidden; }

/* ---------- foot row ---------- */
.foot-row { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 6px; }
.foot-mark { margin-right: auto; font-size: 10px; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }
.foot-mark .bolt { color: var(--logo-blue); padding: 2px 1px; }
.foot-mark .bolt:hover { color: var(--accent); }
.theme-btn {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--faint);
  cursor: var(--cur-link);
}
.theme-btn:hover { color: var(--accent); }
.theme-btn svg { width: 13px; height: 13px; }
.theme-btn .ic-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }

/* ---------- list heading: ( 카테고리 ) ---------- */
.list-head {
  display: flex; justify-content: center; align-items: baseline; gap: 8px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  color: var(--sub);
}
.list-head .parent, .list-head .sep { color: var(--muted); font-weight: 400; }
.list-head a.parent:hover { color: var(--accent); }
.list-head .count { font-size: 11px; color: var(--muted); font-weight: 400; }
.list-head .tag-mark { color: var(--accent); }
.cat-head .paren { color: var(--muted); font-weight: 300; font-size: 14px; line-height: 1; }
.cat-head .paren:first-child { margin-right: 26px; }
.cat-head .paren.close { margin-left: 26px; }
/* ) 오른쪽 작은 아이콘 (정렬 · 글쓰기): 폭 0으로 두어 제목 가운데 정렬 유지 */
.cat-head .cat-tools { align-self: center; display: flex; width: 0; margin-left: -6px; overflow: visible; }
.cat-head .sort-btn, .cat-head .write-btn { flex: none; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: var(--cur-link); }
.cat-head .sort-btn:hover, .cat-head .write-btn:hover { color: var(--accent); }
.cat-head .sort-btn svg { width: 12px; height: 12px; }
.cat-head .write-btn svg { width: 11px; height: 11px; }

/* 카테고리별 기본 정렬 (관리자) */
.cs-btn { flex: none; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: var(--cur-link); }
.cs-btn:hover, .cs-btn[aria-expanded="true"] { color: var(--accent); }
.cs-btn svg { width: 12px; height: 12px; }
.cs-pop { position: absolute; z-index: 45; width: min(270px, calc(100vw - 16px)); max-height: min(60vh, 420px); overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: var(--pop-shadow); font-size: 11px; animation: pop .14s var(--ease); }
.cs-pop[hidden] { display: none; }
.cs-pop.is-busy { opacity: .6; }
.cs-head, .cs-top { margin: 0 0 4px; color: var(--muted); }
.cs-head { padding-bottom: 6px; border-bottom: 1px dashed var(--hair); }
.cs-top { margin-top: 8px; }
.cs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; color: var(--ink); }
.cs-row.is-sub { padding-left: 8px; }
.cs-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row i { flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; font-style: normal; }
.cs-row button { height: 24px; padding: 0 7px; border: 0; background: var(--surface); color: var(--muted); font: 11px var(--font); cursor: var(--cur-link); }
.cs-row button + button { border-left: 1px solid var(--line); }
.cs-row button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }

/* ---------- 하위 카테고리(책 한 권) 머리: 왼쪽 표지 · 오른쪽 상위 이름 / 제목 / 소개 ---------- */
.cat-info { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 14px; }
.ci-cover { flex: none; display: block; width: 84px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); background: var(--ph); }
.ci-text { flex: 1; min-width: 0; padding-top: 1px; }
.ci-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.ci-parent { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 1.2; letter-spacing: .02em; color: var(--muted); }
.ci-parent:hover { color: var(--accent); }
.ci-title { margin: 2px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.ci-desc { margin: 8px 0 0; font-size: 12px; line-height: 1.6; letter-spacing: -0.3px; color: var(--sub); white-space: pre-line; }
.cat-info .cat-tools { flex: none; display: flex; gap: 2px; }
.cat-info .sort-btn, .cat-info .write-btn { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: var(--cur-link); }
.cat-info .sort-btn:hover, .cat-info .write-btn:hover { color: var(--accent); }
.cat-info .sort-btn svg { width: 12px; height: 12px; }
.cat-info .write-btn svg { width: 11px; height: 11px; }
.cat-info + #listData + #listBox > .tlist:first-child { margin-top: -6px; }
/* 표지 누르면 크게: 어두운 바탕 위에 원본 비율 그대로 */
.ci-zoom { flex: none; align-self: flex-start; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ci-zoom:hover .ci-cover { border-color: var(--accent); }
.ci-lb { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 24px; background: rgba(29, 34, 42, .55); cursor: zoom-out; animation: ci-fade .16s var(--ease); }
:root[data-theme="dark"] .ci-lb { background: rgba(0, 0, 0, .7); }
.ci-lb-fig { position: relative; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--pop-shadow); cursor: default; }
.ci-lb-fig img { display: block; max-width: min(520px, calc(100vw - 60px)); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); width: auto; height: auto; }
.ci-lb-x { position: absolute; top: -1px; right: -1px; transform: translate(0, -100%); width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--icon); cursor: var(--cur-link); }
.ci-lb-x:hover { color: var(--accent); }
.ci-lb-x svg { width: 13px; height: 13px; }
@keyframes ci-fade { from { opacity: 0; } }

/* ---------- text list (5개씩) ---------- */
.tlist { list-style: none; margin: 0 0 -9px; padding: 0; }
.body-inner > .tlist:first-child { margin-top: -9px; }
.tlist li { border-bottom: 1px dashed var(--hair); }
.tlist li:last-child { border-bottom: 0; }
.tlist a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 9px 4px; }
.tlist .t { min-width: 0; font-size: 12px; line-height: 1.3; letter-spacing: -0.5px; color: var(--ink); }
.tlist a:hover .t { color: var(--accent); }
/* 순번 (오래된 글 = 1): 제목 바로 왼쪽, 날짜와 같은 옅은 숫자 */
.tlist .no { flex: none; min-width: 1.8em; margin-right: -10px; font-size: 11px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tlist .no + .t { margin-right: auto; }
.tlist time { flex: none; font-size: 11px; color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.empty { padding: 12px 2px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; }
.tlist + .pager { margin-top: 20px; }
.gallery + .pager { margin-top: 16px; }
.pager a, .pager span.pg {
  min-width: 26px; height: 26px;
  display: grid; place-items: center;
  padding: 0 6px;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { color: var(--accent); }
.pager .selected, .pager .cur { color: var(--accent); font-weight: 500; }
.pager .no-more-prev, .pager .no-more-next, .pager .off { opacity: .35; pointer-events: none; }
.pager svg { width: 12px; height: 12px; }

/* ---------- 책장: 하위 카테고리가 있는 상위 카테고리 페이지 (표지 + 하위 이름) ---------- */
.shelf {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px;
  margin: 0; padding: 0; list-style: none;
}
.book a { display: block; min-width: 0; }
.book-cover {
  display: block; width: 100%; aspect-ratio: 2 / 3;
  object-fit: cover; object-position: 50% 50%;
  border: 1px solid var(--line); background: var(--ph);
}
.book-blank { display: grid; place-items: center; padding: 10px; background: var(--sky); color: var(--sub); font-size: 11px; line-height: 1.4; text-align: center; }
.book-name { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: -0.3px; color: var(--ink); text-align: center; }
.book-cnt { display: block; font-size: 10.5px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.book a:hover .book-name { color: var(--accent); }
.book a:hover .book-cover { border-color: var(--accent); }
/* 표지에 마우스를 올리면: 아래쪽 검은 그라데이션이 살짝 떠오르며 이름 + 설명 */
.book-art { position: relative; display: block; overflow: hidden; }
.book-ov {
  position: absolute; inset: 1px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px;
  padding: 12px 10px 11px;
  /* 위로 갈수록 천천히 옅어지게 (경계선이 보이지 않도록 여러 단계) */
  background: linear-gradient(to top,
    rgba(10, 14, 20, .72) 0%, rgba(10, 14, 20, .6) 14%, rgba(10, 14, 20, .44) 30%, rgba(10, 14, 20, .28) 46%,
    rgba(10, 14, 20, .15) 62%, rgba(10, 14, 20, .06) 78%, rgba(10, 14, 20, .015) 90%, rgba(10, 14, 20, 0) 100%);
  color: #ffffff; text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .22s var(--ease), transform .22s var(--ease);
  pointer-events: none;
}
.book-ov b { font-size: 12px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.book-ov i { font-style: normal; font-size: 10.5px; line-height: 1.45; opacity: .82; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book a:hover .book-ov, .book a:focus-visible .book-ov { opacity: 1; transform: none; }
@media (hover: none) { .book-ov { display: none; } }

/* ---------- gallery 3×3 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0; padding: 0; list-style: none;
}
.g-item a { position: relative; display: block; overflow: hidden; }
.g-item a:focus-visible { outline-offset: -2px; }
.g-img {
  display: block; width: 100%; max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 50% 50%;
  background: var(--ph);
  border: 1px solid var(--line);
}
.g-noimg { display: grid; place-items: center; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--ph); color: var(--muted); font-size: 11px; padding: 8px; text-align: center; }
.g-peek {
  position: fixed; left: 0; top: 0; z-index: 50;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(30, 40, 60, .08);
  pointer-events: none;
  opacity: 0; transition: opacity .12s;
}
.g-peek.on { opacity: 1; }
.g-peek img { display: block; max-width: 220px; max-height: 220px; width: auto; height: auto; }

/* ---------- article ---------- */
.post { max-width: 720px; margin: 0 auto; }
.post-cat { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .02em; color: var(--muted); }
.post-cat:hover { color: var(--accent); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.post h1 {
  min-width: 0;
  margin: 4px 0;
  font-size: 15px; line-height: 1.4; font-weight: 600;
  color: var(--ink);
  text-wrap: wrap;
}
.post-date { display: block; font-size: 11px; color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; }

.entry {
  margin-top: 16px; padding-top: 18px;
  border-top: 1px dashed var(--hair); /* 제목과 본문 사이: 글 목록 구분선과 같은 점선 */
  /* 본문 값은 스킨 옵션(--o-*)에서 옴 + 방문자 읽기 설정(--r-*) */
  color: var(--o-body-color, var(--ink));
  font-size: calc(var(--o-size, 12px) + var(--r-dsize, 0px));
  font-weight: var(--o-weight, 400);
  line-height: calc(var(--o-lh, 1.3) + var(--r-dlh, 0));
  letter-spacing: var(--o-ls, -0.5px);
  word-break: var(--o-break, break-all);
  text-align: var(--o-align, justify);
}
.entry.entry-only { margin-top: 0; padding-top: 0; border-top: 0; }
/* 본문 밑줄 전부(<u>·에디터 밑줄·링크): 글자 획과 겹치는 자리에서 끊기지 않게 (물려받는 속성) */
.entry { text-decoration-skip-ink: none; -webkit-text-decoration-skip: none; text-decoration-skip: none; }
:root[data-theme="dark"] .entry { --o-body-color: var(--ink); --o-q-color: var(--ink); --o-n-color: var(--sub); }
html body .entry p { margin: 0 0 var(--o-pgap, 17px); text-indent: var(--o-indent, 0px); }
html body .entry > :last-child, html body .entry .contents_style > :last-child { margin-bottom: 0; }
.entry * { letter-spacing: inherit; }
.entry h2, .entry h3, .entry h4 { font-size: 1.25em; line-height: 1.4; margin: 1.6em 0 .6em; }
.entry a { color: var(--o-accent, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.entry u {
  text-decoration-line: underline;
  /* 아이폰 사파리: 밑줄이 마침표·쉼표 등 글자 획과 겹치는 자리를 비워 끊겨 보이던 것 → 끝까지 이어지게 */
  text-decoration-skip-ink: none; -webkit-text-decoration-skip: none; text-decoration-skip: none;
  text-decoration-color: var(--o-ul-color, var(--sky-line));
  text-decoration-thickness: var(--o-ul-thick, 3px);
  text-underline-offset: var(--o-ul-offset, 2px);
}
.entry .q { color: var(--o-q-color, var(--ink)); font-weight: var(--o-q-weight, 600); font-style: var(--o-q-style, normal); }
.entry .n { color: var(--o-n-color, var(--sub)); font-weight: var(--o-n-weight, 400); font-style: var(--o-n-style, normal); }
/* 대사·나레이션 안쪽이나 바깥을 에디터가 기울임(em, i)으로 감싸도 옵션 설정을 따르게 */
.entry .q *, .entry .n * { font-style: inherit; }
/* 형광펜: 글자 상자의 아래 90%만 칠함 (줄이 바뀌어도 줄마다 같게) */
.entry .hl {
  background: linear-gradient(to top, var(--o-hl-bg, var(--sky)) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: var(--o-hl-text, var(--o-hl-auto, inherit)); padding: 0 1px;
}
.entry img, .entry video { max-width: 100% !important; height: auto !important; border: 1px solid var(--line); }
.entry figure { max-width: 100% !important; margin: 1.4em 0; }
.entry figcaption { margin-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.entry iframe { max-width: 100%; }
.entry blockquote { margin: 1.4em 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--sky-line); color: var(--sub); }
.entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95em; }
.entry th, .entry td { border: 1px solid var(--line); padding: 6px 10px; }
.entry pre { max-width: 100%; overflow-x: auto; }
/* HTML 코드블록을 실제 화면으로 (skin.html의 HV): 테두리·그림자 없이 본문 너비 100%, 높이는 콘텐츠에 맞춤 */
.entry .hv { margin: 1.4em 0; max-width: 100%; min-width: 0; overflow: hidden; }
.entry .hv-frame { display: block; width: 100% !important; max-width: 100%; height: 150px; margin: 0; padding: 0; border: 0 !important; background: transparent; box-shadow: none; }
/* 복사 상자 (Python 코드블록): 오른쪽 위에 {{char}} ⇄ {{user}} · 복사 */
.entry .cb { margin: var(--o-pgap, 17px) 0; border: 1px solid var(--line); background: var(--surface); text-indent: 0; }
.cb-bar { display: flex; align-items: center; justify-content: flex-end; min-height: 30px; padding: 0 4px 0 12px; border-bottom: 1px dashed var(--hair); }
.cb-msg { margin-right: 4px; font-size: 11px; line-height: 1; color: var(--accent); }
.cb-bar button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: var(--cur-link); }
.cb-bar button:hover, .cb-bar button[aria-pressed="true"] { color: var(--accent); }
.cb-bar svg { width: 14px; height: 14px; }
.entry .cb-body { margin: 0; padding: 12px; overflow: visible; background: none; color: var(--ink); font: 400 1em/1.6 var(--font); text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.cb-tag { color: var(--accent); }
/* 본문 코멘트: 문단 끝의 픽셀 고양이 → 누르면 작은 네모 안에 글 */
.cm-mk { position: relative; display: inline-block; margin: 0 2px 0 5px; padding: 0; border: 0; background: none; vertical-align: -2px; line-height: 0; text-indent: 0; -webkit-user-select: none; user-select: none; cursor: var(--cur-link); }
.cm-mk::after { content: ""; position: absolute; inset: -9px -8px; } /* 손가락으로 누르기 쉽게 */
.cm-mk svg { display: block; flex: none; shape-rendering: crispEdges; }
.cm-mk svg { width: 18px; height: 13.5px; opacity: .75; transition: opacity .15s; }
.cm-mk:hover svg, .cm-mk[aria-expanded="true"] svg { opacity: 1; }
.cm-pop {
  position: absolute; left: 0; top: 0; z-index: 45;
  width: max-content; max-width: min(300px, calc(100vw - 64px)); padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--sub); box-shadow: var(--pop-shadow);
  font-size: 12px; line-height: 1.6; letter-spacing: -0.3px; white-space: pre-line;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s;
}
.cm-pop.on { opacity: 1; visibility: visible; transition: opacity .15s; }
/* 티스토리가 자동으로 붙이는 공감·다른 글 영역은 숨김 (같은 기능을 스킨이 따로 그림) */
.container_postbtn, .another_category, .revenue_unit_wrap.position_list { display: none !important; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags:empty { display: none; }
.tags a {
  padding: 2px 8px;
  border: 1px solid var(--hair); border-radius: 2px;
  font-size: 11px; color: var(--sub);
}
.tags a::before { content: "#"; margin-right: 2px; color: var(--muted); }
.tags a:hover { color: var(--accent); }
.tags .sep-comma { display: none; }

/* 글 끝 왼쪽: 하트 · 점 세 개 */
.post-act { display: flex; align-items: center; gap: 6px; min-height: 28px; margin: 22px 0 0; color: var(--icon); }
.post.is-notice .post-act { display: none; }
/* 네모 버튼: 맨 위로·목록 버튼과 같은 높이와 테두리 (하트는 숫자가 있으면 옆으로 늘어남) */
.pa-heart, .pa-dots, .pa-edit { min-width: 28px; height: 28px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: inherit; cursor: var(--cur-link); }
.pa-heart[hidden], .pa-edit[hidden], .pa-form[hidden], .pa-pop[hidden] { display: none; }
.pa-heart:hover, .pa-heart.is-on, .pa-dots:hover, .pa-dots[aria-expanded="true"], .pa-edit:hover { color: var(--accent); }
.pa-heart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; transition: fill .15s; }
.pa-heart.is-on svg { fill: currentColor; animation: ex-pop .35s var(--ease); }
.pa-n { font-size: 11px; font-variant-numeric: tabular-nums; }
.pa-n:empty { display: none; }
.pa-dots svg { width: 14px; height: 14px; }
.pa-edit svg { width: 12px; height: 12px; }
.pa-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.pa-form input { width: 84px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font: 12px var(--font); }
.pa-form input:focus { outline: none; border-color: var(--accent); }
.pa-form button { height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--sub); font: 11px var(--font); cursor: var(--cur-link); }
.pa-form button:hover { color: var(--accent); }
.pa-more { position: relative; }
.pa-pop { position: absolute; left: 0; bottom: calc(100% + 4px); z-index: 30; padding: 3px 0; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: var(--pop-shadow); animation: pop .14s var(--ease); }
.pa-pop button { height: 32px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 12px var(--font); white-space: nowrap; cursor: var(--cur-link); }
.pa-pop button span { margin-left: 4px; color: var(--muted); font-size: 11px; }
.pa-pop button:hover, .pa-pop button:focus-visible { background: var(--sky); outline: none; }

.rel { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--hair); }
.rel[hidden], .pn[hidden] { display: none; }
.rel-head { margin: 0 0 2px; font-size: 11px; color: var(--muted); }
/* 같은 카테고리 다른 글: 글 사이 점선 없이 촘촘하게 */
.rel .tlist { margin-bottom: 0; }
.rel .tlist li { border-bottom: 0; }
.rel .tlist a { padding: 4px 4px; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 11px; }
.pn a { min-width: 0; max-width: 48%; display: flex; gap: 8px; color: var(--sub); white-space: nowrap; }
.pn a:hover { color: var(--accent); }
.pn-lbl { flex: none; color: var(--muted); }
.pn-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.post-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.post-foot[hidden] { display: none; }
.to-top {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--icon);
  cursor: var(--cur-link);
}
.to-top:hover { color: var(--accent); }
.to-top svg { width: 14px; height: 14px; }

/* 글 수정 (관리자만): ⋯ 바로 왼쪽 연필 */
.edit-btn {
  flex: none; margin: 2px -8px 0 auto;
  width: 28px; height: 26px; display: grid; place-items: center;
  color: var(--muted);
}
.edit-btn svg { width: 13px; height: 13px; }
.edit-btn:hover { color: var(--accent); }

/* 읽기 설정 (제목 오른쪽 ⋯) */
.rd { position: relative; flex: none; margin-top: 2px; }
.rd-btn { width: 28px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: var(--cur-link); }
.rd-btn svg { width: 14px; height: 14px; }
.rd-btn:hover, .rd-btn[aria-expanded="true"] { color: var(--accent); }
.rd-pop {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 30;
  width: 188px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--pop-shadow); font-size: 11px;
}
.rd-pop[hidden] { display: none; }
.rd-row { display: grid; grid-template-columns: 1fr 22px 38px 22px; align-items: center; gap: 2px; padding: 4px 0; color: var(--sub); }
.rd-row button { height: 22px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--icon); font: 13px/1 var(--font); padding: 0; cursor: var(--cur-link); }
.rd-row button:hover { color: var(--accent); }
.rd-row output { text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.rd-reset { display: block; width: 100%; margin-top: 6px; padding: 4px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: 11px var(--font); text-align: right; cursor: var(--cur-link); }
.rd-reset:hover { color: var(--accent); }

/* 보호글 */
.protected { text-align: center; font-size: 12px; color: var(--sub); }
.protected .pw-row { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
/* 목록 화면에서는 숨기고, 글을 눌러 들어갔을 때만 비밀번호 칸이 뜨게 */
#tt-body-index .protected, #tt-body-category .protected, #tt-body-tag .protected,
#tt-body-search .protected, #tt-body-archive .protected { display: none; }

/* ---------- guestbook ---------- */
.gb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 18px; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--ink);
  font: 12px/1.3 var(--font); letter-spacing: -0.5px;
}
.gb-form input:focus, .gb-form textarea:focus, .protected input:focus { outline: none; border-color: var(--accent); }
.gb-form textarea { grid-column: 1 / -1; min-height: 72px; resize: vertical; }
.gb-form .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.gb-form .secret { display: flex; align-items: center; gap: 4px; margin-right: auto; font-size: 11px; color: var(--muted); }
.btn-line {
  height: 28px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 2px;
  background: transparent; color: var(--sub);
  font-size: 12px; font-weight: 500; cursor: var(--cur-link);
}
.btn-line:hover { color: var(--accent); }
.protected input { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font: 12px var(--font); }
.gb-list { list-style: none; margin: 0; padding: 0; }
.gb-list > li { padding: 10px 2px; border-top: 1px solid var(--line); }
.gb-list > li:last-child { padding-bottom: 0; }
.gb-meta { display: flex; align-items: baseline; gap: 8px; font-size: 11px; }
.gb-meta b { font-weight: 500; color: var(--ink); }
.gb-meta time, .gb-meta .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.gb-meta .act { margin-left: auto; display: flex; gap: 10px; }
.gb-meta .act a { color: var(--muted); }
.gb-meta .act a:hover { color: var(--accent); }
.gb-text { margin: 3px 0 0; font-size: 12px; line-height: 1.3; letter-spacing: -0.5px; }
.gb-reply { list-style: none; margin: 8px 0 0 4px; padding: 0 0 0 12px; border-left: 1px solid var(--sky-line); }
.gb-reply li { padding-top: 6px; }

/* 태그 구름 (/tag) */
.tagcloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 12px; }
.tagcloud a { color: var(--sub); }
.tagcloud a:hover { color: var(--accent); }
.tagcloud .cloud1 { font-weight: 600; color: var(--ink); }

/* ---------- PC: 헤더 높이 42px (모바일은 28px 유지) ---------- */
@media (min-width: 641px) {
  .head { min-height: 42px; }
  .logo img { width: 140px; }
  .icon-btn { width: 28px; height: 42px; }
  .icon-btn svg { width: 18px; height: 18px; }
  .dd-btn { height: 42px; min-width: 120px; font-size: 13px; }
}
/* 글 속 사진: 화면 높이를 넘지 않게 줄여 짧은 글은 스크롤 없이 한 화면에 */
/* 사진은 상자 폭에 꽉 채움 (오른쪽 빈 공간 없음). 아주 긴 세로 사진만 위아래를 살짝 잘라 한 화면에 맞춤 */
.entry img { width: 100% !important; max-height: calc(100vh - 330px); object-fit: cover; object-position: 50% 40%; margin: 0 !important; }
/* 사진은 글과 같은 왼쪽 선에 맞추고, 사진 위아래 간격은 문단 간격과 같게 */
.entry figure, .entry .imageblock, .entry figure.alignCenter { text-align: left !important; margin: 0 0 var(--o-pgap, 17px) !important; }
/* 에디터가 사진 틀에 적어 둔 고정 폭(작게·보통 등)도 무시하고 꽉 채움 */
.entry figure, .entry .imageblock, .entry .imageslideblock, .entry figure > span, .entry .imageblock > span, .entry figure > span > span {
  display: block !important; width: 100% !important; max-width: 100% !important; float: none !important;
}
.entry figure img { display: block; }
/* 사진·복사 상자 위쪽도 문단 간격만큼: 티스토리 '문단 여백 없음' 글은 문단 간격이 0이라 빈 줄을 지우면 글에 딱 붙음
   (문단 간격이 있는 글은 여백이 겹쳐져 그대로 한 칸) */
html body .entry figure:not(:first-child), html body .entry .imageblock:not(:first-child) { margin-top: var(--o-pgap, 17px) !important; }
html body .entry .cb:first-child { margin-top: 0; }
html body .entry figure figure, html body .entry .imageblock .imageblock { margin-top: 0 !important; }

/* 대표글(notice) 페이지: 카테고리·제목·날짜·구분선 없이 본문만 */
.post.is-notice .post-cat, .post.is-notice .title-row, .post.is-notice .post-date { display: none; }
.post.is-notice .entry { margin-top: 0; padding-top: 0; border-top: 0; }

/* 갤러리: 사진만 보이게 (제목 글자·티스토리가 덧붙이는 장식은 모두 숨김) */
.gallery, .gallery li, .gallery a { font-size: 0 !important; line-height: 0; color: transparent; }
.gallery li::before, .gallery li::after, .gallery a::before, .gallery a::after { content: none !important; display: none !important; }
.gallery .g-img, .gallery .g-noimg { display: block; }

/* 글 아래: 이전/다음 '없음', 목록 버튼 */
.pn-none { color: var(--faint); white-space: nowrap; }
.post-foot { justify-content: space-between; align-items: center; }
.to-list {
  height: 28px; display: inline-flex; align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 11px; color: var(--sub); letter-spacing: .04em;
}
.to-list:hover { color: var(--accent); }
.to-top[hidden] { display: none; }
.post-foot .to-top { margin-left: auto; }

/* ---------- 공개 발췌함 ---------- */
.ex-demo {
  margin: -4px 0 14px; padding: 5px 8px;
  border: 1px dashed var(--sky-line); border-radius: 2px;
  font-size: 11px; color: var(--muted); text-align: center;
}
.ex-state[hidden] { display: none; }
.ex-retry { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: var(--cur-link); }
.ex-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.ex-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 14px 14px 10px;
  border: 1px solid var(--faint); border-radius: 2px;
  background: var(--surface);
  transition: border-color .15s, opacity .15s;
}
.ex-card:hover { border-color: var(--sky-line); }
.ex-card.is-busy { opacity: .55; }
.ex-text {
  margin: 0 0 12px;
  font-size: 12px; line-height: 1.6; letter-spacing: -0.3px;
  color: var(--ink);
  white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
}
.ex-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--faint);
  font-size: 11px;
}
.ex-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.ex-link { flex: none; font-size: 10px; letter-spacing: .04em; color: var(--accent); }
.ex-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ex-tools { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 6px; }
.ex-tools button {
  min-width: 24px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 2px; background: transparent;
  color: var(--muted); font: 11px var(--font); cursor: var(--cur-link);
}
.ex-tools button svg { width: 11px; height: 11px; }
.ex-tools button:hover:not(:disabled) { color: var(--accent); background: var(--sky); }
.ex-tools button:disabled { opacity: .35; cursor: default; }
.ex-tools button.is-confirm { color: #c0565b; background: transparent; outline: 1px solid currentColor; outline-offset: -1px; }
.ex-edit {
  width: 100%; min-height: 72px; margin: 0 0 12px; padding: 6px 8px;
  border: 1px solid var(--accent); border-radius: 2px; outline: none; resize: none;
  background: var(--surface); color: var(--ink);
  font: 12px/1.6 var(--font); letter-spacing: -0.3px;
}
.ex-foot { display: flex; justify-content: center; }
.ex-foot:empty { display: none; }
.ex-more { margin-top: 16px; }
.ex-more:disabled { opacity: .5; }

/* 글 본문 문장 선택 → ♡ (관리자만) */
.ex-heart {
  position: absolute; z-index: 70;
  width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--accent);
  box-shadow: var(--pop-shadow);
  cursor: var(--cur-link);
  animation: pop .14s var(--ease);
}
.ex-heart[hidden] { display: none; }
.ex-heart svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .15s; }
.ex-heart:hover svg { fill: var(--sky); }
.ex-heart.is-saving { pointer-events: none; }
.ex-heart.is-saving svg { animation: ex-beat .6s ease-in-out infinite; }
.ex-heart.is-saved svg { fill: currentColor; animation: ex-pop .35s var(--ease); }
.ex-heart.is-error { color: #c0565b; animation: ex-shake .3s; }
.ex-heart::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 4px); left: 50%;
  transform: translate(-50%, -2px);
  padding: 2px 7px;
  font: 500 11px/1.6 var(--font); white-space: nowrap;
  color: var(--sub); background: var(--surface);
  border: 1px solid var(--line); border-radius: 2px;
  opacity: 0; pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.ex-heart:hover::after, .ex-heart:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* 터치 화면: 마우스를 올릴 수 없으니 툴팁을 처음부터 보여 줌 */
@media (hover: none) { .ex-heart::after { opacity: 1; transform: translate(-50%, 0); } }
@keyframes ex-beat { 50% { transform: scale(.82); } }
@keyframes ex-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.18); } }
@keyframes ex-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.ex-toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--sub);
  box-shadow: var(--pop-shadow);
  font-size: 12px;
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.ex-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ex-toast.is-error { color: #c0565b; border-color: currentColor; }
.ex-toast.is-demo { border-style: dashed; border-color: var(--sky-line); }

/* 관리자 로그인: admin ϟ 옆 작은 자물쇠 */
.foot-row { position: relative; }
/* 다크 모드 버튼 왼쪽, 같은 크기·색으로 나란히 */
.ex-key {
  width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--bg); cursor: var(--cur-link); /* 바탕색과 같게: 평소엔 안 보임 */
}
.ex-key[hidden] { display: none; }
.ex-key svg { width: 12px; height: 12px; }
.ex-key:hover, .ex-key:focus-visible { color: var(--faint); } /* 마우스를 올리면 옅게 */
.ex-key[aria-expanded="true"] { color: var(--accent); }
.ex-auth {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 45;
  width: 210px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--pop-shadow); font-size: 11px; color: var(--sub);
}
.ex-auth[hidden] { display: none; }
.ex-auth-form { display: grid; gap: 6px; margin: 0; }
.ex-auth-form input {
  width: 100%; height: 28px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--ink); font: 12px var(--font);
}
.ex-auth-form input:focus { outline: none; border-color: var(--accent); }
.ex-auth-note { margin: 0 0 8px; line-height: 1.5; overflow-wrap: anywhere; }
.ex-auth-note:last-child { margin: 0; }
.ex-auth-err { margin: 0; color: #c0565b; }
.ex-auth-err:empty { display: none; }

/* ---------- 뮤직 플레이어: 하단 음표 → 위로 뜨는 작은 팝업 ---------- */
.mp-btn {
  width: 24px; height: 24px; padding: 0;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--faint); cursor: var(--cur-link);
}
.mp-btn svg { width: 13px; height: 13px; }
.mp-btn:hover, .mp-btn.is-open, .mp-btn.is-playing { color: var(--accent); }
.mp-btn.is-playing svg { animation: mp-bob 1.2s ease-in-out infinite; }
@keyframes mp-bob { 50% { transform: translateY(-1.5px); } }

/* 소리를 내는 YouTube 플레이어: 바깥 창 맨 아래에 거의 안 보이게. 휴대폰에서 직접 눌러야 할 때만 팝업의 네모 위로 */
#mpEngine { position: fixed; left: 0; bottom: 0; z-index: 1; width: 40px; height: 40px; overflow: hidden; opacity: .01; pointer-events: none; }
#mpEngine > *, #mpEngine iframe { display: block; width: 100%; height: 100%; border: 0; }
#mpEngine.is-tap { z-index: 400; opacity: 1; pointer-events: auto; outline: 1px solid var(--accent); }
/* 음악을 켠 채 다른 페이지로 가면: 바깥 창은 그대로, 화면 전체를 안쪽 틀이 덮음 */
#mpShell { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; border: 0; background: var(--bg); }
html.in-shell, html.in-shell body { height: 100%; overflow: hidden; }
html.in-shell body > :not(#mpShell):not(#mpEngine) { display: none !important; }

/* 팝업은 닫을 때도 없애지 않고 숨기기만 함 */
.mp-wrap {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 46;
  width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity .16s, transform .16s var(--ease), visibility 0s .16s;
}
.mp-wrap.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .16s, transform .16s var(--ease); }
.mp {
  padding: 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--pop-shadow);
  font-size: 11px; line-height: 1.35;
}
.mp-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mp-art { position: relative; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--line); background: var(--ph); }
.mp-yt, .mp-art iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.mp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-cover[hidden], .mp-art.is-live .mp-cover, .mp-art.tap-me .mp-cover { display: none; }
/* 휴대폰에서 재생 버튼이 막혔을 때: 영상 네모를 직접 누를 수 있게 */
.mp-art.tap-me { border-color: var(--accent); }
.mp-art.tap-me iframe { pointer-events: auto; }
.mp-info { display: flex; flex-direction: column; min-width: 0; }
.mp-src { font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.mp-title, .mp-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-title { font-size: 12px; font-weight: 500; color: var(--ink); }
.mp-artist { color: var(--sub); }

.mp-ic {
  padding: 0; border: 0; background: none; color: var(--icon);
  display: grid; place-items: center; cursor: var(--cur-link);
}
.mp-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.mp-ic:hover:not(:disabled), .mp-listbtn[aria-expanded="true"] { color: var(--accent); }
.mp-ic:disabled { opacity: .35; cursor: default; }
.mp-listbtn { align-self: start; width: 20px; height: 20px; }
.mp-listbtn svg { width: 13px; height: 13px; }

/* 재생 위치: 가는 선 + 하늘색 동그라미 (지나온 부분은 하늘색) */
.mp-range {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 14px; margin: 0;
  background: transparent; cursor: var(--cur-link);
}
.mp-seek { margin-top: 10px; }
.mp-range:disabled { opacity: .35; }
.mp-range:focus { outline: none; }
.mp-range:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.mp-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--faint) var(--p, 0%)); }
.mp-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; margin-top: -3.5px;
  border: 0; border-radius: 50%; background: var(--accent);
}
.mp-range::-moz-range-track { height: 2px; background: var(--faint); }
.mp-range::-moz-range-progress { height: 2px; background: var(--accent); }
.mp-range::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--accent); }
.mp-times { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

.mp-ctrl { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 4px; }
.mp-play svg { width: 18px; height: 18px; }

/* 플레이리스트 (오른쪽 위 목록 버튼) */
.mp-list { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--hair); }
.mp-list[hidden] { display: none; }
.mp-tracks { margin: 0; padding: 0; list-style: none; max-height: 160px; overflow-y: auto; }
.mp-trk { display: flex; align-items: center; gap: 4px; }
.mp-pick {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px;
  padding: 4px 0; border: 0; background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: var(--cur-link);
}
.mp-pick:hover, .mp-trk.is-cur .mp-pick { color: var(--accent); }
.mp-n { flex: none; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-aa { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); }
.mp-cl { flex: none; font-size: 10px; color: var(--accent); font-variant-numeric: tabular-nums; } /* 지정한 구간 (1:00–2:30) */
.mp-empty { padding: 4px 0; color: var(--muted); }
/* 추가·수정 칸: 링크 아래 줄에 시작 ~ 끝 */
.mp-add { flex-direction: column; }
.mp-clipin { display: flex; align-items: center; gap: 4px; flex-basis: 100%; }
.mp-clipin span { flex: none; color: var(--muted); }
.mp-clipin input { flex: 1; min-width: 0; height: 24px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font: 11px var(--font); }
.mp-clipin input:focus { outline: none; border-color: var(--accent); }
.mp-clipin button { flex: none; }
.mp-tools { flex: none; display: flex; }
.mp-tools button, .mp-add button, .mp-edit button {
  height: 20px; padding: 0 4px; border: 0; border-radius: 2px; background: transparent;
  color: var(--muted); font: 10px var(--font); cursor: var(--cur-link);
}
.mp-tools button:hover:not(:disabled), .mp-add button:hover, .mp-edit button:hover { color: var(--accent); background: var(--sky); }
.mp-tools button:disabled { opacity: .35; }
.mp-tools button.is-confirm { color: #c0565b; outline: 1px solid currentColor; outline-offset: -1px; }
.mp-add, .mp-edit { display: flex; gap: 4px; margin: 6px 0 0; }
.mp-edit { flex: 1; flex-wrap: wrap; margin: 3px 0; }
.mp-add input, .mp-edit input {
  flex: 1; min-width: 0; height: 24px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink);
  font: 11px var(--font);
}
/* 수정 칸: 제목 / 아티스트 / 시작~끝 / 저장·취소 를 한 줄씩 */
.mp-trk .mp-edit { flex: 1; min-width: 0; display: grid; grid-template-columns: auto auto 1fr; gap: 4px; }
.mp-edit > input, .mp-edit .mp-clipin { grid-column: 1 / -1; width: 100%; }
.mp-clipin input { width: 0; }
.mp-add input:focus, .mp-edit input:focus { outline: none; border-color: var(--accent); }
.mp-add button { height: 24px; padding: 0 8px; border: 1px solid var(--line); color: var(--sub); }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .page { padding-block: 32px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .head { padding-left: 12px; }
  .logo img { width: clamp(96px, calc(100vw - 260px), 120px); }
  .dd { margin-left: 2px; }
  .dd-btn { min-width: 0; padding: 0 10px 0 12px; }
  .dd-label { max-width: 5em; }
  .body-inner { padding: 20px 13px; }
  .gallery { gap: 5px; }
  .pa-form input { font-size: 16px; } /* 아이폰 확대 방지 */
  .shelf { gap: 14px 8px; }
  .cat-info { gap: 12px; }
  /* 휴대폰: 표지 크기 고정. 글 칸을 표지 높이만큼 늘이고 소개를 아래로 붙여 표지 아래 끝 = 소개 마지막 줄 */
  .cat-info { align-items: stretch; }
  .ci-cover { width: 92px; }
  .ci-text { display: flex; flex-direction: column; min-height: 138px; }
  .ci-title { margin-bottom: 8px; }
  .ci-desc { margin-top: auto; line-height: 1.7; }
  .gb-form { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: 1fr; }
  /* 팝업: 화면 가로의 40~60% */
  .mp-wrap { width: clamp(40vw, 220px, 60vw); }
}
@media (max-width: 340px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   발췌 이미지: 글 선택 → [발췌] [♡] → 팝업
   (팝업 화면은 다크·라이트를 따라가고, 출력 이미지 색은 설정값 그대로)
   ========================================================= */
.sel-bar { position: absolute; z-index: 70; display: flex; gap: 4px; animation: pop .14s var(--ease); }
.sel-bar[hidden] { display: none; }
.sel-bar .ex-heart { position: relative; animation: none; }
.qx-btn {
  height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--accent);
  box-shadow: var(--pop-shadow);
  font-size: 12px; font-weight: 500; cursor: var(--cur-link);
}
.qx-btn[hidden] { display: none; }
.qx-btn:hover { background: var(--sky); }

html.qx-lock { overflow: hidden; }
/* 팝업이 열려 있는 동안 뒤쪽 블로그 화면은 고를 수 없게 + 남은 선택 표시는 투명하게 (휴대폰에서 파란 범위가 팝업 위에 남지 않게) */
html.qx-lock .page, html.qx-lock .sel-bar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.qx-lock .page ::selection { background: transparent; }
html.qx-lock .ex-toast { z-index: 260; }
/* 팝업 글자도 길게 눌러 고를 수 없게 (입력 칸만 고를 수 있음): 선택 손잡이가 팝업까지 넓혀 파랗게 덮지 않도록 */
.qx .qx-dlg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qx input, .qx textarea, .qx select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.qx {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center; padding: 24px;
  background: rgba(29, 34, 42, .28); overscroll-behavior: contain;
  cursor: var(--cur);
}
:root[data-theme="dark"] .qx { background: rgba(0, 0, 0, .55); }
.qx[hidden] { display: none; }
.qx-dlg {
  width: min(1040px, 100%); height: min(780px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 10px 30px rgba(40, 60, 90, .14);
  overflow: hidden; outline: none; font-size: 12px;
}
.qx-head { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--sky-line); }
.qx-logo { display: inline-flex; align-items: center; }
.qx-logo img { display: block; width: 110px; height: auto; } /* 팝업 로고: 블로그 헤더 로고와 비슷한 크기로 */
.qx-tag { color: var(--muted); font-size: 11px; }
.qx-x { margin-left: auto; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--icon); cursor: var(--cur-link); }
.qx-x svg { width: 15px; height: 15px; }
.qx-x:hover, .qx-x:focus-visible { color: var(--accent); }
.qx-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.qx-side { order: -1; min-height: 0; overflow: auto; border-right: 1px solid var(--sky-line); overscroll-behavior: contain; }
.qx-panel { padding: 12px 14px 24px; }

/* 미리보기 */
.qx-view { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--ph); }
.qx-vbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.qx-size { margin-left: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qx-warn { flex: none; margin: 0 14px 4px; padding: 6px 10px; border: 1px solid #e3b3b5; border-radius: 2px; background: var(--surface); color: #b2555a; font-size: 11px; line-height: 1.55; }
:root[data-theme="dark"] .qx-warn { color: #e39a9d; border-color: #7a4a4d; }
.qx-warn[hidden] { display: none; }
.qx-warn p { margin: 0; }
.qx-canvas { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 16px; outline: none; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
.qx-canvas:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.qx-fit { position: relative; flex: none; margin: auto; box-shadow: 0 1px 8px rgba(40, 60, 90, .12); }
.qx-fit > .qx-page { position: absolute; left: 0; top: 0; }
.qx.is-busy .qx-fit { opacity: .7; transition: opacity .2s .2s; }
.qx-pager { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 14px 10px; color: var(--sub); font-variant-numeric: tabular-nums; }
.qx-pl { grid-column: 1; justify-self: start; min-width: 0; max-width: 100%; }
.qx-pnav { grid-column: 2; display: flex; align-items: center; gap: 14px; }
.qx-pnav[hidden] { display: none; }
.qx-pnav button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--icon); cursor: var(--cur-link); }
.qx-pnav button svg { width: 12px; height: 12px; }
.qx-pnav button:disabled { opacity: .35; cursor: default; }
.qx-zoom { grid-column: 3; justify-self: end; display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--surface); }
.qx-zoom button { height: 26px; min-width: 28px; padding: 0 6px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--sub); font-size: 13px; line-height: 1; cursor: var(--cur-link); font-variant-numeric: tabular-nums; }
.qx-zoom button:first-child { border-left: 0; }
.qx-zoom .qx-zfit { min-width: 46px; font-size: 11px; }
.qx-zoom button:hover { color: var(--accent); }
.qx-pos { min-width: 44px; text-align: center; }
/* 만드는 중: 점 세 개가 차례로 깜빡이고, 버튼 아래로 하늘색 선이 지나감 */

/* 설정 패널 */
.qx-preset { padding-bottom: 12px; border-bottom: 1px solid var(--sky-line); }
.qx-prow { display: flex; align-items: center; gap: 8px; }
.qx-prow .qx-psel { flex: 1; }
.qx-dirty { flex: none; color: var(--accent); font-size: 10.5px; }
.qx-dirty[hidden], .qx-pbtns[hidden], .qx-pnew[hidden] { display: none; }
.qx-pbtns, .qx-pnew { display: flex; gap: 4px; margin-top: 8px; }
.qx-pnew input { flex: 1; }
.qx-pbtns button, .qx-pnew button, .qx-nophoto, .qx-file, .qx-cfile {
  flex: none; height: 26px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--sub);
  font-size: 11px; white-space: nowrap; cursor: var(--cur-link);
}
.qx-pbtns button:hover, .qx-pnew button:hover, .qx-nophoto:hover, .qx-file:hover, .qx-cfile:hover { color: var(--accent); }
.qx-pbtns button:disabled, .qx-pnew button:disabled { opacity: .4; cursor: default; color: var(--sub); }
.qx-pbtns .is-confirm { color: #c0565b; border-color: currentColor; }
.qx-g { border-bottom: 1px solid var(--sky-line); }
.qx-g summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 11px 0; color: var(--ink); font-weight: 500; cursor: var(--cur-link); }
.qx-g summary::-webkit-details-marker { display: none; }
.qx-g summary::after { content: ''; width: 5px; height: 5px; border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.qx-g[open] summary::after { transform: translateY(1px) rotate(225deg); }
.qx-gb { display: grid; gap: 8px; padding: 0 0 14px; }
.qx-f { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
.qx-f[hidden], .qx-two[hidden] { display: none; }
.qx-l { color: var(--muted); font-size: 11px; line-height: 1.35; }
.qx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qx-two .qx-f { grid-template-columns: auto minmax(0, 1fr); }
.qx input[type="text"], .qx input[type="url"], .qx input[type="number"], .qx select, .qx textarea {
  width: 100%; min-width: 0; height: 28px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--ink); font: 12px var(--font);
}
.qx select { padding-right: 4px; }
.qx textarea { height: auto; padding: 7px 8px; line-height: 1.6; resize: vertical; }
.qx-ta { min-height: 130px; }
.qx input:focus, .qx select:focus, .qx textarea:focus { outline: none; border-color: var(--accent); }
.qx-rng { display: flex; align-items: center; gap: 8px; min-width: 0; }
.qx-rng input { flex: 1; min-width: 0; margin: 0; accent-color: var(--accent); }
.qx-rng output { flex: none; width: 36px; text-align: right; color: var(--sub); font-size: 11px; font-variant-numeric: tabular-nums; }
.qx-col { display: flex; gap: 6px; min-width: 0; }
.qx-col input[type="color"] { flex: none; width: 28px; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); cursor: var(--cur-link); }
.qx-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-self: start; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.qx-f .qx-seg { justify-self: stretch; }
.qx-seg button { height: 26px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--sub); font-size: 11px; white-space: nowrap; cursor: var(--cur-link); }
.qx-seg button:first-child { border-left: 0; }
.qx-seg button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }
.qx-chks { display: flex; flex-wrap: wrap; gap: 14px; }
.qx-chk { display: inline-flex; align-items: center; gap: 5px; color: var(--sub); font-size: 11.5px; cursor: var(--cur-link); }
.qx-chk input { margin: 0; accent-color: var(--accent); }
.qx-photo-in { display: flex; gap: 4px; min-width: 0; }
.qx-anchor { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px; }
.qx-anchor button { width: 20px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); cursor: var(--cur-link); }
.qx-anchor button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.qx-tplin { grid-template-columns: minmax(0, 1fr); }
.qx-tplin textarea { font: 11px/1.5 ui-monospace, Consolas, monospace; }
.qx-hint { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

/* 그 자리에서 페이지 나누기 */
.qx-cut, .qx-unbrk {
  flex: none; height: 26px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface); color: var(--sub);
  font-size: 11px; white-space: nowrap; cursor: var(--cur-link);
}
.qx-cut:hover, .qx-unbrk:hover { color: var(--accent); }
.qx-cut[aria-pressed="true"] { background: var(--sky); border-color: var(--accent); color: var(--ink); }
.qx-cut[hidden], .qx-unbrk[hidden] { display: none; }
.qx-pl .qx-unbrk { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.qx-vbar { flex-wrap: wrap; row-gap: 6px; }
.qx-vbar .qx-seg { flex: none; }
.qx-vbar .qx-seg button { padding: 0 10px; }
.qx-tarow { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.qx-marks { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.qx-marks button { height: 26px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--sub); font-size: 11px; white-space: nowrap; cursor: var(--cur-link); }
.qx-marks button:first-child { border-left: 0; }
.qx-marks button:hover { color: var(--accent); background: var(--sky); }
.qx-marks u { text-decoration-color: var(--sky-line); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.qx-sub { margin: 6px 0 -2px; padding-top: 10px; border-top: 1px dashed var(--sky-line); color: var(--sub); font-size: 11px; font-weight: 500; }
/* 아이폰: 다 만든 뒤 한 번 더 눌러 공유 창(사진 앱에 저장) 열기 */
.qx-ready { flex: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 14px 14px; color: var(--sub); font-size: 12px; }
.qx-ready[hidden] { display: none; }
.qx-ready .btn-line { border-color: var(--accent); color: var(--accent); background: var(--surface); }
/* 공유를 못 하는 브라우저: 그림을 띄워 길게 눌러 저장 */
.qx-sheet { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--surface); }
.qx-sheet-top { flex: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--sky-line); color: var(--sub); font-size: 12px; }
.qx-sheet-x { margin-left: auto; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--icon); cursor: var(--cur-link); }
.qx-sheet-x svg { width: 15px; height: 15px; }
.qx-sheet-list { flex: 1; overflow: auto; display: grid; gap: 12px; padding: 16px; background: var(--ph); }
.qx-sheet-list img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; -webkit-touch-callout: default; user-select: auto; }
.qx-dlg { position: relative; }
.qx.is-cut .qx-fit .qx-p:not(.qx-blank) { cursor: text; }
.qx.is-cut .qx-fit .qx-p:not(.qx-blank):hover { background: rgba(108, 155, 210, .12); } /* 미리보기에만 (저장 이미지에는 안 들어감) */
.qx.is-cut .qx-fit { outline: 1px dashed var(--accent); outline-offset: 3px; }

/* 글 높이를 재는 곳 · 저장할 때 실제 크기로 그리는 곳 (출력 페이지 자체의 CSS는 skin.html의 PAGE_CSS) */
.qx-meas { position: fixed; left: -30000px; top: 0; visibility: hidden; pointer-events: none; }
.qx-cap { position: fixed; left: 0; top: 0; z-index: -1; opacity: 0; pointer-events: none; }

/* 휴대폰: 미리보기 먼저, 설정은 접었다 펼침. 닫기 버튼은 늘 위에 */
@media (max-width: 760px) {
  .qx { padding: 0; place-items: stretch; }
  .qx-dlg { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .qx-head { height: 46px; }
  .qx-main { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
  .qx-view { flex: none; height: 64vh; height: 64svh; min-height: 330px; }
  .qx-vbar .qx-size { flex-basis: 100%; margin-left: 0; } /* 크기 표시는 버튼 아래 줄로 */
  .qx-side { order: 0; flex: none; overflow: visible; border-right: 0; border-top: 1px solid var(--sky-line); }
  .qx-panel { padding-top: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .qx input[type="text"], .qx input[type="url"], .qx input[type="number"], .qx select, .qx textarea { font-size: 16px; } /* 아이폰 확대 방지 */
}

/* 위 줄: [통일·자동·커스텀] [나눌 곳 고르기] [현재 페이지 저장 · 전체 저장] … 크기
   설정: 프리셋 / 문장 / 레이아웃 / 글자 / 배경 바로 가기 (위에 붙어 있음) */
.qx-vbar .qx-cut { height: 28px; }
.qx-saves { flex: none; display: inline-flex; gap: 6px; }
.qx-saves .btn-line { height: 28px; padding: 0 10px; font-size: 11.5px; background: var(--surface); }
.qx-saves .qx-save1 { border-color: var(--accent); color: var(--accent); }
.qx-saves .btn-line[hidden] { display: none; }
.qx.is-saving .qx-saves .btn-line { pointer-events: none; opacity: .65; }
.qx.is-saving .qx-saves .btn-line.is-making { opacity: 1; }
.qx-canvas { touch-action: pan-y; }
.qx-canvas.is-zoomed { touch-action: pan-x pan-y; }
.qx-tabs { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-bottom: 1px solid var(--sky-line); }
.qx-tabs button { height: 38px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; cursor: var(--cur-link); }
.qx-tabs button:hover { color: var(--ink); }
.qx-tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.qx [data-sec] { scroll-margin-top: 46px; }
@media (max-width: 760px) {
  .qx-view { height: 56vh; height: 56svh; min-height: 300px; }
  .qx-panel { padding-top: 4px; }
  .qx-vbar::after { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .qx-vbar .qx-size { order: 3; flex: 1 1 auto; flex-basis: auto; margin-left: 0; }
  .qx-vbar .qx-saves { order: 4; }
  .qx-pager { padding: 6px 10px 8px; gap: 6px; }
  .qx-pl .qx-unbrk { padding: 0 7px; }
}

/* 탭: 누른 칸만 보이므로 칸 제목(접기 줄)은 숨김 */
.qx-side details[data-sec] > summary { display: none; }
.qx-side [data-sec] { border-bottom: 0; padding-top: 4px; }
.qx-side .qx-preset { padding-bottom: 0; }

/* 임시 저장 알림 · 굵게/기울임 버튼 */
.qx-saved { margin-left: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qx-draft { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 14px 6px; padding: 6px 10px; border: 1px dashed var(--accent); border-radius: 2px; background: var(--surface); color: var(--sub); font-size: 11.5px; line-height: 1.5; }
.qx-draft[hidden] { display: none; }
.qx-draft span { flex: 1 1 200px; }
.qx-draft button { flex: none; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--sub); font: 11px var(--font); cursor: var(--cur-link); }
.qx-draft button[data-d="load"] { border-color: var(--accent); color: var(--accent); }
.qx-marks b { font-weight: 700; }
.qx-marks i { font-style: italic; }

/* 슬라이더: 연한 회색 선 3px, 지나온 부분은 강조색 */
:root { --qx-track: #dde1e7; }
:root[data-theme="dark"] { --qx-track: #3a4350; }
.qx-rng input[type="range"] { -webkit-appearance: none; appearance: none; height: 16px; background: transparent; cursor: var(--cur-link); }
.qx-rng input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--qx-track, #dde1e7) var(--p, 0%)); }
.qx-rng input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; margin-top: -5px; border: 2px solid #ffffff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qx-rng input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--qx-track, #dde1e7); }
.qx-rng input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--accent); }
.qx-rng input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #ffffff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.qx-rng input[type="range"]:focus { outline: none; }
.qx-rng input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent); }

/* 나레이션·대사 굵기 줄: 다른 줄과 같은 열에 맞추고, 기울임은 같은 줄 오른쪽에 */
.qx-wi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qx-wi select { flex: 1 1 auto; min-width: 0; }
.qx-wi .qx-chk { flex: none; white-space: nowrap; }

/* 글자 [기본 설정 | 꾸밈] · 배경 [캔버스 | 꾸밈] */
.qx-subtabs { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 6px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.qx-subtabs button { height: 28px; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--sub); font-size: 11.5px; cursor: var(--cur-link); }
.qx-subtabs button:first-child { border-left: 0; }
.qx-subtabs button[aria-pressed="true"] { background: var(--sky); color: var(--ink); font-weight: 500; }
.qx-subsec { display: grid; gap: 8px; }
.qx-subsec[hidden] { display: none; }

/* 확대·축소 버튼: 미리보기 오른쪽 아래 위에 떠 있음 (따로 자리 차지 안 함) */
.qx-cwrap { position: relative; flex: 1; min-height: 0; display: flex; }
.qx-cwrap > .qx-canvas { flex: 1; min-width: 0; }
.qx-cwrap > .qx-zoom { position: absolute; right: 14px; bottom: 12px; z-index: 2; box-shadow: 0 2px 8px rgba(40, 60, 90, .12); }
.qx-pager[hidden] { display: none; }
/* 팝업 안 스크롤바: 얇고 각지게, 옅은 색 (마우스를 올리면 강조색) */
.qx ::-webkit-scrollbar { width: 6px; height: 6px; }
.qx ::-webkit-scrollbar-track { background: transparent; }
.qx ::-webkit-scrollbar-thumb { background: var(--sky-line); border-radius: 0; }
.qx ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.qx ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.qx ::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .qx, .qx * { scrollbar-width: thin; scrollbar-color: var(--sky-line) transparent; }
}

/* 정렬 아이콘 버튼 */
.qx-seg button svg { display: inline-block; width: 14px; height: 14px; vertical-align: middle; }
.qx-seg button:has(svg) { padding: 0 4px; line-height: 0; }

/* 위 줄 정돈: [통일·자동·커스텀] [나누기] … 크기 [저장 ▾]  ·  확대·축소는 아래 페이지 줄 오른쪽 */
.qx-vbar .qx-cut { padding: 0 10px; }
.qx-vbar .qx-size { order: 3; margin-left: auto; }
.qx-vbar .qx-saves { order: 4; position: relative; }
.qx-saves .qx-savebtn { display: inline-flex; align-items: center; gap: 5px; border-color: var(--accent); color: var(--accent); }
.qx-savebtn svg { width: 8px; height: 8px; transition: transform .15s; }
.qx-savebtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.qx-smenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; display: grid; min-width: 124px; padding: 3px 0; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: 0 6px 18px rgba(40, 60, 90, .14); }
.qx-smenu[hidden], .qx-saves .qx-smenu button[hidden] { display: none; }
.qx-saves .qx-smenu button { height: 32px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 12px var(--font); text-align: left; white-space: nowrap; cursor: var(--cur-link); }
.qx-saves .qx-smenu button:hover, .qx-saves .qx-smenu button:focus-visible { background: var(--sky); outline: none; }
.qx-pager { min-height: 28px; }
@media (max-width: 760px) {
  .qx-vbar::after { display: none; }
  .qx-vbar .qx-saves { order: 2; margin-left: auto; }
  .qx-vbar .qx-size { order: 3; flex: 0 0 100%; margin-left: 0; }
}

/* 만드는 중: 각진 픽셀 세 칸이 계단식으로 하나씩 켜짐 (픽셀 고양이 커서와 같은 결, 튀거나 흐르지 않음)
   다 만들면 세 칸이 모두 켜진 채 '저장됨'을 잠깐 보여 주고 원래 버튼으로. 글자가 바뀌어도 버튼 폭은 그대로 */
.qx-saves .qx-savebtn { min-width: 0; padding: 0 9px; justify-content: center; }
.qx-saves .qx-dbtn { padding: 0 9px; color: var(--sub); }
.qx-saves .qx-dbtn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
/* 임시저장 목록: 맨 위 [지금 임시 저장], 아래로 최근 20개 (누르면 열기, × 지우기) */
.qx-dmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 7; width: min(290px, calc(100vw - 32px)); max-height: min(60vh, 420px); overflow-y: auto; padding: 3px 0; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); box-shadow: 0 6px 18px rgba(40, 60, 90, .14); }
.qx-dmenu[hidden] { display: none; }
.qx-saves .qx-dmenu button { border: 0; border-radius: 0; background: transparent; font: 12px var(--font); text-align: left; cursor: var(--cur-link); }
.qx-saves .qx-dmenu .qx-dnow { display: block; width: 100%; height: 34px; padding: 0 12px; color: var(--accent); border-bottom: 1px solid var(--sky-line); }
.qx-drow { display: flex; align-items: stretch; }
.qx-drow + .qx-drow { border-top: 1px dashed var(--sky-line); }
.qx-saves .qx-drow button[data-dm="load"] { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 7px 4px 7px 12px; color: var(--ink); }
.qx-drow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.qx-drow span { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.qx-drow em { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11px; color: var(--sub); }
.qx-saves .qx-drow button[data-dm="del"] { flex: none; width: 34px; padding: 0; text-align: center; color: var(--muted); font-size: 14px; }
.qx-saves .qx-drow button[data-dm="del"].is-confirm { width: auto; padding: 0 8px; font-size: 11px; color: #c0565b; }
.qx-saves .qx-dmenu button:hover, .qx-saves .qx-dmenu button:focus-visible { background: var(--sky); outline: none; }
.qx-dnone { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 11.5px; }
.btn-line.is-making, .btn-line.is-done { display: inline-flex; align-items: center; gap: 5px; border-color: var(--accent); color: var(--accent); }
.qx-dots { display: inline-flex; gap: 2px; }
.qx-dots b { width: 3px; height: 3px; background: currentColor; opacity: .2; }
.is-making .qx-dots b:nth-child(1) { animation: qx-px1 1.2s steps(1) infinite; }
.is-making .qx-dots b:nth-child(2) { animation: qx-px2 1.2s steps(1) infinite; }
.is-making .qx-dots b:nth-child(3) { animation: qx-px3 1.2s steps(1) infinite; }
.is-done .qx-dots b { opacity: 1; }
@keyframes qx-px1 { 0% { opacity: 1; } 75% { opacity: .2; } }
@keyframes qx-px2 { 0% { opacity: .2; } 25% { opacity: 1; } 75% { opacity: .2; } }
@keyframes qx-px3 { 0% { opacity: .2; } 50% { opacity: 1; } 75% { opacity: .2; } }

/* 발췌함 카드: 높이를 맞추지 않고 담벼락처럼 다닥다닥 (순서는 왼쪽→오른쪽, 위→아래)
   줄 높이 1px 단위로 카드마다 차지할 칸 수는 skin.html의 wall()이 정함 */
.ex-grid { grid-auto-rows: 1px; row-gap: 0; align-items: start; }
.ex-card { align-self: start; margin-bottom: 10px; }

/* 아래 줄(나눔 없애기 · 장 넘기기 · 확대·축소): 회색을 깔지 않고 아래 설정 칸과 같은 바탕 */
.qx-pager { background: var(--surface); padding-top: 8px; padding-bottom: 8px; }

/* 글 선택 → [발췌][♡]: 두 버튼을 한 덩어리로 붙임 (그림자도 하나) */
.sel-bar { gap: 0; box-shadow: var(--pop-shadow); }
.sel-bar > button { box-shadow: none; }
.sel-bar .qx-btn:not([hidden]) + .ex-heart:not([hidden]) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sel-bar .qx-btn:not([hidden]):has(+ .ex-heart:not([hidden])) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* 휴대폰: ♡ 아래 '공개 <3에 저장' 안내를 저절로 띄우지 않음 */
@media (hover: none) { .ex-heart::after { display: none; } }

/* 프리셋 칸: [글 서식] / [캔버스·배경] 따로 고름. 버튼·이름 칸은 글 서식 프리셋과 같은 모양 (.qx-pbtns, .qx-pnew) */
.qx-plbl { margin: 10px 0 6px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.qx-plbl:first-child { margin-top: 2px; }
.qx-prow .qx-bsel { flex: 1; }
.qx-bgnew input { flex: 1; }
/* 프리셋 버튼 줄: 오른쪽에 짧은 알림 (한 줄 고정, 넘치면 말줄임) */
.qx-pbtns { flex-wrap: nowrap; align-items: center; }
.qx-pmsg { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--accent); font-size: 11px; opacity: 0; transition: opacity .2s; }
.qx-pmsg.on { opacity: 1; }
/* 글자 › 꾸밈: 나레이션 · 대사 · 형광펜 · 밑줄 묶음 사이에 옅은 점선 */
.qx-grp { display: grid; gap: 8px; }
.qx-grp + .qx-grp { margin-top: 2px; padding-top: 10px; border-top: 1px dashed var(--sky-line); }
.qx-wi .qx-col { flex: 1 1 auto; min-width: 0; }
.qx-wi .qx-col input[type="text"] { min-width: 0; }

/* 휴대폰: 아래 줄(나눔 없애기 · 장 넘기기 · 확대·축소)을 미리보기 안쪽 아래에 띄움 (캔버스가 버튼 뒤로 지나감)
   줄이 차지하던 높이(--qx-pgh)만큼 미리보기 칸을 줄여 캔버스 크기는 그대로, 탭·설정 칸이 그만큼 위로 올라옴 */
@media (max-width: 760px) {
  .qx-view { --qx-pgh: 44px; height: calc(56vh - var(--qx-pgh)); height: calc(56svh - var(--qx-pgh)); min-height: calc(300px - var(--qx-pgh)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  .qx-view > * { grid-column: 1; min-width: 0; }
  .qx-vbar { grid-row: 1; }
  .qx-warn { grid-row: 2; }
  .qx-draft { grid-row: 3; }
  .qx-cwrap { grid-row: 4; }
  .qx-pager { grid-row: 4; align-self: end; position: relative; z-index: 3; height: var(--qx-pgh); min-height: 0; padding-top: 8px; padding-bottom: 8px; background: none; border: 0; pointer-events: none; }
  .qx-pager * { pointer-events: none; }
  .qx-pager button { pointer-events: auto; }
  .qx-ready { grid-row: 5; }
}
.qx-preset .qx-hint { margin-top: 6px; }

/* 본문 레이아웃: 프리셋 칸의 세 번째 줄 · 문장 탭의 인물 버튼 · 레이아웃 탭 (인물 목록 · 모양 · 관리자 코드) */
.qx-prow .qx-lsel { flex: 1; }
.qx-lynew input { flex: 1; }
.qx-castbar:empty { display: none; }
.qx-cbtns { display: flex; flex-wrap: wrap; gap: 4px; }
.qx-cbtns button { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--sub); font-size: 11px; white-space: nowrap; cursor: var(--cur-link); }
.qx-cbtns .qx-cadd { border-style: dashed; color: var(--muted); }
.qx-cbtns button i { width: 7px; height: 7px; border: 1px solid var(--line); border-radius: 50%; }
.qx-cbtns button:hover { color: var(--accent); background: var(--sky); }
.qx-unspk { flex: none; margin-left: auto; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--muted); font-size: 11px; white-space: nowrap; cursor: var(--cur-link); }
.qx-unspk[hidden] { display: none; }
.qx-unspk:hover { color: var(--accent); background: var(--sky); }
.qx-castbar .qx-hint { margin-top: 5px; }
.qx-lost { margin: 6px 0 0; padding: 5px 8px; border: 1px dashed var(--sky-line); border-radius: 2px; color: var(--sub); font-size: 11px; line-height: 1.6; }
.qx-lost button { height: 20px; margin-left: 2px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--accent); font-size: 10.5px; cursor: var(--cur-link); }
.qx-lyt button { padding: 0 6px; }
.qx-lyt button[hidden] { display: none; }
.qx-lyt button:disabled { opacity: .4; cursor: default; }
.qx-sub .qx-hint { display: inline; margin-left: 6px; font-weight: 400; }
.qx-cast { display: grid; gap: 6px; }
.qx-crow { border: 1px solid var(--faint); border-radius: 2px; background: var(--surface); }
.qx-crow.is-open { border-color: var(--sky-line); }
.qx-ctop { display: flex; align-items: center; gap: 6px; padding: 5px 6px; }
.qx-cav { flex: none; width: 24px; height: 24px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #4f5a6b; font-size: 11px; font-weight: 600; }
.qx-cav img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qx .qx-ctop input[type="text"] { flex: 1; min-width: 0; height: 26px; }
.qx-cside button { height: 24px; padding: 0 6px; font-size: 10.5px; }
.qx-cmore { flex: none; height: 26px; padding: 0 6px; border: 0; background: transparent; color: var(--muted); font-size: 10.5px; cursor: var(--cur-link); }
.qx-cmore:hover, .qx-cmore[aria-expanded="true"] { color: var(--accent); }
.qx-cdet { display: grid; gap: 7px; padding: 4px 8px 8px; border-top: 1px dashed var(--sky-line); }
.qx-cdet[hidden] { display: none; }
.qx-cdet .qx-photo-in .qx-nophoto[hidden] { display: none; }
.qx-cact { display: flex; gap: 4px; justify-content: flex-end; }
.qx-cact button, .qx-castadd button, .qx-codebtns button { height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--sub); font-size: 11px; white-space: nowrap; cursor: var(--cur-link); }
.qx-cact button:hover:not(:disabled), .qx-castadd button:hover, .qx-codebtns button:hover { color: var(--accent); }
.qx-cact button:disabled { opacity: .35; cursor: default; }
.qx-cact .is-confirm { color: #c0565b; border-color: currentColor; }
.qx-castadd { display: flex; }
.qx-gb2 { display: grid; gap: 8px; }
.qx-gb2[hidden], .qx-code[hidden], [data-lyshow][hidden] { display: none; }
.qx-code { display: grid; gap: 7px; }
.qx-codebtns { display: flex; flex-wrap: wrap; gap: 4px; }
.qx-codebtns .qx-lapply { border-color: var(--accent); color: var(--accent); }
.qx-cl { display: grid; gap: 3px; color: var(--muted); font-size: 11px; }
.qx .qx-cl textarea { font: 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: 0; }
.qx-lstat { margin: 0; font-size: 11px; line-height: 1.5; color: var(--sub); }
.qx-lstat:empty { display: none; }
.qx-lstat.is-err { padding: 5px 8px; border: 1px solid #e3b3b5; border-radius: 2px; color: #b2555a; }
:root[data-theme="dark"] .qx-lstat.is-err { color: #e39a9d; border-color: #7a4a4d; }
.qx-lstat.is-ok { color: var(--accent); }
.qx-help { border: 1px dashed var(--sky-line); border-radius: 2px; padding: 0 8px; font-size: 11px; color: var(--sub); }
.qx-help summary { padding: 6px 0; color: var(--muted); cursor: var(--cur-link); }
.qx-help p { margin: 0 0 6px; line-height: 1.6; }
.qx-help code { padding: 0 2px; background: var(--sky); font: 10.5px ui-monospace, Consolas, monospace; }
@media (max-width: 760px) {
  .qx-tabs button { font-size: 11.5px; }
  .qx .qx-ctop input[type="text"] { font-size: 16px; }
}

/* 휴대폰 위 줄: [통일·자동·커스텀] [나누기] ……… [임시저장] [저장 ▾] 를 한 줄로 (넘쳐서 두 줄로 갈라지지 않게), 크기 표시만 아래 줄 */
@media (max-width: 760px) {
  .qx-vbar { gap: 6px; padding: 8px 12px; }
  .qx-vbar .qx-seg button { height: 26px; } /* 묶음 테두리까지 28px */
  .qx-vbar .qx-cut, .qx-saves .btn-line { height: 28px; }
  .qx-vbar .qx-seg button { padding: 0 8px; }
  .qx-vbar .qx-cut, .qx-saves .qx-dbtn, .qx-saves .qx-savebtn { padding: 0 8px; }
  .qx-saves { gap: 4px; }
  .qx-saves .btn-line { font-size: 11px; font-weight: 400; }
  .qx-vbar .qx-size { margin-top: -1px; }
}
@media (max-width: 350px) {
  .qx-vbar { gap: 4px; padding: 8px 10px; }
  .qx-vbar .qx-seg button, .qx-vbar .qx-cut, .qx-saves .qx-dbtn, .qx-saves .qx-savebtn { padding: 0 5px; font-size: 10.5px; }
  .qx-saves .qx-savebtn { gap: 3px; }
}
