.note-ai-tutor.hidden {
  width: 0;
  margin-right: 0;
  opacity: 0;
  overflow: hidden;
  display: block;
  transition: opacity .3s ease-out, width 0.5s ease-out, margin 0.5s ease-out;
}

.note-ai-tutor {
  opacity: 1;
  transition: opacity .8s ease-in, width 0.5s ease-in, margin 0.5s ease-in;
}

.ai_message {
  position: relative;
  max-width: 85%;
  h2,h3,h4,p,ol,ul { margin-bottom: 1rem;}
}

.ai_message.tutor:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -2px;
  left: -7px;
  height: 20px;
  width: 20px;
  border-bottom-right-radius: 20px;
}

.ai_message.tutor:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -2px;
  left: -10px;
  width: 10px;
  height: 20px;
  border-bottom-right-radius: 20px;
}

.ai_message.user:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -2px;
  right: -8px;
  height: 20px;
  width: 20px;
  border-bottom-left-radius: 20px;
}

.ai_message.user:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -2px;
  right: -10px;
  width: 10px;
  height: 20px;
  border-bottom-left-radius: 20px;
}

.ai_chat  {
  ::-webkit-scrollbar {
    display: none;
  }
}

.katex-html {
  text-wrap: auto;
}

.katex .base {
  margin-bottom: 1rem;
}