/* =========================================================
   Bulle – Refonte visuelle (couche chargée après liquid-glass.css,
   avant mobile.css). Livrée par petites étapes, chacune isolée
   dans sa section. Retour arrière : retirer le <link> de refonte.css.
   ========================================================= */

/* ---------------------------------------------------------
   3.1 — Rail de navigation (ordinateur)
   Un seul langage : pastilles neutres, morphing au survol,
   indicateur latéral pour la vue active (comme les onglets).
   --------------------------------------------------------- */
@media (min-width: 761px) {
  .app .rail { gap: 8px; padding: 12px 0; }
  .app .rail-sep { width: 28px; height: 2px; opacity: .8; }

  .app .rail .bubble {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--panneau); background-image: none; color: var(--texte-2);
    border: 0; box-shadow: 0 1px 2px rgba(20, 10, 40, .06), inset 0 0 0 1px var(--ligne);
    overflow: visible;
    transition: border-radius .22s cubic-bezier(.3, .7, .2, 1), background-color .18s ease, color .18s ease, transform .18s ease;
  }
  .app .rail .bubble:hover {
    border-radius: 16px; transform: none;
    background: var(--violet-clair); color: var(--violet);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 25%, transparent);
  }
  .app .rail .bubble:active { transform: scale(.94); }
  .app .rail .bubble.active {
    border-radius: 16px; background: var(--violet); color: #fff;
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--violet) 90%, transparent);
  }

  /* Indicateur latéral : point au survol, barre pour la vue active */
  .app .rail .bubble::before {
    content: ''; position: absolute; left: -14px; top: 50%;
    width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0;
    background: var(--texte); opacity: 0; transform: scaleY(.5);
    transition: height .2s ease, margin-top .2s ease, opacity .2s ease, transform .2s ease;
  }
  .app .rail .bubble:hover::before { opacity: 1; transform: none; height: 18px; margin-top: -9px; }
  .app .rail .bubble.active::before { opacity: 1; transform: none; height: 34px; margin-top: -17px; background: var(--violet); }

  /* Réseau social : même gabarit, la touche de couleur passe dans l'icône */
  .app .rail .bubble.social { width: 48px; height: 48px; border-radius: 50%; gap: 0; color: var(--violet); }
  .app .rail .bubble.social .bubble-halo, .app .rail .bubble.social .bubble-text { display: none; }
  .app .rail .bubble.social .bubble-ic { transform: none; }
  .app .rail .bubble.social:hover { border-radius: 16px; transform: none; }
  .app .rail .bubble.social.active { color: #fff; }

  /* Salons : gardent leur couleur (identité du salon) */
  .app .rail .server-list .bubble { color: #2B2340; box-shadow: none; }
  .app .rail .server-list .bubble:hover { filter: saturate(1.08) brightness(1.04); }
  .app .rail .server-list .bubble.active { box-shadow: none; }

  /* Créer / rejoindre : invitation discrète */
  .app .rail .bubble.add { color: var(--vert); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ligne-2); }
  .app .rail .bubble.add:hover { background: var(--vert); color: #fff; box-shadow: none; }

  /* Bulle+ : seul accent doré, réservé à l'offre premium */
  .app .rail .bubble.plus { background: #FFD93D; color: #6B4600; box-shadow: 0 8px 18px -10px rgba(176, 122, 0, .8); }
  .app .rail .bubble.plus:hover { background: #FFCD1A; color: #6B4600; }

  .app .rail .bubble .badge-dot { border-color: var(--rail); right: -3px; bottom: -3px; }
}

@media (prefers-reduced-motion: reduce) {
  .app .rail .bubble, .app .rail .bubble::before { transition: none; }
}

/* ---------------------------------------------------------
   3.2 — Colonne latérale : conversations et panneau « moi »
   --------------------------------------------------------- */
@media (min-width: 761px) {
  /* Conversations : rangées régulières, survol doux, sélection nette */
  .side .item { min-height: 44px; border-radius: 12px; transition: background-color .15s ease, color .15s ease; }
  .side .item:hover { background: var(--survol); }
  .side .item.active { background: var(--violet-clair); color: var(--violet-fonce, var(--violet)); }

  /* Panneau « moi » : une carte posée en bas, actions sur une seule ligne */
  .app .me-panel {
    margin: 8px; padding: 6px; gap: 4px; border: 0; border-radius: 16px;
    background: var(--panneau-2); box-shadow: inset 0 0 0 1px var(--ligne);
  }
  .app .me-info { padding: 6px 8px; border-radius: 11px; }
  .app .me-actions {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column;
    gap: 2px; padding: 2px; border-radius: 12px; background: var(--panneau);
  }
  .app .me-actions .icon-btn { height: 34px; border-radius: 9px; color: var(--texte-2); }
  .app .me-actions .icon-btn:hover { background: var(--violet-clair); color: var(--violet); }
  .app .me-actions .icon-btn svg { width: 18px; height: 18px; }
  .app .me-actions .icon-btn[aria-pressed="true"] { background: var(--rouge-clair); color: var(--rouge); }
}

/* =========================================================
   3.3 — Vue conversation
   ========================================================= */
/* Messages ancrés en bas quand la conversation est courte (le défilement reste normal) */
.messages > :first-child:not(.empty) { margin-top: auto; }

/* Séparateurs de jour */
.day-sep {
  display: flex; align-items: center; gap: 12px; margin: 16px 8px 6px;
  color: var(--texte-3); font-size: 12px; font-weight: 700; letter-spacing: .01em;
  user-select: none;
}
.day-sep::before, .day-sep::after { content: ''; flex: 1; height: 1px; background: var(--ligne); }
.day-sep:first-child { margin-top: 4px; }

/* Heures courtes ; sur les messages groupés, l'heure apparaît au survol dans la marge */
.msg-meta time { font-variant-numeric: tabular-nums; cursor: default; }
.msg-side-time {
  position: absolute; left: 8px; top: 3px; width: 36px; text-align: center;
  font-size: 11px; line-height: 1.6; color: var(--texte-3); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .12s; pointer-events: none;
}
.msg.cont:hover .msg-side-time, .msg.cont:focus-within .msg-side-time { opacity: 1; }
@media (hover: none) { .msg-side-time { display: none; } }

@media (max-width: 760px) {
  .msg-side-time { display: none; }
  /* Sur téléphone : pastille centrée, sans lignes */
  .day-sep { justify-content: center; margin: 14px 0 6px; }
  .day-sep::before, .day-sep::after { display: none; }
  .day-sep span {
    padding: 4px 12px; border-radius: 999px; font-size: 11.5px;
    background: var(--panneau); border: 1px solid var(--ligne); color: var(--texte-2, var(--texte-3));
  }
}
/* Messages groupés plus serrés sur ordinateur */
@media (min-width: 761px) { .msg.cont { margin-top: -4px; padding-top: 1px; padding-bottom: 3px; } }

/* =========================================================
   6.1 — Réactions aux messages
   ========================================================= */
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--ligne); background: var(--panneau);
  color: var(--texte-2, var(--texte)); font: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background .12s, border-color .12s, transform .12s;
}
.reaction:hover { border-color: color-mix(in srgb, var(--violet) 40%, var(--ligne)); background: var(--survol); }
.reaction:active { transform: scale(.94); }
.reaction.mine { background: var(--violet-clair); border-color: color-mix(in srgb, var(--violet) 55%, transparent); color: var(--violet); }
.reaction-emoji { font-size: 15px; line-height: 1; }
.reaction-count { font-variant-numeric: tabular-nums; }
.reaction-add { width: 30px; padding: 0; justify-content: center; color: var(--texte-3); opacity: 0; }
.msg:hover .reaction-add, .reaction-add:focus-visible, .reactions:focus-within .reaction-add { opacity: 1; }
@media (hover: none) { .reaction-add { opacity: 1; } }

/* Barre de réactions rapides */
.react-pop {
  position: fixed; z-index: 90; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; background: var(--panneau); border: 1px solid var(--ligne);
  box-shadow: 0 10px 30px rgba(20, 10, 40, .18); animation: react-pop-in .14s ease-out;
}
.react-pop-emoji, .react-pop-more {
  width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; font-size: 21px; cursor: pointer; color: var(--texte-2, var(--texte));
  transition: transform .12s, background .12s;
}
.react-pop-emoji:hover, .react-pop-emoji:focus-visible { transform: scale(1.22); background: var(--survol); outline: none; }
.react-pop-more:hover, .react-pop-more:focus-visible { background: var(--violet-clair); color: var(--violet); outline: none; }
@keyframes react-pop-in { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }

/* Feuille d'actions mobile : rangée d'emojis */
.msheet-react { display: flex; justify-content: space-between; gap: 4px; padding: 4px 6px 10px; }
.msheet-emoji {
  flex: 1 1 0; max-width: 52px; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--panneau-2, var(--survol)); font-size: 24px; color: var(--texte-2, var(--texte));
}
.msheet-emoji.more { font-size: 22px; font-weight: 700; }
.msheet-emoji:active { transform: scale(.9); }

