/*
 * 커뮤니티(게시판) — Figma image 41(글 보기) · 42(리스트형) · 43(웹진형)
 * 색상은 tokens.css 의미 토큰만 사용 (옅은 배경은 color-mix 로 토큰을 섞는다).
 * BoardController 가 board.css · legacy.css 와 함께 불러온다. 클래스는 cm-*, 사이드바 위젯은 side-*.
 */

.page-main { overflow-x: clip; }
.legacy-page:has(> .cm) { padding-top: 0; }
.cm { --cm-gap: 24px; --cm-side: 320px; padding-bottom: 56px; color: var(--c-text); }
.cm a { color: inherit; }
.cm svg { width: 16px; height: 16px; flex: none; }

/* ─── 상단 hero (전체 너비 띠) ─────────────────────────── */
.cm-hero {
  position: relative; overflow: hidden;
  margin: 0 calc(50% - 50vw) 28px; padding: 0 calc(50vw - 50%);
  background: var(--c-cm-hero); border-bottom: 1px solid var(--c-border);
}
.cm-hero__inner { position: relative; min-height: 150px; padding: 18px 0 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cm-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-muted); }
.cm-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--c-text-muted); }
.cm-crumbs a:hover { color: var(--c-text); }
.cm-crumbs svg { width: 14px; height: 14px; }
.cm-crumbs [aria-current] { color: var(--c-text); }
.cm-crumbs--plain { margin: 20px 0 16px; }
.cm-hero__title { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.cm-hero__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-accent) 22%, transparent); flex: none; }
.cm-hero__icon svg { width: 30px; height: 30px; }
.cm-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--c-text); }
.cm-hero__title p { margin: 6px 0 0; color: var(--c-text-muted); font-size: 16px; }
.cm-hero__art { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; pointer-events: none; }
.cm-hero__pad { position: absolute; right: 12%; top: 50%; transform: translateY(-46%) rotate(-12deg); color: var(--c-cm-glow-b); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c-cm-glow-b) 70%, transparent)); }
.cm-hero__pad svg { width: 150px; height: 150px; stroke-width: 1.4; }
.cm-hero__bubble { position: absolute; right: 42%; top: 18%; color: var(--c-cm-glow-a); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--c-cm-glow-a) 80%, transparent)); }
.cm-hero__bubble svg { width: 64px; height: 64px; stroke-width: 1.6; }
.cm-hero__spark { position: absolute; right: 4%; top: 14%; color: var(--c-tone-2); opacity: .8; }
.cm-hero__spark svg { width: 36px; height: 36px; }

/* ─── 분류 탭 + 글쓰기 ─────────────────────────────────── */
.cm-tabsbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cm-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tab { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); color: var(--c-text); font-weight: 600; font-size: 15px; background: var(--c-surface); }
.cm-tab:hover { border-color: var(--c-text-muted); color: var(--c-text); }
.cm-tab.is-active { background: var(--c-accent-strong); border-color: var(--c-accent-strong); color: var(--c-on-accent); }
.cm-write { flex: none; }
.cm-write--block { width: 100%; margin-bottom: 4px; }

/* ─── 본문 + 사이드바 ─────────────────────────────────── */
.cm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cm-gap); align-items: start; }
.cm-grid.has-side { grid-template-columns: minmax(0, 1fr) var(--cm-side); }
.cm-grid--webzine { grid-template-columns: 240px minmax(0, 1fr); }
.cm-grid--webzine.has-side { grid-template-columns: 240px minmax(0, 1fr) var(--cm-side); }
.cm-main { min-width: 0; }
.cm-side { display: grid; gap: 16px; min-width: 0; }

/* ─── 툴바: 개수 · 정렬 · 쪽당 개수 ─────────────────────── */
.cm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cm-toolbar__right, .cm-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-count { margin: 0; font-size: 17px; font-weight: 600; }
.cm-count strong { color: var(--c-accent-text); font-weight: 800; }
.cm-count__q { margin-left: 8px; font-size: 14px; color: var(--c-text-muted); font-weight: 500; }
p.cm-count__q { margin: 0 0 12px; }
.cm-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); color: var(--c-text); font-weight: 600; font-size: 14px; background: var(--c-surface); }
.cm-chip:hover { color: var(--c-text); border-color: var(--c-text-muted); }
.cm-chip.is-active { border-color: var(--c-accent); color: var(--c-accent-text); background: color-mix(in srgb, var(--c-accent) 12%, var(--c-surface)); }
.cm-size select { height: 40px; padding: 0 36px 0 16px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 14px; font-weight: 600; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.cm-size { display: inline-flex; gap: 6px; }

/* ─── 배지 · 아바타 · 작성자 ──────────────────────────── */
.cm-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; vertical-align: middle;
  color: var(--cm-tone, var(--c-text-muted)); background: color-mix(in srgb, var(--cm-tone, var(--c-text-muted)) 20%, transparent); }
