@layer components {
  .community-heading{display:flex;align-items:end;justify-content:space-between;gap:32px;padding:22px 0 34px}.community-heading h1{margin-bottom:8px}.community-heading p{max-width:680px;margin:0}.community-profile-link{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);text-decoration:none}.community-profile-link>span,.community-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:linear-gradient(145deg,var(--wine),var(--brand));color:#fff;font-weight:850;text-decoration:none}.community-profile-link strong{font-size:.82rem}
  .community-layout{display:grid;grid-template-columns:230px minmax(0,680px) 260px;gap:24px;align-items:start}.community-spaces,.community-about>section,.community-composer,.community-post,.community-profile-page>header,.community-profile-form,.community-profile-bio,.community-profile-posts{border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 7px 24px rgba(53,30,43,.045)}.community-spaces{position:sticky;top:20px;padding:18px}.community-spaces>strong{display:block;margin:0 9px 12px;font-family:ui-serif,Georgia,serif;font-size:1.25rem}.community-spaces nav{display:grid;gap:4px}.community-spaces nav a{display:grid;grid-template-columns:35px minmax(0,1fr);gap:10px;align-items:center;padding:9px;border-radius:10px;color:var(--ink);text-decoration:none}.community-spaces nav a:hover,.community-spaces nav a.is-active{background:var(--surface-soft);color:var(--brand-dark)}.community-spaces nav a>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#efe5e9;color:var(--wine);font-weight:850}.community-spaces nav a div{display:grid;min-width:0;font-size:.82rem;font-weight:800}.community-spaces nav a small{overflow:hidden;color:var(--muted);font-size:.65rem;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.community-spaces>p{margin:17px 8px 0;padding-top:14px;border-top:1px solid var(--line);font-size:.68rem;line-height:1.5}
  .community-feed{min-width:0}.community-feed-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 2px 16px}.community-feed-title .eyebrow{margin-bottom:4px}.community-feed-title h2{margin:0;font-size:2rem}.community-private-badge{padding:6px 9px;border-radius:999px;background:#e3efe8;color:var(--success);font-size:.68rem;font-weight:850}.community-composer{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:18px;margin-bottom:18px}.community-composer textarea{min-height:88px;margin:0;border:0;background:#faf7f8;box-shadow:inset 0 0 0 1px var(--line)}.community-composer footer{display:flex;align-items:center;gap:12px;margin-top:10px}.community-composer footer small{margin-right:auto;color:var(--muted);font-size:.65rem}.community-composer footer .btn{min-height:40px;padding:8px 16px}.community-photo-button{display:inline-flex;min-height:38px;align-items:center;margin:0;padding:7px 12px;border:1px solid var(--line);border-radius:8px;color:var(--brand-dark);font-size:.76rem;cursor:pointer}
  .community-post-list{display:grid;gap:16px}.community-post{overflow:hidden;padding:20px}.community-post>header{display:flex;gap:11px;align-items:center}.community-post>header>div{display:grid}.community-post>header a{color:var(--ink);text-decoration:none}.community-post>header small{color:var(--muted);font-size:.7rem}.community-post__body{margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}.community-post__image{width:calc(100% + 40px);max-width:none;max-height:680px;margin:18px -20px 0;object-fit:contain;background:#efe8eb}.community-post__stats{display:flex;justify-content:space-between;padding:13px 0 9px;color:var(--muted);font-size:.7rem}.community-post__actions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.community-post__actions form{margin:0}.community-post__actions button,.community-post__actions>a{display:grid;width:100%;min-height:42px;place-items:center;border:0;background:none;color:var(--muted);font-size:.78rem;font-weight:800;text-decoration:none;cursor:pointer}.community-post__actions button:hover,.community-post__actions>a:hover,.community-post__actions button.is-active{background:var(--surface-soft);color:var(--brand)}.community-comments{display:grid;gap:8px;padding:13px 0}.community-comments>div{padding:10px 12px;border-radius:10px;background:#f8f5f6}.community-comments a{color:var(--ink);text-decoration:none;font-size:.75rem}.community-comments p{margin:2px 0;color:var(--ink);font-size:.78rem;white-space:pre-wrap;overflow-wrap:anywhere}.community-comments small{color:var(--muted);font-size:.62rem}.community-comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:9px}.community-comment-form input{min-height:42px;background:#faf7f8}.community-comment-form button{padding:0 13px;border:0;border-radius:8px;background:var(--surface-soft);color:var(--brand-dark);font-size:.75rem;font-weight:850;cursor:pointer}.community-empty{text-align:center}
  .community-about{position:sticky;top:20px;display:grid;gap:14px}.community-about>section{padding:20px}.community-about h3{margin:12px 0 8px;font-size:1.3rem}.community-about p{font-size:.75rem;line-height:1.55}.community-about a{font-size:.75rem;font-weight:850}.community-avatar--large{width:54px;height:54px}.community-avatar--hero{width:92px;height:92px;flex-basis:92px;font-size:2rem}.community-profile-page{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.community-profile-page>header{grid-column:1/-1;display:flex;align-items:center;gap:22px;padding:28px}.community-profile-page>header h1{margin:2px 0;font-size:3rem}.community-profile-page>header p{margin:0}.community-profile-form,.community-profile-bio,.community-profile-posts{padding:25px}.community-profile-form h2,.community-profile-bio h2,.community-profile-posts h2{font-size:1.75rem}.community-profile-form .btn{margin-top:18px}.community-profile-posts{grid-column:1}.community-profile-posts article{padding:14px 0;border-top:1px solid var(--line)}.community-profile-posts article p{margin:5px 0 0;color:var(--ink)}.community-profile-posts article small{color:var(--muted)}
  .admin-community-list{display:grid;gap:12px}.admin-community-list>article{padding:18px;border:1px solid var(--line);border-radius:12px}.admin-community-list article>header{display:flex;align-items:start;justify-content:space-between;gap:16px}.admin-community-list article>header>div{display:grid}.admin-community-list article>header small{color:var(--muted)}.admin-community-list article>p{margin:14px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}.admin-community-image{width:min(520px,100%);max-height:420px;margin:10px 0;border-radius:10px;object-fit:contain;background:#efe8eb}.admin-community-list article>form{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px;align-items:end;margin-top:13px;padding-top:13px;border-top:1px solid var(--line)}.admin-community-list article>form label{grid-column:1/-1;margin:0;font-size:.72rem}.admin-community-list article>form input{min-height:40px}.admin-community-list article>form .btn{min-height:40px}.admin-moderation-reason{padding:9px 11px;border-radius:8px;background:#f3e4e4;font-size:.75rem}
}

@layer responsive {
  @media(max-width:1120px){.community-layout{grid-template-columns:210px minmax(0,1fr)}.community-about{position:static;grid-column:1/-1;grid-template-columns:1fr 1fr}.community-profile-page{grid-template-columns:1fr 280px}}
  @media(max-width:820px){.community-heading{align-items:start}.community-layout{grid-template-columns:1fr}.community-spaces{position:static;padding:14px;overflow:hidden}.community-spaces nav{display:flex;overflow:auto;padding-bottom:3px}.community-spaces nav a{flex:0 0 190px}.community-spaces>p{display:none}.community-about{grid-column:auto}.admin-mobile-nav{grid-template-columns:repeat(6,1fr)}.admin-community-list article>form{grid-template-columns:1fr}.admin-community-list article>form label{grid-column:auto}}
  @media(max-width:640px){.community-heading{display:block;padding-top:8px}.community-heading h1{font-size:2.8rem}.community-profile-link{width:max-content;margin-top:18px}.community-about{grid-template-columns:1fr}.community-composer{grid-template-columns:1fr;padding:15px}.community-composer>.community-avatar{display:none}.community-composer footer{flex-wrap:wrap}.community-composer footer small{order:3;width:100%}.community-post{padding:16px}.community-post__image{width:calc(100% + 32px);margin-right:-16px;margin-left:-16px}.community-profile-page{display:block}.community-profile-page>header{margin-bottom:16px;padding:20px}.community-avatar--hero{width:70px;height:70px;flex-basis:70px}.community-profile-page>header h1{font-size:2.2rem}.community-profile-form,.community-profile-bio,.community-profile-posts{margin-bottom:16px;padding:20px}.admin-mobile-nav{overflow-x:auto;grid-template-columns:repeat(6,minmax(64px,1fr))}}
}
