/* ==========================================================================
   밥따뚜 스튜디오 도움말 — 스타일 (Fungeon Wiki 디자인 기반, 라이트/다크 두 테마)
   구성: 1) 토큰  2) 기본  3) 상단바  4) 사이드바  5) 본문 레이아웃  6) 본문 타이포
         7) 컴포넌트  8) 기타  9) 도움말 전용(버전·업데이트·미디어·차트·검색)  10) 반응형
   ========================================================================== */

/* 1) 토큰 ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', 'Cascadia Code', 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  --bg: #fbfaf8;
  --bg-elev: #ffffff;
  --bg-sunken: #f4f2ee;
  --bg-hover: #f0ede8;
  --bg-overlay: rgba(28, 25, 23, .45);
  --text: #1c1917;
  --text-2: #3d3733;
  --muted: #716a64;
  --faint: #a29b95;
  --border: #e8e4de;
  --border-strong: #d5d0c9;
  --accent: #f05a24;
  --accent-hover: #d2440f;
  --accent-soft: #fff0e8;
  --accent-soft-2: #ffdccb;
  --accent-text: #b23a0c;
  --accent-2: #ffb347;
  --brand-grad: linear-gradient(135deg, #ff6a3d, #ffb347);
  --on-accent: #ffffff;
  --link: #c9400f;
  --focus: #ff7a45;
  --code-bg: #f3f0eb;
  --code-text: #4a3f39;
  --pre-bg: #f8f6f2;
  --pre-head: #efebe5;
  --mark-bg: #ffe08a;
  --mark-text: #3b2a00;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06);
  --shadow-md: 0 4px 14px rgba(28, 25, 23, .08), 0 1px 3px rgba(28, 25, 23, .06);
  --shadow-lg: 0 18px 50px rgba(28, 25, 23, .16), 0 3px 10px rgba(28, 25, 23, .08);

  --note: #2563eb; --note-bg: #eef4ff; --note-border: #c9dafd;
  --tip: #15803d; --tip-bg: #edfbf2; --tip-border: #bfe9cf;
  --important: #7c3aed; --important-bg: #f5f1ff; --important-border: #ddd0fd;
  --warning: #b45309; --warning-bg: #fff8e8; --warning-border: #f6dfa6;
  --danger: #dc2626; --danger-bg: #fef1f1; --danger-border: #f8caca;

  --p0: #dc2626; --p0-bg: #fde8e8;
  --p1: #ea580c; --p1-bg: #ffedde;
  --p2: #2563eb; --p2-bg: #e7efff;
  --p3: #6b7280; --p3-bg: #eef0f2;

  --hl-keyword: #cf222e; --hl-string: #0a3069; --hl-comment: #6e7781; --hl-number: #0550ae;
  --hl-title: #8250df; --hl-type: #953800; --hl-attr: #0550ae; --hl-meta: #6e7781; --hl-var: #24292f;
  --hl-add-bg: #e6ffec; --hl-del-bg: #ffebe9;

  /* 분류 색 (앱 타임라인 클립 색과 맞춤) */
  --c-video: #2f6fb3; --c-audio: #23845e; --c-image: #7c4fbf; --c-text: #a87618; --c-ai: #d6336c; --c-export: #0e7c86;
  /* 바뀐 종류 */
  --ct-new: #15803d; --ct-new-bg: #e9f9ef; --ct-improved: #2563eb; --ct-improved-bg: #eaf1ff;
  --ct-fixed: #b45309; --ct-fixed-bg: #fff5e0; --ct-changed: #7c3aed; --ct-changed-bg: #f3eeff;
  /* 차트 */
  --chart-1: #f05a24; --chart-2: #2f6fb3; --chart-3: #23845e; --chart-4: #a87618; --chart-5: #7c4fbf; --chart-6: #d6336c;
  --chart-grid: #ece8e2; --chart-text: #716a64;
  --media-bg: #15171c;

  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 58px;
  --topbar-total: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  --sidebar-w: 280px;
  --toc-w: 228px;
  --content-max: 840px;
  --prose-size: 16px;
}

:root[data-font='sm'] { --prose-size: 15px; }
:root[data-font='lg'] { --prose-size: 17.5px; }

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121110; --bg-elev: #1a1817; --bg-sunken: #0e0d0c; --bg-hover: #242120; --bg-overlay: rgba(0, 0, 0, .6);
  --text: #ece8e3; --text-2: #d3cdc6; --muted: #a29b94; --faint: #6d6762;
  --border: #2a2624; --border-strong: #3b3633;
  --accent: #ff7a45; --accent-hover: #ff9a70; --accent-soft: #2b1810; --accent-soft-2: #3d2216; --accent-text: #ffab85;
  --on-accent: #1a0f08; --link: #ff9f78; --focus: #ff7a45;
  --code-bg: #24211f; --code-text: #e9d9cd; --pre-bg: #171514; --pre-head: #1f1c1b;
  --mark-bg: #6b4e00; --mark-text: #fff4cc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
  --note: #7cb1ff; --note-bg: #111c2e; --note-border: #1f3354;
  --tip: #5ad08a; --tip-bg: #0f2117; --tip-border: #1c3d29;
  --important: #b69bff; --important-bg: #1b152d; --important-border: #33284f;
  --warning: #f3b745; --warning-bg: #261c08; --warning-border: #463412;
  --danger: #ff8080; --danger-bg: #2a1212; --danger-border: #4a1f1f;
  --p0: #ff8a8a; --p0-bg: #3a1515; --p1: #ffa766; --p1-bg: #3a2312; --p2: #8ab4ff; --p2-bg: #16243f; --p3: #b0b6c0; --p3-bg: #26292e;
  --hl-keyword: #ff7b72; --hl-string: #a5d6ff; --hl-comment: #8b949e; --hl-number: #79c0ff;
  --hl-title: #d2a8ff; --hl-type: #ffa657; --hl-attr: #79c0ff; --hl-meta: #8b949e; --hl-var: #e6edf3;
  --hl-add-bg: #12301c; --hl-del-bg: #3a1618;
  --logo-body: #fb8a3c; --logo-edge: #c2410c; --logo-shine: #fed7aa;
  --c-video: #6aa7ec; --c-audio: #4fc38e; --c-image: #b18cf2; --c-text: #e3b34e; --c-ai: #f0729f; --c-export: #4cc2cc;
  --ct-new: #5ad08a; --ct-new-bg: #0f2117; --ct-improved: #7cb1ff; --ct-improved-bg: #111c2e;
  --ct-fixed: #f3b745; --ct-fixed-bg: #261c08; --ct-changed: #b69bff; --ct-changed-bg: #1b152d;
  --chart-1: #ff8a5c; --chart-2: #6aa7ec; --chart-3: #4fc38e; --chart-4: #e3b34e; --chart-5: #b18cf2; --chart-6: #f0729f;
  --chart-grid: #2a2624; --chart-text: #a29b94;
  --accent-2: #ffc46b; --brand-grad: linear-gradient(135deg, #ff6a3d, #ffb347);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #121110; --bg-elev: #1a1817; --bg-sunken: #0e0d0c; --bg-hover: #242120; --bg-overlay: rgba(0, 0, 0, .6);
    --text: #ece8e3; --text-2: #d3cdc6; --muted: #a29b94; --faint: #6d6762;
    --border: #2a2624; --border-strong: #3b3633;
    --accent: #ff7a45; --accent-hover: #ff9a70; --accent-soft: #2b1810; --accent-soft-2: #3d2216; --accent-text: #ffab85;
    --on-accent: #1a0f08; --link: #ff9f78; --focus: #ff7a45;
    --code-bg: #24211f; --code-text: #e9d9cd; --pre-bg: #171514; --pre-head: #1f1c1b;
    --mark-bg: #6b4e00; --mark-text: #fff4cc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
    --note: #7cb1ff; --note-bg: #111c2e; --note-border: #1f3354;
    --tip: #5ad08a; --tip-bg: #0f2117; --tip-border: #1c3d29;
    --important: #b69bff; --important-bg: #1b152d; --important-border: #33284f;
    --warning: #f3b745; --warning-bg: #261c08; --warning-border: #463412;
    --danger: #ff8080; --danger-bg: #2a1212; --danger-border: #4a1f1f;
    --p0: #ff8a8a; --p0-bg: #3a1515; --p1: #ffa766; --p1-bg: #3a2312; --p2: #8ab4ff; --p2-bg: #16243f; --p3: #b0b6c0; --p3-bg: #26292e;
    --hl-keyword: #ff7b72; --hl-string: #a5d6ff; --hl-comment: #8b949e; --hl-number: #79c0ff;
    --hl-title: #d2a8ff; --hl-type: #ffa657; --hl-attr: #79c0ff; --hl-meta: #8b949e; --hl-var: #e6edf3;
    --hl-add-bg: #12301c; --hl-del-bg: #3a1618;
    --logo-body: #fb8a3c; --logo-edge: #c2410c; --logo-shine: #fed7aa;
    --c-video: #6aa7ec; --c-audio: #4fc38e; --c-image: #b18cf2; --c-text: #e3b34e; --c-ai: #f0729f; --c-export: #4cc2cc;
    --ct-new: #5ad08a; --ct-new-bg: #0f2117; --ct-improved: #7cb1ff; --ct-improved-bg: #111c2e;
    --ct-fixed: #f3b745; --ct-fixed-bg: #261c08; --ct-changed: #b69bff; --ct-changed-bg: #1b152d;
    --chart-1: #ff8a5c; --chart-2: #6aa7ec; --chart-3: #4fc38e; --chart-4: #e3b34e; --chart-5: #b18cf2; --chart-6: #f0729f;
    --chart-grid: #2a2624; --chart-text: #a29b94;
    --accent-2: #ffc46b; --brand-grad: linear-gradient(135deg, #ff6a3d, #ffb347);
  }
}

