/* 彩虹技术社区 — PC 为主，H5 响应式 */
:root {
  --comm-primary: var(--mall-primary, #e11d48);
  --comm-primary-soft: #fff1f2;
  --comm-ink: #0f172a;
  --comm-muted: #64748b;
  --comm-bg: #f1f5f9;
  --comm-card: #ffffff;
  --comm-border: #e2e8f0;
  --comm-sidebar: 300px;
  --comm-max: 1280px;
  --comm-radius: 14px;
  --comm-shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --comm-shadow-hover: 0 12px 32px rgba(225, 29, 72, .12);
}

* { box-sizing: border-box; }
body.comm-body {
  margin: 0;
  background: var(--comm-bg);
  color: var(--comm-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }

/* —— 顶栏 —— */
.comm-topbar {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #cbd5e1;
  font-size: 12px;
}
.comm-topbar .inner {
  max-width: var(--comm-max);
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.comm-topbar a { color: #e2e8f0; }
.comm-topbar a:hover { color: #fff; }

.comm-header {
  background: var(--comm-card);
  border-bottom: 1px solid var(--comm-border);
  box-shadow: var(--comm-shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.comm-header .inner {
  max-width: var(--comm-max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.comm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}
.comm-brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--comm-primary), var(--mall-accent, #f97316));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.comm-nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.comm-nav a { color: var(--comm-muted); font-weight: 500; }
.comm-nav a:hover, .comm-nav a.on { color: var(--comm-primary); }
.comm-search {
  flex: 1; min-width: 200px; max-width: 420px;
  display: flex; border: 2px solid var(--comm-border); border-radius: 999px; overflow: hidden;
  background: #f8fafc;
}
.comm-search:focus-within { border-color: var(--comm-primary); background: #fff; }
.comm-search input {
  flex: 1; border: 0; background: transparent; padding: 8px 14px; font-size: 14px; outline: none;
}
.comm-search button {
  border: 0; background: var(--comm-primary); color: #fff; padding: 0 16px; font-weight: 600; cursor: pointer;
}
.comm-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.comm-btn-post {
  background: var(--comm-primary); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, .35);
}
.comm-btn-post:hover { filter: brightness(1.05); color: #fff; }
.comm-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--comm-primary-soft);
  color: var(--comm-primary); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; position: relative;
}
.comm-badge-dot {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px;
  background: #ef4444; color: #fff; font-size: 10px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* —— 三栏布局 —— */
.comm-shell {
  max-width: var(--comm-max);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px 1fr var(--comm-sidebar);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .comm-shell { grid-template-columns: 1fr; }
  .comm-sidebar-col { order: 3; }
  .comm-aside-nav { display: none; }
}
.comm-card {
  background: var(--comm-card);
  border: 1px solid var(--comm-border);
  border-radius: var(--comm-radius);
  box-shadow: var(--comm-shadow);
}
.comm-card-pad { padding: 14px 16px; }

/* 左侧板块 */
.comm-cat-nav .head {
  font-size: 11px; font-weight: 700; color: var(--comm-muted);
  text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px 6px;
}
.comm-cat-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 14px; color: #334155;
  border-left: 3px solid transparent;
}
.comm-cat-nav a:hover, .comm-cat-nav a.on {
  background: var(--comm-primary-soft); border-left-color: var(--comm-primary); color: var(--comm-primary);
}
.comm-cat-nav .cnt { margin-left: auto; font-size: 12px; color: var(--comm-muted); }

/* 头条 Hero */
.comm-hero {
  border-radius: var(--comm-radius);
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 160px;
  background: linear-gradient(120deg, #fff1f2, #ffe4e6 40%, #fff7ed 80%);
  border: 1px solid #fecdd3;
  position: relative;
}
.comm-hero-slide {
  padding: 24px 28px;
  display: none;
}
.comm-hero-slide.on { display: block; }
.comm-hero .tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: var(--comm-primary); color: #fff; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.comm-hero h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; color: #881337; }
.comm-hero p { margin: 0 0 14px; color: #9f1239; font-size: 14px; max-width: 560px; }
.comm-hero-dots { display: flex; gap: 6px; padding: 0 28px 16px; }
.comm-hero-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; background: #fda4af; opacity: .5; cursor: pointer;
}
.comm-hero-dots button.on { opacity: 1; background: var(--comm-primary); }

/* Tabs */
.comm-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 12px; border-bottom: 1px solid var(--comm-border); margin-bottom: 12px;
}
.comm-tabs button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--comm-muted); cursor: pointer;
}
.comm-tabs button.on { background: var(--comm-primary-soft); color: var(--comm-primary); }

/* 帖子卡片 */
.comm-post-card {
  padding: 16px;
  border-bottom: 1px solid var(--comm-border);
  transition: .15s ease;
  display: block;
}
.comm-post-card:last-child { border-bottom: 0; }
.comm-post-card:hover { background: #fafafa; }
.comm-post-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--comm-muted); margin-bottom: 8px;
}
.comm-post-meta .lv {
  background: #fef3c7; color: #b45309; font-weight: 700; padding: 1px 6px; border-radius: 4px; font-size: 11px;
}
.comm-post-meta .official {
  background: #dbeafe; color: #1d4ed8; font-weight: 700; padding: 1px 6px; border-radius: 4px; font-size: 11px;
}
.comm-post-meta .cat { color: var(--comm-primary); font-weight: 600; }
.comm-post-title {
  font-size: 16px; font-weight: 700; color: var(--comm-ink); margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comm-post-summary {
  font-size: 13px; color: var(--comm-muted); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comm-post-stats { display: flex; gap: 14px; font-size: 12px; color: #94a3b8; }
.comm-post-stats i { margin-right: 3px; }
.comm-post-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px;
}
.comm-post-thumb-cell {
  flex: 0 0 auto; width: 132px; max-width: calc(33.333% - 6px);
  aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--comm-border); background: #f8fafc;
}
.comm-post-thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.comm-post-card.has-thumb .comm-post-summary { -webkit-line-clamp: 1; }

/* 头条 + 动态双栏 */
.comm-dual-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 900px) { .comm-dual-row { grid-template-columns: 1fr; } }
.comm-dual-head {
  font-size: 14px; font-weight: 800; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--comm-border);
}
.comm-side-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--comm-border); font-size: 13px;
}
.comm-side-item:last-child { border-bottom: 0; }
.comm-side-item:hover .comm-side-title { color: var(--comm-primary); }
.comm-side-thumb {
  flex: 0 0 56px; width: 56px; height: 42px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--comm-border); background: #f8fafc;
}
.comm-side-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-side-text { flex: 1; min-width: 0; }
.comm-side-title {
  display: block; font-weight: 600; color: var(--comm-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comm-side-item small { display: block; color: var(--comm-muted); margin-top: 2px; font-size: 11px; }

/* 分页 */
.comm-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 0 4px; border-top: 1px solid var(--comm-border); margin-top: 4px;
}
.comm-pager-btn {
  border: 1px solid var(--comm-border); background: #fff; color: var(--comm-ink);
  min-width: 36px; height: 34px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.comm-pager-btn:hover { border-color: var(--comm-primary); color: var(--comm-primary); }
.comm-pager-btn.on {
  background: var(--comm-primary); border-color: var(--comm-primary); color: #fff;
}
.comm-pager-meta, .comm-pager-info-only {
  width: 100%; text-align: center; font-size: 12px; color: var(--comm-muted); margin-top: 4px;
}

.comm-pin { color: var(--comm-primary); font-size: 12px; font-weight: 700; margin-right: 4px; }
.comm-featured { color: #d97706; }

/* 侧栏 widget */
.comm-widget { margin-bottom: 14px; }
.comm-widget-title {
  font-size: 14px; font-weight: 800; padding: 12px 14px;
  border-bottom: 1px solid var(--comm-border); display: flex; justify-content: space-between; align-items: center;
}
.comm-widget-body { padding: 10px 14px 14px; }
.comm-rank-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--comm-border); font-size: 13px;
}
.comm-rank-item:last-child { border-bottom: 0; }
.comm-rank-no {
  width: 22px; height: 22px; border-radius: 6px; background: #f1f5f9;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.comm-rank-no.top { background: var(--comm-primary); color: #fff; }
.comm-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.comm-tag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #f1f5f9; color: #475569; border: 1px solid var(--comm-border);
}
.comm-tag:hover { border-color: var(--comm-primary); color: var(--comm-primary); }
.comm-cta-box {
  background: linear-gradient(145deg, #0f172a, #334155);
  color: #e2e8f0; border-radius: var(--comm-radius); padding: 16px; text-align: center;
}
.comm-cta-box h6 { color: #fff; font-weight: 800; margin-bottom: 6px; }
.comm-cta-box p { font-size: 12px; opacity: .85; margin-bottom: 12px; }
.comm-cta-box .btn-light { border-radius: 999px; font-weight: 700; font-size: 13px; }

/* 详情页布局 */
.comm-page-detail {
  max-width: var(--comm-max);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) var(--comm-sidebar);
  grid-template-areas:
    "main sidebar"
    "comments sidebar";
  align-items: start;
}
.comm-detail-main { grid-area: main; min-width: 0; }
.comm-detail-sidebar { grid-area: sidebar; min-width: 0; }
.comm-comments-wrap { grid-area: comments; min-width: 0; }

.comm-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--comm-muted);
  margin-bottom: 10px;
}
.comm-back-link:hover { color: var(--comm-primary); }