.cm-badge--notice { --cm-tone: var(--c-accent-text); }
.cm-badge--board { --cm-tone: var(--c-accent-text); border-radius: var(--radius-pill); }
.cm-tone-1 { --cm-tone: var(--c-tone-1); } .cm-tone-2 { --cm-tone: var(--c-tone-2); } .cm-tone-3 { --cm-tone: var(--c-tone-3); }
.cm-tone-4 { --cm-tone: var(--c-tone-4); } .cm-tone-5 { --cm-tone: var(--c-tone-5); } .cm-tone-6 { --cm-tone: var(--c-tone-6); }
.cm-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 800; line-height: 1;
  color: var(--cm-tone, var(--c-text)); background: color-mix(in srgb, var(--cm-tone, var(--c-text-muted)) 26%, var(--c-surface-2)); }
.cm-avatar--sm { width: 26px; height: 26px; font-size: 12px; }
.cm-avatar--md { width: 36px; height: 36px; font-size: 15px; }
.cm-avatar--lg { width: 44px; height: 44px; font-size: 18px; }
.cm-avatar--staff { background: var(--c-text); color: var(--c-bg); font-family: var(--font-display); }
.cm-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cm-author__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cm-verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); flex: none; }
.cm .cm-verified svg { width: 11px; height: 11px; stroke-width: 3; }
.cm-dot { color: var(--c-text-muted); }

/* ─── 리스트형 표 (image 42) ──────────────────────────── */
.cm-table { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); overflow: hidden; }
.cm-table__head, .cm-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 64px 80px 128px; align-items: center; gap: 8px; padding: 0 16px; }
.cm-table__head { height: 46px; border-bottom: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-muted); background: var(--c-surface-2); }
.cm-table__head .c-title { padding-left: 4px; }
.cm-rows { list-style: none; margin: 0; padding: 0; }
.cm-row { min-height: 52px; border-bottom: 1px solid var(--c-border); font-size: 15px; }
.cm-row:last-child { border-bottom: 0; }
.cm-row:hover { background: color-mix(in srgb, var(--c-text) 4%, transparent); }
.cm-row.is-notice { background: color-mix(in srgb, var(--c-accent) 6%, transparent); }
.cm-row .c-no, .cm-table__head .c-no { text-align: center; color: var(--c-text-muted); font-size: 14px; }
.cm-pin { color: var(--c-accent); display: inline-grid; place-items: center; }
.cm-row .c-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-row__link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cm-row__link:hover { color: var(--c-accent-text); }
.cm-row__link::after { content: ""; }
.cm-row__cmt { color: var(--c-accent-text); font-size: 13px; font-weight: 700; flex: none; }
.cm-ico { color: var(--c-text-muted); display: inline-grid; flex: none; }
.cm-ico svg { width: 14px; height: 14px; }
.cm-row .c-author { min-width: 0; font-size: 14px; }
.cm-row .c-num { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--c-text-muted); font-size: 14px; }
.cm-row .c-num svg { width: 15px; height: 15px; }
.cm-table__head .c-num, .cm-table__head .c-time { text-align: center; }
.cm-row .c-time { text-align: center; color: var(--c-text-muted); font-size: 14px; white-space: nowrap; }
.cm-row .cm-row__cmt { display: none; }

