/* Messagerie sociale — dock navbar + page Communauté */

.fs-msg-bell {
    position: relative;
    cursor: pointer;
    display: none;
    line-height: 1;
}
.fs-msg-bell i {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}
.fs-msg-bell.is-active i,
.fs-msg-bell:hover i {
    color: #f97316;
}
.fs-msg-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    background: #f97316;
    color: #fff;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    padding: 0 4px;
}

.fs-msg-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2400;
}
.fs-msg-backdrop.is-open {
    display: block;
}

.fs-msg-dock {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    z-index: 2500;
    background: rgba(18, 18, 22, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    flex-direction: column;
}
.fs-msg-dock.is-open {
    display: flex;
}

.fs-msg-dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fs-msg-dock-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #f97316;
}
.fs-msg-dock-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.fs-msg-icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fs-msg-icon-btn:hover {
    border-color: rgba(249, 115, 22, 0.45);
    color: #f97316;
}

.fs-msg-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fs-msg-tab {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}
.fs-msg-tab.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.35);
}

.fs-msg-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fs-msg-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}
.fs-msg-list-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0.65rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.fs-msg-list-item:hover,
.fs-msg-list-item.is-active {
    background: rgba(255, 255, 255, 0.05);
}
.fs-msg-list-item.is-unread {
    background: rgba(249, 115, 22, 0.06);
}
.fs-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.fs-msg-avatar--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
}
.fs-msg-list-meta {
    flex: 1;
    min-width: 0;
}
.fs-msg-list-title {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
}
.fs-msg-list-preview {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
    overflow: hidden;
    min-width: 0;
    line-height: 1.35;
    max-height: 1.35em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fs-msg-list-preview .fs-msg-emote--preview {
    width: 1.05rem;
    height: 1.05rem;
    vertical-align: -0.15em;
    margin: 0 0.06rem;
}
.fs-msg-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
    margin-top: 6px;
}

.fs-msg-thread {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.fs-msg-thread.is-visible {
    display: flex;
}
.fs-msg-thread-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fs-msg-thread-head strong {
    font-size: 0.95rem;
    color: #fff;
}
.fs-msg-thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.fs-msg-bubble {
    max-width: 88%;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}
.fs-msg-bubble--mine {
    align-self: flex-end;
    background: rgba(249, 115, 22, 0.22);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #fff;
}
.fs-msg-bubble--theirs {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}
.fs-msg-bubble--deleted {
    opacity: 0.55;
    font-style: italic;
}
.fs-msg-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}
.fs-msg-bubble-del {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0;
}
.fs-msg-bubble-del:hover {
    color: #ef4444;
}

