/* Foxdeo v85 Messenger chat system - chat-only stylesheet. */
#fx-v85-chat-root.fx-v85-chat-root,
.fx-v85-im-root{
  position:fixed;
  inset:0;
  z-index:2147482000;
  pointer-events:none;
  font-family:Inter,Arial,Helvetica,sans-serif;
}
#fx-v85-chat-root.fx-v85-chat-root > *,
.fx-v85-im-root > *,
.fx-v85-popup-host > *{
  pointer-events:auto;
}
.fx-v85-im-drawer,
#people-list.fx-v85-chat-drawer{
  position:fixed;
  top:82px;
  right:22px;
  left:auto;
  bottom:auto;
  width:392px;
  max-width:calc(100vw - 44px);
  height:min(680px,calc(100dvh - 106px));
  display:none;
  flex-direction:column;
  overflow:hidden;
  background:rgba(255,255,255,.98);
  color:#111827;
  border:1px solid rgba(15,23,42,.10);
  border-radius:24px;
  box-shadow:0 24px 72px rgba(15,23,42,.24),0 0 0 1px rgba(255,255,255,.72) inset;
}
.fx-v85-im-drawer.is-open,
#people-list.fx-v85-chat-drawer.fx-v85-im-open{
  display:flex;
}
.fx-v85-im-head,
.fx-v85-chat-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  background:linear-gradient(145deg,#fff,#f6f8ff);
  border-bottom:1px solid rgba(15,23,42,.07);
}
.fx-v85-im-title strong,
.fx-v85-chat-title-stack strong{
  display:block;
  font-size:23px;
  line-height:1.05;
  letter-spacing:-.04em;
  font-weight:950;
  color:#0f172a;
}
.fx-v85-im-title span,
.fx-v85-chat-title-stack span{
  display:block;
  margin-top:4px;
  font-size:12px;
  line-height:1.2;
  color:#64748b;
  font-weight:800;
}
.fx-v85-im-actions,
.fx-v85-chat-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.fx-v85-im-action,
.fx-v85-chat-mini-action,
.fx-v85-chat-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#eaf2ff;
  color:#0866ff;
  font-size:16px;
  font-weight:950;
  transition:transform .15s ease,background .15s ease,box-shadow .15s ease;
}
.fx-v85-im-action:hover,
.fx-v85-chat-mini-action:hover,
.fx-v85-chat-close:hover{
  transform:translateY(-1px);
  background:#dfeaff;
  box-shadow:0 10px 20px rgba(8,102,255,.14);
}
.fx-v85-im-tabs,
.fx-v85-chat-tabs{
  display:flex;
  gap:8px;
  padding:12px 14px 0;
  overflow:auto;
  background:#fff;
}
.fx-v85-im-tabs button,
.fx-v85-chat-tabs button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  padding:8px 14px;
  cursor:pointer;
  background:#f0f2f5;
  color:#54606f;
  font-size:13px;
  font-weight:900;
}
.fx-v85-im-tabs button.is-active,
.fx-v85-chat-tabs button.is-active{
  background:#0866ff;
  color:#fff;
  box-shadow:0 8px 20px rgba(8,102,255,.25);
}
.fx-v85-im-search,
.fx-v85-chat-search{
  margin:12px 14px;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:999px;
  background:#f0f2f5;
  padding:0 14px;
}
.fx-v85-im-search span,
.fx-v85-chat-search span{
  color:#64748b;
  font-size:18px;
}
.fx-v85-im-search input,
.fx-v85-chat-search input{
  width:100%;
  min-width:0;
  height:46px;
  border:0;
  outline:0;
  background:transparent;
  color:#111827;
  font-size:14px;
  font-weight:700;
}
.fx-v85-im-search input::placeholder,
.fx-v85-chat-search input::placeholder{
  color:#7b8495;
}
.fx-v85-im-list,
.fx-v85-chat-list{
  flex:1;
  overflow:auto;
  padding:0 10px 14px;
  margin:0;
  list-style:none;
}
.fx-v85-im-person,
.fx-v85-chat-person,
.fx-v85-chat-list li.clearfix{
  display:grid;
  grid-template-columns:54px 1fr auto;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:9px;
  margin:1px 0;
  border-radius:17px;
  cursor:pointer;
  background:transparent;
  transition:background .15s ease,transform .15s ease;
}
.fx-v85-im-person:hover,
.fx-v85-chat-person:hover,
.fx-v85-chat-list li.clearfix:hover{
  background:#f2f6ff;
}
.fx-v85-im-avatar-wrap,
.fx-v85-chat-avatar-wrap{
  position:relative;
  width:50px;
  height:50px;
  display:block;
}
.fx-v85-im-avatar,
.fx-v85-chat-avatar,
.fx-v85-chat-list li.clearfix img.avatar{
  width:50px;
  height:50px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  background:#eef2f7;
}
.fx-v85-im-presence,
.fx-v85-chat-presence{
  position:absolute;
  right:1px;
  bottom:1px;
  width:14px;
  height:14px;
  border-radius:50%;
  border:3px solid #fff;
  background:#9ca3af;
}
.fx-v85-im-presence.is-online,
.fx-v85-chat-presence.is-online{
  background:#31a24c;
}
.fx-v85-im-main,
.fx-v85-chat-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.fx-v85-im-main b,
.fx-v85-chat-main b,
.fx-v85-chat-list .name{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  line-height:1.2;
  font-weight:950;
  color:#111827;
}
.fx-v85-im-main small,
.fx-v85-chat-main small,
.fx-v85-chat-list .status{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.25;
  color:#667085;
  font-weight:800;
}
.fx-v85-im-extra,
.fx-v85-chat-extra{
  min-width:22px;
  text-align:right;
  color:#0866ff;
  font-size:12px;
  font-weight:950;
}
.fx-v85-im-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ff3157;
  color:#fff;
  font-size:11px;
  font-weight:950;
}
.fx-v85-im-empty,
.fx-v85-chat-empty{
  display:block;
  text-align:center;
  padding:28px 12px;
  color:#667085;
  font-weight:900;
}
.fx-v85-popup-host{
  position:fixed;
  right:0;
  bottom:0;
  z-index:2147482100;
  pointer-events:none;
}
.fx-v85-chat-popup,
.fx-v85-im-popup{
  position:fixed;
  bottom:18px;
  right:24px;
  width:348px;
  height:462px;
  max-height:calc(100dvh - 110px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  color:#111827;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px 18px 0 0;
  box-shadow:0 18px 46px rgba(15,23,42,.26);
}
.fx-v85-chat-popup.is-minimized,
.fx-v85-im-popup.is-minimized{
  height:54px;
}
.fx-v85-chat-popup.is-minimized .fx-v85-chat-body,
.fx-v85-chat-popup.is-minimized .fx-v85-chat-compose,
.fx-v85-im-popup.is-minimized .fx-v85-chat-body,
.fx-v85-im-popup.is-minimized .fx-v85-chat-compose{
  display:none;
}
.fx-v85-chat-head{
  min-height:54px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:#0866ff;
  color:#fff;
  border-radius:18px 18px 0 0;
}
.fx-v85-chat-back{
  display:none;
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.fx-v85-chat-peer{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
}
.fx-v85-chat-peer .avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  background:#eef2f7;
}
.fx-v85-chat-peer div{
  min-width:0;
}
.fx-v85-chat-peer a{
  display:block;
  max-width:190px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  text-decoration:none;
  font-size:14px;
  line-height:1.15;
  font-weight:950;
}
.fx-v85-chat-peer small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.84);
  font-size:11px;
  line-height:1.1;
  font-weight:800;
}
.fx-v85-chat-tools{
  display:flex;
  align-items:center;
  gap:5px;
}
.fx-v85-chat-tools button{
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:18px;
  font-weight:950;
}
.fx-v85-chat-body{
  flex:1;
  overflow:auto;
  padding:12px;
  background:#f0f2f5;
}
.fx-v85-chat-thread{
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.fx-v85-msg-row{
  display:flex;
  align-items:flex-end;
  gap:7px;
}
.fx-v85-msg-row.is-me{
  justify-content:flex-end;
}
.fx-v85-msg-avatar{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
}
.fx-v85-msg-bubble{
  max-width:78%;
  border-radius:18px;
  background:#fff;
  color:#050505;
  padding:9px 12px;
  word-break:break-word;
}
.fx-v85-msg-row.is-me .fx-v85-msg-bubble{
  background:#0866ff;
  color:#fff;
  border-bottom-right-radius:5px;
}
.fx-v85-msg-row.is-them .fx-v85-msg-bubble{
  border-bottom-left-radius:5px;
}
.fx-v85-msg-row.is-system{
  justify-content:center;
}
.fx-v85-msg-row.is-system .fx-v85-msg-bubble{
  max-width:88%;
  background:transparent;
  color:#667085;
  padding:4px 8px;
  text-align:center;
  font-size:12px;
  font-weight:800;
}
.fx-v85-msg-row.is-pending .fx-v85-msg-bubble{
  opacity:.72;
}
.fx-v85-msg-text{
  font-size:14px;
  line-height:1.45;
}
.fx-v85-msg-text img{
  max-width:220px;
  max-height:220px;
  border-radius:14px;
  object-fit:cover;
  display:block;
}
.fx-v85-msg-text a{
  color:inherit;
  font-weight:900;
}
.fx-v85-msg-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  margin-top:4px;
  font-size:10px;
  line-height:1;
  opacity:.72;
}
.fx-v85-msg-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:3px;
}
.fx-v85-msg-actions a{
  color:inherit;
  text-decoration:none;
  font-weight:950;
  opacity:.72;
}
.fx-v85-chat-compose{
  position:relative;
  display:grid;
  grid-template-columns:36px 36px 1fr 38px;
  gap:7px;
  align-items:end;
  padding:9px;
  background:#fff;
  border-top:1px solid rgba(15,23,42,.08);
}
.fx-v85-chat-compose textarea{
  min-width:0;
  width:100%;
  min-height:38px;
  max-height:112px;
  resize:none;
  border:0;
  border-radius:20px;
  outline:0;
  background:#f0f2f5;
  color:#111827;
  padding:10px 12px;
  font-size:14px;
  line-height:1.25;
}
.fx-v85-chat-emoji,
.fx-v85-chat-send,
.fx-v85-chat-attach,
.fx-v85-chat-upload .ajax-file-upload,
.fx-v85-chat-upload .ajax-file-upload-green{
  width:36px;
  height:36px;
  min-width:36px;
  border:0;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#e7f3ff;
  color:#0866ff;
  font-size:18px;
  font-weight:950;
  box-shadow:none;
}
.fx-v85-chat-send{
  background:#0866ff;
  color:#fff;
}
.fx-v85-chat-compose button .fxi{
  width:18px;
  height:22px;
}
.fx-v85-chat-file{
  display:none;
}
.fx-v85-emoji-panel{
  position:absolute;
  left:8px;
  bottom:56px;
  width:290px;
  max-width:calc(100vw - 24px);
  display:none;
  grid-template-columns:repeat(8,1fr);
  gap:5px;
  padding:10px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.18);
  z-index:3;
}
.fx-v85-emoji-panel.is-open{
  display:grid;
}
.fx-v85-emoji-item{
  width:30px;
  height:30px;
  border:0;
  border-radius:10px;
  cursor:pointer;
  background:#f5f7fb;
  font-size:18px;
}
.fx-v85-emoji-item:hover{
  background:#e7f3ff;
}
.fx-v85-im-toast-wrap{
  position:fixed;
  right:22px;
  bottom:92px;
  width:340px;
  max-width:calc(100vw - 44px);
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:2147482200;
  pointer-events:none;
}
.fx-v85-im-toast{
  pointer-events:auto;
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 42px rgba(15,23,42,.20);
  cursor:pointer;
}
.fx-v85-im-toast img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
}
.fx-v85-im-toast b,
.fx-v85-im-toast span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fx-v85-im-toast b{
  color:#111827;
  font-size:14px;
  font-weight:950;
}
.fx-v85-im-toast span{
  margin-top:2px;
  color:#667085;
  font-size:12px;
  font-weight:800;
}
.fx-v85-im-toast button{
  width:28px;
  height:28px;
  border:0;
  border-radius:50%;
  background:#eef2ff;
  color:#0866ff;
  cursor:pointer;
  font-weight:950;
}
.fx-v85-im-floating-unread{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  display:none;
  align-items:center;
  justify-content:center;
  background:#ff3157;
  color:#fff;
  font-size:10px;
  font-weight:950;
}
#chatxicon .fx-v85-im-floating-unread,
.fx-v85-float-actions #chatxicon .fx-v85-im-floating-unread{
  display:flex;
}
.fx-v85-dark .fx-v85-im-drawer,
.fx-v85-dark #people-list.fx-v85-chat-drawer,
.fx-v85-dark .fx-v85-chat-popup,
.fx-v85-dark .fx-v85-im-popup,
.fx-v85-dark .fx-v85-im-toast{
  background:#1c1e21;
  color:#e4e6eb;
  border-color:rgba(255,255,255,.10);
}
.fx-v85-dark .fx-v85-im-head,
.fx-v85-dark .fx-v85-chat-drawer-head,
.fx-v85-dark .fx-v85-im-tabs,
.fx-v85-dark .fx-v85-chat-tabs,
.fx-v85-dark .fx-v85-chat-compose{
  background:#1c1e21;
  border-color:rgba(255,255,255,.08);
}
.fx-v85-dark .fx-v85-im-title strong,
.fx-v85-dark .fx-v85-chat-title-stack strong,
.fx-v85-dark .fx-v85-im-main b,
.fx-v85-dark .fx-v85-chat-main b,
.fx-v85-dark .fx-v85-im-toast b{
  color:#e4e6eb;
}
.fx-v85-dark .fx-v85-im-title span,
.fx-v85-dark .fx-v85-chat-title-stack span,
.fx-v85-dark .fx-v85-im-main small,
.fx-v85-dark .fx-v85-chat-main small,
.fx-v85-dark .fx-v85-im-toast span{
  color:#b0b3b8;
}
.fx-v85-dark .fx-v85-im-search,
.fx-v85-dark .fx-v85-chat-search,
.fx-v85-dark .fx-v85-chat-compose textarea,
.fx-v85-dark .fx-v85-emoji-item{
  background:#303236;
  color:#e4e6eb;
}
.fx-v85-dark .fx-v85-im-person:hover,
.fx-v85-dark .fx-v85-chat-person:hover{
  background:#303236;
}
.fx-v85-dark .fx-v85-chat-body{
  background:#18191a;
}
.fx-v85-dark .fx-v85-msg-bubble{
  background:#303236;
  color:#e4e6eb;
}
.fx-v85-dark .fx-v85-msg-row.is-me .fx-v85-msg-bubble{
  background:#0866ff;
  color:#fff;
}
.fx-v85-dark .fx-v85-emoji-panel{
  background:#242526;
  border-color:rgba(255,255,255,.10);
}
@media (max-width:640px){
  body.fx-v85-chat-open,
  body.fx-v85-conversation-open{
    overflow:hidden;
  }
  .fx-v85-im-drawer,
  #people-list.fx-v85-chat-drawer{
    inset:0;
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .fx-v85-im-head,
  .fx-v85-chat-drawer-head{
    min-height:68px;
    padding:12px 14px;
  }
  .fx-v85-im-title strong,
  .fx-v85-chat-title-stack strong{
    font-size:28px;
  }
  .fx-v85-im-list,
  .fx-v85-chat-list{
    padding:2px 8px calc(18px + env(safe-area-inset-bottom));
  }
  .fx-v85-im-person,
  .fx-v85-chat-person,
  .fx-v85-chat-list li.clearfix{
    grid-template-columns:60px 1fr auto;
    min-height:72px;
    padding:10px 12px;
  }
  .fx-v85-im-avatar-wrap,
  .fx-v85-chat-avatar-wrap,
  .fx-v85-im-avatar,
  .fx-v85-chat-avatar{
    width:56px;
    height:56px;
  }
  .fx-v85-popup-host{
    position:fixed;
    inset:0;
  }
  .fx-v85-chat-popup,
  .fx-v85-im-popup{
    inset:0;
    width:100%;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  .fx-v85-chat-popup.is-minimized,
  .fx-v85-im-popup.is-minimized{
    height:100dvh;
  }
  .fx-v85-chat-head{
    min-height:62px;
    border-radius:0;
    padding:10px 12px calc(10px + env(safe-area-inset-top)/2);
    background:#fff;
    color:#050505;
    border-bottom:1px solid rgba(15,23,42,.08);
  }
  .fx-v85-chat-back{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#0866ff;
    background:#e7f3ff;
  }
  .fx-v85-chat-peer a{
    color:#050505;
    font-size:15px;
  }
  .fx-v85-chat-peer small{
    color:#65676b;
  }
  .fx-v85-chat-tools button{
    color:#0866ff;
    background:#e7f3ff;
  }
  .fx-v85-chat-min{
    display:none;
  }
  .fx-v85-chat-body{
    padding:12px 10px;
    background:#fff;
  }
  .fx-v85-msg-bubble{
    max-width:82%;
  }
  .fx-v85-chat-compose{
    position:sticky;
    bottom:0;
    grid-template-columns:38px 38px 1fr 40px;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .fx-v85-chat-compose textarea{
    font-size:16px;
  }
  .fx-v85-emoji-panel{
    bottom:58px;
    left:8px;
    right:8px;
    width:auto;
    grid-template-columns:repeat(7,1fr);
  }
  .fx-v85-im-toast-wrap{
    left:12px;
    right:12px;
    bottom:16px;
    width:auto;
    max-width:none;
  }
  .fx-v85-dark .fx-v85-chat-head{
    background:#18191a;
    border-color:rgba(255,255,255,.10);
  }
  .fx-v85-dark .fx-v85-chat-peer a{
    color:#e4e6eb;
  }
  .fx-v85-dark .fx-v85-chat-peer small{
    color:#b0b3b8;
  }
}

/* High-specificity override for older v85 chat rules, still inside the chat-only file. */
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer,
html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer{
  top:82px;
  right:22px;
  left:auto;
  bottom:auto;
  width:392px;
  max-width:calc(100vw - 44px);
  height:min(680px,calc(100dvh - 106px));
  max-height:none;
  display:none;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 72px rgba(15,23,42,.24),0 0 0 1px rgba(255,255,255,.72) inset;
}
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-im-open,
html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-im-open,
html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-is-open{
  display:flex;
}
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer .fx-v85-chat-list,
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer #chatlist{
  flex:1;
  max-height:none;
  padding:0 10px 14px;
  background:transparent;
}
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer .fx-v85-chat-person,
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer #chatlist li.fx-v85-im-person{
  grid-template-columns:54px 1fr auto;
  min-height:62px;
  padding:9px;
  border-radius:17px;
}
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer .fx-v85-chat-avatar,
html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer .fx-v85-chat-avatar-wrap{
  width:50px;
  height:50px;
}
@media (max-width:640px){
  html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer,
  html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer{
    inset:0;
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
}


/* Friend list card opened by fxV85OpenChatButton. Kept inside chat-only CSS. */
.fx-v85-chat-friends-card.fx-v85-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 22px 70px rgba(15,23,42,.20);
}
.fx-v85-chat-friends-card .fx-v85-chat-card-unread{
  align-items:center;
  justify-content:center;
  min-width:24px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#ff3157;
  color:#fff;
  font-size:12px;
  font-weight:950;
  margin-left:auto;
}
.fx-v85-chat-friends-card .fx-v85-chat-person{
  grid-template-columns:56px minmax(0,1fr) auto;
  min-height:68px;
  padding:10px;
}
.fx-v85-chat-friends-card .fx-v85-chat-avatar-wrap{
  width:52px;
  height:52px;
}
.fx-v85-chat-friends-card .fx-v85-chat-avatar{
  width:52px;
  height:52px;
  border:2px solid #fff;
  box-shadow:0 6px 18px rgba(15,23,42,.12);
}
.fx-v85-chat-friends-card .fx-v85-chat-presence{
  width:15px;
  height:15px;
  right:0;
  bottom:0;
}
.fx-v85-chat-friends-card .fx-v85-chat-status-line{
  color:#667085;
}
.fx-v85-chat-friends-card .fx-v85-chat-status-line.is-online{
  color:#31a24c;
}
.fx-v85-chat-friends-card .fx-v85-chat-main em{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-style:normal;
  font-size:12px;
  line-height:1.25;
  color:#8a94a6;
  font-weight:800;
}
.fx-v85-chat-friends-card .fx-v85-im-openmark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#edf4ff;
  color:#0866ff;
  font-size:20px;
  font-weight:950;
}