/* ─── 웹진형 (image 43) ──────────────────────────────── */
.cm-nav { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); padding: 10px; }
.cm-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cm-nav ul + .cm-nav__title { border-top: 1px solid var(--c-border); }
.cm-nav__title { margin: 10px 8px 0; padding: 16px 6px 8px; font-size: 16px; font-weight: 700; }
.cm-nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: var(--radius-md); font-size: 16px; font-weight: 500; color: var(--c-text); }
.cm-nav a svg { width: 20px; height: 20px; color: var(--c-text-muted); }
.cm-nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.cm-nav a.is-active { background: var(--c-accent-strong); color: var(--c-on-accent); font-weight: 700; }
.cm-nav a.is-active svg { color: var(--c-on-accent); }
.cm-wz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.cm-wz-title { margin: 0 auto 0 0; font-size: 24px; font-weight: 800; }
.cm-wz-title strong { margin-left: 4px; font-size: 16px; color: var(--c-accent-text); }
.cm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cm-card { position: relative; display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); transition: border-color .15s var(--ease); }
.cm-card:hover { border-color: var(--c-border-strong); }
.cm-card.is-notice { border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-border)); }
.cm-card__thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: var(--c-surface-2); }
.cm-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cm-tone); background: linear-gradient(135deg, color-mix(in srgb, var(--cm-tone) 30%, var(--c-surface-2)), var(--c-surface-2)); }
.cm .cm-card__ph svg { width: 44px; height: 44px; stroke-width: 1.5; }
.cm-card__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-right: 64px; }
.cm-card__title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.cm-card__title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.cm-card__title a:hover { color: var(--c-accent-text); }
.cm-card__excerpt { margin: 0; color: var(--c-text-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-card__meta { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-muted); }
.cm-card__meta .cm-author__name { color: var(--c-text); }
.cm-meta-ico { display: inline-flex; align-items: center; gap: 4px; }
.cm-card__pin { position: absolute; top: 14px; right: 16px; color: var(--c-accent); }
.cm-card__cmt { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; }
.cm-card__cmt.is-accent { border-color: var(--c-accent); color: var(--c-accent-text); }

/* ─── 검색 · 페이지 이동 · 빈 목록 ──────────────────────── */
.cm-search { position: relative; display: flex; max-width: 360px; margin: 18px auto 0; }
.cm-search input { width: 100%; height: 42px; padding: 0 44px 0 16px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: 14px; }
.cm-search input::placeholder { color: var(--c-text-muted); }
.cm-search button { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--c-text-muted); cursor: pointer; }
.cm-search--inline { margin: 0; flex: 1 1 280px; max-width: 320px; }
.cm-search--inline input { padding: 0 16px 0 42px; }
.cm-search--inline button { left: 4px; right: auto; }
.cm-paging { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 26px; }
.cm-paging__no, .cm-paging__arrow { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: var(--radius-sm); font-weight: 600; color: var(--c-text); }
.cm-paging__arrow { border: 1px solid var(--c-border-strong); background: var(--c-surface); }
.cm-paging__no:hover, .cm-paging__arrow:hover { background: var(--c-surface-2); color: var(--c-text); }
.cm-paging__no.is-current { background: var(--c-accent-strong); color: var(--c-on-accent); }
.cm-paging__arrow.is-disabled { opacity: .4; }
.cm-paging__gap { color: var(--c-text-muted); padding: 0 4px; }
.cm-empty { margin: 0; padding: 56px 16px; text-align: center; color: var(--c-text-muted); }
.cm-empty--sm { padding: 24px 0 8px; }

/* ─── 글 보기 (image 41) ────────────────────────────── */
.cm-post { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); padding: 24px 24px 8px; }
.cm-post__head { padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.cm-post__head h1 { margin: 12px 0 14px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cm-post__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--c-text-muted); }
.cm-post__meta .cm-author__name { color: var(--c-text); }
.cm-prose { padding: 22px 0; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.cm-prose > :first-child { margin-top: 0; }
.cm-prose img, .cm-prose video, .cm-prose iframe { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.cm-prose a { color: var(--c-accent-text); text-decoration: underline; }
.cm-prose h2, .cm-prose h3 { margin: 1.4em 0 .5em; line-height: 1.35; }
.cm-prose ul, .cm-prose ol { padding-left: 1.4em; }
.cm-prose blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--c-accent); color: var(--c-text-muted); }
.cm-prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.cm-prose td, .cm-prose th { border: 1px solid var(--c-border); padding: 6px 10px; }
.cm-files ul { list-style: none; margin: 0 0 16px; padding: 12px 14px; display: grid; gap: 6px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: var(--c-surface-2); }
.cm-files a { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cm-files a:hover span { color: var(--c-accent-text); text-decoration: underline; }
.cm-files small { color: var(--c-text-muted); }
.cm-tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cm-tags a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 13px; font-weight: 600; }
.cm-tags a:hover { border-color: var(--c-border-strong); color: var(--c-text); }
.cm-post__actions { display: flex; align-items: center; gap: 10px; padding: 4px 0 20px; border-bottom: 1px solid var(--c-border); }
.cm-post__spacer { flex: 1; }
.cm-action { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill); background: transparent; color: var(--c-text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.cm-action:hover { border-color: var(--c-text-muted); color: var(--c-text); }
.cm-action.is-done { border-color: var(--c-accent); color: var(--c-accent-text); }
.cm .cm-action svg { width: 18px; height: 18px; }

/* 댓글 */
.cm-comments { padding: 20px 0 12px; }
.cm-comments h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.cm-comments h2 strong { color: var(--c-accent-text); }
.cm-comment-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.cm-comment-form textarea { width: 100%; min-height: 44px; max-height: 240px; padding: 11px 16px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-md); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 15px; line-height: 1.45; resize: vertical; }
.cm-comment-form textarea::placeholder { color: var(--c-text-muted); }
.cm-comment-login { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 8px; border: 1px dashed var(--c-border-strong); border-radius: var(--radius-md); color: var(--c-text-muted); }
.cm-comment-login span:not(.cm-avatar) { flex: 1; }
.cm-comment-login:hover { color: var(--c-text); border-color: var(--c-text-muted); }
.cm-comment-list { list-style: none; margin: 0; padding: 0; }
.cm-comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.cm-comment:last-child { border-bottom: 0; }
.cm-comment__body { min-width: 0; flex: 1; }
.cm-comment__head { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--c-text-muted); }
.cm-comment__head strong { color: var(--c-text); font-size: 15px; }
.cm-comment__text { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }

