/* การ์ด "ชุมชน Toonda" ในแท็บ ประกาศ (client/community-card.js · ใบ community-follow-1111)
   ขนาดอักษรใช้ตัวแปรกลาง ui-scale · ปุ่ม ≥ 44px บนจอสัมผัส (--btn-h) · กรอบหน้าต่างไม่ขยับ */
.cmty { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(#fff8e4, #fff2d0); box-shadow: inset 0 0 0 2px #e8c878; }
.cmty-h { display: flex; flex-direction: column; gap: 2px; }
.cmty-h b { font: 700 var(--fs-name, 18px)/1.2 var(--font-head, sans-serif); color: #5b3a10; }
.cmty-h small { font-size: var(--fs-xs, 12px); line-height: 1.4; color: #7a5a2a; }
.cmty-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 11px; background: #fffdf6; border: 1px solid #ead8ad; }
.cmty-row.got { background: #f3f8ee; border-color: #bcd6a8; }
.cmty-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #eef4ef; }
.cmty-ic img { width: 30px; height: 30px; object-fit: contain; }
.cmty-m { min-width: 0; display: flex; flex-direction: column; }
.cmty-m b { font-size: var(--fs-sm, 14px); color: #3b2a10; }
.cmty-m small { font-size: var(--fs-xs, 12px); line-height: 1.35; color: #6b5a3a; }
.cmty-gem { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #e6f3ff; color: #1f5f93; font: 700 var(--fs-sm, 14px)/1.2 var(--font-head, sans-serif); white-space: nowrap; }
.cmty-gem img, .cmty-btn img { width: 16px; height: 16px; vertical-align: -3px; }
.cmty-end { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cmty-got { font-size: var(--fs-sm, 14px); font-weight: 700; color: #3f7d2a; white-space: nowrap; }
.cmty-end.vis { flex-direction: column; align-items: stretch; gap: 0; text-align: center; }
.cmty-btn { min-height: var(--btn-h, 44px); }
.cmty-again { border: 0; background: none; padding: 4px; font-size: var(--fs-xs, 12px); color: #1f6f74; text-decoration: underline; cursor: pointer; }
.cmty-msg { padding: 7px 10px; border-radius: 9px; background: #eef7f6; border: 1px solid #9cc9c4; font-size: var(--fs-sm, 14px); color: #1f4f52; }
.cmty.mini { gap: 4px; padding: 6px 10px; }
.cmty.mini .cmty-row { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 3px 6px; }
.cmty.mini .cmty-ic { width: 32px; height: 32px; }
.cmty.mini .cmty-ic img { width: 24px; height: 24px; }
@container ckw (max-width: 720px) {
  .cmty-row { grid-template-columns: 34px minmax(0, 1fr); }
  .cmty-ic { width: 34px; height: 34px; }
  .cmty-gem { grid-column: 2; justify-self: start; }
  .cmty-end { grid-column: 1 / -1; justify-content: stretch; }
  .cmty-end .cmty-btn { flex: 1; }
  .cmty.mini .cmty-row { grid-template-columns: 30px minmax(0, 1fr); }
  .cmty.mini .cmty-end { grid-column: 2; justify-content: flex-start; }
}
