/* Private Bot · rubrique « Communauté » (src/web/modules/communaute.js) : mêmes groupes, lignes et boutons que Modération et Tickets. */
.cm { display: grid; gap: 20px; }
.cm-vues { display: flex; max-width: 100%; overflow-x: auto; }   /* barre des parties : pleine largeur (.sous-rubriques, app.css) */
.cm-vues button { white-space: nowrap; }
@media (max-width: 560px) {
  .cm-vues { width: 100%; }
  .cm-vues button { flex: 1 1 auto; padding: 0 7px; font-size: 14px; min-width: 0; }
  .cm-long { display: none; }
}
@media (min-width: 561px) { .cm-tel { display: none; } }
.cm-cmd { white-space: nowrap; }
.cm-droite { display: flex; justify-content: flex-end; }
@media (max-width: 734px) { .cm-droite { justify-content: flex-start; } }
.cm-gris { color: var(--attenue); font-weight: 400; }
.cm-vide { margin: 0; padding: 14px 22px 18px; color: var(--attenue); font-size: 14.5px; line-height: 20px; }
.cm-note { margin: 0; padding: 0 22px 14px; color: var(--attenue); font-size: 13.5px; line-height: 19px; }
.cm-pad { padding-top: 6px; }
.cm-avert { margin: 0; }
.cm-court { max-width: 120px; }
.cm-jours { display: flex; align-items: center; gap: 10px; color: var(--attenue); font-size: 15px; }
.ligne-r .nom code, .ligne-r .aide code, .groupe-tete code, .cm-form code { font: 600 13.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--texte); }

/* Lignes (salons ouverts, classement, arrivées, compteurs) */
.cm-lignes { display: grid; }
.cm-ligne, .cm-compteur { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 22px; position: relative; min-width: 0; }
.cm-ligne + .cm-ligne::before, .cm-compteur + .cm-compteur::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.cm-corps { display: grid; gap: 2px; min-width: 0; }
.cm-corps b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-corps small { color: var(--attenue); font-size: 13.5px; line-height: 18px; overflow-wrap: anywhere; }
.cm-corps small b { font-size: inherit; color: var(--texte); font-weight: 600; white-space: normal; }
.cm-etats { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.cm-icone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tuile-haute); color: var(--attenue); }
.cm-icone svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--tuile-haute); }
.cm-avatar.vide { display: grid; place-items: center; color: var(--attenue); font-weight: 700; font-size: 14px; }

/* Classement */
.cm-top { grid-template-columns: 22px 32px minmax(0, 1fr) auto; }
.cm-rang { color: var(--attenue); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cm-nombre { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 8px; }
.cm-pages { align-self: center; color: var(--attenue); font-size: 14px; font-variant-numeric: tabular-nums; padding: 0 6px; }
.cm-zero { margin-left: auto; }
@media (max-width: 560px) { .cm-zero { margin-left: 0; } }

/* Compteurs */
.cm-compteur { align-items: start; }
.cm-compteur > .cm-icone { margin-top: 2px; }
.cm-compteur .saisie { margin-top: 8px; max-width: 360px; }
.cm-compteur > .bouton { margin-top: 2px; }
@media (max-width: 560px) {
  .cm-compteur { grid-template-columns: 32px minmax(0, 1fr); }
  .cm-compteur > .bouton { grid-column: 2; justify-self: start; }
}
.cm-form { margin-top: 0; }
.cm-grille { display: grid; gap: 14px; }
@media (min-width: 735px) { .cm-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cm-apercu-ligne { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--tuile); color: #c4c7cc; font-size: 15px; min-width: 0; }
.cm-apercu-ligne .cm-icone { width: 32px; height: 32px; background: transparent; flex: none; }
.cm-apercu-ligne span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-form .erreur-form:empty { display: none; }

/* Boutons du message de gestion, dessinés comme sur Discord : une image, pas des boutons du site */
.cm-apercu-discord { display: grid; gap: 8px; margin: 4px 22px 14px; padding: 12px 14px 14px; border-radius: 14px; background: #2b2d31; cursor: default; user-select: none; }
.cm-apercu-titre { color: var(--attenue); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.cm-boutons-discord { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.cm-boutons-discord span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 8px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.cm-boutons-discord span.bleu { background: #5865f2; }

/* Fils et réactions */
.puce.cm-puce { padding-left: 12px; }
.cm-puce .cm-emoji { width: 20px; height: 20px; object-fit: contain; }
.cm-emoji-t { font-size: 18px; line-height: 1; }
.cm-seg { width: fit-content; max-width: 100%; }
.cm-regles { display: grid; }
.cm-regle { display: grid; gap: 10px; padding: 14px 22px; position: relative; }
.cm-regle + .cm-regle::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.cm-regle-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.cm-regle-tete b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-emoji-form { display: inline-grid; grid-template-columns: minmax(0, 150px) auto; gap: 6px; align-items: center; }
.cm-emoji-form .saisie { min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.cm-regle .erreur-form { margin: 0; }
.cm-ajout-r { width: auto; max-width: 100%; }
@media (max-width: 560px) {
  .cm-ligne:not(.cm-top) { grid-template-columns: 32px minmax(0, 1fr); }
  .cm-ligne:not(.cm-top) > .cm-etats { grid-column: 2; justify-content: flex-start; }
  .cm-ligne:not(.cm-top) > .cm-etats:empty { display: none; }
}