/* ─── 사이드바 위젯 (관리자 › 메인페이지 관리 › 커뮤니티 사이드바) ─── */
.side-card { border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); padding: 18px; }
.side-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.side-card__head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.side-card__icon { display: inline-grid; }
.side-card .side-card__icon svg { width: 22px; height: 22px; }
.side-card__icon.is-gold { color: var(--c-rank-gold); }
.side-card__icon.is-accent { color: var(--c-accent); }
.side-card .more-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--c-text-muted); }
.side-card .more-link:hover { color: var(--c-text); }
.side-card .more-link svg { width: 14px; height: 14px; }
.side-card svg { width: 15px; height: 15px; flex: none; }
.side-empty { margin: 0; padding: 12px 0; color: var(--c-text-muted); font-size: 14px; }
.side-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; flex: none; font-size: 13px; font-weight: 800; background: var(--c-surface-2); color: var(--c-text-muted); }
.side-no.is-top { background: var(--c-accent-strong); color: var(--c-on-accent); }
.side-meta { display: inline-flex; align-items: center; gap: 3px; color: var(--c-text-muted); font-size: 12px; flex: none; }
.side-card .side-meta svg { width: 13px; height: 13px; }

.side-rank, .side-posts, .side-games, .side-related, .side-bullets { list-style: none; margin: 0; padding: 0; }
.side-rank li + li, .side-posts li + li, .side-games li + li { border-top: 1px solid var(--c-border); }
.side-rank a { display: flex; align-items: center; gap: 12px; height: 42px; font-size: 15px; }
.side-rank__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side-rank__score { color: var(--c-text-muted); font-size: 14px; }
.side-rank a > svg { color: var(--c-text-muted); }
.side-rank a:hover .side-rank__label { color: var(--c-accent-text); }

.side-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; margin-bottom: 8px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm); }
.side-tabs button { height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--c-text-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.side-tabs button[aria-selected="true"] { background: var(--c-accent-strong); color: var(--c-on-accent); }
[data-cm-tabs].is-ready [data-cm-hidden] { display: none; }
.side-posts a { display: flex; align-items: center; gap: 10px; height: 42px; font-size: 14px; }
.side-posts__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-posts a:hover .side-posts__title { color: var(--c-accent-text); }

.side-bullets { display: grid; gap: 10px; }
.side-bullets a { position: relative; display: block; padding-left: 16px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-bullets a::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.side-bullets a:hover { color: var(--c-accent-text); }

.side-games li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.side-games__thumb { width: 64px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; flex: none; background: var(--c-surface-2); }
.side-games__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-games__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.side-games__title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-games__title:hover { color: var(--c-accent-text); }
.side-games__plays { font-size: 12px; color: var(--c-text-muted); }
.side-games__play { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); flex: none; }
.side-games__play:hover { color: var(--c-on-accent); filter: brightness(.92); }
.side-card .side-games__play svg { width: 14px; height: 14px; margin-left: 2px; }

.side-related { display: grid; gap: 12px; }
.side-related a { display: flex; gap: 12px; align-items: center; }
.side-related__thumb { display: grid; place-items: center; width: 92px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; flex: none; background: var(--c-surface-2); color: var(--c-text-muted); }
.side-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-card .side-related__thumb svg { width: 26px; height: 26px; }
.side-related__body { min-width: 0; display: grid; gap: 6px; }
.side-related__title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-related a:hover .side-related__title { color: var(--c-accent-text); }
.side-related__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--c-text-muted); }

