/* ============================================================
   themes/pro  ─ 전문블로거형
   6색톤: data-theme 로 :root 변수 교체 → 전체 톤 변경
   sw/sample/pro_sample_v4.html 디자인을 데이터 연동 테마로 이식
   ============================================================ */
:root {
  --accent:#475569; --accent-light:#64748B; --accent-hover:#334155;
  --accent-soft:rgba(71,85,105,.10); --accent-glow:rgba(71,85,105,.20);
  --bg:#ffffff; --bg-alt:#f7f9fc; --card:#ffffff;
  --text:#0f172a; --text-body:#334155; --text-muted:#94a3b8;
  --border:#e8edf3; --border-strong:#d4dde7;
  --radius:16px; --radius-sm:11px;
}
[data-theme="beige"]  { --accent:#92400E; --accent-light:#B45309; --accent-hover:#78350F; --accent-soft:rgba(146,64,14,.10); --accent-glow:rgba(146,64,14,.20); --bg:#ffffff; --bg-alt:#FEF9F0; --text:#1c1410; --text-body:#4a3f36; --border:#f0e6d8; --border-strong:#e3d4c0; }
[data-theme="white"]  { --accent:#475569; --accent-light:#64748B; --accent-hover:#334155; --accent-soft:rgba(71,85,105,.10); --accent-glow:rgba(71,85,105,.20); --bg:#ffffff; --bg-alt:#f7f9fc; --text:#0f172a; --text-body:#334155; --border:#e8edf3; --border-strong:#d4dde7; }
[data-theme="sage"]   { --accent:#2d6a4f; --accent-light:#40916c; --accent-hover:#1b4332; --accent-soft:rgba(45,106,79,.10); --accent-glow:rgba(45,106,79,.20); --bg:#ffffff; --bg-alt:#f3faf6; --text:#0f1f17; --text-body:#2f4339; --border:#dcefe4; --border-strong:#c4e3d2; }
[data-theme="blue"]   { --accent:#0369A1; --accent-light:#0284C7; --accent-hover:#075985; --accent-soft:rgba(3,105,161,.10); --accent-glow:rgba(3,105,161,.20); --bg:#ffffff; --bg-alt:#f1f8fe; --text:#0c2433; --text-body:#2c4756; --border:#daeafa; --border-strong:#bcdcf5; }
[data-theme="clay"]   { --accent:#9A3412; --accent-light:#C2410C; --accent-hover:#7C2D12; --accent-soft:rgba(154,52,18,.10); --accent-glow:rgba(154,52,18,.20); --bg:#ffffff; --bg-alt:#fff7f2; --text:#231009; --text-body:#4d342a; --border:#f5e2d7; --border-strong:#edcab5; }
[data-theme="dark"]   { --accent:#818cf8; --accent-light:#a5b4fc; --accent-hover:#6366f1; --accent-soft:rgba(129,140,248,.12); --accent-glow:rgba(129,140,248,.30); --bg:#0f1117; --bg-alt:#171a23; --card:#1a1f2e; --text:#f1f5f9; --text-body:#cbd5e1; --text-muted:#7d8aa0; --border:rgba(255,255,255,.12); --border-strong:rgba(255,255,255,.2); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family:'Pretendard','맑은 고딕','Malgun Gothic',system-ui,sans-serif;
  color:var(--text-body); background:var(--bg); line-height:1.7; font-size:16px;
  transition:background .3s, color .3s;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }

/* 읽기 진행 바 */
#read-progress { position:fixed; top:0; left:0; height:3px; width:0; background:var(--accent); z-index:100; transition:width .1s; }

/* ── 네비게이션 ── */
.site-nav { position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); border-bottom:1px solid var(--border); transition:background .3s, border-color .3s; }
.nav-inner { max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; height:68px; }
.nav-logo { font-size:21px; font-weight:900; color:var(--text); letter-spacing:-.5px; display:flex; align-items:center; gap:9px; }
.nav-logo .logo-mark { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg, var(--accent-light), var(--accent-hover)); display:flex; align-items:center; justify-content:center; font-size:17px; color:#fff; box-shadow:0 4px 14px var(--accent-glow); }
.nav-center { display:flex; gap:6px; }
.nav-center a { position:relative; font-size:15px; font-weight:700; color:var(--text); padding:9px 16px; border-radius:9px; transition:all .2s; }
.nav-center a::after { content:''; position:absolute; left:16px; right:16px; bottom:5px; height:2px; background:var(--accent); border-radius:2px; transform:scaleX(0); transform-origin:left; transition:transform .25s; }
.nav-center a:hover { color:var(--accent); }
.nav-center a:hover::after, .nav-center a.active::after { transform:scaleX(1); }
.nav-center a.active { color:var(--accent); font-weight:800; }
.nav-right { display:flex; align-items:center; gap:10px; }
.nav-search { display:flex; align-items:center; gap:8px; background:var(--bg-alt); border:1px solid var(--border); border-radius:50px; padding:9px 16px; transition:all .2s; }
.nav-search:focus-within { border-color:var(--accent-light); box-shadow:0 0 0 3px var(--accent-glow); }
.nav-search input { border:none; background:none; outline:none; font-size:14px; width:120px; color:var(--text); }
.nav-search input::placeholder { color:var(--text-muted); }
.nav-search button { border:none; background:none; cursor:pointer; font-size:14px; color:var(--text-muted); padding:0; }

/* 색톤 콤보박스 */
.theme-picker { position:relative; }
.theme-picker select { appearance:none; -webkit-appearance:none; background:var(--bg-alt); border:1px solid var(--border); border-radius:50px; padding:9px 38px 9px 38px; font-size:14px; font-weight:600; color:var(--text); cursor:pointer; outline:none; transition:all .2s; font-family:inherit; }
.theme-picker select:hover { border-color:var(--accent-light); }
.theme-picker::before { content:'🎨'; position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:15px; pointer-events:none; }
.theme-picker::after { content:'▾'; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--text-muted); pointer-events:none; }

/* ── 카테고리 바 ── */
.cat-bar { background:var(--bg-alt); border-bottom:1px solid var(--border); transition:background .3s; }
.cat-inner { max-width:1200px; margin:0 auto; padding:0 24px; display:flex; gap:4px; min-height:50px; align-items:center; flex-wrap:wrap; }
.cat-item { position:relative; }
.cat-item > a { display:flex; align-items:center; gap:5px; padding:0 18px; line-height:50px; font-size:14px; font-weight:600; color:var(--text-body); transition:color .15s; }
.cat-item > a.active, .cat-item:hover > a { color:var(--accent); }
.cat-dropdown { position:absolute; top:50px; left:0; min-width:185px; background:var(--card); backdrop-filter:blur(16px); border:1px solid var(--border-strong); border-radius:var(--radius-sm); box-shadow:0 12px 32px rgba(0,0,0,.12); padding:8px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:all .18s; z-index:30; }
.cat-item:hover .cat-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.cat-dropdown a { display:block; padding:9px 14px; font-size:14px; color:var(--text-body); border-radius:7px; transition:all .12s; }
.cat-dropdown a:hover { background:var(--accent-soft); color:var(--accent); }

/* ── 레이아웃 ── */
.layout { max-width:1200px; margin:0 auto; padding:40px 24px 70px; display:grid; grid-template-columns:1fr 300px; gap:36px; }
.main-col { min-width:0; }
.side-col { display:flex; flex-direction:column; gap:20px; }

/* ── 대표글 ── */
.featured { display:grid; grid-template-columns:1.4fr 1fr; gap:0; border-radius:var(--radius); overflow:hidden; margin-bottom:38px; border:1px solid var(--border); box-shadow:0 4px 20px rgba(0,0,0,.05); }
.featured-img { aspect-ratio:16/10; overflow:hidden; background:var(--bg-alt); }
.featured-img img { width:100%; height:100%; object-fit:cover; }
.featured-img.empty { display:flex; align-items:center; justify-content:center; font-size:48px; color:var(--text-muted); }
.featured-body { padding:36px; display:flex; flex-direction:column; justify-content:center; background:var(--card); }
.featured-cat { display:inline-block; align-self:flex-start; font-size:12px; font-weight:700; color:#fff; padding:5px 14px; background:var(--accent); border-radius:50px; margin-bottom:14px; }
.featured-title { font-size:clamp(22px,3vw,31px); font-weight:900; color:var(--text); line-height:1.3; margin-bottom:14px; letter-spacing:-.5px; }
.featured-excerpt { font-size:15px; color:var(--text-muted); line-height:1.7; margin-bottom:18px; }
.featured-meta { font-size:13px; color:var(--text-muted); }

/* ── 섹션 헤더 ── */
.list-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.list-head h2 { font-size:23px; font-weight:900; color:var(--text); letter-spacing:-.5px; display:flex; align-items:center; gap:10px; }
.list-head h2::before { content:''; width:5px; height:22px; background:var(--accent); border-radius:3px; }
.list-head .count { font-size:15px; color:var(--text-muted); font-weight:600; }
.list-head a { font-size:14px; color:var(--accent); font-weight:600; }
.lh-right { display:flex; align-items:center; gap:12px; }
.view-toggle { width:38px; height:38px; border:1px solid var(--border); background:var(--card); border-radius:9px; cursor:pointer; font-size:16px; color:var(--text-muted); display:flex; align-items:center; justify-content:center; transition:all .15s; }
.view-toggle:hover { border-color:var(--accent-light); color:var(--accent); }

/* ── 글 목록 (기본: 가로 카드 1열, 세로로 주욱) ── */
.post-list { display:flex; flex-direction:column; gap:12px; }
/* 그리드 보기(☰ 토글): 2열 — 우측 사이드바가 있어 2열까지만 */
.post-list.grid-view { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.post-list.grid-view .post-row { grid-template-columns:1fr; gap:0; padding:0; border:1px solid var(--border); background:var(--card); overflow:hidden; }
.post-list.grid-view .post-row:hover { transform:translateY(-4px); }
.post-list.grid-view .post-row-thumb { aspect-ratio:16/9; border-radius:0; }
.post-list.grid-view .post-row-body { padding:16px 18px 18px; }
.post-list.grid-view .post-row.no-thumb .post-row-body { padding:20px; }
.post-row { display:grid; grid-template-columns:205px 1fr; gap:22px; padding:18px; border-radius:var(--radius-sm); transition:all .2s; border:1px solid transparent; }
.post-row.no-thumb { grid-template-columns:1fr; }
.post-row:hover { background:var(--card); border-color:var(--border-strong); transform:translateX(4px); box-shadow:0 6px 22px rgba(0,0,0,.07); }
.post-row-thumb { aspect-ratio:16/10; border-radius:9px; overflow:hidden; background:var(--bg-alt); }
.post-row-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.post-row:hover .post-row-thumb img { transform:scale(1.05); }
.post-row-body { display:flex; flex-direction:column; justify-content:center; }
.post-row-cat { font-size:12px; font-weight:700; color:var(--accent); margin-bottom:8px; }
.post-row-title { font-size:19px; font-weight:800; color:var(--text); line-height:1.4; margin-bottom:8px; letter-spacing:-.3px; }
.post-row-excerpt { font-size:14px; color:var(--text-muted); line-height:1.6; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-row-meta { font-size:13px; color:var(--text-muted); }
.list-empty { padding:60px 20px; text-align:center; color:var(--text-muted); }

/* ── 광고 슬롯 ── */
.ad-inline { border-radius:var(--radius-sm); padding:26px; text-align:center; margin:32px 0; color:var(--text-muted); font-size:13px; background:var(--bg-alt); border:1px dashed var(--border-strong); }
.ad-inline .ad-label { font-size:11px; letter-spacing:1px; margin-bottom:6px; color:var(--accent); }

/* ── 사이드바 ── */
.side-box { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:22px; transition:background .3s, border-color .3s; }
.side-box h3 { font-size:15px; font-weight:800; color:var(--text); margin-bottom:16px; }
.side-profile { text-align:center; }
.side-profile .avatar { width:74px; height:74px; border-radius:50%; margin:0 auto 12px; object-fit:cover; box-shadow:0 0 0 4px var(--accent-glow); background:var(--bg-alt); display:flex; align-items:center; justify-content:center; font-size:30px; }
.side-profile .name { font-size:17px; font-weight:800; color:var(--text); }
.side-profile .bio { font-size:13px; color:var(--text-muted); margin:8px 0 14px; line-height:1.6; }
.side-profile .follow { display:inline-block; padding:10px 26px; background:var(--accent); color:#fff; border-radius:50px; font-size:14px; font-weight:700; box-shadow:0 5px 16px var(--accent-glow); transition:transform .2s; }
.side-profile .follow:hover { transform:translateY(-2px); }
.ad-side { background:var(--bg-alt); border:1px dashed var(--border-strong); border-radius:var(--radius); padding:20px; text-align:center; color:var(--text-muted); font-size:12px; min-height:240px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.ad-side .ad-label { font-size:11px; letter-spacing:1px; margin-bottom:8px; color:var(--accent); }
.popular-item { display:flex; gap:13px; padding:11px 0; border-bottom:1px solid var(--border); align-items:center; }
.popular-item:last-child { border-bottom:none; }
.popular-num { font-size:21px; font-weight:900; color:var(--accent); opacity:.55; min-width:22px; }
.popular-text { font-size:14px; font-weight:600; color:var(--text-body); line-height:1.4; }
.popular-text:hover { color:var(--accent); }
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a { font-size:13px; padding:7px 15px; background:var(--bg-alt); border:1px solid var(--border); border-radius:50px; color:var(--text-body); transition:all .15s; }
.tag-cloud a:hover { background:var(--accent); color:#fff; border-color:var(--accent); }

/* ── 글 상세 ── */
.post-view { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:38px; }
.pv-head { border-bottom:1px solid var(--border); padding-bottom:22px; margin-bottom:28px; }
.pv-cat { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:700; color:var(--accent); margin-bottom:14px; }
.pv-cat-sep { color:var(--text-muted); }
.pv-title { font-size:clamp(24px,4vw,34px); font-weight:900; color:var(--text); line-height:1.3; letter-spacing:-.5px; margin-bottom:14px; }
.pv-meta { font-size:13px; color:var(--text-muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pv-meta .dot { opacity:.5; }
.pv-body { font-size:16.5px; color:var(--text-body); line-height:1.85; word-break:keep-all; }
.pv-body h2 { font-size:25px; font-weight:800; color:var(--text); margin:38px 0 16px; letter-spacing:-.4px; }
.pv-body h3 { font-size:20px; font-weight:800; color:var(--text); margin:30px 0 12px; }
.pv-body p { margin:0 0 18px; }
.pv-body a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.pv-body img { border-radius:var(--radius-sm); margin:22px 0; }
.pv-body ul, .pv-body ol { margin:0 0 18px 22px; }
.pv-body li { margin-bottom:8px; }
.pv-body blockquote { border-left:4px solid var(--accent); background:var(--bg-alt); padding:14px 20px; margin:22px 0; border-radius:0 var(--radius-sm) var(--radius-sm) 0; color:var(--text-muted); }
.pv-body pre { background:#1a1f2e; color:#e2e8f0; padding:18px 20px; border-radius:var(--radius-sm); overflow-x:auto; margin:22px 0; font-size:14px; line-height:1.6; }
.pv-body :not(pre) > code { background:var(--accent-soft); color:var(--accent); padding:2px 7px; border-radius:5px; font-size:.9em; }
.pv-body table { width:100%; border-collapse:collapse; margin:22px 0; font-size:14.5px; }
.pv-body th, .pv-body td { border:1px solid var(--border); padding:10px 13px; text-align:left; }
.pv-body th { background:var(--bg-alt); font-weight:700; color:var(--text); }
/* 이미지 그리드 */
.pv-body .img-grid { display:grid; gap:8px; margin:22px 0; }
.pv-body .img-grid img { margin:0; width:100%; height:100%; object-fit:cover; }
.pv-body .img-grid.g2 { grid-template-columns:1fr 1fr; }
.pv-body .img-grid.g3 { grid-template-columns:1fr 1fr 1fr; }
.pv-body .img-grid.g4 { grid-template-columns:1fr 1fr; }

/* TOC */
.toc { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px 22px; margin-bottom:28px; }
.toc-title { font-size:14px; font-weight:800; color:var(--text); margin-bottom:10px; }
.toc-list { list-style:none; }
.toc-item { margin:4px 0; }
.toc-item a { font-size:14px; color:var(--text-muted); }
.toc-item a:hover { color:var(--accent); }
.toc-h3 { padding-left:16px; }

/* 태그 / 공유 / 푸터 */
.pv-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; }
.pv-tag { font-size:13px; padding:6px 14px; background:var(--bg-alt); border:1px solid var(--border); border-radius:50px; color:var(--text-body); }
.pv-tag:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.share-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:28px; padding-top:22px; border-top:1px solid var(--border); }
.share-label { font-size:13px; font-weight:700; color:var(--text-muted); }
.share-btn { border:1px solid var(--border); background:var(--bg-alt); border-radius:50px; padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer; color:var(--text-body); transition:all .15s; }
.share-btn:hover { border-color:var(--accent-light); color:var(--accent); }
.pv-foot { margin-top:26px; }
.back-link { font-size:14px; font-weight:600; color:var(--accent); }

/* 이전/다음 글 */
.post-nav { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:30px; }
.post-nav-item { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px; transition:all .2s; }
.post-nav-item:hover { border-color:var(--border-strong); box-shadow:0 6px 18px rgba(0,0,0,.06); }
.post-nav-item.next { text-align:right; }
.post-nav-label { font-size:12px; color:var(--accent); font-weight:700; margin-bottom:6px; }
.post-nav-title { font-size:15px; font-weight:700; color:var(--text); }

/* 관련 글 */
.related-posts { margin-top:40px; }
.related-title { font-size:18px; font-weight:800; color:var(--text); margin-bottom:18px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.related-thumb { width:100%; aspect-ratio:16/10; object-fit:cover; }
.related-thumb-empty { display:flex; align-items:center; justify-content:center; aspect-ratio:16/10; background:var(--bg-alt); font-size:28px; }
.related-body { padding:14px; }
.related-body a { font-size:14px; font-weight:700; color:var(--text); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* 페이지네이션 */
.pager { display:flex; justify-content:center; gap:8px; margin-top:40px; }
.pager .pg { min-width:40px; height:40px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:9px; font-size:14px; font-weight:600; color:var(--text-body); background:var(--card); transition:all .15s; padding:0 12px; }
.pager .pg:hover { border-color:var(--accent-light); color:var(--accent); }
.pager .pg.on { background:var(--accent); color:#fff; border-color:var(--accent); }

/* 404 */
.notfound { max-width:600px; margin:0 auto; text-align:center; padding:100px 24px; }
.notfound h1 { font-size:64px; font-weight:900; color:var(--accent); }
.notfound p { font-size:16px; color:var(--text-muted); margin:14px 0 26px; }
.notfound a { display:inline-block; padding:12px 28px; background:var(--accent); color:#fff; border-radius:50px; font-weight:700; }

/* 맨 위로 */
#scroll-top { position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%; border:none; background:var(--accent); color:#fff; font-size:20px; cursor:pointer; opacity:0; visibility:hidden; transition:all .25s; box-shadow:0 6px 18px var(--accent-glow); z-index:60; }
#scroll-top.visible { opacity:1; visibility:visible; }

/* ── 푸터 ── */
.site-footer { background:var(--bg-alt); border-top:1px solid var(--border); padding:44px 24px; margin-top:30px; transition:background .3s; }
.footer-inner { max-width:1200px; margin:0 auto; text-align:center; }
.footer-logo { font-size:18px; font-weight:900; color:var(--text); margin-bottom:12px; }
.footer-links { display:flex; gap:22px; justify-content:center; margin-bottom:14px; flex-wrap:wrap; }
.footer-links a { font-size:14px; color:var(--text-muted); }
.footer-links a:hover { color:var(--accent); }
.footer-copy { font-size:13px; color:var(--text-muted); }

@media (max-width:980px) { .layout { grid-template-columns:1fr; } .side-col { flex-direction:row; flex-wrap:wrap; } .side-box, .ad-side { flex:1; min-width:230px; } .related-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:820px) { .nav-center { display:none; } .nav-search { display:none; } }
@media (max-width:768px) { .cat-bar { display:none; } .featured { grid-template-columns:1fr; } .post-row, .post-row.no-thumb { grid-template-columns:1fr; gap:14px; } .post-nav { grid-template-columns:1fr; } .post-view { padding:24px; } }
@media (max-width:560px) { .side-col { flex-direction:column; } .related-grid { grid-template-columns:1fr; } .post-list.grid-view { grid-template-columns:1fr; } }

/* ── 댓글 ── */
.comments { margin-top:44px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:30px; }
.cmt-title { font-size:19px; font-weight:800; color:var(--text); margin-bottom:20px; }
.cmt-count { color:var(--accent); }
.cmt-form { background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-sm); padding:16px; margin-bottom:26px; }
.cmt-form-top { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:10px; }
.cmt-in { width:100%; min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--card); color:var(--text); font-size:14px; font-family:inherit; }
.cmt-in:focus { outline:none; border-color:var(--accent-light); box-shadow:0 0 0 3px var(--accent-glow); }
.cmt-ta { width:100%; min-height:80px; resize:vertical; padding:11px 13px; border:1px solid var(--border); border-radius:8px; background:var(--card); color:var(--text); font-size:14.5px; line-height:1.6; font-family:inherit; }
.cmt-ta:focus { outline:none; border-color:var(--accent-light); box-shadow:0 0 0 3px var(--accent-glow); }
.cmt-form-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.cmt-hint { font-size:12px; color:var(--text-muted); }
.cmt-submit { padding:9px 22px; background:var(--accent); color:#fff; border:none; border-radius:50px; font-size:14px; font-weight:700; cursor:pointer; transition:background .15s; flex-shrink:0; }
.cmt-submit:hover { background:var(--accent-hover); }
.cmt-submit:disabled { opacity:.6; cursor:default; }

.cmt-list { display:flex; flex-direction:column; gap:18px; }
.cmt-empty { text-align:center; color:var(--text-muted); padding:30px 0; font-size:14px; }
.cmt-thread { border-bottom:1px solid var(--border); padding-bottom:18px; }
.cmt-thread:last-child { border-bottom:none; padding-bottom:0; }
.cmt-item { display:flex; gap:12px; }
.cmt-avatar { width:40px; height:40px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:16px; }
.cmt-main { flex:1; min-width:0; }
.cmt-meta { display:flex; align-items:center; gap:9px; margin-bottom:5px; }
.cmt-author { font-weight:700; color:var(--text); font-size:14.5px; }
.cmt-time { font-size:12px; color:var(--text-muted); }
.cmt-text { font-size:14.5px; color:var(--text-body); line-height:1.65; word-break:break-word; white-space:normal; }
.cmt-actions { margin-top:7px; display:flex; gap:12px; }
.cmt-actions button { background:none; border:none; padding:0; font-size:12.5px; color:var(--text-muted); cursor:pointer; font-weight:600; }
.cmt-actions button:hover { color:var(--accent); }
.cmt-children { margin-top:16px; margin-left:30px; display:flex; flex-direction:column; gap:16px; }
.cmt-children .cmt-reply-form { margin-top:2px; }
.cmt-item.is-reply .cmt-avatar { width:32px; height:32px; font-size:14px; }

@media (max-width:560px) {
  .comments { padding:18px 16px; }
  .cmt-form-top { grid-template-columns:1fr; }
  .cmt-form-foot { flex-direction:column; align-items:stretch; gap:8px; }
  .cmt-submit { width:100%; }
  .cmt-hint { text-align:center; }
  .cmt-children { margin-left:16px; }
}
