/* ========================================================================== */
/* ETHNOS R148 — correction structurelle dock / panneau Tchat                 */
/* Base : R147. Correctif ciblé après audit du contexte d'empilement.          */
/* ========================================================================== */

@media (min-width:901px){
  /* La grille rejoint le sommet réel du pied légal. Elle passe juste devant
     le dock, mais reste transparente hors de ses deux panneaux. */
  html[data-ethnos-ui="discord-r111"] body .memberLayout{
    bottom:var(--footer-legal) !important;
    z-index:80 !important;
    pointer-events:none !important;
  }
  html[data-ethnos-ui="discord-r111"] body .memberLayout > .memberExplorerPanel,
  html[data-ethnos-ui="discord-r111"] body .memberLayout > .memberWorkspace{
    pointer-events:auto !important;
  }

  /* Le centre conserve la hauteur validée avant R147 et s'arrête au-dessus
     de la navigation basse. Seul le panneau Tchat descend devant le dock. */
  html[data-ethnos-ui="discord-r111"] body .memberWorkspace{
    align-self:start !important;
    height:calc(100% - var(--r110-dock-height) - 17px) !important;
    min-height:0 !important;
  }

  /* Une seule vraie barre : aucun pseudo-élément crème indépendant. */
  html body .memberApp::before,
  html body .memberApp::after,
  html body .memberWorldDock::before{
    content:none !important;
    display:none !important;
    width:0 !important;
    height:0 !important;
    background:none !important;
    border:0 !important;
    box-shadow:none !important;
  }

  /* Le dock est continu depuis la butée gauche, sous le panneau Tchat. */
  html body .memberWorldDock{
    left:0 !important;
    right:calc(var(--ethnos-context-width) - 16px) !important;
    bottom:var(--footer-legal) !important;
    width:auto !important;
    height:var(--r110-dock-height) !important;
    box-sizing:border-box !important;
    padding:5px 5px 5px calc(var(--ethnos-search-width) + 49px) !important;
    transform:none !important;
    border-radius:0 16px 16px 0 !important;
    z-index:78 !important;
  }

  /* Le Tchat couvre réellement la portion gauche du dock. */
  html[data-ethnos-ui="discord-r111"] body .memberExplorerPanel{
    position:relative !important;
    z-index:90 !important;
    align-self:stretch !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
  }
}
