/* ARES SOCIAL V11.1 — MESSAGERIE RESPONSIVE */

/* Un seul titre : celui de la liste des conversations */
.app.mode-rp.rp87-open #rp87-root:has(.rp87-inbox)
.rp87-top {
  display: none !important;
}

/* La messagerie utilise toute la surface disponible */
.app.mode-rp.rp87-open #rp87-root:has(.rp87-inbox)
#rp87-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.app.mode-rp.rp87-open #rp87-root .rp87-inbox {
  display: grid !important;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.app.mode-rp.rp87-open #rp87-root .rp87-inbox-left {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 24px 16px;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.09);
  background: #111016;
}

.app.mode-rp.rp87-open #rp87-root .rp87-inbox-left h2 {
  font-size: 25px;
  margin: 0 0 20px;
}

.app.mode-rp.rp87-open #rp87-root .rp87-inbox-right {
  display: grid !important;
  min-width: 0;
  min-height: 0;
  place-items: center;
  background: #0c0b10;
}

.app.mode-rp.rp87-open #rp87-root .rp87-welcome {
  max-width: 340px;
  padding: 24px;
  text-align: center;
}

.app.mode-rp.rp87-open #rp87-root .rp87-row {
  border-radius: 12px;
  padding: 13px 10px;
}

.app.mode-rp.rp87-open #rp87-root .rp87-row:hover {
  background: rgba(162,118,255,.10);
}

/* Sur téléphone, la liste prend toute la largeur */
@media (max-width: 700px) {
  .app.mode-rp.rp87-open #rp87-root .rp87-inbox {
    display: block !important;
    overflow-y: auto;
  }

  .app.mode-rp.rp87-open #rp87-root .rp87-inbox-left {
    height: auto;
    min-height: 100%;
    padding: 18px 12px 95px;
    border-right: 0;
  }

  .app.mode-rp.rp87-open #rp87-root .rp87-inbox-right {
    display: none !important;
  }

  .app.mode-rp.rp87-open #rp87-root .rp87-inbox-left h2 {
    font-size: 24px;
  }
}
