/* MF_MENTORIA V001.0.2.0-A.8.7 — realtime global + não lidas + histórico */
.mentoria-mfchat-global{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:1300;
  font-family:inherit;
}
body.mentoria-mfchat-global-expanded{
  overflow:hidden;
}
.mentoria-mfchat-global-launcher{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:214px;
  min-height:52px;
  padding:9px 11px;
  border:1px solid #d5e4ed;
  border-radius:17px;
  background:#fff;
  box-shadow:0 16px 42px rgba(14,57,84,.16);
  color:#173e58;
  cursor:pointer;
}
.mentoria-mfchat-global-launcher:hover{
  border-color:#9fc4da;
  box-shadow:0 18px 48px rgba(14,57,84,.20);
}
.mentoria-mfchat-global-mark{
  display:inline-grid;
  place-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(145deg,#0a7eba,#0a5e98);
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.mentoria-mfchat-global-launcher-copy{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  text-align:left;
}
.mentoria-mfchat-global-launcher-copy strong{
  font-size:12px;
}
.mentoria-mfchat-global-launcher-copy small{
  margin-top:2px;
  color:#728898;
  font-size:9px;
}
.mentoria-mfchat-global-badge,
.mentoria-mfchat-global-inline-badge{
  display:inline-grid;
  place-items:center;
  min-width:21px;
  height:21px;
  padding:0 6px;
  border-radius:999px;
  background:#d63c3c;
  color:#fff;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.mentoria-mfchat-global-badge[hidden],
.mentoria-mfchat-global-inline-badge[hidden]{
  display:none!important;
}
.mentoria-mfchat-global-panel{
  position:absolute;
  left:0;
  bottom:0;
  width:min(410px,calc(100vw - 28px));
  height:min(650px,calc(100vh - 34px));
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  overflow:hidden;
  border:1px solid #d3e2eb;
  border-radius:22px;
  background:#f7fafc;
  box-shadow:0 26px 70px rgba(9,48,76,.24);
}
.mentoria-mfchat-global-panel[hidden]{
  display:none!important;
}
.mentoria-mfchat-global-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  border-bottom:1px solid #dbe7ee;
  background:#fff;
}
.mentoria-mfchat-global-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mentoria-mfchat-global-brand>div{
  display:flex;
  min-width:0;
  flex-direction:column;
}
.mentoria-mfchat-global-brand strong{
  color:#183f59;
  font-size:15px;
}
.mentoria-mfchat-global-brand small{
  color:#748896;
  font-size:9px;
}
.mentoria-mfchat-global-close{
  width:34px;
  height:34px;
  border:1px solid #d6e3eb;
  border-radius:11px;
  background:#fff;
  color:#315c77;
  font-size:20px;
  cursor:pointer;
}
.mentoria-mfchat-global-summary{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:7px;
  padding:10px 12px;
  border-bottom:1px solid #dde8ef;
  background:#fff;
}
.mentoria-mfchat-global-summary>div{
  min-width:0;
  padding:8px 7px;
  border:1px solid #e0e9ef;
  border-radius:11px;
  background:#fbfdfe;
}
.mentoria-mfchat-global-summary small{
  display:block;
  color:#8194a1;
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
}
.mentoria-mfchat-global-summary strong{
  display:block;
  margin-top:2px;
  color:#214b65;
  font-size:16px;
}
.mentoria-mfchat-global-history{
  min-height:0;
  overflow:auto;
  padding:11px;
}
.mentoria-mfchat-global-status{
  padding:14px;
  border:1px dashed #cfdee7;
  border-radius:13px;
  background:#fff;
  color:#708594;
  font-size:11px;
  line-height:1.45;
  text-align:center;
}
.mentoria-mfchat-global-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:9px;
  align-items:start;
  margin-bottom:8px;
  padding:10px;
  border:1px solid #dce7ee;
  border-radius:14px;
  background:#fff;
}
.mentoria-mfchat-global-item.is-blocked{
  background:#fafbfc;
  opacity:.82;
}
.mentoria-mfchat-global-counterpart-avatar{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  overflow:hidden;
  border-radius:50%;
  background:#e3eff6;
  color:#27617f;
  font-size:10px;
  font-weight:900;
}
.mentoria-mfchat-global-counterpart-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.mentoria-mfchat-global-item-main{
  min-width:0;
}
.mentoria-mfchat-global-item-head{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.mentoria-mfchat-global-item-head strong{
  min-width:0;
  overflow:hidden;
  color:#24475f;
  font-size:11px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.mentoria-mfchat-global-channel{
  flex:0 0 auto;
  padding:3px 5px;
  border-radius:999px;
  background:#edf5fa;
  color:#4c7087;
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
}
.mentoria-mfchat-global-item-preview{
  margin:4px 0 0;
  overflow:hidden;
  color:#6f8493;
  font-size:9px;
  line-height:1.35;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.mentoria-mfchat-global-item-meta{
  display:flex;
  gap:6px;
  margin-top:5px;
  color:#8a9aa5;
  font-size:8px;
}
.mentoria-mfchat-global-item-action{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.mentoria-mfchat-global-item-action a{
  padding:6px 8px;
  border:1px solid #bdd8e8;
  border-radius:9px;
  background:#f3f9fd;
  color:#1d6e9c;
  font-size:9px;
  font-weight:900;
  text-decoration:none;
}
.mentoria-mfchat-global-item-action span.blocked{
  padding:5px 6px;
  border-radius:999px;
  background:#f2eeee;
  color:#8b6666;
  font-size:7px;
  font-weight:900;
}
.mentoria-mfchat-global-unread{
  display:inline-grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:#d63c3c;
  color:#fff;
  font-size:9px;
  font-weight:900;
}
.mentoria-mfchat-global-syncing .mentoria-mfchat-global-mark{
  animation:mentoria-mfchat-global-pulse 1s ease-in-out infinite alternate;
}
@keyframes mentoria-mfchat-global-pulse{
  from{opacity:.62}
  to{opacity:1}
}
@media (max-width:700px){
  .mentoria-mfchat-global{
    left:10px;
    bottom:10px;
  }
  .mentoria-mfchat-global-launcher{
    min-width:188px;
  }
  .mentoria-mfchat-global-panel{
    position:fixed;
    inset:0;
    box-sizing:border-box;
    width:100vw;
    max-width:100vw;
    height:100dvh;
    border:0;
    border-radius:0;
  }
  .mentoria-mfchat-global-header{
    box-sizing:border-box;
    gap:8px;
    padding:12px;
  }
  .mentoria-mfchat-global-brand{
    flex:1 1 auto;
    min-width:0;
  }
  .mentoria-mfchat-global-brand>div{
    min-width:0;
  }
  .mentoria-mfchat-global-brand small{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .mentoria-mfchat-global-close{
    flex:0 0 34px;
  }
  .mentoria-mfchat-global-summary{
    box-sizing:border-box;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .mentoria-mfchat-global-summary>div{
    min-width:0;
  }
  .mentoria-mfchat-global-summary small{
    overflow-wrap:anywhere;
    font-size:7px;
  }
  .mentoria-mfchat-global-history{
    box-sizing:border-box;
    min-width:0;
  }
}
@media (prefers-reduced-motion:reduce){
  .mentoria-mfchat-global-syncing .mentoria-mfchat-global-mark{
    animation:none;
  }
}