/* 2) 기본 ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-total) + 18px); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft-2); }
[hidden] { display: none !important; }
.icon { flex: none; vertical-align: -0.125em; }
kbd {
  font-family: var(--font-mono); font-size: .75em; padding: .1em .45em; border-radius: 5px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--bg-elev); color: var(--muted);
}
mark { background: var(--mark-bg); color: var(--mark-text); border-radius: 3px; padding: 0 .1em; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.inline-form { display: inline; margin: 0; }

/* 3) 상단바 -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: var(--topbar-h); display: flex; align-items: center; gap: 10px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  max-width: 1680px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-right: 8px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand-mark .logo-img { width: 30px; height: 30px; display: block; }
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-weight: 600; font-size: 12px; color: var(--accent-text); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; letter-spacing: 0; }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a {
  padding: 7px 11px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--bg-hover); color: var(--text); }
.topnav a.active { color: var(--accent-text); background: var(--accent-soft); }
.topbar-search { position: relative; flex: 1 1 auto; max-width: 420px; margin-left: auto; }
.search-form {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px;
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-form:focus-within { border-color: var(--accent); background: var(--bg-elev); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.search-form .search-icon { color: var(--muted); width: 17px; height: 17px; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; height: 100%; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-kbd { flex: none; }
.topbar-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn .icon { width: 19px; height: 19px; }
.search-open, .sidebar-toggle { display: none; }
.theme-icon { display: inline-flex; }
.theme-icon-dark { display: none; }
:root[data-theme='dark'] .theme-icon-light { display: none; }
:root[data-theme='dark'] .theme-icon-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-icon-light { display: none; }
  :root:not([data-theme='light']) .theme-icon-dark { display: inline-flex; }
}
.topbar-new { margin-left: 4px; }

/* 검색 팝업 */
.search-popup {
  position: absolute; top: calc(100% + 8px); right: 0; width: min(600px, calc(100vw - 32px)); max-height: min(70vh, 640px);
  overflow-y: auto; overscroll-behavior: contain; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.sp-item { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.sp-item:hover, .sp-item[aria-selected='true'] { background: var(--bg-hover); }
.sp-item[aria-selected='true'] { box-shadow: inset 3px 0 0 var(--accent); }
.sp-head { display: flex; align-items: center; gap: 8px; }
.sp-title { font-weight: 700; font-size: 14.5px; }
.sp-cat { margin-left: auto; font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sp-sec { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-sec b { color: var(--text-2); font-weight: 600; }
.sp-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px 6px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }
.sp-foot a { color: var(--link); font-weight: 600; }
.sp-empty { padding: 18px 14px; color: var(--muted); font-size: 14px; }

/* 4) 사이드바 ------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); max-width: 1680px; margin: 0 auto; }
.sidebar {
  position: sticky; top: var(--topbar-total); height: calc(100dvh - var(--topbar-total)); overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.sidebar-inner { padding: 16px 12px 28px max(12px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.sidebar-quick { display: none; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-quick a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.sidebar-quick a .icon { width: 17px; height: 17px; color: var(--muted); }
.sidebar-quick a:hover { background: var(--bg-hover); }
.sidebar-quick a.active { background: var(--accent-soft); color: var(--accent-text); }
.sidebar-quick a.active .icon { color: var(--accent); }
.sidebar-filter {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--muted);
}
.sidebar-filter:focus-within { border-color: var(--accent); }
.sidebar-filter input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.tree { display: flex; flex-direction: column; gap: 14px; }
.tree-group-title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--faint); padding: 0 10px 6px; text-transform: uppercase; }
.tree-cat > summary {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 10px; border-radius: 8px; cursor: pointer;
  list-style: none; user-select: none; font-weight: 600; font-size: 14px; color: var(--text-2);
}
.tree-cat > summary::-webkit-details-marker { display: none; }
.tree-cat > summary:hover { background: var(--bg-hover); color: var(--text); }
.tree-cat-icon { display: inline-flex; color: var(--muted); }
.tree-cat-icon .icon { width: 17px; height: 17px; }
.tree-cat[data-current] > summary .tree-cat-icon { color: var(--accent); }
.tree-cat-title { flex: 1; min-width: 0; }
.tree-count { font-size: 11.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.tree-chevron { display: inline-flex; color: var(--faint); transition: transform .18s; }
.tree-cat[open] > summary .tree-chevron { transform: rotate(90deg); }
.tree-cat ul, .tree-orphans { list-style: none; margin: 2px 0 6px 19px; padding: 0 0 0 10px; border-left: 1px solid var(--border); }
.tree-cat li a, .tree-orphans li a {
  display: block; padding: 5px 10px; margin: 1px 0; border-radius: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.45;
  position: relative; transition: background .12s, color .12s;
}
.tree-cat li a:hover, .tree-orphans li a:hover { color: var(--text); background: var(--bg-hover); }
.tree-cat li a.active, .tree-orphans li a.active { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.tree-cat li a.active::before { content: ''; position: absolute; left: -11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
.tree-overview { font-size: 12.5px !important; color: var(--faint) !important; }
.tree-overview.active { color: var(--accent-text) !important; }
.tree .filter-hidden { display: none !important; }
.tree-empty { color: var(--muted); font-size: 13px; padding: 0 10px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px; }
.sidebar-foot a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.sidebar-foot a:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-backdrop { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 55; }

/* 5) 본문 레이아웃 --------------------------------------------------------- */
.main { min-width: 0; padding: 36px max(40px, env(safe-area-inset-right)) 96px 48px; outline: none; }
.page-layout { display: grid; grid-template-columns: minmax(0, var(--content-max)) var(--toc-w); gap: 56px; justify-content: start; }
.page-layout.no-toc { grid-template-columns: minmax(0, var(--content-max)); }
.doc { min-width: 0; }
.toc { min-width: 0; }
.toc-sticky { position: sticky; top: calc(var(--topbar-total) + 28px); max-height: calc(100dvh - var(--topbar-total) - 56px); overflow-y: auto; padding-bottom: 12px; scrollbar-width: thin; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--faint); margin: 2px 0 10px; text-transform: uppercase; }
.toc ul, .toc-inline ul { list-style: none; margin: 0; padding: 0; }
.toc li a {
  display: block; padding: 4px 0 4px 12px; font-size: 13px; line-height: 1.5; color: var(--muted);
  border-left: 2px solid var(--border); transition: color .12s, border-color .12s;
}
.toc li.toc-l3 a { padding-left: 24px; font-size: 12.5px; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--accent-text); border-left-color: var(--accent); font-weight: 600; }
.toc-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.toc-top:hover { color: var(--text); }
.toc-inline { display: none; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.toc-inline > summary, .doc-files > summary {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; color: var(--text-2);
}
.toc-inline > summary::-webkit-details-marker, .doc-files > summary::-webkit-details-marker { display: none; }
.toc-inline > summary .chev, .doc-files > summary .chev { margin-left: auto; transition: transform .18s; color: var(--faint); }
.toc-inline[open] > summary .chev, .doc-files[open] > summary .chev { transform: rotate(180deg); }
.toc-inline nav { padding: 0 14px 12px; }
.toc-inline li a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--border); }
.toc-inline li.toc-l3 a { padding-left: 16px; font-size: 13.5px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 13px; height: 13px; color: var(--faint); }
.breadcrumb [aria-current] { color: var(--text-2); }

