/* ==========================================================
   HGP Ghost Chat Strip Cleaner
   Removes old background Command Chat/Telegram remnants.
   Keeps the new floating chat bubble intact.
   ========================================================== */

[data-hgp-ghost-strip="true"],
.hgp-ghost-strip-hidden{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}

/* Hide known old chat surfaces, but never the new floating bubble */
body :is(.command-chat,.command-chat-panel,.command-chat-shell,.sam-command-chat,.sam-chat-panel,.openclaw-chat,.telegram-chat,.hgp-old-chat,.hgp-command-chat-old,.chat-background,.chat-ghost-strip):not(.hgp-chat-bubble-root):not(.hgp-chat-bubble-root *){
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Clean the top area visually in case any old absolutely-positioned ghost layer remains */
.hgp-top-ghost-mask{
  position:fixed;
  left:112px;
  right:250px;
  top:38px;
  height:34px;
  z-index:9990;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(1,10,22,.94), rgba(1,10,22,.78)),
    linear-gradient(90deg, rgba(47,232,255,.08), transparent 20%, transparent 80%, rgba(47,232,255,.05));
  border-top:1px solid rgba(47,232,255,.22);
  border-bottom:1px solid rgba(47,232,255,.18);
}

/* Keep actual header above the cleaning mask */
.top,
header,
.hgp-app-top,
.hgp-topbar,
.hgp-shell-header{
  position:relative;
  z-index:9995 !important;
}

/* Keep new floating chat bubble above everything */
.hgp-chat-bubble-root{
  z-index:999999 !important;
}