/* Scan Membres – communauté */
.sm-cm { container: smcm / inline-size; width: 100%; color: var(--sm-text); font-family: inherit; box-sizing: border-box; margin: 0 0 28px; }
.sm-cm *, .sm-cm *::before, .sm-cm *::after { box-sizing: border-box; }
.sm-cm button, .sm-cm input, .sm-cm textarea, .sm-cm select { font-family: inherit; }
.sm-cm [hidden] { display: none !important; }
.sm-cm img { max-width: none; }

.sm-cm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.sm-cm .sm-cm-title { margin: 0 !important; padding: 0 !important; font-size: 34px !important; line-height: 1.1 !important; font-weight: 800 !important; color: var(--sm-text) !important; }
.sm-cm .sm-cm-sub { margin: 6px 0 0 !important; color: var(--sm-muted) !important; font-size: 14px; }
.sm-cm .sm-cm-new { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: 12px; background: var(--sm-accent); color: #fff !important; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sm-cm .sm-cm-new:hover { filter: brightness(1.1); }

.sm-cm-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sm-cm-left, .sm-cm-right { display: grid; gap: 14px; position: sticky; top: 76px; }
.sm-cm-mid { display: grid; gap: 14px; min-width: 0; }

.sm-cm-card { background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 16px; padding: 14px; min-width: 0; }
.sm-cm .sm-cm-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--sm-text); }
.sm-cm-chan .sm-cm-cap { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sm-muted); }
.sm-cm-top .sm-cm-cap svg { color: #f5b301; }
.sm-cm-nav, .sm-cm-chan { display: grid; gap: 2px; padding: 10px; }
.sm-cm .sm-cm-navb { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--sm-text) !important; font-size: 14px; text-align: left; cursor: pointer; }
.sm-cm .sm-cm-navb:hover { background: var(--sm-soft); }
.sm-cm .sm-cm-navb.is-on { background: color-mix(in srgb, var(--sm-accent) 18%, transparent); color: var(--sm-accent) !important; font-weight: 700; }
.sm-cm-chan { max-height: 56vh; overflow-y: auto; }

.sm-cm-join { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sm-cm-join p { margin: 4px 0 0; color: var(--sm-muted); font-size: 13px; }
.sm-cm-jacts { display: flex; gap: 8px; flex: none; }

.sm-cm-bar { display: flex; align-items: center; gap: 10px; }
.sm-cm-tabs { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--sm-line); border-radius: 14px; background: var(--sm-card); overflow-x: auto; scrollbar-width: none; }
.sm-cm .sm-cm-tab { margin: 0; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--sm-muted) !important; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sm-cm .sm-cm-tab.is-on { background: var(--sm-soft); color: var(--sm-text) !important; }
.sm-cm-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--sm-line); border-radius: 14px; background: var(--sm-card); color: var(--sm-muted); }
.sm-cm .sm-cm-search input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--sm-text) !important; font-size: 14px; outline: none; box-shadow: none; }
.sm-cm .sm-cm-chsel { display: none; height: 44px; padding: 0 10px; border: 1px solid var(--sm-line); border-radius: 14px; background: var(--sm-card); color: var(--sm-text); font-size: 14px; max-width: 150px; }