.doc-header { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.doc-header h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem); line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; }
.doc-summary { font-size: 1.06rem; line-height: 1.7; color: var(--text-2); margin: 0 0 14px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.doc-meta > span, .doc-meta > a { display: inline-flex; align-items: center; gap: 6px; }
.meta-flag { color: var(--warning) !important; }
.doc-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.doc-header .chips { margin-top: 12px; }
.doc-files { margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.doc-files .count { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg-sunken); padding: 0 7px; border-radius: 999px; }
.doc-files ul { list-style: none; margin: 0; padding: 0 14px 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* 6) 본문 타이포 (.prose) -------------------------------------------------- */
.prose { font-size: var(--prose-size); line-height: 1.82; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { position: relative; line-height: 1.35; letter-spacing: -0.02em; font-weight: 750; scroll-margin-top: calc(var(--topbar-total) + 18px); }
.prose h2 { font-size: 1.5em; margin: 2.3em 0 .75em; padding-bottom: .4em; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.22em; margin: 1.9em 0 .6em; }
.prose h4 { font-size: 1.06em; margin: 1.6em 0 .5em; }
.prose h5, .prose h6 { font-size: 1em; margin: 1.4em 0 .4em; color: var(--text-2); }
.heading-anchor {
  position: absolute; left: -1.1em; width: 1em; text-align: center; color: var(--faint); font-weight: 500;
  opacity: 0; transition: opacity .12s; text-decoration: none !important;
}
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor, .prose h4:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.heading-anchor:hover { color: var(--accent); }
.prose p { margin: .85em 0; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.wikilink { text-decoration-style: solid; }
.prose a.wikilink.missing { color: var(--danger); text-decoration-style: dashed; }
.prose a.external::after { content: '↗'; font-size: .8em; margin-left: 2px; }
.prose ul, .prose ol { margin: .8em 0; padding-left: 1.5em; }
.prose li { margin: .3em 0; }
.prose li > ul, .prose li > ol { margin: .25em 0; }
.prose li::marker { color: var(--faint); }
.prose ol > li::marker { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose li:has(> input[type='checkbox']) { list-style: none; margin-left: -1.4em; }
.prose input[type='checkbox'] { width: 1.05em; height: 1.05em; margin: 0 .5em 0 0; vertical-align: -0.15em; accent-color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.prose code {
  font-family: var(--font-mono); font-size: .86em; padding: .14em .42em; border-radius: 6px;
  background: var(--code-bg); color: var(--code-text); word-break: break-word;
}
.code-path { cursor: pointer; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 6px 6px 3px 3px; transition: background .12s, color .12s; }
.code-path:hover, .code-path:focus-visible { background: var(--accent-soft); color: var(--accent-text); }
.doc-files .code-path { font-family: var(--font-mono); font-size: 12.5px; padding: 4px 9px; background: var(--code-bg); color: var(--code-text); display: inline-block; }

.table-wrap { margin: 1.3em 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.6; }
.prose th, .prose td { padding: .62em .85em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-sunken); font-weight: 700; font-size: .95em; color: var(--text-2); white-space: nowrap; position: sticky; top: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--bg-hover) 60%, transparent); }
.prose td code { white-space: nowrap; font-size: .84em; }
.prose td .code-path { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
.prose th + th, .prose td + td { border-left: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }

/* 코드 블록 */
.code-block { margin: 1.3em 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--pre-bg); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 14px; background: var(--pre-head); border-bottom: 1px solid var(--border); }
.code-lang { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.code-copy {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted);
  font-size: 12px; padding: 4px 8px; border-radius: 6px;
}
.code-copy:hover { background: var(--bg-hover); color: var(--text); }
.code-copy.copied { color: var(--tip); }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.4px; line-height: 1.62; tab-size: 4; -webkit-overflow-scrolling: touch; }
.code-block code { font-family: var(--font-mono); background: none; padding: 0; color: var(--hl-var); font-size: inherit; border-radius: 0; word-break: normal; white-space: pre; }

/* 구문 강조 */
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-doctag, .hljs-template-tag { color: var(--hl-keyword); }
.hljs-string, .hljs-regexp, .hljs-template-variable, .hljs-char.escape_ { color: var(--hl-string); }
.hljs-comment, .hljs-quote { color: var(--hl-comment); font-style: italic; }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-link { color: var(--hl-number); }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-name { color: var(--hl-title); }
.hljs-title.class_, .hljs-type, .hljs-built_in, .hljs-class .hljs-title { color: var(--hl-type); }
.hljs-attr, .hljs-attribute, .hljs-property, .hljs-variable, .hljs-params, .hljs-selector-attr, .hljs-selector-class, .hljs-selector-id { color: var(--hl-attr); }
.hljs-meta, .hljs-meta .hljs-keyword { color: var(--hl-meta); }
.hljs-addition { color: var(--tip); background: var(--hl-add-bg); }
.hljs-deletion { color: var(--danger); background: var(--hl-del-bg); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* 콜아웃 */
.callout { margin: 1.3em 0; padding: .85em 1.05em .9em; border: 1px solid; border-left-width: 4px; border-radius: var(--radius-sm); font-size: .96em; }
.callout-title { display: flex; align-items: center; gap: 7px; font-weight: 750; font-size: .92em; margin-bottom: .3em; letter-spacing: -0.01em; }
.callout-title .icon { width: 1.12em; height: 1.12em; }
.callout-body > :first-child { margin-top: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-body p { margin: .45em 0; }
.callout-note { background: var(--note-bg); border-color: var(--note-border); border-left-color: var(--note); }
.callout-note .callout-title { color: var(--note); }
.callout-tip { background: var(--tip-bg); border-color: var(--tip-border); border-left-color: var(--tip); }
.callout-tip .callout-title { color: var(--tip); }
.callout-important { background: var(--important-bg); border-color: var(--important-border); border-left-color: var(--important); }
.callout-important .callout-title { color: var(--important); }
.callout-warning, .callout-caution { background: var(--warning-bg); border-color: var(--warning-border); border-left-color: var(--warning); }
.callout-warning .callout-title, .callout-caution .callout-title { color: var(--warning); }
.callout-danger { background: var(--danger-bg); border-color: var(--danger-border); border-left-color: var(--danger); }
.callout-danger .callout-title { color: var(--danger); }
.callout code { background: color-mix(in srgb, var(--bg-elev) 65%, transparent); }

/* mermaid 다이어그램 */
.mermaid-block {
  margin: 1.4em 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
  overflow-x: auto; text-align: center; position: relative; -webkit-overflow-scrolling: touch;
}
.mermaid-block pre.mermaid { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: pre-wrap; text-align: left; min-height: 60px; }
.mermaid-block pre.mermaid[data-processed='true'] { white-space: normal; text-align: center; font-family: var(--font-sans); color: inherit; }
.mermaid-block svg { max-width: 100%; height: auto; }
.mermaid-block.is-rendered { cursor: zoom-in; }
.mermaid-zoom {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  font-size: 12px; border: 1px solid var(--border); background: var(--bg-elev); border-radius: 7px; color: var(--muted); opacity: 0; transition: opacity .15s;
}
.mermaid-block:hover .mermaid-zoom, .mermaid-zoom:focus { opacity: 1; }
.mermaid-error { text-align: left; }
.mermaid-error .mermaid-error-msg { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warning); margin-bottom: 8px; }
.mermaid-error pre { margin: 0; font-family: var(--font-mono); font-size: 12.5px; white-space: pre-wrap; color: var(--text-2); background: var(--pre-bg); padding: 12px; border-radius: 8px; }

/* 7) 컴포넌트 ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-elev); color: var(--text);
  font-weight: 650; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.btn-danger-ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-danger-ghost.confirming { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn kbd { margin-left: 2px; background: transparent; border-color: color-mix(in srgb, currentColor 35%, transparent); color: inherit; opacity: .8; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
  background: var(--bg-sunken); color: var(--text-2); border: 1px solid var(--border); transition: background .12s, color .12s, border-color .12s;
}
.chip:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-soft-2); }
.chip span { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.prio-p0 { color: var(--p0); background: var(--p0-bg); }
.prio-p1 { color: var(--p1); background: var(--p1-bg); }
.prio-p2 { color: var(--p2); background: var(--p2-bg); }
.prio-p3 { color: var(--p3); background: var(--p3-bg); }
.kind { background: var(--bg-sunken); color: var(--text-2); font-weight: 600; border: 1px solid var(--border); }
.kind-bug { color: var(--danger); border-color: var(--danger-border); background: var(--danger-bg); }
.kind-feature { color: var(--note); border-color: var(--note-border); background: var(--note-bg); }
.kind-debt { color: var(--warning); border-color: var(--warning-border); background: var(--warning-bg); }
.kind-content { color: var(--tip); border-color: var(--tip-border); background: var(--tip-bg); }
.kind-polish { color: var(--important); border-color: var(--important-border); background: var(--important-bg); }

.card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-elev);
  border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--text); min-width: 0;
}
a.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-title { font-weight: 700; font-size: 15.5px; line-height: 1.4; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.card-text { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.card-kicker, .card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.card-kicker { color: var(--accent-text); font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.segmented { display: inline-flex; padding: 3px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 10px; gap: 2px; }
.segmented button, .segmented label > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 7px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.segmented label { display: inline-flex; }
.segmented label input { position: absolute; opacity: 0; pointer-events: none; }
.segmented button.active, .segmented label input:checked + span { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented label input:focus-visible + span { outline: 2px solid var(--focus); }
.segmented .icon { width: 15px; height: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
input[type='text'], input[type='password'], input[type='number'], input[type='search'], select, textarea,
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-elev);
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.sidebar-filter input, .search-form input, .search-overlay-form input, .hero-search input, .search-big input, .rm-search input { border: 0; padding: 0; box-shadow: none; background: transparent; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.sidebar-filter input:focus, .search-form input:focus, .search-overlay-form input:focus, .hero-search input:focus, .search-big input:focus, .rm-search input:focus { box-shadow: none; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.form-error { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-border); padding: 8px 12px; border-radius: 9px; font-size: 14px; }
.empty { color: var(--muted); font-size: 14px; }

/* 대화상자 */
dialog { border: 1px solid var(--border); border-radius: 16px; padding: 0; background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px); }
dialog::backdrop { background: var(--bg-overlay); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 20px; }
.dialog-head h2 { margin: 0; font-size: 17px; }
.settings-dialog { width: 460px; }
.settings-form { padding: 0 20px 20px; }
.settings-form fieldset { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.settings-form legend { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.settings-form .segmented { flex-wrap: wrap; align-self: flex-start; }

/* 12) 기타 --------------------------------------------------------------- */
.login-wrap { display: grid; place-items: center; min-height: 60vh; padding: 24px 0; }
body.standalone .login-wrap { min-height: 100dvh; padding: 24px 16px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); }
.login-logo { width: 56px; height: 56px; }
.login-logo .logo-img { width: 100%; height: 100%; display: block; }
.login-card h1 { margin: 0; font-size: 1.4rem; }
.login-card p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-page { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.empty-code { font-size: 64px; font-weight: 900; letter-spacing: -0.05em; color: var(--accent); line-height: 1; }
.empty-page h1 { font-size: 1.5rem; margin: 14px 0 8px; }
.empty-page p { color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.suggest { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); text-align: left; }
.suggest p { margin: 0 0 6px; font-size: 14px; }
.suggest ul { margin: 0; padding-left: 1.2em; }
.suggest a { color: var(--link); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px 18px; border-bottom: 1px solid var(--border); }
.lightbox-title { font-weight: 700; font-size: 14px; color: var(--muted); }
.lightbox-body { flex: 1; overflow: auto; padding: 24px; display: flex; align-items: flex-start; justify-content: center; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.lightbox-body svg { max-width: none !important; width: auto; height: auto; min-width: min(100%, 900px); }

.toast-host { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #1c1917; color: #fafaf9; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: toast-in .18s ease-out; max-width: calc(100vw - 32px); }
:root[data-theme='dark'] .toast { background: #f5f5f4; color: #1c1917; }
.toast.error { background: var(--danger); color: #fff; }
.toast .icon { width: 17px; height: 17px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); box-shadow: var(--shadow-md); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.flash-highlight { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--accent-soft-2); } 100% { background: transparent; } }


/* 8) 홈 · 목록 · 검색 (Fungeon Wiki) */
/* 8) 홈 / 목록 ------------------------------------------------------------ */
.home { max-width: 1180px; }
.hero {
  position: relative; padding: 40px 36px 30px; margin-bottom: 40px; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(1200px 300px at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(600px 240px at 0% 100%, color-mix(in srgb, #f59e0b 10%, transparent), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--border);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 40%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-mark { position: absolute; right: 36px; top: 34px; width: 92px; height: 92px; opacity: .95; }
.hero-mark .logo-img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 0 color-mix(in srgb, var(--accent) 22%, transparent)); }
.hero-badge { display: inline-block; font-size: 12.5px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); padding: 4px 11px; border-radius: 999px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 850; }
.hero-lead { max-width: 640px; font-size: 1.05rem; line-height: 1.75; color: var(--text-2); margin: 0 0 22px; }
.hero-lead strong { color: var(--text); }
.hero-search, .search-big {
  display: flex; align-items: center; gap: 10px; max-width: 640px; height: 54px; padding: 0 6px 0 16px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.hero-search:focus-within, .search-big:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.hero-search > .icon, .search-big > .icon { color: var(--muted); width: 20px; height: 20px; }
.hero-search input, .search-big input { flex: 1; min-width: 0; height: 100%; font-size: 16px; outline: 0; }
.hero-search .btn, .search-big .btn { height: 42px; border-radius: 10px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 26px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hero-stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.home-section { margin: 0 0 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.starter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.starter-card { height: 100%; position: relative; padding-top: 18px; }
.starter-step { position: absolute; top: 14px; right: 16px; font-size: 12px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.starter-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.starter-icon .icon { width: 20px; height: 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 14px; }
.cat-card .cat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--bg-sunken); color: var(--text-2); border: 1px solid var(--border); flex: none; }
.cat-card:hover .cat-icon { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-soft-2); }
.cat-card .cat-icon .icon { width: 20px; height: 20px; }
.cat-card .card-title { flex: 1; min-width: 0; padding-top: 1px; }
.cat-card .card-text { flex-basis: 100%; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 600; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); padding: 16px 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.panel-head h2 .icon { color: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--link); font-weight: 600; white-space: nowrap; }
.mini-roadmap, .recent-list { list-style: none; margin: 0; padding: 0; }
.mini-roadmap li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.mini-roadmap li:first-child { border-top: 0; }
.mini-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list li a { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px dashed var(--border); }
.recent-list li:first-child a { border-top: 0; }
.recent-title { font-weight: 600; font-size: 14px; }
.recent-list li a:hover .recent-title { color: var(--link); }
.recent-meta { font-size: 12px; color: var(--faint); }

.listing { max-width: 1040px; }
.listing-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 24px; }
.listing-head > div { flex: 1; min-width: 220px; }
.listing-head h1 { margin: 0 0 4px; font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); letter-spacing: -0.025em; }
.listing-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.listing-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex: none; }
.listing-icon .icon { width: 24px; height: 24px; }
.callout-card { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 18px; border-color: var(--accent-soft-2); background: var(--accent-soft); }
.callout-card > .icon { color: var(--accent); width: 22px; height: 22px; }
.callout-card span { flex: 1; font-size: 14px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-row { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; }
.doc-num { font-size: 13px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; width: 24px; flex: none; }
.doc-row-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.doc-row-meta { font-size: 12px; color: var(--faint); white-space: nowrap; }
.all-grid { columns: 3 280px; column-gap: 16px; }
.all-cat { break-inside: avoid; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); padding: 14px 16px; margin: 0 0 16px; }
.all-cat h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.all-cat h2 a { display: inline-flex; align-items: center; gap: 8px; }
.all-cat h2 a:hover { color: var(--link); }
.all-cat h2 .icon { color: var(--accent); }
.all-cat .count { margin-left: auto; font-size: 12px; color: var(--faint); }
.all-cat ul { list-style: none; margin: 0; padding: 0; }
.all-cat li a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-2); border-top: 1px dashed var(--border); }
.all-cat li:first-child a { border-top: 0; }
.all-cat li a:hover { color: var(--link); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.backlinks { margin-top: 48px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.backlinks h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--text-2); }
.backlinks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; }
.backlinks li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 14px; }
.backlinks li a { color: var(--link); font-weight: 600; }
.backlinks li span { font-size: 12px; color: var(--faint); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.pager-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.pager-link.next { text-align: right; align-items: flex-end; }
.pager-dir { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pager-title { font-weight: 700; color: var(--text); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* 9) 검색 ---------------------------------------------------------------- */
.search-big { margin-bottom: 22px; max-width: none; }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.search-result { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.sr-title { font-size: 17px; font-weight: 750; letter-spacing: -0.015em; color: var(--text); }
.sr-title:hover { color: var(--link); }
.sr-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.sr-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sr-summary { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.sr-sections { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-sections a { display: block; padding: 8px 12px; border-radius: 9px; background: var(--bg-sunken); }
.sr-sections a:hover { background: var(--bg-hover); }
.sr-heading { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: var(--text-2); }
.sr-heading .icon { width: 13px; height: 13px; color: var(--faint); }
.sr-snippet { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.empty-state { padding: 22px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); }
.empty-state ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 14px; }

.search-overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg-overlay); }
.search-overlay-panel { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.search-overlay-form { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 8px 0 16px; border-bottom: 1px solid var(--border); flex: none; }
.search-overlay-form > .icon { color: var(--muted); width: 19px; height: 19px; }
.search-overlay-form input { flex: 1; min-width: 0; height: 100%; font-size: 16px; outline: 0; }
.search-overlay-results { flex: 1; overflow-y: auto; padding: 8px 8px max(24px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }


/* 9) 도움말 전용 ------------------------------------------------------------ */
.i-inline { display: inline-flex; vertical-align: -0.14em; color: var(--accent); }
.i-inline .icon { width: 1.05em; height: 1.05em; }
.art { display: inline-block; flex: none; object-fit: contain; }
.art-inline { width: 1.4em; height: 1.4em; vertical-align: -0.35em; margin: 0 .1em; }
.art-fallback { display: inline-grid; place-items: center; border-radius: 28%; background: var(--accent-soft); color: var(--accent); }
.art-fallback .icon { width: 55%; height: 55%; }

/* 버전 선택 (상단바) */
.ver-menu { position: relative; flex: none; }
.ver-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--bg-elev); font-weight: 700; font-size: 13px; color: var(--text-2); user-select: none;
  font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s;
}
.ver-menu > summary::-webkit-details-marker { display: none; }
.ver-menu > summary:hover { border-color: var(--accent); }
.ver-menu > summary .icon { width: 15px; height: 15px; color: var(--muted); }
.ver-menu[open] > summary { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.ver-menu[open] .ver-chev { transform: rotate(180deg); }
.ver-chev { transition: transform .18s; }
.ver-menu.is-old > summary { border-color: var(--warning); color: var(--warning); background: var(--warning-bg); }
.ver-menu.is-old > summary .icon { color: var(--warning); }
.ver-latest-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ct-new); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-new) 22%, transparent); }
.ver-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; width: 300px; padding: 6px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.ver-pop-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.ver-pop-head .icon { width: 14px; height: 14px; }
.ver-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 9px 34px 9px 12px; border-radius: 10px; }
.ver-item:hover { background: var(--bg-hover); }
.ver-item.active { background: var(--accent-soft); }
.ver-item-top { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ver-item-top time { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 500; }
.ver-item-title { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ver-check { position: absolute; right: 12px; top: 12px; color: var(--accent); width: 16px; height: 16px; }
.ver-tag { display: inline-flex; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--ct-new); background: var(--ct-new-bg); }
.ver-pop-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 9px 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--link); font-weight: 600; }
.ver-pop-foot .icon { width: 15px; height: 15px; }
.old-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px max(16px, env(safe-area-inset-left));
  background: var(--warning-bg); border-bottom: 1px solid var(--warning-border); color: var(--text-2); font-size: 13.5px;
  position: sticky; top: var(--topbar-total); z-index: 45;
}
.old-banner > .icon { color: var(--warning); width: 17px; height: 17px; }
.old-banner span { flex: 1 1 260px; }
.ver-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 750; line-height: 1.6;
  color: var(--ct-new); background: var(--ct-new-bg); border: 1px solid color-mix(in srgb, var(--ct-new) 25%, transparent); vertical-align: .1em; white-space: nowrap;
}
.ver-badge .icon { width: 12px; height: 12px; }
.ver-new { position: relative; margin: 1.6em 0; padding: 1.3em 1.2em .4em; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ct-new) 35%, transparent); background: color-mix(in srgb, var(--ct-new-bg) 55%, transparent); }
.ver-new-tag { position: absolute; top: -11px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--ct-new); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.5; }
:root[data-theme='dark'] .ver-new-tag { color: #0b1a11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ver-new-tag { color: #0b1a11; } }
.ver-new-tag .icon { width: 13px; height: 13px; }
.ver-new > .ver-new-tag + * { margin-top: 0; }
.tree-new { display: inline-flex; margin-left: 6px; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 850; letter-spacing: .03em; color: #fff; background: var(--ct-new); vertical-align: .12em; line-height: 1.6; }

/* 상단바 보정 */
.topnav a { padding: 7px 10px; }
.tree-cat-icon { color: var(--cat, var(--muted)); }
.tree-cat[data-current] > summary .tree-cat-icon { color: var(--cat, var(--accent)); }

/* 홈: 최신 업데이트 */
.home { max-width: 1240px; }
.whatsnew {
  position: relative; margin-bottom: 28px; padding: 22px 24px 18px; border-radius: 20px; border: 1px solid var(--accent-soft-2);
  background: radial-gradient(900px 260px at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%), var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.wn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.wn-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--brand-grad); color: #1a0f08; font-weight: 800; font-size: 12.5px; }
.wn-badge .icon { width: 14px; height: 14px; }
.wn-ver { font-size: 15px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.wn-date { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.wn-date small, .tl-head small { font-size: 12px; color: var(--faint); font-weight: 600; }
.wn-all { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; color: var(--link); }
.wn-all .icon { width: 15px; height: 15px; }
.wn-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.wn-body.no-media { grid-template-columns: minmax(0, 1fr); }
.wn-text h1 { margin: 0 0 6px; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 850; }
.wn-summary { margin: 0 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.wn-media { margin: 0 !important; position: sticky; top: calc(var(--topbar-total) + 16px); }
.wn-older { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 13px; }
.wn-older-title { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-weight: 700; }
.wn-older-title .icon { width: 14px; height: 14px; }
.wn-older a { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--bg-sunken); color: var(--text-2); }
.wn-older a:hover { background: var(--bg-hover); color: var(--text); }
.wn-older time { font-size: 11.5px; color: var(--faint); }

/* 바뀐 항목 카드 */
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-item {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg);
  transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--text);
}
a.ch-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ch-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.ch-icon .icon { width: 19px; height: 19px; }
.ch-icon .art { width: 34px; height: 34px; }
.ch-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ch-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ch-title { font-size: 15px; letter-spacing: -0.015em; }
.ch-desc { font-size: 13.8px; color: var(--text-2); line-height: 1.65; }
.ch-ba { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; margin-top: 2px; font-size: 12.8px; line-height: 1.55; }
.ch-before, .ch-after { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 9px; border-radius: 8px; flex: 1 1 200px; }
.ch-before { background: var(--bg-sunken); color: var(--muted); }
.ch-after { background: var(--ct-new-bg); color: var(--text-2); }
.ch-before i, .ch-after i { font-style: normal; font-weight: 800; font-size: 11px; padding: 0 6px; border-radius: 5px; flex: none; }
.ch-before i { background: var(--border); color: var(--muted); }
.ch-after i { background: var(--ct-new); color: var(--bg-elev); }
.ch-arrow { align-self: center; color: var(--faint); width: 16px; height: 16px; }
.ch-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.8px; font-weight: 700; color: var(--link); }
.ch-link span { color: var(--muted); font-weight: 600; }
.ch-link span::after { content: '·'; margin-left: 5px; }
.ch-link .icon { width: 14px; height: 14px; transition: transform .15s; }
a.ch-item:hover .ch-link .icon { transform: translateX(3px); }
.ct-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; line-height: 1.6; }
.ct-chip .icon { width: 12px; height: 12px; }
.ct-new { color: var(--ct-new); background: var(--ct-new-bg); }
.ct-improved { color: var(--ct-improved); background: var(--ct-improved-bg); }
.ct-fixed { color: var(--ct-fixed); background: var(--ct-fixed-bg); }
.ct-changed { color: var(--ct-changed); background: var(--ct-changed-bg); }

