#mistileva-widget{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:9999;
  font-family:Arial,Helvetica,sans-serif;
}
#mistileva-toggle{
  border:1px solid #b99b65;
  border-radius:30px;
  padding:13px 19px;
  background:#172638;
  color:#f1e4ca;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 5px 22px #0007;
}
#mistileva-panel{
  display:none;
  position:absolute;
  bottom:65px;
  right:0;
  width:min(350px,calc(100vw - 40px));
  height:440px;
  max-height:calc(100dvh - 110px);
  background:#101c29;
  color:#e9edf2;
  border:1px solid #b99b65;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 12px 35px #0009;
  flex-direction:column;
}
#mistileva-panel.open{display:flex}
.mistileva-header{
  padding:15px;
  background:#1c3044;
  border-bottom:1px solid #465365;
}
.mistileva-header strong{
  display:block;
  color:#e8c88e;
  font-size:16px;
}
.mistileva-header small{
  color:#c6d0da;
}
#mistileva-messages{
  flex:1;
  overflow-y:auto;
  padding:15px;
  font-size:14px;
  line-height:1.5;
}
.mistileva-message{
  padding:10px 12px;
  margin-bottom:12px;
  border-radius:9px;
  background:#233449;
  overflow-wrap:anywhere;
}
.mistileva-message.user{
  background:#33485d;
  margin-left:25px;
}
.mistileva-form{
  display:flex;
  gap:7px;
  padding:12px;
  border-top:1px solid #465365;
}
#mistileva-input{
  flex:1;
  min-width:0;
  padding:10px;
  background:#f5f5f5;
  color:#182330;
  border:0;
  border-radius:6px;
}
#mistileva-send{
  background:#b99b65;
  color:#14202b;
  border:0;
  border-radius:6px;
  padding:10px;
  cursor:pointer;
}

/* Official Mistileva portraits */
#mistileva-toggle{
  display:flex;
  align-items:center;
  gap:10px;
}
.mistileva-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  display:block;
}
.mistileva-identity{
  display:flex;
  align-items:center;
  gap:12px;
}
.mistileva-header-photo{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}

/* NIC MISTILEVA CUERPO COMPLETO */
.mistileva-avatar{width:56px!important;height:84px!important;object-fit:contain!important;object-position:center!important;border-radius:7px!important;flex-shrink:0!important;}


/* NIC MISTILEVA REFINAMIENTO V1 */

.mistileva-avatar {
    width:56px!important;
    height:84px!important;
    padding:4px 3px!important;
    box-sizing:border-box!important;
    object-fit:contain!important;
    object-position:center center!important;
    background:#171512!important;
    border:1px solid #9c8056!important;
    border-radius:7px!important;
    flex-shrink:0!important;
    display:block!important;
}



/* NIC MISTILEVA AVATAR UNIFICADO */
.mistileva-avatar {
    width:44px!important;
    height:44px!important;
    padding:0!important;
    object-fit:cover!important;
    object-position:center 25%!important;
    border-radius:50%!important;
    border:1px solid #9c8056!important;
    flex-shrink:0!important;
}
