.kp-community-page{display:grid;gap:14px;}
.kp-community-hero__title{font-size:20px;font-weight:800;letter-spacing:.2px}
.kp-community-hero__subtitle{opacity:.9;margin-top:4px}
.kp-community-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.kp-hint{margin-top:10px;opacity:.9}

.kp-community-list__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.kp-community-list__title{font-weight:800}
.kp-community-list__meta{opacity:.8;font-size:13px}

.kp-community-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07)}
.kp-community-item:first-child{border-top:none}
.kp-community-item__title{font-weight:800}
.kp-community-item__desc{opacity:.85;margin-top:4px;font-size:13px;line-height:1.35}
.kp-community-item__meta{opacity:.8;margin-top:6px;font-size:12px}
.kp-community-item__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.kp-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;cursor:pointer;font-weight:700}
.kp-btn[disabled]{opacity:.5;cursor:not-allowed}
.kp-btn.is-primary{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.08)}

/* Community view */
.kp-community-hero__top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.kp-community-hero__meta{margin-top:6px;opacity:.85;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kp-community-hero__desc{margin-top:12px;line-height:1.5}
.kp-community-hero__actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

.kp-community-members__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.kp-members-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (min-width: 900px){.kp-members-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

.kp-member{display:flex;flex-direction:column;gap:8px;align-items:center;text-decoration:none}
.kp-member__avatar{width:54px;height:54px;border-radius:14px;overflow:hidden;display:block}
.kp-member__avatar img{width:100%;height:100%;object-fit:cover;display:block}
.kp-avatar-fallback{width:100%;height:100%;display:block;background:rgba(255,255,255,.06)}
.kp-member__login{font-size:12px;opacity:.9;max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* v1.0.7.86: community view posts + edit */
.kp-community-post .kp-form textarea.kp-input{ width:100%; }
.kp-community-posts #post-list > .kp-card{ margin-top: 12px; }
.kp-comm-edit{ margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }


/* Members page */
.kp-comm-sub { opacity: .8; font-size: 13px; margin-top: 4px; }
.kp-comm-back { text-decoration: none; }
.kp-comm-card { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.25); }
.kp-comm-members-list { display: grid; gap: 10px; }
.kp-comm-member { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.18); }
.kp-comm-member.is-banned { opacity: .7; filter: grayscale(.2); }
.kp-comm-member-main { display:flex; align-items:center; gap:10px; min-width: 0; text-decoration:none; color: inherit; }
.kp-comm-member-login { font-weight: 700; }
.kp-comm-member-meta { min-width:0; }
.kp-comm-member-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.kp-chip--sm { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.kp-btn--sm { padding: 6px 10px; font-size: 12px; border-radius: 10px; }
.kp-btn--warn { border-color: rgba(255,107,53,.45); }
