.community-dialog {
  width: min(460px, calc(100vw - 28px)); max-height: min(82dvh, 720px); padding: 0;
  border: 1px solid #685073; border-radius: 18px; background: #211a2b; color: #f2eaf4;
  box-shadow: 0 20px 90px #100b1690; overflow: auto; color-scheme: dark; font: inherit;
}
.community-dialog::backdrop { background: #100b18b8; }
.community-dialog header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; background: #292032; border-bottom: 1px solid #584460; }
.community-dialog h2,.community-dialog h3,.community-room-card h3 { margin: 0; }
.community-dialog h2 { font-size: 1.2rem; }
.community-dialog header button { border: 0; background: #44324e; color: #f9edf9; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.community-content { padding: 18px 20px; }
.community-content form,.community-content label { display: grid; gap: 6px; }
.community-content form { gap: 14px; }
.community-content label { font-size: .88rem; }
.community-content :is(input:not([type=checkbox]),textarea,select) { box-sizing: border-box; width: 100%; padding: 9px 10px; min-height: 40px; color: #f4eaf4; border: 1px solid #695475; border-radius: 8px; background: #19141f; font: inherit; }
.community-content textarea { resize: vertical; }
.community-content [hidden],.community-home-count[hidden],.community-room-links[hidden],.community-room-links button[hidden] { display: none; }
.community-help,.community-empty,.community-content small { color: #cbbbcf; font-size: .83rem; line-height: 1.5; }
.community-help,.community-content form p { margin: 0; }
.community-error { font-size: .85rem; color: #ffc3cb; margin: 0 20px 15px; }
.community-error:empty { display: none; }
.community-actions,.community-picture,.community-room-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.community-room-links { margin-top: 8px; }
.community-actions button,.community-primary,.community-room-links button { border: 1px solid #846591; cursor: pointer; border-radius: 9px; background: #42304f; color: #f5e8fc; padding: 7px 12px; font: inherit; font-size: .8rem; }
.community-actions button:hover,.community-room-links button:hover { background: #574068; }
.community-primary { background: #d9b8de; color: #25182a; font-weight: 650; min-height: 40px; }
.community-dialog :focus-visible,.community-actions button:focus-visible { outline: 2px solid #e4bbf2; outline-offset: 2px; }
.community-section { margin: 20px 0 9px !important; font-size: .95rem; }
.community-row { margin-bottom: 10px; background: #302538; border: 1px solid #5c4965; border-radius: 12px; padding: 12px 14px; overflow-wrap: anywhere; }
.community-row h3,.community-room-card h3 { font-size: 1rem; margin: 4px 0; }
.community-row p,.community-card-body p { color: #cbbccf; font-size: .84rem; margin: 4px 0; overflow-wrap: anywhere; }
.community-row .community-actions,.community-card-body .community-actions { margin-top: 10px; }
.community-access { color: #ddbfdf; font-size: .72rem; }
.community-room-card { border: 1px solid #c09ddd30; border-radius: 15px; overflow: hidden; background: #251c32; min-width: 0; }
.community-room-card .home-room-art { margin-bottom: 0; }
.community-card-body { padding: 12px 15px 14px; overflow-wrap: anywhere; }
.community-invite-image,.community-picture img { width: 64px; height: 46px; object-fit: cover; border-radius: 7px; }
.community-invite-image { float: right; margin-left: 8px; }
.community-picture label { display: flex; align-items: center; }
.community-home-count { padding: 1px 5px; border-radius: 9px; background: #debce2; color: #2e1a35; font-size: 10px; font-weight: bold; }
