/* ETHNOS R582 — propriétaire visuel de Mes photos et documents.
   Les lignes R582 utilisent des classes dédiées afin qu'aucune ancienne règle
   .memberMediaBand / .memberMediaBandActions ne puisse modifier leur géométrie. */
.memberMediaChooserR577[hidden]{display:none!important}
.memberMediaChooserR577{position:fixed;inset:0;z-index:260;display:grid;place-items:center;padding:24px}
.memberMediaChooserBackdropR577{position:absolute;inset:0;border:0;background:rgba(1,10,16,.58);backdrop-filter:blur(3px)}
.memberMediaChooserDialogR577{position:relative;width:min(720px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 40px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(7,26,57,.18);border-radius:18px;background:#eee4d3;box-shadow:0 28px 80px rgba(0,0,0,.35)}
.memberMediaChooserDialogR577>header,.memberMediaChooserDialogR577>footer{padding:16px 18px;background:#f6f0e4}
.memberMediaChooserDialogR577>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(7,26,57,.12)}
.memberMediaChooserDialogR577>header span{font-size:9px;font-weight:900;letter-spacing:.16em;color:#f26722}
.memberMediaChooserDialogR577>header h3{margin:4px 0 0;font-size:24px;color:#071a39}
.memberMediaChooserDialogR577>header>button{width:34px;height:34px;border:1px solid rgba(7,26,57,.22);border-radius:9px;background:#fffdf9;color:#071a39;font-size:22px}
.memberMediaChooserListR577{min-height:180px;overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}
.memberMediaChooserCardR577{min-width:0;display:grid;gap:8px;padding:9px;border:1px solid rgba(7,26,57,.14);border-radius:13px;background:#f6f0e4}
.memberMediaChooserCardR577 img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;background:#fff}
.memberMediaChooserCardR577 strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#071a39}
.memberMediaChooserCardR577 button{min-height:34px}
.memberMediaChooserDeleteR577{border:1px solid rgba(155,50,45,.35);border-radius:8px;background:#fff;color:#8a2b27;font-weight:800}
.memberMediaBandCopy small{display:block;margin-top:3px;color:#75838c;font-size:10px}
@media(max-width:700px){.memberMediaChooserListR577{grid-template-columns:repeat(2,minmax(0,1fr))}}

html body #memberDrawer-media .memberMediaScroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:auto!important;
}
html body #memberDrawer-media .memberMediaList{
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  max-width:100%!important;
  display:grid!important;
  gap:0!important;
  padding:0!important;
  overflow:visible!important;
}
html body #memberDrawer-media .memberMediaItemR582{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:12px clamp(10px,1vw,16px)!important;
  border:0!important;
  border-bottom:1px solid rgba(7,26,57,.12)!important;
  border-radius:0!important;
  color:#071a39!important;
  overflow:hidden!important;
}
html body #memberDrawer-media .memberMediaItemR582:nth-child(odd){background:#f6f0e4!important}
html body #memberDrawer-media .memberMediaItemR582:nth-child(even){background:#eee4d3!important}

/* PHOTOS R583 : la liste n'affiche plus le nom du fichier.
   Le nom reste disponible dans la fenêtre Aperçu via data-media-preview-title. */
html body #memberDrawer-media .memberMediaItemR582.isPhotoR582{
  display:grid!important;
  grid-template-columns:66px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
}
html body #memberDrawer-media .memberMediaItemFileR582{
  min-width:0!important;
  width:66px!important;
  display:grid!important;
  place-items:center!important;
  gap:4px!important;
}
html body #memberDrawer-media .memberMediaPhotoSizeR583{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#617886!important;
  font-size:9px!important;
  line-height:1!important;
  text-align:center!important;
}
html body #memberDrawer-media .memberMediaItemVisualR582{
  box-sizing:border-box!important;
  width:66px!important;
  height:58px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border:1px solid rgba(7,26,57,.14)!important;
  border-radius:10px!important;
  background:#fffdf9!important;
}
html body #memberDrawer-media .memberMediaItemVisualR582 img{
  width:100%!important;height:100%!important;object-fit:cover!important;border-radius:9px!important;
}
html body #memberDrawer-media .memberMediaItemIconR582{font-size:28px!important;line-height:1!important}

/* DOCUMENTS R583 : nom lisible sur toute la largeur, puis logo + boutons dessous. */
html body #memberDrawer-media .memberMediaItemR582.isDocumentR582{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:9px!important;
}
html body #memberDrawer-media .memberMediaDocumentNameR583{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  overflow:visible!important;
}
html body #memberDrawer-media .memberMediaDocumentNameR583 strong{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  text-align:left!important;
  color:#071a39!important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif)!important;
  font-size:clamp(12px,.78vw,14px)!important;
  font-weight:800!important;
  line-height:1.28!important;
}
html body #memberDrawer-media .memberMediaDocumentNameR583 small{
  display:block!important;
  width:100%!important;
  margin-top:3px!important;
  color:#617886!important;
  font-size:10px!important;
  line-height:1.2!important;
  text-align:left!important;
}
html body #memberDrawer-media .memberMediaDocumentBodyR583{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:66px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
}

html body #memberDrawer-media .memberMediaItemActionsR582{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  align-self:center!important;
}
html body #memberDrawer-media .memberMediaItemPrimaryR582{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
html body #memberDrawer-media .memberMediaItemPrimaryR582>button,
html body #memberDrawer-media .memberMediaItemUseR582{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:36px!important;
  margin:0!important;
  padding:0 7px!important;
  border-radius:9px!important;
  font-family:var(--ethnos-official-title,Inter,"Segoe UI",Arial,sans-serif)!important;
  font-size:clamp(9px,.64vw,11px)!important;
  font-weight:800!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  cursor:pointer!important;
}
html body #memberDrawer-media .memberMediaItemPreviewR582{border:1px solid rgba(7,26,57,.22)!important;background:#fffdf9!important;color:#071a39!important}
html body #memberDrawer-media .memberMediaItemDeleteR582{border:1px solid #f26722!important;background:#ff9865!important;color:#071a39!important}
html body #memberDrawer-media .memberMediaItemUseR582{display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #f26722!important;background:#ff9865!important;color:#071a39!important}
html body #memberDrawer-media .memberMediaItemPrimaryR582>button:not(:disabled):hover,
html body #memberDrawer-media .memberMediaItemUseR582:not(:disabled):hover{transform:translateY(-1px)!important;filter:brightness(1.03)!important}

@media(max-width:1536px){
  html body #memberDrawer-media .memberMediaItemR582{padding:10px 8px!important}
  html body #memberDrawer-media .memberMediaItemR582.isPhotoR582{grid-template-columns:58px minmax(0,1fr)!important;gap:8px!important}
  html body #memberDrawer-media .memberMediaItemFileR582{width:58px!important}
  html body #memberDrawer-media .memberMediaItemVisualR582{width:58px!important;height:52px!important}
  html body #memberDrawer-media .memberMediaDocumentBodyR583{grid-template-columns:58px minmax(0,1fr)!important;gap:8px!important}
}
@media(max-width:700px){
  html body #memberDrawer-media .memberMediaItemActionsR582{min-width:0!important}
}
