.community-page { min-width:0; }
.community-page h1,.community-page h2,.community-page .row a,.community-page .record-head small { overflow-wrap:anywhere; }
.community-page .record-head>div,.community-page .page-head>div { min-width:0; }
.community-page .record-head { align-items:center; }
.community-page .cards { grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); }
.community-page .cards.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.community-page .cards.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.community-page .record-foot { flex-wrap:wrap; }
.community-page .divider-section { margin-top:24px; }
.community-page .divider-section>h2 { margin-bottom:16px; }
.community-page .divider-section>.button { margin-top:16px; }
.community-multiline { white-space:pre-line; }
.community-wide { grid-column:1/-1; }
.community-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; }
.community-actions form { margin:0; min-width:0; }
.community-actions .button { min-height:44px; }
.community-state[data-state=active] { color:var(--green); background:var(--green-soft); }
.community-state[data-state=paused] { color:var(--blue); background:var(--blue-soft); }
.community-state[data-state=archived] { color:var(--red); background:var(--red-soft); }
.community-page .page-head .community-state { margin-top:10px; }
.community-history-note { color:var(--muted); font-size:12px; max-width:640px; margin:14px 0 24px; }
.community-avatar { position:relative; width:44px; height:44px; overflow:hidden; isolation:isolate; }
.community-avatar>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.community-avatar>span { grid-area:1/1; }
.community-leader-profile .page-head .community-avatar { width:72px; height:72px; font-size:23px; }
.community-person { display:inline-flex; align-items:center; gap:10px; max-width:100%; }
.community-person>span:last-child { min-width:0; overflow-wrap:anywhere; }
.community-form { max-width:850px; }
.community-photo-layout { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:start; gap:24px; }
.community-photo-preview .community-avatar { width:128px; height:128px; font-size:36px; }
.community-photo-editor .community-actions { margin:0; }
.community-photo-editor .inline { min-height:44px; }
.community-photo-editor .alert { margin:0; }
.community-camera { display:grid; gap:12px; width:100%; max-width:640px; }
.community-camera video { display:block; width:100%; aspect-ratio:4/3; object-fit:contain; background:var(--subtle); border-radius:6px; }
.image-previews { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr)); gap:12px; margin-top:12px; min-width:0; }
.image-previews:empty { display:none; }
.image-previews figure { position:relative; min-width:0; margin:0; }
.image-previews img { display:block; width:100%; height:150px; object-fit:contain; background:var(--subtle); border:1px solid var(--line); border-radius:6px; }
.image-previews figcaption { font-size:11px; color:var(--muted); overflow-wrap:anywhere; padding-top:4px; }
.image-previews .icon-button { position:absolute; top:4px; right:4px; background:var(--surface); width:36px; height:36px; }
.community-dialog { max-height:calc(100dvh - 28px); overflow-y:auto; }
.community-dialog .combo-menu { position:relative; top:auto; margin-top:4px; }
.community-dialog .combo-options { max-height:180px; }
.combo-trigger:has(.community-avatar),.combo-option:has(.community-avatar) { display:flex; align-items:center; gap:9px; }
.combo-trigger .community-avatar,.combo-option .community-avatar { width:28px; height:28px; font-size:11px; }
.combo-trigger span,.combo-option span { min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) {
  .community-page .cards.three,.community-page .cards.two { grid-template-columns:1fr; }
  .community-page .page-head,.community-page .page-head-actions,.community-page .period-form { max-width:100%; }
  .community-page .row { flex-wrap:wrap; gap:8px; }
  .community-page .form-actions { flex-wrap:wrap; }
  .community-photo-layout { grid-template-columns:1fr; gap:16px; }
  .community-dialog { padding:18px; }
  .community-page .period-selector { max-width:100%; }
  .community-page .month-label { min-width:0; }
  .community-page .period-selector .icon-button { flex-shrink:0; }
  .community-page .table-wrap { max-width:100%; }
}
@media(max-width:360px) {
  .community-page .detail-grid { grid-template-columns:1fr; }
  .community-page .page-head h1 { font-size:23px; }
  .community-leader-profile .page-head .record-head { align-items:flex-start; }
  .community-leader-profile .page-head .community-avatar { width:52px; height:52px; font-size:18px; }
  .community-actions form { flex:1 1 auto; }
  .community-actions form .button { width:100%; }
  .community-page .period-selector { width:100%; }
}