/* Messages glam — avatar + badge + reply */
.fs-msg-row {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    max-width: 100%;
    animation: fsMsgIn 0.25s ease;
}
@keyframes fsMsgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.fs-msg-row--mine {
    flex-direction: row-reverse;
}
.fs-msg-row--flash .fs-msg-card {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.7);
}
.fs-msg-row.is-deleted {
    opacity: 0.55;
}
.fs-msg-row-avatar {
    flex-shrink: 0;
    padding-top: 2px;
}
.fs-msg-row-avatar .fs-avatar {
    display: block;
}
.fs-msg-card {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 3rem);
    padding: 0.55rem 0.75rem 0.65rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.fs-msg-card--mine {
    background: linear-gradient(160deg, rgba(249, 115, 22, 0.28), rgba(220, 38, 38, 0.12));
    border-color: rgba(249, 115, 22, 0.35);
}
.fs-msg-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-bottom: 0.2rem;
}
.fs-msg-card-head-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}
.fs-msg-card-name {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-decoration: none;
}
a.fs-msg-card-name:hover {
    color: #fb923c;
}
.fs-msg-mention {
    color: #c4b5fd;
    font-weight: 600;
    text-decoration: none;
}
.fs-msg-mention:hover {
    color: #ddd6fe;
    text-decoration: underline;
}
.fs-msg-mention-menu {
    position: fixed;
    z-index: 2600;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 22, 28, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    padding: 0.35rem;
}
.fs-msg-mention-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    border: none;
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.fs-msg-mention-item:hover,
.fs-msg-mention-item.is-active {
    background: rgba(249, 115, 22, 0.14);
}
.fs-msg-mention-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fs-msg-mention-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.fs-msg-mention-meta strong {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-msg-mention-meta span {
    font-size: 0.72rem;
    color: #9ca3af;
}
.fs-msg-edited {
    margin-left: 0.35rem;
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
}
.fs-msg-edit-box {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.15rem;
}
.fs-msg-edit-input {
    width: 100%;
    min-height: 56px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(0, 0, 0, 0.25);
    color: #e5e7eb;
    padding: 0.5rem 0.65rem;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
}
.fs-msg-edit-acts {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.fs-msg-edit-save,
.fs-msg-edit-cancel {
    height: 30px;
    padding: 0 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.fs-msg-edit-save {
    background: linear-gradient(135deg, #f97316, #dc2626);
    border: none;
    color: #fff;
}
.fs-msg-edit-hint {
    font-size: 0.68rem;
    color: #6b7280;
}
.fs-msg-history-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #6b7280;
    padding: 0.45rem 0.5rem 0.65rem;
}
.fs-msg-history-hint--end {
    color: #4b5563;
}
.fs-msg-chip--pinned {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.fs-msg-card--pinned {
    border-color: rgba(56, 189, 248, 0.4);
}
.fs-msg-act.is-on {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    opacity: 1 !important;
}
.fs-msg-pins {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(8px);
}
.fs-msg-pins-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7dd3fc;
    margin-bottom: 0.35rem;
}
.fs-msg-pin-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    text-align: left;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    color: #e5e7eb;
}
.fs-msg-pin-item:last-child {
    margin-bottom: 0;
}
.fs-msg-pin-item:hover {
    background: rgba(56, 189, 248, 0.12);
}
.fs-msg-pin-item strong {
    font-size: 0.72rem;
    color: #fff;
}
.fs-msg-pin-item span {
    font-size: 0.7rem;
    color: #9ca3af;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.fs-msg-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.fs-msg-card-who {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex-wrap: wrap;
}
.fs-msg-card-who strong {
    font-size: 0.82rem;
    color: #fff;
}
.fs-msg-login {
    font-size: 0.68rem;
    color: #9ca3af;
}
.fs-msg-chip {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
}
.fs-msg-chip i {
    font-size: 0.55rem;
    opacity: 0.95;
}
.fs-msg-chip--admin {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.35);
}
.fs-msg-chip--maitre {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.18));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.45);
}
.fs-msg-chip--premium {
    background: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}
.fs-msg-chip--nouveau {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}
.fs-msg-chip--recrue {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.fs-msg-chip--level {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-variant-numeric: tabular-nums;
}
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

/* Cadres bulle par rôle */
.fs-msg-card--maitre {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.fs-msg-card--premium {
    border-color: rgba(168, 85, 247, 0.4);
}
.fs-msg-card--nouveau {
    border-color: rgba(34, 197, 94, 0.35);
}
.fs-msg-card--recrue {
    border-color: rgba(148, 163, 184, 0.22);
}
.fs-msg-card--mine.fs-msg-card--maitre {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.12));
    border-color: rgba(251, 191, 36, 0.5);
}
.fs-msg-card--mine.fs-msg-card--premium {
    background: linear-gradient(160deg, rgba(168, 85, 247, 0.26), rgba(249, 115, 22, 0.1));
    border-color: rgba(168, 85, 247, 0.45);
}

