/* R637 — Profil : drapeaux contraints dans toutes les palettes + catalogue paresseux mis en cache. */
/* R576 — moteur visuel Profil dédié. Aucun sélecteur historique .memberProfileDrawer. */
html body .ethnosProfileDrawerR576{
  --r576-profile-cream:#f6f0e4;
  --r576-profile-cream-2:#eee4d3;
  --r576-profile-ink:#071a39;
  --r576-profile-copy:#607481;
  --r576-profile-line:rgba(7,26,57,.13);
  position:relative !important;
  z-index:2 !important;
  box-sizing:border-box !important;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(7,26,57,.24) transparent;
  border-radius:0 0 0 18px !important;
  background:var(--r576-profile-cream-2) !important;
  color:var(--r576-profile-ink) !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
}
html body .ethnosProfileDrawerR576 *{box-sizing:border-box;}
html body .ethnosProfileR576{
  width:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  background:var(--r576-profile-cream-2);
}
html body .ethnosProfileR576Notice{
  width:100% !important;
  margin:0 !important;
  padding:12px 16px !important;
  border:0 !important;
  border-bottom:1px solid var(--r576-profile-line) !important;
  border-radius:0 !important;
  background:var(--r576-profile-cream) !important;
  color:var(--r576-profile-ink) !important;
}

/* Description : 100 caractères gérés par profile-r576.js, puis extension locale scrollable. */
html body .ethnosProfileR576Description{
  width:100% !important;
  flex:0 0 auto;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:end !important;
  gap:6px !important;
  margin:0 !important;
  padding:clamp(12px,1.2vw,18px) clamp(14px,1.35vw,20px) !important;
  border:0 !important;
  border-bottom:1px solid var(--r576-profile-line) !important;
  background:var(--r576-profile-cream) !important;
  overflow:visible !important;
}
html body .ethnosProfileR576Description.isExpanded{
  align-items:start !important;
  max-height:clamp(190px,31vh,360px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
}
html body .ethnosProfileR576DescriptionText{
  display:block !important;
  min-width:0 !important;
  min-height:0 !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:rgba(7,26,57,.78) !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:clamp(12.5px,.82vw,15px) !important;
  font-weight:500 !important;
  line-height:1.48 !important;
  white-space:pre-wrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
  cursor:default !important;
}
html body .ethnosProfileR576DescriptionMore{
  appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:30px !important;
  height:26px !important;
  margin:0 0 1px !important;
  padding:0 7px 4px !important;
  border:1px solid rgba(7,26,57,.18) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.66) !important;
  color:var(--r576-profile-ink) !important;
  font:800 15px/1 Inter,"Segoe UI",Arial,sans-serif !important;
  letter-spacing:1px !important;
  cursor:pointer !important;
}
html body .ethnosProfileR576DescriptionMore[hidden]{display:none !important;}
html body .ethnosProfileR576DescriptionMore:hover,
html body .ethnosProfileR576DescriptionMore:focus-visible{
  border-color:rgba(216,121,43,.60) !important;
  outline:none !important;
}

/* Résidence / langues : une information par rangée, libellé puis valeur sur la ligne suivante. */
html body .ethnosProfileR576Details{
  width:100% !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:var(--r576-profile-cream-2) !important;
}
html body .ethnosProfileR576Fact{
  display:block !important;
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:clamp(11px,1.05vw,16px) clamp(14px,1.35vw,20px) !important;
  border:0 !important;
  border-bottom:1px solid var(--r576-profile-line) !important;
  background:var(--r576-profile-cream-2) !important;
}
html body .ethnosProfileR576Fact dt{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  color:#6f8893 !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:clamp(10px,.66vw,12px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:.075em !important;
  text-transform:uppercase !important;
  white-space:normal !important;
}
html body .ethnosProfileR576Fact dd{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:7px !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:20px !important;
  margin:6px 0 0 !important;
  padding:0 !important;
  color:var(--r576-profile-ink) !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:clamp(13px,.86vw,16px) !important;
  font-weight:650 !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  overflow-wrap:anywhere !important;
}
html body .ethnosProfileR576Fact .memberFlag{
  width:clamp(22px,1.45vw,27px) !important;
  height:clamp(14px,.96vw,18px) !important;
  flex:0 0 auto !important;
  margin-right:6px !important;
  border-radius:2px !important;
  object-fit:cover !important;
  vertical-align:middle !important;
}
html body .ethnosProfileR576ResidenceCountry,
html body .ethnosProfileR576LanguageItem{
  display:inline-flex !important;
  align-items:center !important;
  min-width:0 !important;
  white-space:normal !important;
}
html body .ethnosProfileR576LanguageList{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:7px 12px !important;
  min-width:0 !important;
  width:100% !important;
}

