/* ARES_DM_V1 — fil de messages prives (look messagerie) */
#rp87-root .rp87-thread-header{
  height:60px;padding:8px 16px;gap:11px;
  background:rgba(24,22,29,.94);backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.07);
  position:sticky;top:0;z-index:3;
}
#rp87-thread-name{font-size:16.5px;font-weight:700;letter-spacing:-.2px}
#rp87-thread-avatar .rp87-face{width:38px;height:38px}

#rp87-thread-messages{
  padding:16px 14px 10px;gap:0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(121,61,240,.10), transparent 60%),
    #17151c;
}
.rp87-day{align-self:center;margin:14px 0 10px;padding:4px 12px;border-radius:999px;
  background:rgba(255,255,255,.06);color:#cbbcd8;font-size:11.5px;font-weight:650;letter-spacing:.2px}

.rp87-bubble-row{align-items:flex-end;gap:8px;margin-top:0}
.rp87-bubble-row:not(.suite){margin-top:10px}
.rp87-bubble-row .rp87-face{width:28px;height:28px;flex-shrink:0}
.rp87-avatar-space{width:28px;flex-shrink:0;display:inline-block}

.rp87-bubble-wrap{display:flex;flex-direction:column;gap:3px;max-width:min(78%,620px);min-width:0}
.rp87-bubble-row.mine .rp87-bubble-wrap{align-items:flex-end}
.rp87-bubble{max-width:100%;border-radius:18px;padding:9px 13px;line-height:1.5;font-size:15px;
  background:#26232e;color:#f2eef7;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.rp87-bubble.theirs{border-bottom-left-radius:6px}
.rp87-bubble.mine{background:linear-gradient(180deg,#8347ff,#6f34e8);border-bottom-right-radius:6px}
.rp87-bubble-row.suite .rp87-bubble.theirs{border-top-left-radius:6px;border-bottom-left-radius:6px}
.rp87-bubble-row.suite .rp87-bubble.mine{border-top-right-radius:6px;border-bottom-right-radius:6px}

.rp87-action{color:rgba(255,255,255,.60);font-style:italic;font-family:inherit;font-size:14.5px}
.rp87-sender{color:#c9a6ff;font-weight:700;font-size:12.5px;margin-bottom:2px}
.rp87-meta{display:flex;gap:6px;align-items:center;padding:0 5px}
.rp87-heure{font-size:10.5px;color:rgba(255,255,255,.42)}
.rp87-ticks{font-size:10.5px;color:#a58bff;letter-spacing:-1.5px}

.rp87-typing{display:flex;gap:4px;align-items:center;padding:13px 15px}
.rp87-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);
  animation:rp87Dot 1.2s infinite ease-in-out}
.rp87-dot:nth-child(2){animation-delay:.15s}
.rp87-dot:nth-child(3){animation-delay:.3s}
@keyframes rp87Dot{0%,60%,100%{opacity:.32;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

.rp87-composer{padding:10px 12px 14px;background:rgba(24,22,29,.95);backdrop-filter:blur(14px);
  border-top:1px solid rgba(255,255,255,.07)}
.rp87-composer form{background:#221f29;border:1px solid rgba(255,255,255,.07);border-radius:22px;
  padding:4px 4px 4px 14px;align-items:center;gap:6px}
.rp87-composer input{padding:9px 4px;font-size:15px}
.rp87-composer button{width:36px;height:36px;font-size:19px;flex-shrink:0;
  background:linear-gradient(180deg,#8347ff,#6f34e8)}
#rp87-status{font-size:11.5px;color:#a898bd;padding:0 8px 4px;min-height:0}
#rp87-status:empty{display:none}

/* ARES_DM_V2 — narration orange lisible + en-tete fusionne */
.rp87-action{color:#f2a03c;font-style:italic;font-family:inherit;font-size:14.5px;font-weight:400}
#rp87-title{display:flex;align-items:center;gap:11px;font-size:19px}
.rp87-top-avatar{display:inline-flex;width:34px;height:34px;flex-shrink:0}
.rp87-top-avatar .rp87-face{width:34px;height:34px}
#rp87-root .rp87-thread-header{display:none}

/* ARES_PENSEE_V1 : une pensee se distingue d'une action */
.rp87-pensee{opacity:.82}
.rp87-pensee::before{content:"◌ ";font-style:normal;opacity:.7}

/* ARES_REGLES_CHAT_V1 */
.rp87-regles{margin-left:auto;background:none;border:0;color:inherit;font-size:20px;line-height:1;padding:0 8px;cursor:pointer}
.rp-regles-fond{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;z-index:9999}
.rp-regles{width:min(560px,100%);max-height:80vh;display:flex;flex-direction:column;background:#14161c;color:#eee;border-radius:16px 16px 0 0;padding:14px}
.rp-regles header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.rp-regles-x{background:none;border:0;color:inherit;font-size:22px;line-height:1;cursor:pointer}
.rp-regles-corps{overflow:auto}
.rp-regles-liste{display:flex;flex-direction:column;gap:8px;margin-bottom:12px;font-size:14px}
.rp-regles-ligne{display:flex;gap:8px;align-items:flex-start;background:rgba(255,255,255,.06);border-radius:10px;padding:8px 10px}
.rp-regles-ligne span{flex:1}
.rp-regles-sup{background:none;border:0;color:#f2a03c;font-size:18px;line-height:1;cursor:pointer}
.rp-regles-form{display:flex;gap:8px;align-items:flex-end}
.rp-regles-form textarea{flex:1;resize:vertical;min-height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:#0e1015;color:#eee;padding:8px;font:inherit}
.rp-regles-form button{border:0;border-radius:10px;background:#f2a03c;color:#14161c;font-weight:600;padding:10px 14px;cursor:pointer}
.rp-regles-note{font-size:12px;opacity:.6;margin:8px 0 0}

/* ARES_REGLAGES_CHAT_V1 */
.rp-regles-actions{display:flex;gap:8px;margin-bottom:12px}
.rp-regles-actions button{flex:1;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#eee;border-radius:10px;padding:9px;font:inherit;cursor:pointer}
.rp-regles-long{display:flex;align-items:center;gap:6px;margin-bottom:12px;font-size:13px;opacity:.85}
.rp-regles-long button{border:1px solid rgba(255,255,255,.18);background:none;color:#eee;border-radius:8px;padding:5px 10px;font:inherit;cursor:pointer}
.rp-regles-long button.actif{background:#f2a03c;color:#14161c;border-color:#f2a03c;font-weight:600}
.rp-regles-mem{display:block;font-size:13px;opacity:.85;margin-bottom:6px}
.rp-regles-mem textarea{display:block;width:100%;margin-top:4px;resize:vertical;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:#0e1015;color:#eee;padding:8px;font:inherit}
.rp-regles-mem-save{width:100%;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#eee;padding:9px;font:inherit;cursor:pointer;margin-bottom:14px}
.rp-regles-h4{margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;opacity:.6}
