/* ARES RP V9.1 — tactile, accessibilite et finition mobile.
   S'applique uniquement aux surfaces RP V8/V9 existantes. */
.app.mode-rp:not(.rp84-legacy) { --rp91-ease:cubic-bezier(.22,1,.36,1); }
.app.mode-rp #ares-rp-v84-nav button,
#rp87-root button,
#rp87-root a,
.rp891-dialog button { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.app.mode-rp #ares-rp-v84-nav button,
#rp87-root .rp87-tags button,
#rp87-root .rp88-tabs button,
#rp87-root .rp87-button,
.rp891-dialog button { transition:background-color .22s var(--rp91-ease), border-color .22s var(--rp91-ease), box-shadow .22s var(--rp91-ease), transform .22s var(--rp91-ease); }
#rp87-root .rp87-card-v7 { overflow:hidden; }
#rp87-root .rp87-card-v7:focus-visible,
#rp87-root .rp87-row:focus-visible,
#rp87-root .rp89-chat-row:focus-visible { outline:3px solid #b8a0ff; outline-offset:3px; }
#rp87-root .rp87-thread-header,
#rp87-root .rp87-composer { isolation:isolate; }
#rp87-root .rp87-thread-header { min-height:62px; }
#rp87-root .rp87-composer input,
#rp87-root .rp87-composer textarea,
#rp87-root #rp87-search,
#rp87-root .rp89-filters select { font-family:inherit; }
#rp87-root .rp87-composer input:focus-visible,
#rp87-root .rp87-composer textarea:focus-visible { outline:none; }
#rp87-root .rp87-composer form:focus-within { border-color:rgba(172,139,255,.8);box-shadow:0 0 0 3px rgba(157,109,244,.18),inset 0 1px rgba(255,255,255,.05); }
#rp87-root .rp88-tabs button:focus-visible,
#rp87-root .rp87-tags button:focus-visible,
.rp891-dialog button:focus-visible { outline:3px solid #c5b0ff;outline-offset:3px; }
#rp87-root .rp88-cover { background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important; }
.rp891-backdrop { overscroll-behavior:contain; }
.rp891-dialog { max-height:min(85dvh,720px);overflow-y:auto;overscroll-behavior:contain; }
.rp891-actions button { font-weight:650; }
@media (hover:hover) and (pointer:fine) {
  #rp87-root .rp87-card-v7:hover { transform:translateY(-3px); }
}
@media (hover:none) {
  #rp87-root .rp87-card-v7:hover { transform:none; }
  #rp87-root .rp87-card-v7:active { transform:scale(.992); }
  #rp87-root .rp87-row:active,
  #rp87-root .rp89-chat-row:active { background:rgba(155,118,245,.12); }
}
@media (max-width:860px) {
  .app.mode-rp #ares-rp-v84-nav { padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right)); }
  .app.mode-rp .rp84-links button { min-height:48px; }
  #rp87-root .rp87-top { min-height:57px; }
  #rp87-root .rp87-composer { padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right)); }
}
@media (max-width:620px) {
  #rp87-root .rp87-explore { padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right)); }
  #rp87-root .rp87-tags { scroll-margin:12px; }
  #rp87-root #rp87-search,
  #rp87-root #rp87-filter,
  #rp87-root .rp89-filters select,
  #rp87-root .rp87-composer input,
  #rp87-root .rp87-composer textarea { font-size:16px!important; } /* Prevent iOS auto-zoom */
  #rp87-root .rp87-thread-header { min-height:56px; }
  #rp87-root .rp87-bubble { max-width:min(86%,520px);overflow-wrap:anywhere; }
  #rp87-root .rp87-composer form { min-height:48px; }
  #rp87-root .rp87-composer button { min-width:44px;min-height:44px; }
  #rp87-root .rp88-cover { border-radius:18px; }
  .rp891-dialog { max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:0 12px; }
  .rp891-actions { gap:10px; }
  .rp891-actions button { min-height:50px; }
}
@media (prefers-reduced-motion:reduce) {
  .app.mode-rp #ares-rp-v84-nav button,
  #rp87-root button,
  #rp87-root .rp87-card-v7,
  #rp87-root .rp87-row,
  #rp87-root .rp89-chat-row,
  .rp891-dialog button { transition:none!important;animation:none!important;transform:none!important; }
}