.side-promo { position: relative; display: flex; align-items: center; gap: 12px; min-height: 140px; padding: 22px; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-cm-hero); border: 1px solid var(--c-border); color: var(--c-text); }
.side-promo:hover { color: var(--c-text); border-color: var(--c-border-strong); }
.side-promo__copy { position: relative; z-index: 1; display: grid; gap: 10px; }
.side-promo__copy strong { font-size: 22px; font-weight: 800; line-height: 1.3; }
.side-promo__copy span { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; max-width: 60%; }
.side-promo__copy em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--c-accent-text); }
.side-promo__art { position: absolute; right: -6px; bottom: -4px; color: var(--c-cm-glow-b); opacity: .9; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c-cm-glow-b) 70%, transparent)); }
.side-promo .side-promo__art svg { width: 110px; height: 110px; stroke-width: 1.4; transform: rotate(-12deg); }

/* ─── 반응형 ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .cm-grid--webzine.has-side { grid-template-columns: 220px minmax(0, 1fr); }
  .cm-grid--webzine.has-side .cm-side { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 1024px) {
  .cm-grid.has-side { grid-template-columns: minmax(0, 1fr); }
  .cm-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .cm-table__head, .cm-row { grid-template-columns: 56px minmax(0, 1fr) 130px 70px 110px; }
  .cm-table__head > :nth-child(4), .cm-row > :nth-child(4) { display: none; }
  .cm-row .cm-row__cmt { display: inline; }
  .cm-hero__art { opacity: .5; }
}
@media (max-width: 860px) {
  .cm-grid--webzine, .cm-grid--webzine.has-side { grid-template-columns: minmax(0, 1fr); }
  .cm-nav { position: static; padding: 6px; }
  .cm-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .cm-nav li { flex: none; }
  .cm-nav a { flex: none; white-space: nowrap; height: 38px; padding: 0 14px; font-size: 14px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); }
  .cm-nav a svg { width: 16px; height: 16px; }
  .cm-nav__title { display: none; }
  .cm-nav ul + ul { margin-top: 6px; }
}
@media (max-width: 720px) {
  .cm-hero__inner { min-height: 0; padding: 14px 0 20px; }
  .cm-hero__icon { width: 46px; height: 46px; }
  .cm-hero__icon svg { width: 24px; height: 24px; }
  .cm-hero__title p { font-size: 14px; }
  .cm-hero__art { display: none; }
  .cm-tabsbar { flex-direction: column; align-items: stretch; }
  .cm-tab { height: 38px; padding: 0 14px; font-size: 14px; }
  .cm-write { align-self: flex-end; }
  .cm-table__head { display: none; }
  .cm-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "author time"; gap: 6px 10px; padding: 12px 14px; }
  .cm-row .c-no, .cm-row .c-num { display: none; }
  .cm-row .c-title { grid-area: title; }
  .cm-row .c-author { grid-area: author; font-size: 13px; }
  .cm-row .c-time { grid-area: time; font-size: 13px; }
  .cm-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cm-card__body { padding-right: 0; }
  .cm-card.is-notice .cm-card__body { padding-right: 18px; }
  .cm-card__title { font-size: 15px; flex-wrap: wrap; }
  .cm-card__title a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cm-card__excerpt { display: none; }
  .cm-card__cmt { position: static; justify-self: start; height: 28px; grid-column: 2; }
  .cm-wz-title { font-size: 20px; width: 100%; }
  .cm-search--inline { max-width: none; }
  .cm-post { padding: 18px 16px 4px; border-radius: var(--radius-md); }
  .cm-comment-form { grid-template-columns: minmax(0, 1fr) auto; }
  .cm-comment-form > .cm-avatar { display: none; }
  .cm-action { height: 40px; padding: 0 14px; font-size: 14px; }
}

/* 기존 board.css/app.css 의 #comments 규칙보다 우선 */
.cm #comments.cm-comments { margin-top: 0; border-top: 0; padding-top: 20px; }
.cm #comments .cm-comment-login { display: flex; width: auto; color: var(--c-text-muted); font-weight: 500; text-decoration: none; }
.cm #comments .cm-comment-login:hover { color: var(--c-text); }
/* 본문 목록 기호 (base.css 가 ul/ol 기호를 지운다) */
.cm-prose ul { list-style: disc; margin: .6em 0; }
.cm-prose ol { list-style: decimal; margin: .6em 0; }
.cm-prose li + li { margin-top: .25em; }