/* Zones déjà validées : même contenu / mêmes contrats, seulement pleines largeurs et nouvelle paire crème. */
html body .ethnosProfileR576Interests.memberInterests,
html body .ethnosProfileR576Stats.memberStats,
html body .ethnosProfileR576Trophies.memberTrophies{
  width:100% !important;
  box-sizing:border-box !important;
  margin:0 !important;
  border:0 !important;
  border-bottom:1px solid var(--r576-profile-line) !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
html body .ethnosProfileR576Interests.memberInterests{
  padding:clamp(12px,1.08vw,16px) clamp(14px,1.35vw,20px) !important;
  background:var(--r576-profile-cream) !important;
}
html body .ethnosProfileR576Interests h3{
  margin:0 0 8px !important;
  color:var(--r576-profile-ink) !important;
  font-size:clamp(12px,.78vw,15px) !important;
}
html body .ethnosProfileR576Interests [data-interests]{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:5px !important;
}
html body .ethnosProfileR576Interests [data-interests]>span{
  max-width:100% !important;
  overflow-wrap:anywhere !important;
}
html body .ethnosProfileR576Stats.memberStats{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:0 !important;
  padding:4px 6px !important;
  background:var(--r576-profile-cream-2) !important;
}
html body .ethnosProfileR576Stats.memberStats>div{
  min-width:0 !important;
  padding:7px 2px !important;
  text-align:center !important;
}
html body .ethnosProfileR576Stats.memberStats b{
  display:block !important;
  color:var(--r576-profile-ink) !important;
  font-size:clamp(13px,.88vw,17px) !important;
  line-height:1 !important;
}
html body .ethnosProfileR576Stats.memberStats span{
  display:block !important;
  margin-top:4px !important;
  color:rgba(7,26,57,.68) !important;
  font-size:clamp(7px,.5vw,10px) !important;
  line-height:1.1 !important;
  white-space:normal !important;
}
html body .ethnosProfileR576Trophies.memberTrophies{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:8px !important;
  padding:clamp(10px,1vw,18px) clamp(14px,1.35vw,20px) clamp(12px,1.1vw,20px) !important;
  background:var(--r576-profile-cream) !important;
  overflow:visible !important;
}
html body .ethnosProfileR576Trophies .memberTrophyIntro{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  width:100% !important;
  text-align:center !important;
}
html body .ethnosProfileR576Trophies .memberTrophyIntro>img{
  width:clamp(78px,6.4vw,132px) !important;
  height:clamp(78px,6.4vw,132px) !important;
  margin:0 auto !important;
  object-fit:contain !important;
  filter:drop-shadow(0 8px 10px rgba(7,26,57,.11)) !important;
}
html body .ethnosProfileR576Trophies .memberTrophyCopy{width:100% !important;text-align:center !important;}
html body .ethnosProfileR576Trophies .memberTrophyCopy span{
  display:block !important;
  color:var(--r576-profile-ink) !important;
  font-size:clamp(12px,1.05vw,20px) !important;
  font-weight:700 !important;
  line-height:1.1 !important;
}
html body .ethnosProfileR576Trophies .memberTrophyCopy p{
  margin:4px 0 0 !important;
  color:rgba(7,26,57,.72) !important;
  font-size:clamp(8px,.72vw,14px) !important;
  font-weight:500 !important;
  line-height:1.2 !important;
}

/* Actions : copie des dimensions et du standard visuel R208, adaptées au nouveau namespace. */
html body .ethnosProfileDrawerR576 .memberProfileActions{
  --r208-profile-action-width:calc(57.5% - 5.75px);
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  margin:12px 0 0 !important;
  padding:0 14px !important;
}
html[data-ethnos-ui] body .ethnosProfileDrawerR576 button.memberEdit.ethnosActionOrange,
html[data-ethnos-ui] body .ethnosProfileDrawerR576 button.r487OfficialSpaceButton.memberEdit.ethnosActionOrange{
  width:var(--r208-profile-action-width) !important;
  max-width:100% !important;
  min-width:0 !important;
  /* Le rendu officiel (hauteur, gradient, relief, typo, états) reste fourni par R216. */
}
html[data-ethnos-ui] body .ethnosProfileDrawerR576 button.memberLogout{
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:var(--r208-profile-action-width) !important;
  max-width:100% !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 12px !important;
  border:1px solid rgba(7,26,57,.34) !important;
  border-radius:9px !important;
  background:#fffdf9 !important;
  color:var(--r576-profile-ink) !important;
  font-family:var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,13px) !important;
  font-weight:500 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
html[data-ethnos-ui] body .ethnosProfileDrawerR576 button.memberProfileBottomClose{
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:center !important;
  min-width:116px !important;
  min-height:34px !important;
  margin:10px auto 14px !important;
  padding:0 22px !important;
  border:1px solid rgba(7,26,57,.34) !important;
  border-radius:10px !important;
  background:#fffdf9 !important;
  color:var(--r576-profile-ink) !important;
  font-family:var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,13px) !important;
  font-weight:500 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

/* Modifier mon profil : la géométrie validée reste pilotée par les règles existantes ; seule la palette est normalisée. */
html body .ethnosProfileEditorR576 .memberProfileEditorPanel{
  background:var(--r576-profile-cream-2,#eee4d3) !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorHeader,
html body .ethnosProfileEditorR576 .memberProfileEditorFooter{
  background:#f6f0e4 !important;
  background-image:none !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorScroll{
  background:#eee4d3 !important;
  background-image:none !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard{
  background:#f6f0e4 !important;
  background-image:none !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard:nth-child(even){
  background:#eee4d3 !important;
}

@media (min-width:1650px) and (max-width:1750px) and (min-height:980px) and (max-height:1120px){
  html body .ethnosProfileDrawerR576 .memberProfileActions{--r208-profile-action-width:calc(59% - 4.72px);}
}
@media (max-height:820px) and (min-width:901px){
  html body .ethnosProfileR576Description{padding-top:10px !important;padding-bottom:10px !important;}
  html body .ethnosProfileR576Fact{padding-top:8px !important;padding-bottom:8px !important;}
  html body .ethnosProfileR576Interests.memberInterests{padding-top:9px !important;padding-bottom:9px !important;}
  html body .ethnosProfileR576Trophies.memberTrophies{padding-top:7px !important;padding-bottom:8px !important;}
  html body .ethnosProfileR576Trophies .memberTrophyIntro>img{width:72px !important;height:72px !important;}
  html[data-ethnos-ui] body .ethnosProfileDrawerR576 button.memberLogout{height:33px !important;min-height:33px !important;}
}
@media (min-width:1200px) and (max-width:1299px) and (max-height:760px){
  html body .ethnosProfileDrawerR576 .memberProfileActions{
    --r208-profile-action-width:calc(61% - 3.05px);
    gap:5px !important;
    margin-top:5px !important;
  }
  html body .ethnosProfileR576Stats.memberStats span{font-size:6.5px !important;}
}

/* ========================================================================== */
/* R577 — éditeur Profil compact + sélecteurs paresseux.                     */
/* Référence géométrique des champs : Tchat actif (R176/R183).                */
/* Le mouvement d'ouverture/fermeture reste celui de l'éditeur existant.      */
/* ========================================================================== */
html body .ethnosProfileEditorR576 .memberProfileEditorPanel{
  left:auto !important;
  right:var(--ethnos-context-width,430px) !important;
  width:clamp(500px,32vw,640px) !important;
  max-width:calc(100vw - var(--ethnos-context-width,430px) - 12px) !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorHeader{
  padding:16px 20px 14px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorHeader h2{
  font-size:clamp(24px,1.8vw,34px) !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorHeader p{
  max-width:520px !important;
  margin-top:7px !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorScroll{
  padding:14px 16px 22px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard{
  margin-bottom:10px !important;
  padding:14px !important;
  border-radius:13px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard>header{
  grid-template-columns:31px minmax(0,1fr) !important;
  gap:9px !important;
  margin-bottom:12px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard>header>span{
  width:29px !important;
  height:29px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard h3{
  font-size:clamp(17px,1.12vw,22px) !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard header p{
  margin-top:2px !important;
  font-size:10px !important;
  line-height:1.3 !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditGrid{
  grid-template-columns:1fr !important;
  gap:10px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditGridIdentity{
  grid-template-columns:126px minmax(0,1fr) !important;
  gap:14px !important;
  align-items:start !important;
}
html body .ethnosProfileEditorR576 .memberProfileIdentityFields{
  gap:10px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard label{
  gap:5px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard input:not([type="checkbox"]),
html body .ethnosProfileEditorR576 .memberProfileEditCard select{
  width:min(100%,310px) !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 10px !important;
  border-radius:8px !important;
  font-size:11px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditCard textarea{
  width:100% !important;
  min-height:96px !important;
  padding:9px 10px !important;
  border-radius:8px !important;
  font-size:11px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEmailField input{
  width:min(100%,360px) !important;
}
html body .ethnosProfileEditorR576 .memberProfilePhotoField{
  display:grid !important;
  grid-template-columns:1fr !important;
  align-content:start !important;
  gap:7px !important;
  min-width:0 !important;
}
html body .ethnosProfileEditorR576 .memberProfilePhotoPreview{
  width:110px !important;
  border-radius:20px !important;
}
html body .ethnosProfileEditorR576 .memberProfilePhotoActionsR577{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:6px !important;
  width:118px !important;
}
/* Les actions marquées ethnosOfficialAction gardent strictement la peau officielle R216,
   elle-même issue du bouton Fermer Tchat. Ici, seule leur largeur contextuelle est fixée. */
html[data-ethnos-ui] body .ethnosProfileEditorR576 .memberProfilePhotoActionsR577 .ethnosOfficialAction,
html[data-ethnos-ui] body .ethnosProfileEditorR576 .memberProfileUsernameEmojiToggle.ethnosOfficialAction,
html[data-ethnos-ui] body .ethnosProfileEditorR576 .memberProfilePresentationEmojiToggle.ethnosOfficialAction,
html[data-ethnos-ui] body .ethnosProfileEditorR576 [data-add-edit-interest].ethnosOfficialAction{
  width:100% !important;
  min-width:0 !important;
}
html body .ethnosProfileEditorR576 .memberProfileVisualClearR577{
  width:100% !important;
  min-height:30px !important;
  border:1px solid rgba(138,43,39,.30) !important;
  border-radius:8px !important;
  background:#fffdf9 !important;
  color:#8a2b27 !important;
  font:800 9.5px/1 var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  cursor:pointer !important;
}
html body .ethnosProfileEditorR576 .memberProfileUsernameEmojiPicker,
html body .ethnosProfileEditorR576 .memberProfilePresentationEmojiPicker{
  width:min(100%,220px) !important;
  margin-top:4px !important;
}
html body .ethnosProfileEditorR576 .memberProfileUsernameEmojiToggle::after,
html body .ethnosProfileEditorR576 .memberProfilePresentationEmojiToggle::after{
  content:none !important;
}
html body .ethnosProfileEditorR576 .memberProfileEmojiBar{
  display:none !important;
}

/* Pays : le sélecteur actif R109/R206 fournit les vrais drapeaux ET sa peau officielle.
   R577 ne modifie que sa largeur d'intégration dans l'éditeur. */
html body .ethnosProfileEditorR576 .realFlagSelect{
  width:min(100%,310px) !important;
}

/* Centres d'intérêt : même corpus que l'inscription, lecture en colonne. */
html body .ethnosProfileEditorR576 .memberProfileInterestEditor{
  gap:9px !important;
}
html body .ethnosProfileEditorR576 .memberProfileInterestGrid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:5px !important;
  width:min(100%,330px) !important;
  max-height:260px !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  padding:6px !important;
  border:1px solid rgba(7,26,57,.12) !important;
  border-radius:9px !important;
  background:rgba(255,253,249,.48) !important;
  scrollbar-width:thin;
}
html body .ethnosProfileEditorR576 .memberProfileInterestGrid button{
  width:100% !important;
  min-height:30px !important;
  padding:0 10px !important;
  border-radius:8px !important;
  text-align:left !important;
  font-size:10px !important;
}
html body .ethnosProfileEditorR576 .memberProfileSelectedInterests{
  width:min(100%,330px) !important;
  gap:5px !important;
}
html body .ethnosProfileEditorR576 .memberProfileSelectedInterests button{
  min-height:29px !important;
  padding:0 9px !important;
  font-size:9.5px !important;
}
html body .ethnosProfileEditorR576 .memberProfileCustomInterest{
  grid-template-columns:minmax(0,230px) 88px !important;
  gap:7px !important;
  width:min(100%,325px) !important;
}
html body .ethnosProfileEditorR576 .memberProfileCustomInterest input{
  width:100% !important;
  height:31px !important;
  min-height:31px !important;
}

/* Fenêtre émojis : création uniquement au clic, donc aucun coût à l'ouverture du Profil. */
.memberProfileEmojiDialogR577[hidden]{display:none !important}
.memberProfileEmojiDialogR577{
  position:fixed;
  inset:0;
  z-index:285;
  display:grid;
  place-items:center;
  padding:20px;
}
.memberProfileEmojiDialogBackdropR577{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(1,10,16,.58);
  backdrop-filter:blur(3px);
}
.memberProfileEmojiDialogPanelR577{
  position:relative;
  width:min(620px,calc(100vw - 32px));
  max-height:min(720px,calc(100vh - 38px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(7,26,57,.18);
  border-radius:17px;
  background:#eee4d3;
  box-shadow:0 28px 80px rgba(0,0,0,.35);
}
.memberProfileEmojiDialogPanelR577>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:15px 17px;
  border-bottom:1px solid rgba(7,26,57,.12);
  background:#f6f0e4;
}
.memberProfileEmojiDialogPanelR577>header span{
  color:#f26722;
  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}
.memberProfileEmojiDialogPanelR577>header h3{
  margin:4px 0 0;
  color:#071a39;
  font-size:22px;
}
.memberProfileEmojiDialogPanelR577>header>button{
  width:34px;
  height:34px;
  border:1px solid rgba(7,26,57,.22);
  border-radius:9px;
  background:#fffdf9;
  color:#071a39;
  font-size:22px;
  cursor:pointer;
}
.memberProfileEmojiDialogScrollR577{
  min-height:170px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:13px;
  scrollbar-width:thin;
}
.memberProfileEmojiDialogGroupR577+ .memberProfileEmojiDialogGroupR577{
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid rgba(7,26,57,.10);
}
.memberProfileEmojiDialogGroupR577 h4{
  margin:0 0 7px;
  color:#355367;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.memberProfileEmojiDialogChoicesR577,
.memberProfileAvatarChoicesR577{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(36px,1fr));
  gap:6px;
}
.memberProfileEmojiDialogChoicesR577 button,
.memberProfileAvatarChoicesR577 button{
  width:100%;
  min-width:36px;
  height:36px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(7,26,57,.14);
  border-radius:8px;
  background:#fffdf9;
  font-size:19px;
  cursor:pointer;
}
.memberProfileEmojiDialogChoicesR577 button:hover,
.memberProfileEmojiDialogChoicesR577 button:focus-visible,
.memberProfileAvatarChoicesR577 button:hover,
.memberProfileAvatarChoicesR577 button:focus-visible{
  border-color:#f26722;
  outline:none;
}
.memberProfileEmojiDialogChoicesR577 img,
.memberProfileAvatarChoicesR577 img{
  width:25px;
  height:17px;
  object-fit:cover;
  border-radius:2px;
  box-shadow:0 0 0 1px rgba(7,26,57,.10);
}
body.hasProfileEmojiDialogR577{overflow:hidden}

html body .ethnosProfileEditorR576 .memberProfileEditorFooter{
  padding:10px 16px !important;
}
html body .ethnosProfileEditorR576 .memberProfileEditorFooter button{
  min-height:36px !important;
  font-size:11px !important;
}

@media (max-width:1366px) and (min-width:901px){
  html body .ethnosProfileEditorR576 .memberProfileEditorPanel{
    width:500px !important;
  }
  html body .ethnosProfileEditorR576 .memberProfileEditCard input:not([type="checkbox"]),
  html body .ethnosProfileEditorR576 .memberProfileEditCard select,
  html body .ethnosProfileEditorR576 .realFlagSelect{
    width:min(100%,285px) !important;
  }
}
@media(max-width:900px){
  html body .ethnosProfileEditorR576 .memberProfileEditorPanel{
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-width:none !important;
  }
  html body .ethnosProfileEditorR576 .memberProfileEditGridIdentity{
    grid-template-columns:1fr !important;
  }
}

/* R577 — menus langue : caractéristiques reprises depuis le contrôle Pays Tchat R109/R206 actif.
   Même géométrie, bord, fond, typo, chevron et focus ; seule la largeur reste locale au Profil. */
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577{
  position:relative !important;
  width:min(100%,310px) !important;
}
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577 select{
  appearance:none !important;
  -webkit-appearance:none !important;
  width:100% !important;
  height:clamp(35px,2.45vw,42px) !important;
  min-height:clamp(35px,2.45vw,42px) !important;
  padding:0 46px 0 14px !important;
  border:1px solid rgba(214,231,233,.34) !important;
  border-radius:10px !important;
  background:#061e2c !important;
  background-image:none !important;
  color:#f5f0e8 !important;
  font-family:var(--font-interface,Manrope,"Segoe UI",Arial,sans-serif) !important;
  font-size:clamp(10px,.72vw,12px) !important;
  font-weight:500 !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
  text-shadow:none !important;
  box-shadow:none !important;
  filter:none !important;
  transform:none !important;
  cursor:pointer !important;
}
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577::after{
  content:'⌄';
  position:absolute;
  right:15px;
  top:50%;
  transform:translateY(-50%);
  color:#c9d6d8;
  font-family:Arial,sans-serif;
  font-size:17px;
  line-height:1;
  pointer-events:none;
}
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577:focus-within select{
  background:#061e2c !important;
  border-color:rgba(49,209,207,.62) !important;
  box-shadow:0 0 0 3px rgba(49,209,207,.07) !important;
  outline:none !important;
}
@media (max-width:1366px) and (min-width:901px){
  html body .ethnosProfileEditorR576 .memberProfileSelectControlR577{width:min(100%,285px) !important;}
}
@media(max-width:1450px) and (max-height:820px) and (min-width:901px){
  html body .ethnosProfileEditorR576 .memberProfileSelectControlR577 select{
    height:29px !important;
    min-height:29px !important;
    font-size:9px !important;
  }
}

/* ========================================================================== */
/* R578 — finitions ciblées Profil.                                            */
/* 1. Résidence/langues centrées sur l'axe horizontal.                         */
/* 2. Zone de sécurité de scroll <= 1536×864 afin que Maps ne masque jamais    */
/*    les actions basses du Profil ; l'éditeur conserve son scroll interne.     */
/* 3. Pseudonyme du bouton Profil ramené à une graisse non-bold.                */
/* ========================================================================== */
html body .ethnosProfileR576Fact dt{
  text-align:center !important;
}
html body .ethnosProfileR576Fact dd{
  justify-content:center !important;
  text-align:center !important;
}
html body .ethnosProfileR576ResidenceCountry,
html body .ethnosProfileR576LanguageItem{
  justify-content:center !important;
}
html body .ethnosProfileR576LanguageList{
  justify-content:center !important;
}
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentityText > h2[data-member-name],
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentity h2[data-member-name]{
  font-weight:500 !important;
}

@media (max-width:1536px) and (max-height:864px){
  html body .ethnosProfileDrawerR576{
    overflow-y:auto !important;
  }
  html body .ethnosProfileR576{
    min-height:calc(100% + 64px) !important;
    padding-bottom:64px !important;
  }
  html body .ethnosProfileEditorR576 .memberProfileEditorScroll{
    min-height:0 !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
  }
}


/* R580 — Modifier mon profil : flèche/champ = composant officiel R567, pas le chevron texte local R577. */
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577 select{
  -webkit-appearance:none!important;appearance:none!important;padding-right:42px!important;background-color:#092535!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23f7f2e9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(180deg,#0b3143 0%,#082536 100%)!important;
  background-repeat:no-repeat,no-repeat!important;background-position:right 14px center,right center!important;background-size:12px 8px,40px 100%!important;
}
html body .ethnosProfileEditorR576 .memberProfileSelectControlR577::after{content:none!important;display:none!important}
html body .ethnosProfileEditorR576 .realFlagSelectButton{
  background-color:#061e2c!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23f7f2e9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(180deg,#0b3143 0%,#082536 100%)!important;
  background-repeat:no-repeat,no-repeat!important;background-position:right 14px center,right center!important;background-size:12px 8px,40px 100%!important;
}
html body .ethnosProfileEditorR576 .realFlagSelectButton::after{content:none!important;display:none!important}


/* ========================================================================== */
/* ETHNOS R685 — PROFIL : pseudonyme compact centré dans sa zone identité.    */
/* Le blason reste sur la même ligne et fait partie du groupe centré.         */
/* ========================================================================== */
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentityText > h2[data-member-name],
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentity h2[data-member-name]{
  justify-content:center !important;
  justify-items:center !important;
  text-align:center !important;
}
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentityText > h2[data-member-name] > .r484OfficialBadge,
html.ethnosConnectedUnified body .memberRightRail > .memberProfileCompact:not(.isExpanded) .memberIdentityText > h2[data-member-name] > .ethnosMemberShieldR594{
  flex:0 0 auto !important;
}

/* R685_CANONICAL_PROFILE_PSEUDO_CENTER */