/* 홈 히어로 */
.hero { margin-bottom: 34px; }
.hero-title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.035em; margin: 0 0 10px; font-weight: 850; }
.hero-mark .logo-img { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent)); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: 680px; }
.hero-search { max-width: 680px; }
.chip.active { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-soft-2); }
.chip .icon { width: 13px; height: 13px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.section-head h2 .icon { color: var(--accent); width: 20px; height: 20px; }
.starter-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.starter-list > li { list-style: none; }
.starter-card { padding: 0 0 16px; overflow: hidden; height: 100%; }
.starter-card .card-title, .starter-card .card-text { padding: 0 16px; }
.starter-cover { display: block; aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; margin-bottom: 8px; }
.starter-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.starter-card:hover .starter-cover img { transform: scale(1.03); }
.starter-icon { margin: 44px 16px 4px; }
.starter-step { top: 10px; left: 10px; right: auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-grad); color: #1a0f08; font-size: 13px; z-index: 1; box-shadow: var(--shadow-md); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cat-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; flex-wrap: nowrap; }
.cat-art { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--cat) 12%, var(--bg-elev)); color: var(--cat); border: 1px solid color-mix(in srgb, var(--cat) 22%, transparent); }
.cat-art .icon { width: 26px; height: 26px; }
.cat-art .art { width: 48px; height: 48px; }
.cat-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.cat-card .card-title { display: flex; align-items: center; gap: 8px; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 700; background: var(--bg-sunken); padding: 0 8px; border-radius: 999px; }
.cat-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cat-pages span { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--bg-sunken); color: var(--muted); }
.cat-card:hover .cat-art { background: color-mix(in srgb, var(--cat) 20%, var(--bg-elev)); }