/* Anneau avatar (cadre) */
.fs-msg-row-avatar .fs-avatar-img {
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35);
}
.fs-msg-row-avatar--maitre .fs-avatar-img {
    box-shadow: 0 0 0 2px #f59e0b, 0 0 10px rgba(245, 158, 11, 0.45);
}
.fs-msg-row-avatar--premium .fs-avatar-img {
    box-shadow: 0 0 0 2px #a855f7, 0 0 8px rgba(168, 85, 247, 0.4);
}
.fs-msg-row-avatar--nouveau .fs-avatar-img {
    box-shadow: 0 0 0 2px #22c55e, 0 0 8px rgba(34, 197, 94, 0.35);
}
.fs-msg-row-avatar--recrue .fs-avatar-img {
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.4);
}
.fs-msg-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
    margin-left: auto;
}
.fs-msg-card-acts {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-width 0.18s ease, opacity 0.15s ease;
}
.fs-msg-row:hover .fs-msg-card-acts,
.fs-msg-card-actions:focus-within .fs-msg-card-acts {
    max-width: 7.5rem;
    opacity: 1;
    pointer-events: auto;
}
.fs-msg-act--signal:hover {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}
.fs-msg-act--signal.is-done {
    opacity: 0.45 !important;
    cursor: default;
}
.fs-msg-time {
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.85;
    text-align: right;
}
@media (hover: none) {
    .fs-msg-card-acts {
        max-width: 7.5rem;
        opacity: 1;
        pointer-events: auto;
    }
}
.fs-msg-act {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}
.fs-msg-act:hover {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}
.fs-msg-act--danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.fs-msg-card-body {
    font-size: 0.86rem;
    line-height: 1.45;
    color: #f3f4f6;
    word-break: break-word;
}
.fs-msg-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    min-height: 0;
}
.fs-msg-reactions:not(.has-reactions) {
    margin-top: 0;
}
.fs-msg-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    min-height: 1.4rem;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.fs-msg-reaction:hover {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.35);
}
.fs-msg-reaction.is-mine {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.45);
    color: #fdba74;
}
.fs-msg-react-bar {
    display: none;
    align-items: center;
    gap: 0.15rem;
    padding: 0.12rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.fs-msg-row:hover .fs-msg-react-bar,
.fs-msg-reactions:focus-within .fs-msg-react-bar {
    display: inline-flex;
}
@media (hover: none) {
    .fs-msg-react-bar {
        display: inline-flex;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
.fs-msg-quick-react {
    width: 1.55rem;
    height: 1.55rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
}
.fs-msg-quick-react:hover {
    background: rgba(249, 115, 22, 0.2);
}
.fs-msg-quick-react.is-mine {
    background: rgba(249, 115, 22, 0.22);
}
.fs-msg-quick-react--more {
    font-size: 0.65rem;
    color: #9ca3af;
}
.fs-msg-quick-react--more:hover {
    color: #fb923c;
}
.fs-msg-reaction-emoji {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.9rem;
}
.fs-msg-reaction-emoji .fs-msg-emote {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}
.fs-msg-reaction-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.9;
}
.fs-msg-quote {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0.2rem 0 0.45rem;
    padding: 0.4rem 0.55rem;
    border: none;
    border-left: 3px solid #f97316;
    border-radius: 0 10px 10px 0;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}
.fs-msg-quote-name {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fb923c;
}
.fs-msg-quote-body {
    display: block;
    font-size: 0.72rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.fs-msg-quote-body .fs-msg-emote--preview {
    width: 0.95rem;
    height: 0.95rem;
    vertical-align: -0.12em;
}
.fs-msg-reply-bar {
    padding: 0.45rem 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.fs-msg-reply-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fb923c;
    font-size: 0.75rem;
}
.fs-msg-reply-bar-text {
    flex: 1;
    min-width: 0;
}
.fs-msg-reply-bar-text strong {
    display: block;
    color: #fdba74;
    font-size: 0.72rem;
}
.fs-msg-reply-bar-text span {
    display: block;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fs-msg-typing {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.35rem;
    padding: 0.15rem 0.85rem 0.35rem;
    font-size: 0.72rem;
    color: #9ca3af;
    flex-shrink: 0;
}
.fs-msg-typing[hidden] {
    display: none !important;
}
.fs-msg-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.fs-msg-typing-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fb923c;
    opacity: 0.35;
    animation: fs-msg-typing-bounce 1.2s infinite ease-in-out;
}
.fs-msg-typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}
.fs-msg-typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}
@keyframes fs-msg-typing-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}
.fs-msg-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fs-msg-compose input,
.fs-msg-compose .fs-msg-compose-editor {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    padding: 0.55rem 0.85rem;
    outline: none;
    overflow-y: auto;
    line-height: 1.35;
    font-size: 0.92rem;
}
.fs-msg-compose input:focus,
.fs-msg-compose .fs-msg-compose-editor:focus {
    border-color: rgba(249, 115, 22, 0.45);
}
.fs-msg-compose-editor:empty::before {
    content: attr(data-placeholder);
    color: #6b7280;
    pointer-events: none;
}
.fs-msg-compose-editor .fs-msg-emote--compose {
    width: 1.35em;
    height: 1.35em;
    vertical-align: -0.25em;
    margin: 0 0.05em;
    object-fit: contain;
    display: inline;
}
.fs-msg-compose button[type='submit'] {
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #fff;
    cursor: pointer;
    padding: 0 0.85rem;
    font-weight: 600;
}
.fs-msg-compose button[type='submit']:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fs-msg-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}
.fs-msg-new-dm {
    display: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.5rem;
}
.fs-msg-new-dm.is-open {
    display: flex;
}
.fs-msg-new-dm input {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    padding: 0 0.75rem;
}