/* 웹진형은 3단이라 본문 폭을 넓힌다 (시안 image 43) */
.container.legacy-page:has(.cm-grid--webzine) { max-width: 1440px; }
@media (min-width: 1181px) { .cm-grid--webzine.has-side { grid-template-columns: 220px minmax(0, 1fr) 300px; } }
/* 사이드바 카드가 긴 제목(nowrap) 때문에 열 너비를 넘지 않게 */
.cm-side > * { min-width: 0; }
/* 수정·삭제 (회원 글쓰기) */
.cm-post__actions form { display: inline-flex; }
.cm-comment__del { margin-top: 4px; }
.cm-comment__del button { border: 0; background: none; padding: 0; color: var(--c-text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.cm-comment__del button:hover { color: var(--c-danger); }

/* ─── 회원 글쓰기 (설계 2026-11-08 §5) ─── */
.cm-write-form { max-width: 960px; display: grid; gap: 16px; padding: 24px; margin-bottom: 48px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); }
.cm-write-form h1 { margin: 0; font-size: 24px; font-weight: 800; }
.cm-write-error { margin: 0; padding: 12px 14px; border-radius: var(--radius-md); color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 12%, transparent); }
.cm-write-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.cm-write-field { display: grid; gap: 6px; flex: 1 1 280px; font-weight: 600; font-size: 14px; }
.cm-write-field--narrow { flex: 0 1 200px; }
.cm-write-field small { color: var(--c-text-muted); font-weight: 400; }
.cm-write-field input[type=text], .cm-write-field select, .cm-write-field textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-md); background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: 400; }
.cm-write-field input[type=file] { color: var(--c-text-muted); font-weight: 400; }
/* 에디터 툴바·본문은 밝은 바탕 전용 스타일이라 밝은 패널로 둔다 */
.cm-write-editor { border-radius: var(--radius-md); overflow: hidden; background: var(--white); color: var(--ink-900); color-scheme: light; }
.cm-write-opts { align-items: center; }
.cm-write-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cm-write-groups { display: flex; gap: 10px; flex-wrap: wrap; border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 8px 12px; margin: 0; }
.cm-write-groups[hidden] { display: none; }
.cm-write-groups legend { padding: 0 4px; font-size: 13px; color: var(--c-text-muted); }
.cm-write-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) { .cm-write-form { padding: 16px; } }

/* 좋아요·싫어요·스크랩·답글 (커뮤니티 완성도) */
.cm-post__actions { flex-wrap: wrap; }
.cm-post__actions form { display: inline-flex; }
.cm-vote strong { font-weight: 800; }
.cm-action.is-on { border-color: var(--c-accent); color: var(--c-accent-text); background: color-mix(in srgb, var(--c-accent) 10%, transparent); }
.cm-vote--down.is-on { border-color: var(--c-text-muted); color: var(--c-text); background: var(--c-surface-2); }
.cm-post__manage { display: flex; align-items: center; gap: 14px; padding: 12px 0 0; }
.cm-post__manage form { display: inline-flex; }
.cm-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--c-text-muted); cursor: pointer; }
.cm-link:hover { color: var(--c-text); }
.cm .cm-link svg { width: 15px; height: 15px; }
.cm-comment.is-reply { margin-left: 48px; padding-left: 14px; border-left: 2px solid var(--c-border); }
.cm-comment__deleted { color: var(--c-text-muted); font-style: italic; }
.cm-comment__tools { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cm-comment__tools .cm-comment__del { margin: 0; }
.cm-reply summary { cursor: pointer; font-size: 13px; color: var(--c-text-muted); list-style: none; }
.cm-reply summary::-webkit-details-marker { display: none; }
.cm-reply[open] summary { color: var(--c-accent-text); }
.cm-comment-form--reply { grid-template-columns: minmax(0, 1fr) auto; margin-top: 8px; padding-bottom: 0; border-bottom: 0; min-width: min(520px, 70vw); }
@media (max-width: 720px) { .cm-comment.is-reply { margin-left: 18px; } }

/* 신고 (report 모듈) */
.cm-flash { margin: 0 0 12px; padding: 12px 16px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--c-accent) 12%, transparent); color: var(--c-text); }
.report { position: relative; display: inline-block; }
.report summary { list-style: none; cursor: pointer; }
.report summary::-webkit-details-marker { display: none; }
.report-btn { color: var(--c-text-muted); }
.report[open] .report-btn { color: var(--c-danger); }
.report__form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(320px, 86vw); display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--c-border-strong); background: var(--c-surface); box-shadow: var(--shadow-pop); text-align: left; }
.cm-comment .report__form { left: 0; right: auto; }
.report__form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.report__form legend { font-weight: 700; margin-bottom: 4px; }
.report__form label { display: flex; gap: 6px; align-items: center; color: var(--c-text); }
.report__form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 13px; resize: vertical; }