.sm-cm-feed { display: grid; gap: 14px; }
.sm-cm-post { padding: 16px 18px; }
.sm-cm-ptop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sm-cm-pside { display: flex; align-items: center; gap: 6px; flex: none; }
.sm-cm-au { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sm-cm-av { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.sm-cm .sm-cm-av img { display: block; width: 44px !important; height: 44px !important; max-width: 44px !important; border-radius: 50%; object-fit: cover; }
.sm-cm-ainfo { min-width: 0; }
.sm-cm-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sm-cm .sm-cm-name { font-weight: 700; font-size: 15px; color: var(--sm-text) !important; text-decoration: none !important; }
.sm-cm-meta { margin-top: 2px; font-size: 12px; color: var(--sm-muted); }
.sm-cm-lv { padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--sm-accent) 18%, transparent); color: var(--sm-accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.sm-cm-staff { padding: 1px 7px; border-radius: 6px; background: var(--sm-accent); color: #fff; font-size: 11px; font-weight: 700; }
.sm-cm-badge { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); white-space: nowrap; }
.sm-cm-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sm-cm-pill { padding: 4px 10px; border-radius: 999px; background: var(--sm-soft); color: var(--sm-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.sm-cm-pill.is-pin { background: color-mix(in srgb, var(--sm-accent) 22%, transparent); color: var(--sm-accent); }

.sm-cm-pbody { margin: 12px 0 4px; cursor: pointer; }
.sm-cm-full .sm-cm-pbody { cursor: default; }
.sm-cm .sm-cm-ptitle { margin: 0 0 6px !important; padding: 0 !important; font-size: 18px !important; font-weight: 800 !important; color: var(--sm-text) !important; line-height: 1.3 !important; }
.sm-cm .sm-cm-ptext, .sm-cm .sm-cm-ctext { margin: 0 !important; font-size: 15px; line-height: 1.6; color: var(--sm-text) !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.sm-cm-readmore { display: inline-block; margin-top: 6px; color: var(--sm-accent); font-size: 13px; font-weight: 700; }

.sm-cm-acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sm-line); }
.sm-cm-sp { flex: 1; }
.sm-cm .sm-cm-act { display: inline-flex; align-items: center; gap: 7px; height: 36px; margin: 0; padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--sm-muted) !important; font-size: 14px; cursor: pointer; }
.sm-cm .sm-cm-act:hover { background: var(--sm-soft); color: var(--sm-text) !important; }
.sm-cm .sm-cm-act.is-on { color: var(--sm-accent) !important; }
.sm-cm .sm-cm-act.is-on svg { fill: currentColor; fill-opacity: .25; }
.sm-cm-count { font-weight: 600; }

.sm-cm-menuw { position: relative; }
.sm-cm .sm-cm-dots { display: inline-flex; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sm-muted) !important; align-items: center; justify-content: center; cursor: pointer; }
.sm-cm .sm-cm-dots:hover { background: var(--sm-soft); }
.sm-cm-menu { position: absolute; right: 0; top: 34px; z-index: 20; min-width: 190px; padding: 6px; border-radius: 12px; background: var(--sm-card); border: 1px solid var(--sm-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); display: grid; gap: 2px; }
.sm-cm .sm-cm-mi { margin: 0; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--sm-text) !important; font-size: 14px; text-align: left; cursor: pointer; }
.sm-cm .sm-cm-mi:hover { background: var(--sm-soft); }
.sm-cm .sm-cm-mi.is-danger { color: #ff7b7b !important; }

.sm-cm .sm-cm-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; margin: 0; padding: 0 18px; border: 0; border-radius: 10px; background: var(--sm-soft); color: var(--sm-text) !important; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sm-cm .sm-cm-btn:hover { filter: brightness(1.15); }
.sm-cm .sm-cm-btn.sm-cm-primary { background: var(--sm-accent); color: #fff !important; }
.sm-cm .sm-cm-btn[disabled] { opacity: .6; cursor: default; }
.sm-cm .sm-cm-more { justify-self: center; }
.sm-cm .sm-cm-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--sm-soft); color: var(--sm-text) !important; cursor: pointer; font-size: 14px; }
.sm-cm .sm-cm-back svg { transform: rotate(180deg); }
.sm-cm-detail { display: grid; gap: 14px; }
.sm-cm-muted { margin: 0; color: var(--sm-muted); font-size: 14px; }
.sm-cm-none { padding: 28px 0; text-align: center; }
.sm-cm-err { display: block; min-height: 1em; color: #ff8a8a; font-size: 13px; }

.sm-cm-comments { display: grid; gap: 12px; }
.sm-cm-cform { display: grid; gap: 8px; }
.sm-cm-cform > .sm-cm-btn { justify-self: end; }
.sm-cm-row { display: flex; gap: 8px; justify-content: flex-end; }
.sm-cm .sm-cm-ta { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--sm-line); border-radius: 12px; background: var(--sm-bg); color: var(--sm-text) !important; font-size: 15px; outline: none; box-shadow: none; resize: vertical; }
.sm-cm .sm-cm-ta:focus { border-color: var(--sm-accent); }
.sm-cm-clist { display: grid; gap: 14px; }
.sm-cm-c { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--sm-line); }
.sm-cm-c .sm-cm-au { gap: 10px; }
.sm-cm-c .sm-cm-av, .sm-cm .sm-cm-c .sm-cm-av img { width: 34px !important; height: 34px !important; max-width: 34px !important; }
.sm-cm-c .sm-cm-ctext { padding-left: 44px; }
.sm-cm-c .sm-cm-au .sm-cm-menuw { margin-left: auto; }
.sm-cm-c .sm-cm-ainfo { flex: 1; }
.sm-cm-tomb { font-style: italic; }