.comm-author-compact {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: #f8fafc; border-radius: 12px; border: 1px solid var(--comm-border);
}
.comm-author-compact .comm-avatar { width: 44px; height: 44px; font-size: 16px; flex-shrink: 0; }
.comm-author-compact-meta { flex: 1; min-width: 0; }

/* 详情页 */
.comm-detail-head { padding: 20px 24px; border-bottom: 1px solid var(--comm-border); }
.comm-detail-head h1 {
  font-size: 1.5rem; font-weight: 800; margin: 0 0 12px; line-height: 1.35;
  word-break: break-word; overflow-wrap: anywhere;
}
.comm-detail-body {
  padding: 20px 24px;
  font-size: 15px; line-height: 1.75; color: #334155;
  overflow-wrap: break-word; word-break: break-word;
}
.comm-detail-body h1, .comm-detail-body h2, .comm-detail-body h3 { color: var(--comm-ink); margin-top: 1.4em; font-size: 1.1em; }
.comm-detail-body ul, .comm-detail-body ol { padding-left: 1.25em; }
.comm-detail-body pre {
  background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px;
  overflow-x: auto; font-size: 12px; max-width: 100%; -webkit-overflow-scrolling: touch;
}
.comm-detail-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; }
.comm-detail-body pre code { background: transparent; padding: 0; word-break: normal; }
.comm-detail-body img { max-width: 100%; height: auto; border-radius: 10px; }
.comm-detail-body a { color: var(--comm-primary); text-decoration: underline; }
.comm-detail-actions {
  padding: 12px 24px; border-top: 1px solid var(--comm-border);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* H5 底部互动条（详情页） */
.comm-detail-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--comm-border);
  padding: 8px 12px;
  box-shadow: 0 -4px 16px rgba(15,23,42,.06);
}
.comm-sticky-btn {
  border: 0; background: transparent; color: var(--comm-muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; min-width: 56px; cursor: pointer;
}
.comm-sticky-btn i { font-size: 1.25rem; }
.comm-sticky-btn.on, .comm-sticky-btn:active { color: var(--comm-primary); }
.comm-sticky-btn span { font-weight: 700; }

@media (max-width: 768px) {
  .comm-page-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "comments"
      "sidebar";
    padding: 12px;
    gap: 12px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  .comm-detail-sidebar { display: none; }
  .comm-detail-head { padding: 16px; }
  .comm-detail-head h1 { font-size: 1.25rem; }
  .comm-detail-body { padding: 16px; font-size: 15px; }
  .comm-comment { padding: 12px; }
  .comm-comment-head { flex-wrap: wrap; }
  .comm-comment-form textarea { font-size: 16px; }
  .comm-topbar { display: none; }
  .comm-header .inner { padding: 10px 12px; gap: 10px; }
  .comm-brand { font-size: 1rem; }
  .comm-brand-mark { width: 32px; height: 32px; font-size: 15px; }
  .comm-btn-post { padding: 6px 14px; font-size: 12px; }
  .comm-actions .comm-avatar { width: 32px; height: 32px; font-size: 12px; }
  body.comm-body.comm-page-detail-active { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (min-width: 769px) {
  .comm-detail-sticky-bar { display: none !important; }
}
.comm-action-btn {
  border: 1px solid var(--comm-border); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--comm-muted);
}
.comm-action-btn.on, .comm-action-btn:hover { border-color: var(--comm-primary); color: var(--comm-primary); }
.comm-comment {
  padding: 14px 16px; border-bottom: 1px solid var(--comm-border);
}
.comm-comment.official { background: #eff6ff; border-left: 3px solid #3b82f6; }
.comm-comment.best { background: #f0fdf4; border-left: 3px solid #22c55e; }
.comm-comment-head { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--comm-muted); margin-bottom: 6px; }
.comm-comment-body { font-size: 14px; color: #334155; white-space: pre-wrap; }

/* 发帖表单 */
.comm-form-page { max-width: 760px; margin: 0 auto; padding: 16px; }
.comm-form-page textarea.form-control { min-height: 280px; font-family: ui-monospace, monospace; font-size: 13px; }

/* H5 底栏 */
.comm-mobile-tab {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--comm-card); border-top: 1px solid var(--comm-border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.comm-mobile-tab a {
  flex: 1; text-align: center; font-size: 10px; color: var(--comm-muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.comm-mobile-tab a.on { color: var(--comm-primary); }
.comm-mobile-tab i { font-size: 1.25rem; }
@media (max-width: 768px) {
  .comm-mobile-tab { display: flex; }
  body.comm-body { padding-bottom: 62px; }
  body.comm-page-discover .comm-header .comm-search,
  body.comm-page-me .comm-header .comm-search { display: none; }
  body.comm-page-discover .comm-header .comm-actions .comm-btn-post,
  body.comm-page-me .comm-header .comm-actions .comm-btn-post { display: none; }
  .comm-header .comm-nav { display: none; }
  .comm-search { max-width: none; order: 3; width: 100%; flex: none; }
  .comm-shell { padding: 12px; gap: 12px; }
  .comm-hero-slide { padding: 16px; }
  .comm-hero h2 { font-size: 1.15rem; }
  .comm-hero-dots { padding: 0 16px 12px; }
  .comm-post-card { padding: 14px 12px; }
  .comm-post-title { font-size: 15px; }
  .comm-card-pad { padding: 12px; }
}

.comm-empty {
  text-align: center; padding: 48px 20px; color: var(--comm-muted);
}
.comm-empty i { font-size: 2.5rem; opacity: .4; display: block; margin-bottom: 10px; }
.comm-skeleton {
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9);
  background-size: 200% 100%; animation: comm-shimmer 1.2s infinite; border-radius: 8px; height: 80px; margin: 10px 0;
}
@keyframes comm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.comm-footer-note {
  max-width: var(--comm-max); margin: 0 auto 24px; padding: 0 16px;
  text-align: center; font-size: 12px; color: var(--comm-muted);
}

/* 产品 Tab 子分类 */
.comm-sub-tabs {
  display: flex; gap: 8px; margin: -4px 0 12px; flex-wrap: wrap;
}
.comm-sub-tabs button {
  border: 1px solid var(--comm-border); background: #f8fafc; border-radius: 999px;
  padding: 4px 12px; font-size: 12px; color: var(--comm-muted);
}
.comm-sub-tabs button.on {
  background: var(--comm-primary); border-color: var(--comm-primary); color: #fff;
}

/* H5 发现页 */
.comm-discover-page { max-width: var(--comm-max); margin: 0 auto; padding: 12px 16px 24px; }
.comm-discover-search form {
  display: flex; gap: 8px; background: var(--comm-card); border: 1px solid var(--comm-border);
  border-radius: 999px; padding: 6px 12px; margin-bottom: 16px;
}
.comm-discover-search input { border: 0; flex: 1; outline: none; background: transparent; font-size: 15px; }
.comm-discover-search button { border: 0; background: transparent; color: var(--comm-muted); }
.comm-discover-section { margin-bottom: 18px; }
.comm-discover-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 14px; margin-bottom: 10px;
}
.comm-discover-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.comm-discover-cat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px; border-radius: 12px; background: var(--comm-card); border: 1px solid var(--comm-border);
  font-size: 13px; font-weight: 600;
}
.comm-discover-cat i { font-size: 1.2rem; color: var(--comm-primary); }
.comm-discover-cat small { color: var(--comm-muted); font-weight: 400; }
.comm-discover-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 4px;
  border-bottom: 1px dashed var(--comm-border); font-size: 13px;
}
.comm-discover-item:last-child { border-bottom: 0; }
.comm-discover-item .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-discover-item .meta { color: var(--comm-muted); font-size: 11px; white-space: nowrap; }

/* H5 个人中心 */
.comm-me-page { max-width: 520px; margin: 0 auto; padding: 12px 16px 24px; }
.comm-me-guest {
  text-align: center; padding: 32px 20px; background: var(--comm-card);
  border: 1px solid var(--comm-border); border-radius: 16px;
}
.comm-me-guest-icon { font-size: 3rem; color: #07c160; margin-bottom: 12px; }
.comm-me-links {
  display: flex; justify-content: center; gap: 16px; margin-top: 20px; flex-wrap: wrap;
}
.comm-me-links a { font-size: 12px; color: var(--comm-muted); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.comm-me-profile {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--comm-card); border: 1px solid var(--comm-border); border-radius: 16px;
}
.comm-me-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: #fce7f3; color: #be185d;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden;
}
.comm-me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comm-me-info { flex: 1; min-width: 0; }
.comm-me-settings { color: var(--comm-muted); font-size: 1.2rem; }
.comm-me-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0;
}
.comm-me-stats div {
  text-align: center; padding: 10px 6px; background: var(--comm-card);
  border: 1px solid var(--comm-border); border-radius: 12px; font-size: 12px;
}
.comm-me-stats strong { display: block; font-size: 16px; }
.comm-me-stats span { color: var(--comm-muted); }
.comm-me-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.comm-me-section-head { font-weight: 800; font-size: 14px; margin-bottom: 8px; }