/* 목록 / 분류 페이지 */
.listing-icon { background: color-mix(in srgb, var(--cat, var(--accent)) 12%, var(--bg-elev)); color: var(--cat, var(--accent)); }
.listing-icon .art { width: 44px; height: 44px; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.doc-card { padding: 0; overflow: hidden; gap: 0; }
.doc-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--media-bg); overflow: hidden; }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.doc-card:hover .doc-cover img { transform: scale(1.03); }
.doc-cover-icon { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--bg-sunken)); color: var(--accent); }
.doc-cover-icon .icon { width: 44px; height: 44px; }
.doc-card-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.card-meta .icon { width: 13px; height: 13px; }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 4px; }
.all-cat-icon { display: inline-grid; place-items: center; color: var(--cat, var(--accent)); }
.all-cat-icon .art { width: 26px; height: 26px; }
.all-cat h2 .icon { color: var(--cat, var(--accent)); }
.all-cat li a { display: flex; align-items: center; gap: 8px; }
.all-cat li a .icon { width: 15px; height: 15px; color: var(--faint); flex: none; }

/* 문서 머리 */
.doc-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.doc-title-row h1 { margin: 0; }
.doc-art { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--cat) 12%, var(--bg-elev)); color: var(--cat); border: 1px solid color-mix(in srgb, var(--cat) 22%, transparent); }
.doc-art .icon { width: 28px; height: 28px; }
.doc-art .art { width: 52px; height: 52px; }
.doc-meta .icon { width: 14px; height: 14px; }
.doc-ver { margin-left: auto; font-size: 12px; color: var(--faint); }
.backlinks li a { display: inline-flex; align-items: center; gap: 6px; }
.backlinks li a .icon { width: 15px; height: 15px; }