.sm-cm-toplist { display: grid; gap: 4px; }
.sm-cm .sm-cm-trow { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; color: var(--sm-text) !important; text-decoration: none !important; }
.sm-cm .sm-cm-trow:hover { background: var(--sm-soft); }
.sm-cm-rank { width: 14px; text-align: center; font-size: 12px; font-weight: 800; color: var(--sm-muted); }
.sm-cm-trow:nth-child(-n+3) .sm-cm-rank { color: #f5b301; }
.sm-cm .sm-cm-trow img { width: 34px !important; height: 34px !important; max-width: 34px !important; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.sm-cm-tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sm-cm .sm-cm-rule { margin: 0 0 8px !important; color: var(--sm-muted) !important; font-size: 13px; line-height: 1.45; }
.sm-cm .sm-cm-rule:last-child { margin: 0 !important; }

.sm-cm-modal { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.sm-cm-mcard { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 18px; border-radius: 16px; background: var(--sm-card); color: var(--sm-text); border: 1px solid var(--sm-line); display: grid; gap: 10px; box-sizing: border-box; }
.sm-cm-mcard h3 { margin: 0; font-size: 18px; color: inherit; }
.sm-cm-mcard *, .sm-cm-mcard *::before { box-sizing: border-box; }
.sm-cm-mcard .sm-cm-ta { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--sm-line); border-radius: 12px; background: var(--sm-bg); color: var(--sm-text); font-size: 15px; font-family: inherit; outline: none; resize: vertical; }
.sm-cm-mcard .sm-cm-lab { font-size: 13px; color: var(--sm-muted); margin-bottom: -4px; }
.sm-cm-mcard .sm-cm-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.sm-cm-mcard .sm-cm-row { display: flex; gap: 8px; justify-content: flex-end; }
.sm-cm-mcard .sm-cm-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; margin: 0; padding: 0 18px; border: 0; border-radius: 10px; background: var(--sm-soft); color: var(--sm-text); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.sm-cm-mcard .sm-cm-btn.sm-cm-primary { background: var(--sm-accent); color: #fff; }
.sm-cm-mcard .sm-cm-err { display: block; min-height: 1em; color: #ff8a8a; font-size: 13px; }
.sm-cm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 2147483601; padding: 10px 16px; border-radius: 999px; background: #222; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.sm-cm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@container smcm (max-width: 1000px) {
	.sm-cm-grid { grid-template-columns: 200px minmax(0, 1fr); }
	.sm-cm-right { grid-column: 1 / -1; position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.sm-cm-left { top: 70px; }
}
@container smcm (max-width: 700px) {
	.sm-cm-head { align-items: center; }
	.sm-cm .sm-cm-title { font-size: 26px !important; }
	.sm-cm .sm-cm-new { padding: 0 14px; height: 40px; }
	.sm-cm-grid { grid-template-columns: minmax(0, 1fr); }
	.sm-cm-left { display: none; }
	.sm-cm-right { grid-template-columns: minmax(0, 1fr); }
	.sm-cm-bar { flex-wrap: wrap; }
	.sm-cm-tabs { order: 1; width: 100%; }
	.sm-cm-search { order: 2; }
	.sm-cm .sm-cm-chsel { display: block; order: 3; }
	.sm-cm-join { flex-direction: column; align-items: stretch; }
	.sm-cm-jacts .sm-cm-btn { flex: 1; }
	.sm-cm-post { padding: 14px; }
	.sm-cm-ptop { flex-wrap: wrap; }
	.sm-cm-c .sm-cm-ctext { padding-left: 0; }
}

/* Le titre de la page est déjà dans l'en-tête de la communauté */
body.sm-cm-page .entry-header .entry-title, body.sm-cm-page h1.entry-title, body.sm-cm-page .page-title, body.sm-cm-page .wp-block-post-title { display: none !important; }

/* Colonnes de grille implicites : jamais plus larges que leur conteneur */
.sm-cm-mid, .sm-cm-feed, .sm-cm-detail, .sm-cm-comments, .sm-cm-clist, .sm-cm-cform, .sm-cm-toplist, .sm-cm-nav, .sm-cm-chan { grid-template-columns: minmax(0, 1fr); }
.sm-cm-left, .sm-cm-right { grid-template-columns: minmax(0, 1fr); }
@container smcm (max-width: 1000px) { .sm-cm-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@container smcm (max-width: 700px) { .sm-cm-right { grid-template-columns: minmax(0, 1fr); } }

/* ----- Images des posts ----- */
.sm-cm-imgs { display: grid; gap: 6px; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.sm-cm-imgs.n2, .sm-cm-imgs.n4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sm-cm-imgs.n3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sm-cm-imgs.n3 .sm-cm-img:first-child { grid-column: 1 / -1; }
.sm-cm .sm-cm-img { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: var(--sm-soft); cursor: zoom-in; overflow: hidden; line-height: 0; }
.sm-cm .sm-cm-img img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 460px; object-fit: cover; }
.sm-cm-imgs.n2 .sm-cm-img img, .sm-cm-imgs.n3 .sm-cm-img:not(:first-child) img, .sm-cm-imgs.n4 .sm-cm-img img { height: 200px !important; }
.sm-cm-imgs.n1 .sm-cm-img img { max-height: 520px; object-fit: contain; background: #000; }
.sm-cm-lb { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.sm-cm-lb img { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; object-fit: contain; border-radius: 6px; }
.sm-cm-lbx { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sm-cm-mcard .sm-cm-addimg { justify-self: start; height: 36px; padding: 0 14px; gap: 8px; font-size: 13px; }
.sm-cm-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-cm-strip:empty { display: none; }
.sm-cm-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.sm-cm-mcard .sm-cm-thumb img { display: block; width: 72px !important; height: 72px !important; max-width: 72px !important; object-fit: cover; }
.sm-cm-mcard .sm-cm-thx { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.sm-cm .sm-cm-ctext:empty { display: none; }
.sm-cm-cimgs { margin-left: 44px; margin-top: 4px; max-width: 360px; }
.sm-cm-cimgs .sm-cm-img img { max-height: 280px; }
.sm-cm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-cm-pick .sm-cm-addimg { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; }
@container smcm (max-width: 700px) { .sm-cm-cimgs { margin-left: 0; } }

/* Étape 2 : spoilers, mentions, réactions, réponses */
.sm-cm .sm-cm-spoil { filter: blur(6px); cursor: pointer; user-select: none; border-radius: 4px; background: var(--sm-soft); transition: filter .15s; }
.sm-cm .sm-cm-spoil.is-open { filter: none; user-select: auto; }
.sm-cm .sm-cm-mn { color: var(--sm-accent) !important; font-weight: 600; text-decoration: none !important; }
.sm-cm .sm-cm-spbtn { margin: 6px 6px 0 0; height: 32px; padding: 0 12px; font-size: 13px; }
.sm-cm .sm-cm-tools { margin: 0 0 6px; }
.sm-cm .sm-cm-rxw { position: relative; display: inline-flex; align-items: center; }
.sm-cm .sm-cm-lic { display: inline-flex; align-items: center; }
.sm-cm .sm-cm-emo { font-size: 17px; line-height: 1; }
.sm-cm .sm-cm-rxs { display: inline-flex; gap: 1px; font-size: 14px; }
.sm-cm .sm-cm-rxmore { padding: 0 8px; font-size: 17px; }
.sm-cm .sm-cm-rxp { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; display: flex; gap: 2px; padding: 6px; background: var(--sm-card, #fff); border: 1px solid var(--sm-line); border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.sm-cm .sm-cm-rxp[hidden] { display: none; }
.sm-cm .sm-cm-rxe { margin: 0; padding: 4px 6px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.sm-cm .sm-cm-rxe:hover { background: var(--sm-soft); transform: scale(1.15); }
.sm-cm .sm-cm-replies { margin-left: 18px; padding-left: 12px; border-left: 2px solid var(--sm-line); }
.sm-cm .sm-cm-replies:empty { display: none; }
.sm-cm .sm-cm-cact { padding-left: 44px; }
.sm-cm .sm-cm-link { margin: 0; padding: 0; border: 0; background: none; color: var(--sm-muted) !important; font-size: 13px; cursor: pointer; }
.sm-cm .sm-cm-link:hover { color: var(--sm-accent) !important; }
.sm-cm .sm-cm-replyto { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--sm-muted); }
.sm-cm .sm-cm-replyto[hidden] { display: none; }
@container smcm (max-width: 700px) { .sm-cm .sm-cm-replies { margin-left: 6px; padding-left: 8px; } .sm-cm .sm-cm-cact { padding-left: 0; } }
.sm-cm .sm-cm-tools { justify-content: flex-start; }

/* Étape 3 : séries */
.sm-cm .sm-cm-sbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--sm-line); border-radius: 14px; background: var(--sm-card, rgba(127,127,127,.08)); }
.sm-cm .sm-cm-sbar[hidden] { display: none; }
.sm-cm .sm-cm-sbar-t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sm-cm .sm-cm-sbar-k, .sm-cm .sm-cm-sbar-c { color: var(--sm-muted); font-size: 13px; }
.sm-cm .sm-cm-sbar-n { font-weight: 800; color: var(--sm-text) !important; text-decoration: none; overflow-wrap: anywhere; }
.sm-cm .sm-cm-sbar-a { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-cm .sm-cm-pill.is-series { text-decoration: none; color: var(--sm-accent) !important; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-cm .sm-cm-sersel { position: relative; }
.sm-cm .sm-cm-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 2px; background: var(--sm-card, #fff); border: 1px solid var(--sm-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); overflow: hidden; }
.sm-cm .sm-cm-suggest[hidden] { display: none; }
.sm-cm .sm-cm-sug { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 0; border-top: 1px solid var(--sm-line); background: transparent; color: var(--sm-text) !important; text-align: left; font-size: 14px; cursor: pointer; }
.sm-cm .sm-cm-sug:first-child { border-top: 0; }
.sm-cm .sm-cm-sug:hover { background: var(--sm-soft); }

/* Sondages */
.sm-cm .sm-cm-poll { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 2px; }
.sm-cm .sm-cm-popt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; margin: 0; padding: 9px 14px; border: 1px solid var(--sm-line); border-radius: 12px; background: transparent; color: var(--sm-text) !important; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; overflow: hidden; }
.sm-cm .sm-cm-popt:not(.is-res):hover { border-color: var(--sm-accent); }
.sm-cm .sm-cm-popt.is-res { cursor: default; opacity: 1; }
.sm-cm .sm-cm-popt.is-mine { border-color: var(--sm-accent); }
.sm-cm .sm-cm-pbar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sm-accent); opacity: .22; transition: width .4s; }
.sm-cm .sm-cm-plab, .sm-cm .sm-cm-ppc { position: relative; }
.sm-cm .sm-cm-ppc { font-weight: 800; }
.sm-cm .sm-cm-pmeta { font-size: 12px; color: var(--sm-muted); }
.sm-cm .sm-cm-pollform { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.sm-cm .sm-cm-pollform input[type=text], .sm-cm .sm-cm-pollform select { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; border: 1px solid var(--sm-line); border-radius: 10px; background: transparent; color: var(--sm-text); font-size: 14px; }
.sm-cm .sm-cm-pollform input[hidden], .sm-cm .sm-cm-pollform[hidden] { display: none; }
.sm-cm .sm-cm-pollbtn { margin: 8px 0 0; }

/* Événement XP */
.sm-event { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: 14px; }
.sm-event b { font-size: 15px; font-weight: 800; }
.sm-event span { flex: 1 1 200px; opacity: .95; }
.sm-event i { font-style: normal; font-weight: 700; background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.sm-cm .sm-cm-pollform [hidden], .sm-cm-modal .sm-cm-pollform [hidden], .sm-cm-pollform[hidden] { display: none !important; }
.sm-cm-pollform { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