/* Présence, annonce, mute, recherche salon */
.fs-msg-presence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}
.fs-msg-presence-count {
    font-size: 0.72rem;
    color: #22c55e;
    font-weight: 600;
    white-space: nowrap;
}
.fs-msg-presence--empty .fs-msg-presence-count {
    color: #6b7280;
    font-weight: 500;
}
.fs-msg-presence-avatars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.fs-msg-presence-avatar {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    overflow: visible;
}
.fs-msg-presence-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: rgba(255, 255, 255, 0.08);
}
.fs-msg-presence-dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #121216;
    z-index: 1;
    pointer-events: none;
}
.fs-msg-presence-more {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-left: 0.15rem;
}
.fs-msg-avatar-wrap {
    position: relative;
    display: inline-flex;
}
.fs-msg-avatar-wrap--online::after {
    content: '';
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #121216;
    z-index: 2;
    pointer-events: none;
}
.fs-msg-announcement {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.25);
    background: rgba(249, 115, 22, 0.1);
}
.fs-msg-announcement-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: #fde68a;
    line-height: 1.4;
}
.fs-msg-announcement-inner i {
    color: #f97316;
    margin-top: 0.15rem;
}
.fs-msg-announcement--compact {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
}
.fs-msg-mute-banner {
    flex-shrink: 0;
}
.fs-msg-mute-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #fecaca;
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
}
.fs-msg-mute-banner-inner i {
    color: #f87171;
}
.fs-msg-compose.is-muted,
.cm-compose.is-muted,
#dash-salon-compose.is-muted {
    opacity: 0.65;
    pointer-events: none;
}
.fs-msg-search-bar {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}
.fs-msg-search-bar.is-open {
    display: flex;
}
.fs-msg-search-bar[hidden] {
    display: none !important;
}
.fs-msg-search-bar input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    padding: 0 0.65rem;
    font-size: 0.82rem;
}
.fs-msg-search-author-wrap {
    position: relative;
    flex: 0 0 9rem;
    min-width: 0;
}
.fs-msg-search-author-wrap input {
    width: 100%;
}
.fs-msg-search-author-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 30;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 22, 28, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    padding: 0.3rem;
}
.fs-msg-search-author-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    border: none;
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    padding: 0.4rem 0.45rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.fs-msg-search-author-item:hover,
.fs-msg-search-author-item.is-active {
    background: rgba(249, 115, 22, 0.14);
}
.fs-msg-search-author-item img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.fs-msg-search-author-item span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.fs-msg-search-author-item strong {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-msg-search-author-item span span {
    font-size: 0.68rem;
    color: #9ca3af;
}
.fs-msg-search-bar--compact .fs-msg-search-author-wrap {
    flex-basis: 7.5rem;
}
.fs-msg-search-bar--compact {
    padding: 0.4rem 0.55rem;
}
.fs-msg-search-panel {
    display: none;
    max-height: 220px;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}
.fs-msg-search-panel.is-open {
    display: block;
}
.fs-msg-search-panel[hidden] {
    display: none !important;
}
.fs-msg-search-panel--compact {
    max-height: 160px;
}
.fs-msg-search-hit {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.55rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
}
.fs-msg-search-hit:hover {
    background: rgba(249, 115, 22, 0.08);
}
.fs-msg-search-hit-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #f97316;
}
.fs-msg-search-hit-time {
    font-size: 0.68rem;
    color: #6b7280;
}
.fs-msg-search-hit-body {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: #9ca3af;
}
.fs-msg-search-empty {
    padding: 0.85rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.82rem;
}
.fs-msg-search-empty--error {
    color: #fca5a5;
}

/* Page Communauté : styles dans /css/communaute.css */