/* 미디어 (그림 · 움직이는 그림) */
.media { margin: 1.4em 0; }
.media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--media-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.media-frame img, .media-frame video { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.media-live {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 8px; border-radius: 999px;
  background: rgba(10, 10, 12, .62); color: #fff; font-size: 11.5px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; line-height: 1.5;
}
.media-live .icon { width: 11px; height: 11px; fill: currentColor; }
.media-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff5d5d; animation: live 1.4s ease-in-out infinite; }
.doc-cover .media-live, .sr-thumb .media-live { padding: 4px 6px; }
.doc-cover .media-live::before, .sr-thumb .media-live::before { display: none; }
@keyframes live { 50% { opacity: .25; } }
.media-zoom {
  position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px;
  background: rgba(10, 10, 12, .55); color: #fff; opacity: 0; transition: opacity .15s;
}
.media-frame:hover .media-zoom, .media-zoom:focus-visible { opacity: 1; }
.media-zoom .icon { width: 16px; height: 16px; }
.media figcaption, .chart-block figcaption { margin-top: 8px; font-size: 13.2px; color: var(--muted); text-align: center; line-height: 1.55; }
.media.is-paused .media-frame { cursor: pointer; }
.media.is-paused .media-frame::after {
  content: '▶  눌러서 재생'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 12, .45); color: #fff; font-weight: 800; font-size: 15px;
}
.media-grid { display: grid; gap: 14px; margin: 1.3em 0; align-items: start; }
.media-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid > .media { margin: 0; }
.media-grid > p { margin: 0; }
.prose img.inline-img { max-height: 1.6em; vertical-align: middle; border: 0; border-radius: 4px; }
.lightbox-body img, .lightbox-body video { max-width: min(100%, 1800px); height: auto; margin: auto; border-radius: 10px; }