/* Bulles mobiles en messages privés : réactions accrochées sous la bulle */
@media (max-width: 760px) {
  .messages.dm .reactions { margin-top: 3px; padding: 0 4px; }
  .messages.dm .msg.mine .reactions { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .react-pop { animation: none; } .reaction, .react-pop-emoji { transition: none; } }

/* =========================================================
   6.2 — Messages épinglés
   ========================================================= */
.msg-pinned-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 2px;
  font-size: 11.5px; font-weight: 800; color: var(--violet); letter-spacing: .01em;
}
.msg-pinned-tag svg { width: 12px; height: 12px; }
.msg:has(.msg-pinned-tag) { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--violet) 60%, transparent); }
.msg-act.msg-pin.on { color: var(--violet); }
.pins-btn svg { width: 19px; height: 19px; }

.pins-modal { max-width: 520px; }
.pins-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pins-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.pins-head h2 svg { color: var(--violet); }
.pins-list { display: grid; gap: 10px; max-height: min(64vh, 560px); overflow-y: auto; padding-right: 2px; }
.pin-item { border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; background: var(--panneau-2, var(--panneau)); }
.pin-top { display: flex; align-items: center; gap: 8px; }
.pin-top .avatar { width: 26px; height: 26px; font-size: 12px; }
.pin-top time { margin-left: auto; font-size: 12px; color: var(--texte-3); white-space: nowrap; }
.pin-text { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--texte-msg, var(--texte)); }
.pin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .875rem; border-radius: 10px; }
.btn-ghost-red.btn-sm { border-width: 1.5px; }
.pins-empty { text-align: center; padding: 18px 8px 8px; color: var(--texte-2, var(--texte-3)); }
.pins-empty-ic { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-clair); color: var(--violet); }
.pins-empty p { margin: 6px 0 0; font-size: 14px; }