/* Right sidebar static chat friends card loaded by api.php?action=get_friends. */
.fx-v85-chat-friends-card[data-fx85-chat-friends="1"]{
  overflow:hidden;
}
.fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 8px;
}
.fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head h2{
  margin:0;
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head a{
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.fx-v85-chat-friends-list[data-fx85-chat-friends-list="1"]{
  list-style:none;
  margin:0;
  padding:8px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.fx-v85-chat-friends-list[data-fx85-chat-friends-list="1"].is-loading{
  opacity:.72;
}

/* v85 readable light/dark mode overrides */
body.fx-v85 #fx-v85-chat-root,
body.fx-v85 .fx-v85-im-root,
body.fx-v85 .fx-v85-chat-friends-card{
  color:var(--fx-v85-text);
}
body.fx-v85 .fx-v85-im-drawer,
body.fx-v85 #people-list.fx-v85-chat-drawer,
body.fx-v85 .fx-v85-chat-popup,
body.fx-v85 .fx-v85-im-popup,
body.fx-v85 .fx-v85-im-toast,
body.fx-v85 .fx-v85-chat-friends-card.fx-v85-card{
  background:var(--fx-v85-card);
  color:var(--fx-v85-text);
  border-color:var(--fx-v85-line);
}
body.fx-v85 .fx-v85-im-head,
body.fx-v85 .fx-v85-chat-drawer-head,
body.fx-v85 .fx-v85-im-tabs,
body.fx-v85 .fx-v85-chat-tabs,
body.fx-v85 .fx-v85-chat-compose{
  background:var(--fx-v85-card);
  border-color:var(--fx-v85-line);
}
body.fx-v85 .fx-v85-im-title strong,
body.fx-v85 .fx-v85-chat-title-stack strong,
body.fx-v85 .fx-v85-im-main b,
body.fx-v85 .fx-v85-chat-main b,
body.fx-v85 .fx-v85-chat-list .name,
body.fx-v85 .fx-v85-im-toast b,
body.fx-v85 .fx-v85-chat-friends-card .fx-v85-card-head h2{
  color:var(--fx-v85-text);
}
body.fx-v85 .fx-v85-im-title span,
body.fx-v85 .fx-v85-chat-title-stack span,
body.fx-v85 .fx-v85-im-main small,
body.fx-v85 .fx-v85-chat-main small,
body.fx-v85 .fx-v85-chat-list .status,
body.fx-v85 .fx-v85-im-toast span,
body.fx-v85 .fx-v85-chat-friends-card .fx-v85-chat-status-line,
body.fx-v85 .fx-v85-chat-friends-card .fx-v85-chat-main em{
  color:var(--fx-v85-muted);
}
body.fx-v85 .fx-v85-im-search,
body.fx-v85 .fx-v85-chat-search,
body.fx-v85 .fx-v85-chat-compose textarea,
body.fx-v85 .fx-v85-emoji-panel,
body.fx-v85 .fx-v85-emoji-item{
  background:var(--fx-v85-card-soft);
  color:var(--fx-v85-text);
  border-color:var(--fx-v85-line);
}
body.fx-v85 .fx-v85-chat-body{
  background:var(--fx-v85-card-soft);
}
body.fx-v85 .fx-v85-msg-bubble{
  background:var(--fx-v85-card);
  color:var(--fx-v85-text);
}
body.fx-v85 .fx-v85-msg-row.is-me .fx-v85-msg-bubble,
body.fx-v85 .fx-v85-chat-head,
body.fx-v85 .fx-v85-chat-tabs button.is-active,
body.fx-v85 .fx-v85-im-tabs button.is-active,
body.fx-v85 .fx-v85-chat-send{
  background:var(--fx-v85-brand);
  color:#fff;
}
body.fx-v85 .fx-v85-chat-peer a,
body.fx-v85 .fx-v85-chat-peer small,
body.fx-v85 .fx-v85-chat-tools button{
  color:#fff;
}
body.fx-v85:not(.fx-v85-dark):not(.dark) .fx-v85-card,
body.fx-v85:not(.fx-v85-dark):not(.dark) .fx-v85-chat-friends-card,
body.fx-v85:not(.fx-v85-dark):not(.dark) .fx-v85-im-drawer,
body.fx-v85:not(.fx-v85-dark):not(.dark) .fx-v85-chat-popup{
  color:var(--fx-v85-text);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-head,
body.fx-v85.dark .fx-v85-chat-head{
  background:var(--fx-v85-card);
  color:var(--fx-v85-text);
  border-bottom:1px solid var(--fx-v85-line);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-peer a,
body.fx-v85.dark .fx-v85-chat-peer a{
  color:var(--fx-v85-text);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-peer small,
body.fx-v85.dark .fx-v85-chat-peer small{
  color:var(--fx-v85-muted);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-tools button,
body.fx-v85.dark .fx-v85-chat-tools button,
body.fx-v85.fx-v85-dark .fx-v85-chat-back,
body.fx-v85.dark .fx-v85-chat-back{
  background:var(--fx-v85-card-soft);
  color:var(--fx-v85-brand);
}

/* v85 chat pagination: initial 5 messages, +10 older messages while scrolling upward, max 100. */
body.fx-v85 .fx-v85-chat-history-note,
.fx-v85-chat-root .fx-v85-chat-history-note{
  min-height:18px;
  margin:4px auto 8px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  line-height:1.25;
  text-align:center;
  color:var(--fx85-muted,#667085);
  background:color-mix(in srgb,var(--fx85-card,#ffffff) 88%,var(--fx85-soft,#f2f4f7));
}
body.fx-v85.fx-v85-dark .fx-v85-chat-history-note,
body.fx-v85[data-theme="dark"] .fx-v85-chat-history-note,
.fx-v85-chat-root[data-theme="dark"] .fx-v85-chat-history-note{
  color:var(--fx85-dark-muted,#cbd5e1);
  background:rgba(255,255,255,.06);
}
body.fx-v85 .fx-v85-chat-body[data-fx-v85-chat-loading="1"] .fx-v85-chat-history-note::after,
.fx-v85-chat-root .fx-v85-chat-body[data-fx-v85-chat-loading="1"] .fx-v85-chat-history-note::after{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-left:6px;
  border-radius:50%;
  border:2px solid currentColor;
  border-right-color:transparent;
  vertical-align:-1px;
  animation:fx-v85-chat-spin .8s linear infinite;
}
@keyframes fx-v85-chat-spin{to{transform:rotate(360deg)}}


/* v85 mobile chat/menu hotfix 20260702 */
@media (max-width:820px){
  body.fx-v85 #showrightoptionicon,
  body.fx-v85 .fx-v85-menu-toggle-main,
  body.fx-v85 #fx-v85-left-pin{display:none;}
}
@media (max-width:640px){
  html body #fx-v85-chat-root #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-im-open,
  html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-im-open,
  html body #people-list.fx-v85-chat-drawer.fx-v85-im-drawer.fx-v85-is-open{
    display:flex;
    position:fixed;
    inset:0;
    width:100%;
    max-width:none;
    height:100dvh;
    max-height:none;
    z-index:2147482300;
  }
}


/* Mobile: show the existing right-sidebar chat friends card as a full-screen sheet under the header. */
@media (max-width:820px){
  html body.fx-v85-chat-friends-mobile-open,
  html body.fx-v85-chat-friends-mobile-open.fx-v85{
    overflow:hidden;
  }
  html body.fx-v85-chat-friends-mobile-open #rightPanel.fx-v85-right-sidebar,
  html body.fx-v85-chat-friends-mobile-open .fx-v85-right-sidebar{
    display:block;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet,
  html body .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet.fx-v85-chat-mobile-sheet-open{
    position:fixed;
    left:0;
    right:0;
    top:var(--fx85-mobile-chat-top,72px);
    bottom:0;
    z-index:9999;
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:none;
    height:auto;
    max-height:none;
    margin:0;
    padding:0;
    border-radius:0;
    border-left:0;
    border-right:0;
    border-bottom:0;
    box-shadow:0 -16px 44px rgba(15,23,42,.22);
    overflow:hidden;
    background:#fff;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head{
    position:sticky;
    top:0;
    z-index:2;
    flex:0 0 auto;
    min-height:58px;
    padding:14px 16px;
    background:#fff;
    border-bottom:1px solid rgba(15,23,42,.08);
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head h2{
    font-size:20px;
    letter-spacing:-.03em;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:8px 12px;
    border-radius:999px;
    background:#eef4ff;
    color:#0866ff;
    font-weight:950;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-friends-list{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow:auto;
    padding:6px 8px calc(18px + env(safe-area-inset-bottom));
    background:#fff;
    -webkit-overflow-scrolling:touch;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-person{
    grid-template-columns:60px minmax(0,1fr) auto;
    min-height:74px;
    padding:10px 12px;
    border-radius:18px;
  }
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-avatar-wrap,
  html body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-avatar{
    width:56px;
    height:56px;
  }
  html body.fx-v85-chat-friends-mobile-open #people-list.fx-v85-chat-drawer{
    display:none;
  }
  html.fx-v85-dark-ready body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet,
  body.fx-v85.fx-v85-dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet,
  body.fx-v85.dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet,
  .fx-v85-dark .fx-v85-chat-friends-card[data-fx85-chat-friends="1"].fx-v85-chat-mobile-sheet{
    background:#242526;
    color:#e4e6eb;
    border-color:rgba(255,255,255,.10);
  }
  html.fx-v85-dark-ready body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head,
  body.fx-v85.fx-v85-dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head,
  body.fx-v85.dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head,
  .fx-v85-dark .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-card-head{
    background:#242526;
    border-color:rgba(255,255,255,.08);
  }
  html.fx-v85-dark-ready body.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-friends-list,
  body.fx-v85.fx-v85-dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-friends-list,
  body.fx-v85.dark.fx-v85-chat-friends-mobile-open .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-friends-list,
  .fx-v85-dark .fx-v85-chat-friends-card[data-fx85-chat-friends="1"] .fx-v85-chat-friends-list{
    background:#18191a;
  }
}

/* v85 chat 10-feature upgrade 20260708: pin, mute, toolbar, search, quick replies, drag/drop, paste, counter, fullscreen, copy. */
.fx-v85-chat-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 14px 0;
  background:var(--fx-v85-card,#fff);
}
.fx-v85-chat-toolbar button{
  min-height:32px;
  border:0;
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  background:var(--fx-v85-card-soft,#f0f2f5);
  color:var(--fx-v85-text,#111827);
  font-size:12px;
  font-weight:900;
}
.fx-v85-chat-toolbar button.is-muted,
.fx-v85-chat-person.is-muted .fx-v85-chat-muted-dot{
  color:#f59e0b;
}
.fx-v85-chat-pin-dot{color:#f59e0b;font-style:normal;}
.fx-v85-chat-muted-dot{font-style:normal;font-size:11px;}
.fx-v85-chat-person.is-pinned{background:linear-gradient(90deg,rgba(245,158,11,.10),transparent);}
.fx-v85-chat-person.is-pinned .fx-v85-chat-avatar{box-shadow:0 0 0 2px rgba(245,158,11,.35);}
.fx-v85-chat-search-box{
  display:none;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  background:var(--fx-v85-card,#fff);
  border-bottom:1px solid var(--fx-v85-line,rgba(15,23,42,.08));
}
.fx-v85-chat-search-box.is-open{display:flex;}
.fx-v85-chat-search-box input{
  min-width:0;
  flex:1;
  height:34px;
  border:0;
  border-radius:999px;
  outline:0;
  padding:0 12px;
  background:var(--fx-v85-card-soft,#f0f2f5);
  color:var(--fx-v85-text,#111827);
  font-weight:800;
}
.fx-v85-chat-search-box button{
  height:34px;
  border:0;
  border-radius:999px;
  padding:0 10px;
  background:#fee2e2;
  color:#b91c1c;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
}
.fx-v85-chat-quick-replies{
  display:flex;
  gap:6px;
  overflow:auto;
  padding:7px 9px;
  background:var(--fx-v85-card,#fff);
  border-top:1px solid var(--fx-v85-line,rgba(15,23,42,.08));
}
.fx-v85-chat-quick-replies button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  padding:7px 10px;
  background:var(--fx-v85-card-soft,#f0f2f5);
  color:var(--fx-v85-text,#111827);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.fx-v85-chat-input-wrap{position:relative;min-width:0;}
.fx-v85-chat-input-wrap textarea{padding-right:58px;}
.fx-v85-chat-input-wrap small{
  position:absolute;
  right:10px;
  bottom:4px;
  font-size:9px;
  font-weight:900;
  color:var(--fx-v85-muted,#667085);
  pointer-events:none;
}
.fx-v85-chat-popup.is-dragover::after{
  content:"Drop file to send";
  position:absolute;
  inset:64px 10px 72px;
  z-index:5;
  display:grid;
  place-items:center;
  border:2px dashed var(--fx-v85-brand,#0866ff);
  border-radius:20px;
  background:rgba(8,102,255,.10);
  color:var(--fx-v85-brand,#0866ff);
  font-size:18px;
  font-weight:950;
  pointer-events:none;
}
.fx-v85-chat-popup.is-fullscreen{
  inset:18px!important;
  width:auto!important;
  height:auto!important;
  max-height:none!important;
  border-radius:22px!important;
  z-index:2147482400;
}
.fx-v85-msg-row.is-search-match .fx-v85-msg-bubble{
  box-shadow:0 0 0 2px rgba(245,158,11,.50);
}
.fx-v85-msg-date{
  align-self:center;
  margin:8px 0 4px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--fx-v85-card,#fff);
  color:var(--fx-v85-muted,#667085);
  font-size:11px;
  font-weight:900;
}
.fx-v85-msg-actions a.fx-v85-msg-copy{cursor:pointer;}
.fx-v85-check.is-read{color:#31a24c;opacity:1;}
body.fx-v85.fx-v85-dark .fx-v85-chat-toolbar,
body.fx-v85.dark .fx-v85-chat-toolbar,
body.fx-v85.fx-v85-dark .fx-v85-chat-search-box,
body.fx-v85.dark .fx-v85-chat-search-box,
body.fx-v85.fx-v85-dark .fx-v85-chat-quick-replies,
body.fx-v85.dark .fx-v85-chat-quick-replies{background:var(--fx-v85-card,#1c1e21);border-color:var(--fx-v85-line,rgba(255,255,255,.10));}
body.fx-v85.fx-v85-dark .fx-v85-chat-toolbar button,
body.fx-v85.dark .fx-v85-chat-toolbar button,
body.fx-v85.fx-v85-dark .fx-v85-chat-quick-replies button,
body.fx-v85.dark .fx-v85-chat-quick-replies button,
body.fx-v85.fx-v85-dark .fx-v85-chat-search-box input,
body.fx-v85.dark .fx-v85-chat-search-box input{background:var(--fx-v85-card-soft,#303236);color:var(--fx-v85-text,#e4e6eb);}
@media (max-width:640px){.fx-v85-chat-popup.is-fullscreen{inset:0!important;border-radius:0!important}.fx-v85-chat-search-box{padding:8px 10px}.fx-v85-chat-tools button[data-fx-v85-chat-full],.fx-v85-chat-min{display:none!important}}


/* v85 chat overlay fix 20260709: keep new toolbar controls away from avatar/title and from compose area. */
body.fx-v85 .fx-v85-chat-popup,
body.fx-v85 .fx-v85-im-popup,
.fx-v85-chat-popup,
.fx-v85-im-popup{
  min-height:360px;
}
body.fx-v85 .fx-v85-chat-head,
.fx-v85-chat-head{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
}
body.fx-v85 .fx-v85-chat-peer,
.fx-v85-chat-peer{
  min-width:0;
  overflow:hidden;
}
body.fx-v85 .fx-v85-chat-peer a,
.fx-v85-chat-peer a{
  max-width:100%;
}
body.fx-v85 .fx-v85-chat-window-tools,
.fx-v85-chat-window-tools{
  flex:0 0 auto;
  justify-content:flex-end;
  gap:6px;
}
body.fx-v85 .fx-v85-chat-window-tools button,
.fx-v85-chat-window-tools button{
  width:32px;
  height:32px;
  min-width:32px;
}
body.fx-v85 .fx-v85-chat-conversation-toolbar,
.fx-v85-chat-conversation-toolbar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  padding:6px 10px;
  background:var(--fx-v85-card,#fff);
  border-bottom:1px solid var(--fx-v85-line,rgba(15,23,42,.08));
}
body.fx-v85 .fx-v85-chat-conversation-toolbar button,
.fx-v85-chat-conversation-toolbar button{
  width:30px;
  height:30px;
  min-width:30px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:var(--fx-v85-card-soft,#f0f2f5);
  color:var(--fx-v85-text,#111827);
  font-size:15px;
  font-weight:950;
  line-height:1;
}
body.fx-v85 .fx-v85-chat-conversation-toolbar button.is-active,
.fx-v85-chat-conversation-toolbar button.is-active{
  background:rgba(8,102,255,.12);
  color:var(--fx-v85-brand,#0866ff);
}
body.fx-v85 .fx-v85-chat-body,
.fx-v85-chat-body{
  min-height:0;
}
body.fx-v85 .fx-v85-chat-quick-replies,
.fx-v85-chat-quick-replies{
  flex:0 0 auto;
  max-height:48px;
  min-height:0;
  position:relative;
  z-index:2;
}
body.fx-v85 .fx-v85-chat-compose,
.fx-v85-chat-compose{
  flex:0 0 auto;
  position:relative;
  z-index:3;
}
body.fx-v85 .fx-v85-chat-compose .ajax-file-upload-statusbar,
body.fx-v85 .fx-v85-chat-compose .ajax-file-upload-progress,
.fx-v85-chat-compose .ajax-file-upload-statusbar,
.fx-v85-chat-compose .ajax-file-upload-progress{
  position:static!important;
  grid-column:1/-1;
  width:auto!important;
  max-width:100%!important;
  margin:4px 0 0!important;
  z-index:auto!important;
}
body.fx-v85.fx-v85-dark .fx-v85-chat-conversation-toolbar,
body.fx-v85.dark .fx-v85-chat-conversation-toolbar{
  background:var(--fx-v85-card,#1c1e21);
  border-color:var(--fx-v85-line,rgba(255,255,255,.10));
}
body.fx-v85.fx-v85-dark .fx-v85-chat-conversation-toolbar button,
body.fx-v85.dark .fx-v85-chat-conversation-toolbar button{
  background:var(--fx-v85-card-soft,#303236);
  color:var(--fx-v85-text,#e4e6eb);
}
@media (max-width:640px){
  body.fx-v85 .fx-v85-chat-conversation-toolbar button[data-fx-v85-chat-full],
  .fx-v85-chat-conversation-toolbar button[data-fx-v85-chat-full]{display:none!important;}
  body.fx-v85 .fx-v85-chat-quick-replies,
  .fx-v85-chat-quick-replies{padding:6px 8px;}
}

/* v85 chat tools compact menu 20260709: keep header clean; show advanced buttons only after More. */
body.fx-v85 .fx-v85-chat-window-tools,
.fx-v85-chat-window-tools{
  position:relative;
  overflow:visible;
  z-index:8;
}
body.fx-v85 .fx-v85-chat-more,
.fx-v85-chat-more{
  display:inline-flex!important;
}
body.fx-v85 .fx-v85-chat-tools-panel,
.fx-v85-chat-tools-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:2147482450;
  display:none;
  align-items:center;
  gap:7px;
  padding:8px;
  border:1px solid var(--fx-v85-line,rgba(15,23,42,.10));
  border-radius:18px;
  background:var(--fx-v85-card,#fff);
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  max-width:calc(100vw - 20px);
  white-space:nowrap;
}
body.fx-v85 .fx-v85-chat-tools-panel.is-open,
.fx-v85-chat-tools-panel.is-open{
  display:flex;
}
body.fx-v85 .fx-v85-chat-tools-panel::before,
.fx-v85-chat-tools-panel::before{
  content:"";
  position:absolute;
  right:18px;
  top:-6px;
  width:12px;
  height:12px;
  transform:rotate(45deg);
  background:var(--fx-v85-card,#fff);
  border-left:1px solid var(--fx-v85-line,rgba(15,23,42,.10));
  border-top:1px solid var(--fx-v85-line,rgba(15,23,42,.10));
}
body.fx-v85 .fx-v85-chat-tools-panel button,
.fx-v85-chat-tools-panel button{
  position:relative;
  width:34px;
  height:34px;
  min-width:34px;
  border:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:var(--fx-v85-card-soft,#f0f2f5);
  color:var(--fx-v85-text,#111827);
  font-size:15px;
  font-weight:950;
  line-height:1;
}
body.fx-v85 .fx-v85-chat-tools-panel button.is-active,
.fx-v85-chat-tools-panel button.is-active{
  background:rgba(8,102,255,.12);
  color:var(--fx-v85-brand,#0866ff);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-tools-panel,
body.fx-v85.dark .fx-v85-chat-tools-panel{
  background:var(--fx-v85-card,#1c1e21);
  border-color:var(--fx-v85-line,rgba(255,255,255,.10));
  box-shadow:0 18px 40px rgba(0,0,0,.38);
}
body.fx-v85.fx-v85-dark .fx-v85-chat-tools-panel::before,
body.fx-v85.dark .fx-v85-chat-tools-panel::before{
  background:var(--fx-v85-card,#1c1e21);
  border-color:var(--fx-v85-line,rgba(255,255,255,.10));
}
body.fx-v85.fx-v85-dark .fx-v85-chat-tools-panel button,
body.fx-v85.dark .fx-v85-chat-tools-panel button{
  background:var(--fx-v85-card-soft,#303236);
  color:var(--fx-v85-text,#e4e6eb);
}
@media (max-width:640px){
  body.fx-v85 .fx-v85-chat-window-tools,
  .fx-v85-chat-window-tools{gap:5px;}
  body.fx-v85 .fx-v85-chat-tools-panel,
  .fx-v85-chat-tools-panel{right:0;gap:6px;padding:7px;border-radius:16px;}
  body.fx-v85 .fx-v85-chat-tools-panel button,
  .fx-v85-chat-tools-panel button{display:inline-flex!important;width:34px;height:34px;min-width:34px;}
}