/* 차트 */
.chart-block { margin: 1.5em 0; padding: 16px 18px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); }
.chart-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 14.5px; margin-bottom: 10px; letter-spacing: -0.01em; }
.chart-title .icon { color: var(--accent); width: 18px; height: 18px; }
.chart-canvas { position: relative; width: 100%; }

/* 단계 */
.steps { margin: 1.4em 0; }
.steps > ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > ol > li {
  counter-increment: step; position: relative; margin: 0; padding: 14px 16px 14px 58px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev);
}
.steps > ol > li::before {
  content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-grad); color: #1a0f08; font-weight: 850; font-size: 14px;
}
.steps > ol > li::marker { content: none; }
.steps > ol > li > :first-child { margin-top: 0; }
.steps > ol > li > :last-child { margin-bottom: 0; }
.steps > ol > li .media { margin: .8em 0 .2em; }

/* 30초 요약 */
.tldr { margin: 0 0 1.6em; padding: 14px 18px 6px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent-soft) 70%, var(--bg-elev)); border: 1px solid var(--accent-soft-2); }
.tldr-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .92em; color: var(--accent-text); margin-bottom: 4px; }
.tldr-title .icon { width: 17px; height: 17px; }
.tldr ul { padding-left: 1.2em; margin: .4em 0 .6em; }
.tldr li { margin: .25em 0; }

/* 링크 카드 */
.link-cards ul { list-style: none; padding: 0; margin: 1.2em 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.link-cards li { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); font-size: .93em; line-height: 1.6; transition: border-color .15s; }
.link-cards li:hover { border-color: var(--accent); }
.link-cards li::marker { content: none; }
.link-cards li > a:first-child, .link-cards li > strong:first-child { display: block; font-weight: 750; margin-bottom: 2px; }

/* 단축키 / UI 칩 / 메뉴 경로 */
.keys { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; vertical-align: .05em; }
.keys kbd { font-size: .78em; padding: .14em .5em; color: var(--text-2); font-weight: 650; }
.keys-plus { font-size: .75em; color: var(--faint); margin: 0 1px; }
.keys-or { margin: 0 .4em; color: var(--faint); font-size: .85em; }
.ui-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: .05em .55em; border-radius: 6px; font-size: .9em; font-weight: 650; white-space: nowrap;
  background: #23262d; color: #e6e8ec; border: 1px solid #3a3f49; vertical-align: .02em; line-height: 1.55;
}
.ui-chip .icon { width: 1em; height: 1em; color: #ff8a5c; }
.menu-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: .9em; font-weight: 650; padding: .05em .5em; border-radius: 6px; background: var(--bg-sunken); border: 1px solid var(--border); line-height: 1.55; }
.menu-path .icon { width: .9em; height: .9em; color: var(--faint); }
.color-dot { display: inline-flex; align-items: center; gap: 5px; font-size: .92em; }
.color-dot i { width: .9em; height: .9em; border-radius: 4px; border: 1px solid var(--border-strong); display: inline-block; }
.keys-table td:first-child { white-space: nowrap; }

/* 업데이트 타임라인 */
.updates-page { max-width: 980px; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; scroll-margin-top: calc(var(--topbar-total) + 16px); }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ''; position: absolute; top: 18px; bottom: -6px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-rail::before { display: none; }
.tl-dot { position: relative; margin-top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-elev); border: 3px solid var(--border-strong); }
.tl-item.is-latest .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-body { padding-bottom: 36px; min-width: 0; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.tl-ver { font-size: 1.05rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.tl-head time { font-size: 13.5px; color: var(--text-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: baseline; }
.tl-title { margin: 4px 0 6px; font-size: 1.35rem; letter-spacing: -0.025em; }
.tl-summary { margin: 0 0 12px; color: var(--text-2); }
.tl-media { margin: 12px 0 14px; }
.flash-target { animation: flash 1.6s ease-out; border-radius: 12px; }

/* 검색 페이지 */
.search-page { max-width: 1000px; }
.search-big .search-ver { width: auto; height: 38px; padding-top: 0; padding-bottom: 0; font-size: 13px; border-radius: 9px; flex: none; }
.search-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; border-bottom: 1px solid var(--border); }
.search-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-weight: 650; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.search-tab span { font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--bg-sunken); color: var(--faint); }
.search-tab:hover { color: var(--text); }
.search-tab.active { color: var(--accent-text); border-bottom-color: var(--accent); }
.search-tab.active span { background: var(--accent-soft); color: var(--accent-text); }
.search-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.search-note { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--note-bg); border: 1px solid var(--note-border); font-size: 14px; margin: 0 0 12px; }
.search-note .icon { color: var(--note); width: 17px; height: 17px; flex: none; }
.search-summary { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.search-results { gap: 10px; }
.sr { list-style: none; }
.sr > a, .sr-doc { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); transition: border-color .15s; color: var(--text); }
.sr > a:hover { border-color: var(--accent); }
.sr-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sr-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 750; letter-spacing: -0.015em; color: var(--text); }
.sr-title .icon { width: 18px; height: 18px; color: var(--accent); }
a.sr-title:hover { color: var(--link); }
.sr-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--faint); }
.sr-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sr-meta .icon { width: 13px; height: 13px; }
.sr-type { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--faint); }
.sr-type .icon { width: 13px; height: 13px; }
.sr-shortcut > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'type type type' 'keys action page'; align-items: center; gap: 6px 16px; }
.sr-shortcut .sr-type { grid-area: type; }
.sr-keys { grid-area: keys; font-size: 17px; }
.sr-action { grid-area: action; font-weight: 650; display: flex; flex-direction: column; }
.sr-action small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.sr-page { grid-area: page; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--link); font-weight: 600; }
.sr-page .icon { width: 13px; height: 13px; }
.sr-update .sr-title { font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sr-update .sr-snippet { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.sr-media > a { display: flex; gap: 14px; align-items: center; }
.sr-thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--media-bg); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-media-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sr-caption { font-weight: 650; }
.sr-media-text small { color: var(--muted); font-size: 12.5px; }
.search-help { margin-top: 40px; }
.search-help h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 12px; }
.search-help h2 .icon { color: var(--accent); }
.search-tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.search-tip { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-elev); }
.search-tip:hover { border-color: var(--accent); }
.search-tip code { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); font-weight: 700; }
.search-tip span { font-size: 13px; color: var(--muted); }
/* 검색 팝업 확장 */
.sp-type { font-size: 11px; font-weight: 750; color: var(--faint); display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; white-space: nowrap; }
.sp-type .icon { width: 12px; height: 12px; }
.sp-item .keys { font-size: 14px; }
.sp-media { display: flex; gap: 10px; align-items: center; }
.sp-media img { width: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--media-bg); flex: none; }
.sp-note { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12.5px; color: var(--note); }
.sp-note .icon { width: 14px; height: 14px; }
.sp-recent { padding: 8px 10px 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--faint); }