/* =========================================================
   6.3 — Recherche dans la conversation
   ========================================================= */
.search-btn svg { width: 19px; height: 19px; }
.search-modal .search-input { width: 100%; margin-bottom: 12px; }
.search-results { display: grid; gap: 8px; max-height: min(60vh, 520px); overflow-y: auto; }
.search-count { margin: 0 0 2px; font-size: 12px; font-weight: 800; color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.search-hit {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 12px; background: var(--panneau-2, var(--panneau));
  transition: border-color .12s, background .12s;
}
.search-hit:hover, .search-hit:focus-visible { border-color: color-mix(in srgb, var(--violet) 45%, var(--ligne)); background: var(--survol); outline: none; }
.search-text { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--texte-msg, var(--texte)); font-size: 14.5px; }
.search-text mark { background: color-mix(in srgb, #FFD93D 70%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.search-none { text-align: center; padding: 14px 0; }
@media (max-width: 760px) {
  /* En-tête mobile des messages privés : l'épingle passe dans le menu ⋯ pour laisser la place au nom */
  .main-head .pins-btn-dm { display: none; }
}
@media (max-width: 400px) {
  /* Très petits écrans : la recherche aussi (elle reste dans le menu ⋯) */
  .main-head .search-btn:has(+ .pins-btn-dm) { display: none; }
}

/* ===== 7.1 LIVE ===== */
.story-ring.live { position: relative; background: linear-gradient(135deg, #ff3b5c, #ff7a3d); }
.story-ring.live-new { background: var(--ligne-2); color: #ff3b5c; }
.live-badge { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: #ff3b5c; color: #fff; font-size: .6rem; font-weight: 900; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; border: 2px solid var(--fond); }
.live-rules { margin: 10px 0 4px; padding-left: 18px; color: var(--texte-2); font-size: .86rem; display: grid; gap: 4px; }
.live-start-form .field { display: grid; gap: 6px; font-weight: 700; }
.live-h1 { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; margin: 0; font-size: 1rem; }
.live-pill { flex: none; background: #ff3b5c; color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .65; } }
.live-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-host-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--texte-2); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.live-host-btn .avatar { width: 22px; height: 22px; font-size: 10px; }
.live-viewers { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .85rem; color: var(--texte-2); flex: none; }
.live-head-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.live-view { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 320px; gap: 0; }
.live-stage { position: relative; background: #000; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.live-screen, .live-cam { display: contents; }
.live-stage video { width: 100%; height: 100%; object-fit: contain; grid-area: 1 / 1; }
.live-stage.has-screen .live-cam video { position: absolute; right: 12px; bottom: 64px; width: 26%; max-width: 220px; height: auto; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 2; }
.live-status { grid-area: 1 / 1; z-index: 3; color: #fff; text-align: center; padding: 20px; display: grid; gap: 12px; justify-items: center; font-weight: 700; max-width: 420px; }
.live-status[hidden] { display: none; }
.live-status .spinner, .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: live-spin .8s linear infinite; }
@keyframes live-spin { to { transform: rotate(360deg); } }
.live-stage.is-ended { background: #111; }
.live-sound { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4; }
.live-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.live-controls[hidden], .live-sound[hidden] { display: none; }
.live-ctl { border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; background: rgba(255,255,255,.9); color: #111; }
.live-ctl[aria-pressed="false"] { background: rgba(40,40,40,.85); color: #fff; }
.live-chat { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--ligne); background: var(--panneau); }
.live-chat-head { padding: 10px 14px; font-weight: 800; font-size: .85rem; border-bottom: 1px solid var(--ligne); }
.live-chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.live-msg { position: relative; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; padding-right: 48px; }
.live-msg-name { font-weight: 800; }
.live-host-tag { margin-left: 4px; background: #ff3b5c; color: #fff; font-size: .62rem; font-weight: 900; padding: 1px 5px; border-radius: 5px; vertical-align: 1px; }
.live-msg-mod { position: absolute; right: 0; top: 0; display: none; gap: 2px; }
.live-msg:hover .live-msg-mod, .live-msg:focus-within .live-msg-mod { display: flex; }
@media (hover: none) { .live-msg-mod { display: flex; opacity: .7; } }
.live-msg-mod button { border: 0; background: transparent; color: var(--texte-2); cursor: pointer; padding: 3px; border-radius: 6px; }
.live-msg-mod button:hover { color: #ff3b5c; background: var(--ligne); }
.live-chat-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--ligne); }
.live-chat-form[hidden] { display: none; }
.live-chat-form .input { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .live-view { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 42vh) 1fr; }
  .live-chat { border-left: 0; border-top: 1px solid var(--ligne); }
  .live-host { display: none; }
  .live-head-actions .btn-sm { padding: 6px 10px; }
}

/* ===== 7.2 Réponses aux stories ===== */
.story-viewer.has-reply { grid-template-rows: auto auto 1fr auto; }
.story-reply { position: relative; z-index: 3; display: grid; gap: 8px; padding: 10px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.story-reply-quick { display: flex; gap: 6px; justify-content: center; }
.story-reply-quick button { border: 0; background: rgba(255,255,255,.12); border-radius: 999px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; transition: transform .15s; }
.story-reply-quick button:hover { background: rgba(255,255,255,.22); transform: scale(1.1); }
.story-reply-quick button.pop { animation: story-pop .35s ease; }
@keyframes story-pop { 50% { transform: scale(1.35); } }
.story-reply-form { display: flex; gap: 8px; max-width: 560px; width: 100%; margin: 0 auto; }
.story-reply-input { flex: 1; min-width: 0; border: 1.5px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: #fff; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 16px; }
.story-reply-input::placeholder { color: rgba(255,255,255,.7); }
.story-reply-input:focus { outline: none; border-color: #fff; }
.story-reply-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .story-reply-quick button.pop { animation: none; } }
body:has(.story-viewer.has-reply) .toast-wrap, body:has(.story-viewer.has-reply) #toast { bottom: 140px !important; }

/* ===== 7.3 Sondages ===== */
.attach-pop { position: fixed; z-index: 90; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--panneau); border: 1px solid var(--ligne); box-shadow: var(--ombre, 0 10px 30px rgba(0,0,0,.18)); display: grid; gap: 2px; }
.attach-pop button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--texte); font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.attach-pop button:hover, .attach-pop button:focus-visible { background: var(--ligne); outline: none; }
.attach-pop button span { color: var(--violet); }
.poll-edit { display: grid; gap: 12px; }
.poll-edit .field { display: grid; gap: 6px; font-weight: 700; }
.poll-edit-options { display: grid; gap: 6px; }
.poll-edit-row { display: flex; gap: 6px; align-items: center; }
.poll-edit-row .input { flex: 1; min-width: 0; }
.poll-edit-row .icon-btn[hidden] { display: none; }
.poll-edit .btn-sm[hidden] { display: none; }
.poll-edit .btn-sm { justify-self: start; }
.poll-edit-multi { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.poll-edit-multi input { width: 18px; height: 18px; accent-color: var(--violet); }
.poll { margin-top: 4px; max-width: 420px; border: 1px solid var(--ligne); border-radius: 14px; padding: 12px; background: var(--panneau); display: grid; gap: 8px; }
.poll-q { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.poll-q > span:first-child { color: var(--violet); margin-top: 2px; }
.poll-opts { display: grid; gap: 6px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--ligne-2, var(--ligne)); border-radius: 10px; background: transparent; color: var(--texte); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.poll-opt:hover:not(:disabled) { border-color: var(--violet); }
.poll-opt:disabled { cursor: default; }
.poll-opt.mine { border-color: var(--violet); }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--violet) 14%, transparent); transition: width .35s ease; pointer-events: none; }
.poll-opt.mine .poll-fill { background: color-mix(in srgb, var(--violet) 24%, transparent); }
.poll-opt.win .poll-txt { font-weight: 800; }
.poll-check { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--texte-3, #999); display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; }
.poll-opt.mine .poll-check { background: var(--violet); border-color: var(--violet); }
.poll-txt { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.poll-pct { position: relative; flex: none; font-weight: 800; font-size: .85rem; color: var(--texte-2); }
.poll-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--texte-2); }
.poll-close { border: 0; background: transparent; color: var(--violet); font: inherit; font-weight: 800; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.poll-close:hover { background: var(--ligne); }
@media (prefers-reduced-motion: reduce) { .poll-fill { transition: none; } }
#modal-box .poll-edit-multi { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
.poll.multi .poll-check { border-radius: 5px; }

/* ===== 7.4 Transfert ===== */
.msg-fwd-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-style: italic; color: var(--texte-2); margin: 2px 0; }
.fwd-modal .input[type=search] { margin: 10px 0 8px; }
.fwd-preview { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--violet); border-radius: 8px; background: var(--ligne); font-size: .88rem; overflow-wrap: anywhere; }
.fwd-preview small { color: var(--texte-2); }
.fwd-list { display: grid; gap: 2px; max-height: min(46vh, 360px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.fwd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
.fwd-item:hover:not(:disabled), .fwd-item:focus-visible { background: var(--ligne); outline: none; }
.fwd-item:disabled { opacity: .45; cursor: not-allowed; }
.fwd-item .avatar, .fwd-hash { flex: none; width: 34px; height: 34px; font-size: 14px; }
.fwd-hash { display: grid; place-items: center; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 900; }
.fwd-name { flex: 1; min-width: 0; display: grid; }
.fwd-name strong, .fwd-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwd-name small { color: var(--texte-2); font-size: .78rem; }
.fwd-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--texte-3, #999); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: transparent; }
.fwd-item.on .fwd-tick { background: var(--violet); border-color: var(--violet); color: #fff; }
.fwd-actions { align-items: center; }
.fwd-count { flex: 1; font-size: .8rem; color: var(--texte-2); }
@media (max-width: 480px) { .fwd-count { flex-basis: 100%; } }

/* ===== 7.5 Liste des conversations : noms longs ===== */
.item .label .name-line { display: flex; min-width: 0; max-width: 100%; }
.item .label .name-line > span:first-child { min-width: 0; }