/* 본문 영상·음악 — 글쓰기 화면처럼 본문 폭에 맞춘다 (유튜브·비메오 넣기, 음악·영상 파일) */
.cm-prose iframe, .cm-prose .rich-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 12px 0; background: var(--c-bg); }
.cm-prose video { display: block; width: 100%; height: auto; margin: 12px 0; background: var(--c-bg); }
.cm-prose audio { display: block; width: 100%; margin: 12px 0; }

/* 신고 창 — 글 아래 버튼 줄의 가로 배치(form)가 덮어쓰지 않게 */
.cm-post__actions .report__form, .cm-comment .report__form, .report .report__form { display: grid; gap: 12px; }
.report__form fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.report__form legend { grid-column: 1 / -1; float: left; width: 100%; margin-bottom: 6px; font-size: 14px; }
.report__form label { padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); font-size: 13px; cursor: pointer; }
.report__form label:has(input:checked) { border-color: var(--c-accent); color: var(--c-accent-text); }
.report__form input[type="radio"] { accent-color: var(--c-accent); margin: 0; }
.report__form textarea { min-height: 64px; }
.report__form .btn { width: 100%; justify-content: center; }
.cm-comment__tools .report-btn { font-size: 13px; cursor: pointer; }
.cm-comment__tools .report-btn:hover { color: var(--c-danger); }

/* 글쓰기 — 공개 범위 (일반 회원: 게시판 기본 / 비공개) */
.cm-write-vis { border: 0; margin: 0; padding: 0; min-width: 0; }
.cm-write-vis legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.cm-write-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-write-choice { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--c-border); background: var(--c-surface-2); cursor: pointer; }
.cm-write-choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-accent); flex: none; }
.cm-write-choice strong { display: block; font-size: 14px; }
.cm-write-choice small { display: block; font-size: 12px; color: var(--c-text-muted); }
.cm-write-choice:has(input:checked) { border-color: var(--c-accent); }
.cm-write-choice:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 1px; }