/* 빈 페이지 */
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; border-radius: 20px; background: var(--warning-bg); color: var(--warning); }
.empty-art .icon { width: 34px; height: 34px; }
.empty-page .hero-search { margin: 18px auto 0; }

/* 바닥글 */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-foot .spacer { flex: 1; }
.site-foot a:hover { color: var(--link); }
.site-foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-2); }
.site-foot-brand .logo-img { width: 22px; height: 22px; display: block; }

:root[data-motion='off'] .media-live::before { animation: none; }

/* 10) 반응형 ------------------------------------------------------------- */
@media (max-width: 1279px) {
  .page-layout, .page-layout.no-toc { grid-template-columns: minmax(0, var(--content-max)); }
  .toc { display: none; }
  .toc-inline { display: block; }
  .main { padding-left: 40px; }
}
@media (max-width: 1199px) {
  .topnav { display: none; }
  .sidebar-quick { display: grid; }
  .wn-body { grid-template-columns: minmax(0, 1fr); }
  .wn-media { order: -1; position: static; }
}
@media (max-width: 1023px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar-toggle { display: inline-flex; margin-left: -6px; }
  .sidebar {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(86vw, 320px); height: 100dvh;
    background: var(--bg-elev); border-right: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
    padding-top: env(safe-area-inset-top, 0px);
  }
  body.sidebar-open .sidebar { transform: none; visibility: visible; }
  body.sidebar-open { overflow: hidden; }
  .main { padding: 28px max(24px, env(safe-area-inset-right)) 80px max(24px, env(safe-area-inset-left)); }
  .media-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body { font-size: 14.5px; }
  :root { --prose-size: 15.5px; }
  :root[data-font='sm'] { --prose-size: 14.5px; }
  :root[data-font='lg'] { --prose-size: 17px; }
  .topbar-inner { gap: 6px; }
  .topbar-search { display: none; }
  .search-open { display: inline-flex; }
  .brand { margin-right: auto; gap: 8px; }
  .brand-text { font-size: 15px; }
  .brand-sub { display: none; }
  .ver-menu > summary { height: 32px; padding: 0 7px; gap: 4px; }
  .ver-menu > summary > .icon:first-child { display: none; }
  .ver-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-total) + 6px); width: auto; }
  .icon-btn { width: 34px; }
  .settings-open { display: none; }
  .main { padding: 20px max(16px, env(safe-area-inset-right)) 72px max(16px, env(safe-area-inset-left)); }
  .whatsnew { padding: 16px 14px 14px; border-radius: 16px; }
  .wn-all { margin-left: 0; }
  .ch-item { padding: 11px 12px; gap: 10px; }
  .ch-icon { width: 34px; height: 34px; }
  .hero { padding: 26px 18px 20px; border-radius: 16px; margin-bottom: 28px; }
  .hero-mark { width: 52px; height: 52px; right: 16px; top: 18px; }
  .hero-badge { margin-right: 58px; font-size: 12px; }
  .hero-search { height: 50px; }
  .hero-search .btn { display: none; }
  .hero-stats { gap: 8px 22px; }
  .hero-stats dd { font-size: 1.3rem; }
  .cat-card { padding: 14px; }
  .cat-art { width: 48px; height: 48px; border-radius: 13px; }
  .doc-title-row { gap: 10px; }
  .doc-art { width: 46px; height: 46px; border-radius: 13px; }
  .doc-art .art { width: 40px; height: 40px; }
  .doc-ver { margin-left: 0; }
  .prose h2 { font-size: 1.36em; }
  .prose h3 { font-size: 1.14em; }
  .heading-anchor { display: none; }
  .prose th, .prose td { padding: .5em .65em; }
  .callout { padding: .75em .85em; }
  .mermaid-block { padding: 12px; }
  .media-grid.cols-2, .media-grid.cols-3, .media-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .media-zoom { opacity: 1; }
  .chart-block { padding: 12px 10px 10px; }
  .steps > ol > li { padding: 12px 12px 12px 50px; }
  .steps > ol > li::before { left: 11px; width: 28px; height: 28px; }
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; align-items: flex-start; }
  .listing-icon { width: 42px; height: 42px; }
  .all-grid { columns: 1; }
  .settings-dialog { width: calc(100vw - 24px); }
  .tl-item { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
  .search-big { flex-wrap: wrap; height: auto; padding: 8px 8px 8px 14px; gap: 8px; }
  .search-big input { flex: 1 1 60%; height: 40px; }
  .sr-shortcut > a { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'type type' 'keys action' 'page page'; }
  .sr-thumb { width: 112px; }
  .old-banner { position: static; }
  .site-foot .spacer { display: none; }
}
@media (hover: none) {
  .heading-anchor { display: none; }
  .mermaid-zoom, .media-zoom { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .toc, .toc-inline, .pager, .backlinks, .to-top, .code-copy, .heading-anchor, .sidebar-backdrop, .old-banner, .site-foot { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body { background: #fff; color: #000; }
  .code-block, .table-wrap, .callout, .mermaid-block, .media, .chart-block { break-inside: avoid; }
}
.ch-more { margin-top: 8px; }
.ch-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--link); background: var(--accent-soft); }
.ch-more > summary::-webkit-details-marker { display: none; }
.ch-more > summary .icon { width: 15px; height: 15px; transition: transform .18s; }
.ch-more[open] > summary .icon { transform: rotate(180deg); }
.ch-more > .ch-list { margin-top: 8px; }
/* Krita 로 그린 컬러 아이콘이 있으면 바깥 틀은 투명하게 (아이콘이 이미 색 타일) */
.cat-art:has(> img.art), .doc-art:has(> img.art), .ch-icon:has(> img.art), .listing-icon:has(> img.art), .starter-icon:has(> img.art), .all-cat-icon:has(> img.art) { background: none; border-color: transparent; }
.cat-art > img.art { width: 56px; height: 56px; }
.doc-art > img.art { width: 58px; height: 58px; }
.ch-icon > img.art { width: 40px; height: 40px; }
.listing-icon > img.art { width: 48px; height: 48px; }
.starter-icon > img.art { width: 38px; height: 38px; }
img.art { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12)); }
@media (max-width: 767px) { .cat-art > img.art { width: 48px; height: 48px; } .doc-art > img.art { width: 46px; height: 46px; } .ch-icon > img.art { width: 34px; height: 34px; } }
@media (max-width: 767px) {
  .starter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .starter-card { padding-bottom: 12px; }
  .starter-card .card-text { display: none; }
  .starter-card .card-title { font-size: 14px; padding: 0 10px; }
  .cat-pages { display: none; }
}
.listing-head > .listing-icon { flex: none; min-width: 0; }
@media (max-width: 767px) {
  .media-grid.cols-3, .media-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .media-grid figcaption { font-size: 11.5px; }
  .media-grid .media-live span { display: none; }
}