/* 글쓰기 에디터 — 다크 테마 (Quill 기본은 밝은 색) */
html[data-theme="dark"] .cm--write .nvp-rich-toolbar.ql-toolbar,
html[data-theme="dark"] .cm--write .ql-toolbar.ql-snow { background: var(--c-surface-2); border-color: var(--c-border-strong); }
html[data-theme="dark"] .cm--write .ql-container.ql-snow { border-color: var(--c-border-strong); background: var(--c-bg); }
html[data-theme="dark"] .cm--write .ql-editor { color: var(--c-text); }
html[data-theme="dark"] .cm--write .ql-editor.ql-blank::before { color: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .ql-editor a { color: var(--c-accent-text); }
html[data-theme="dark"] .cm--write .ql-editor blockquote { border-left-color: var(--c-accent); color: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .ql-editor code, html[data-theme="dark"] .cm--write .ql-editor pre { background: var(--c-surface-2); color: var(--c-text); }
html[data-theme="dark"] .cm--write .ql-editor td { border-color: var(--c-border-strong); }
html[data-theme="dark"] .cm--write .ql-editor tr:first-child td { background: var(--c-surface-2); }
html[data-theme="dark"] .cm--write .ql-snow .ql-stroke { stroke: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .ql-snow .ql-fill, html[data-theme="dark"] .cm--write .ql-snow .ql-stroke.ql-fill { fill: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .ql-snow .ql-picker { color: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .ql-snow button:hover .ql-stroke, html[data-theme="dark"] .cm--write .ql-snow button.ql-active .ql-stroke,
html[data-theme="dark"] .cm--write .ql-snow .ql-picker-label:hover .ql-stroke, html[data-theme="dark"] .cm--write .ql-snow .ql-picker-label.ql-active .ql-stroke { stroke: var(--c-accent-text); }
html[data-theme="dark"] .cm--write .ql-snow button:hover .ql-fill, html[data-theme="dark"] .cm--write .ql-snow button.ql-active .ql-fill { fill: var(--c-accent-text); }
html[data-theme="dark"] .cm--write .ql-snow button:hover, html[data-theme="dark"] .cm--write .ql-snow .ql-picker-label:hover,
html[data-theme="dark"] .cm--write .ql-snow .ql-picker-item:hover, html[data-theme="dark"] .cm--write .ql-snow .ql-picker-item.ql-selected { color: var(--c-accent-text); }
html[data-theme="dark"] .cm--write .ql-snow .ql-picker-options { background: var(--c-surface); border-color: var(--c-border-strong); box-shadow: var(--shadow-pop); }
html[data-theme="dark"] .cm--write .ql-snow .ql-tooltip { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); box-shadow: var(--shadow-pop); }
html[data-theme="dark"] .cm--write .ql-snow .ql-tooltip input[type=text] { background: var(--c-bg); border-color: var(--c-border-strong); color: var(--c-text); }
html[data-theme="dark"] .cm--write .ql-snow .ql-tooltip a.ql-action, html[data-theme="dark"] .cm--write .ql-snow .ql-tooltip a.ql-remove { color: var(--c-accent-text); }
/* 에디터가 화면에 띄우는 창(링크·영상·표 등)은 body 아래에 붙으므로 글쓰기 화면일 때만 */
html[data-theme="dark"] body:has(.cm--write) .nvp-rich-dialog, html[data-theme="dark"] body:has(.cm--write) .rich-dialog { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border-strong); }
html[data-theme="dark"] body:has(.cm--write) .nvp-rich-dialog input, html[data-theme="dark"] body:has(.cm--write) .rich-dialog input[type="text"] { background: var(--c-bg); border-color: var(--c-border-strong); color: var(--c-text); }
html[data-theme="dark"] body:has(.cm--write) .nvp-rich-dialog p, html[data-theme="dark"] body:has(.cm--write) .rich-dialog p { color: var(--c-text-muted); }
html[data-theme="dark"] body:has(.cm--write) .nvp-rich-table-tools { background: var(--c-surface); border-color: var(--c-border-strong); color: var(--c-text); }
html[data-theme="dark"] .cm--write .nvp-rich-table-tools { background: var(--c-surface-2); border-color: var(--c-border-strong); color: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .nvp-rich-table-tools button { background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text-muted); }
html[data-theme="dark"] .cm--write .nvp-rich-table-tools button:hover:not(:disabled) { color: var(--c-accent-text); border-color: var(--c-accent); }
.cm--write input[type="file"] { color: var(--c-text-muted); font: inherit; font-size: 13px; }
.cm--write input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-2); color: var(--c-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* 갤러리형 목록 — 썸네일 카드 격자 */
.cm-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cm-gcard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-surface); overflow: hidden; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.cm-gcard:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.cm-gcard.is-notice { border-color: color-mix(in srgb, var(--c-accent) 50%, var(--c-border)); }
.cm-gcard__thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--c-surface-2); overflow: hidden; }
.cm-gcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.cm-gcard:hover .cm-gcard__thumb img { transform: scale(1.04); }
.cm-gcard__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cm-tone, var(--c-text-muted)); background: color-mix(in srgb, var(--cm-tone, var(--c-text-muted)) 12%, var(--c-surface-2)); }
.cm-gcard__ph svg { width: 40px; height: 40px; }
.cm-gcard__ph--lock { color: var(--c-text-muted); background: var(--c-surface-2); }
.cm-gcard__flag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: var(--cm-tone, var(--c-on-accent)); background: color-mix(in srgb, var(--c-bg) 78%, transparent); backdrop-filter: blur(4px); }
.cm-gcard__flag svg { width: 13px; height: 13px; }
.cm-gcard.is-notice .cm-gcard__flag { color: var(--c-on-accent); background: var(--c-accent); }
.cm-gcard__body { display: grid; gap: 8px; padding: 12px 14px 14px; }
.cm-gcard__title { margin: 0; display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; font-weight: 700; }
.cm-gcard__title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-gcard.is-locked .cm-gcard__title a { color: var(--c-text-muted); }
.cm-gcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; font-size: 13px; color: var(--c-text-muted); min-width: 0; }
.cm-gcard__meta > :first-child { min-width: 0; overflow: hidden; }
.cm-gcard__stats { display: inline-flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 640px) { .cm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cm-gcard__body { padding: 10px; } }
