/* src/components/CustomThemeDescription/CustomThemeDescriptionModal.scss */
.custom-theme-description {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
}
.custom-theme-description-btn {
  display: inline-block;
  cursor: pointer;
  margin: 0;
  padding: 0 0.4em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
}
.custom-theme-description-btn:hover {
  border-color: var(--theme-elevation-150);
  background: transparent;
}
.custom-theme-description-modal {
  background: var(--theme-elevation-0);
  border: 1px solid var(--theme-elevation-50);
  padding: 1rem;
  border-radius: 0.3rem;
}
.custom-theme-description-modal__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.6rem 0;
}
.custom-theme-description-modal__header h3 {
  display: flex;
  gap: 0.5em;
  margin: 0;
}
.custom-theme-description-modal__header h3 svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* src/components/LlmKbFile/GenerateKbModal.scss */
.generate-kb-options {
  padding-top: 0.4807692308rem;
  padding-bottom: 0.4807692308rem;
  color: var(--theme-elevation-400);
  transform: translateY(-1.9230769231rem);
}
.generate-kb-options__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 10px;
  margin-top: -3.8461538462rem;
  margin-bottom: 3.8461538462rem;
}
.generate-kb-options__actions .btn {
  margin: 0;
}
.generate-kb-options__actions svg {
  fill: currentColor;
}
.generate-kb-options__modal:before,
.generate-kb-options__modal:after {
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.generate-kb-options__modal:before {
  background: var(--theme-bg);
  opacity: 0.85;
}
.generate-kb-options__modal:after {
  backdrop-filter: blur(5px);
}
.generate-kb-options__modal .template-minimal {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 1.9230769231rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 100%;
  min-height: 100vh;
  z-index: 1;
  position: relative;
}
.generate-kb-options__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.6rem 0;
}
.generate-kb-options__header h3 {
  display: flex;
  gap: 0.5em;
  margin: 0;
}
.generate-kb-options__header h3 svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.generate-kb-options__main .rich-text__editor {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: max(160px, 100vh - 650px);
}
.generate-kb-options__foot {
  display: flex;
  gap: 2rem;
}
.generate-kb-options__foot > .btn,
.generate-kb-options__foot > .form-submit {
  flex: 1 1 calc(50% - 1rem);
}
.generate-kb-options__foot > .btn > .btn,
.generate-kb-options__foot > .form-submit > .btn {
  width: 100%;
}

/* src/components/LlmRule/GenerateRulesModal.scss */
.generate-rules-options {
  padding-top: 0.4807692308rem;
  padding-bottom: 0.4807692308rem;
  color: var(--theme-elevation-400);
  transform: translateY(-1.9230769231rem);
}
.generate-rules-options__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  column-gap: 10px;
  margin-top: -3.8461538462rem;
  margin-bottom: 3.8461538462rem;
}
.generate-rules-options__actions .btn {
  margin: 0;
}
.generate-rules-options__actions svg {
  fill: currentColor;
}
.generate-rules-options__modal:before,
.generate-rules-options__modal:after {
  content: " ";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.generate-rules-options__modal:before {
  background: var(--theme-bg);
  opacity: 0.85;
}
.generate-rules-options__modal:after {
  backdrop-filter: blur(5px);
}
.generate-rules-options__modal .template-minimal {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 1.9230769231rem;
  margin-left: auto;
  margin-right: auto;
  min-height: 100%;
  min-height: 100vh;
  z-index: 1;
  position: relative;
}
.generate-rules-options__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.6rem 0;
}
.generate-rules-options__header h3 {
  display: flex;
  gap: 0.5em;
  margin: 0;
}
.generate-rules-options__header h3 svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.generate-rules-options__main .rich-text__editor {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: max(160px, 100vh - 650px);
}
.generate-rules-options__foot {
  display: flex;
  gap: 2rem;
}
.generate-rules-options__foot > .btn,
.generate-rules-options__foot > .form-submit {
  flex: 1 1 calc(50% - 1rem);
}
.generate-rules-options__foot > .btn > .btn,
.generate-rules-options__foot > .form-submit > .btn {
  width: 100%;
}

/* src/components/LlmLinks/Llm.scss */
.llm .template-default__wrap,
.llm form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.llm__container {
  padding-top: 1.9230769231rem;
  padding-bottom: 1.9230769231rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.llm__app {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  gap: 3em;
}
.llm__row {
  padding: 10px 0;
}
.llm__row h4,
.llm__row p {
  margin: 0;
}
.llm__row pre {
  padding: 5px 10px;
  max-height: 150px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-line;
  border: 1px solid var(--theme-elevation-150);
  background: var(--theme-input-bg);
}
.llm__row .btn {
  margin: 0;
}
.llm__row + .llm__row {
  border-top: 1px solid var(--theme-elevation-150);
}
.llm__flex {
  display: flex;
  column-gap: 5px;
}
.llm__main {
  flex-grow: 1;
  position: relative;
  max-height: calc(100vh - 375px);
  overflow-x: hidden;
  overflow-y: auto;
}
.llm__thread {
  display: flex;
  margin-bottom: 1em;
}
.llm__thread.user {
  justify-content: flex-end;
}
.llm__thread.assistant {
  justify-content: flex-start;
}
.llm__message {
  width: calc(100% - 80px);
  max-width: 600px;
  padding: 1em;
  border: 1px solid var(--theme-elevation-150);
  background: var(--theme-input-bg);
  color: var(--theme-elevation-800);
  border-radius: 0;
}
.llm__message code {
  display: block;
  word-break: break-all;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.llm__text {
  margin: 0 0 0.5em 0;
}
.llm__text:last-child {
  margin: 0;
}
.llm__text p {
  margin: 0;
}
.llm__text h1,
.llm__text h2,
.llm__text h3,
.llm__text h4,
.llm__text h5,
.llm__text h6 {
  margin: 0.5em 0;
}
.llm__text img {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 230px;
  margin: 8px 0;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.llm__card {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.llm__card-title {
  margin: 0.2em 0 0.4em 0;
  font-size: 1.5em;
  line-height: 1.25;
}
.llm__card-abstract,
.llm__card-description {
  line-height: 1.45;
  margin-bottom: 10px;
}
.llm__card-title p,
.llm__card-abstract p,
.llm__card-description p {
  margin: 0;
}
.llm__card-title em,
.llm__card-abstract em,
.llm__card-description em {
  font-style: normal;
}
.llm__card-image img {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 230px;
  margin: 8px 0;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.llm__pill {
  padding: 2px 4px;
  line-height: 1.25;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.llm__pill + .llm__pill {
  margin-left: 4px;
}
.llm__foot {
  position: relative;
  flex: 0 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.llm__upload {
  position: relative;
}
.llm__upload-cta {
  pointer-events: none;
}
.llm__upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.llm__upload-file {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin: 0;
  padding: 0.2em 1em;
  border-radius: 8px;
}
.llm__upload-file .btn__label {
  display: flex;
  align-items: center;
  column-gap: 0.35em;
}
.llm__upload-file .llm__upload-filename {
  display: block;
  max-width: 100px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--llm-pill-font-family);
  font-weight: 700;
}
.llm__upload-file:hover .llm__upload-image {
  display: block;
}
.llm__upload-image {
  display: none;
  position: absolute;
  max-width: 96px;
  max-height: 96px;
  bottom: 100%;
  right: 0;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  box-shadow: shadow(xs);
  pointer-events: none;
}
.llm .field-type.textarea {
  flex-grow: 1;
  margin: 0;
}
.llm .field-type.textarea .textarea-outer {
  height: 80px;
  max-height: 80px;
  min-height: 80px;
  line-height: 1.25;
}
.llm__chatCompletion {
  position: relative;
}
.llm__busyIndicator {
  position: absolute;
  display: block;
  width: 40px;
  height: 30px;
  left: 10px;
  bottom: 0;
  user-select: none;
  pointer-events: none;
  transition: none;
}
.llm__busyIndicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  margin-left: -2.5px;
  animation: llmBouncing 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  animation-delay: 0.2s;
}
.llm__busyIndicator > span::before,
.llm__busyIndicator > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  margin-left: -2.5px;
  animation: llmBouncing 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}
.llm__busyIndicator > span::before {
  margin-left: -14px;
}
.llm__busyIndicator > span::after {
  margin-left: 9px;
  animation-delay: 0.4s;
}
@keyframes llmBouncing {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}
.preview-btn,
.preview-btn:hover {
  background: #11d951;
  border-color: green;
  box-shadow: none;
  color: black;
  font-weight: 500;
  outline: 2px solid #05aec0;
  outline-offset: 2px;
}
.preview-btn:hover {
  background: #0ecd4a;
}
.llm-links-groups {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  gap: 25px;
}
.llm-links-groups .llm-link-group-title {
  font-size: 1.2em;
  font-weight: bold;
}
.llm-links-groups .llm-links {
  display: flex;
  flex-direction: row;
  gap: 25px;
}

/* src/components/LlmTest/Llm.scss */
.llm .template-default__wrap,
.llm form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.llm__container {
  padding-top: 1.9230769231rem;
  padding-bottom: 1.9230769231rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.llm__app {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  gap: 3em;
}
.llm__row {
  padding: 10px 0;
}
.llm__row h4,
.llm__row p {
  margin: 0;
}
.llm__row pre {
  padding: 5px 10px;
  max-height: 150px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-line;
  border: 1px solid var(--theme-elevation-150);
  background: var(--theme-input-bg);
}
.llm__row .btn {
  margin: 0;
}
.llm__row + .llm__row {
  border-top: 1px solid var(--theme-elevation-150);
}
.llm__flex {
  display: flex;
  column-gap: 5px;
}
.llm__main {
  flex-grow: 1;
  position: relative;
  max-height: calc(100vh - 375px);
  overflow-x: hidden;
  overflow-y: auto;
}
.llm__thread {
  display: flex;
  margin-bottom: 1em;
}
.llm__thread.user {
  justify-content: flex-end;
}
.llm__thread.assistant {
  justify-content: flex-start;
}
.llm__message {
  width: calc(100% - 80px);
  max-width: 600px;
  padding: 1em;
  border: 1px solid var(--theme-elevation-150);
  background: var(--theme-input-bg);
  color: var(--theme-elevation-800);
  border-radius: 0;
}
.llm__message code {
  display: block;
  word-break: break-all;
  padding: 5px 10px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.llm__text {
  margin: 0 0 0.5em 0;
}
.llm__text:last-child {
  margin: 0;
}
.llm__text p {
  margin: 0;
}
.llm__text h1,
.llm__text h2,
.llm__text h3,
.llm__text h4,
.llm__text h5,
.llm__text h6 {
  margin: 0.5em 0;
}
.llm__text img {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 230px;
  margin: 8px 0;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.llm__card {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.5);
}
.llm__card-title {
  margin: 0.2em 0 0.4em 0;
  font-size: 1.5em;
  line-height: 1.25;
}
.llm__card-abstract,
.llm__card-description {
  line-height: 1.45;
  margin-bottom: 10px;
}
.llm__card-title p,
.llm__card-abstract p,
.llm__card-description p {
  margin: 0;
}
.llm__card-title em,
.llm__card-abstract em,
.llm__card-description em {
  font-style: normal;
}
.llm__card-image img {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 230px;
  margin: 8px 0;
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.llm__pill {
  padding: 2px 4px;
  line-height: 1.25;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.llm__pill + .llm__pill {
  margin-left: 4px;
}
.llm__foot {
  position: relative;
  flex: 0 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
.llm__upload {
  position: relative;
}
.llm__upload-cta {
  pointer-events: none;
}
.llm__upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.llm__upload-file {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin: 0;
  padding: 0.2em 1em;
  border-radius: 8px;
}
.llm__upload-file .btn__label {
  display: flex;
  align-items: center;
  column-gap: 0.35em;
}
.llm__upload-file .llm__upload-filename {
  display: block;
  max-width: 100px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--llm-pill-font-family);
  font-weight: 700;
}
.llm__upload-file:hover .llm__upload-image {
  display: block;
}
.llm__upload-image {
  display: none;
  position: absolute;
  max-width: 96px;
  max-height: 96px;
  bottom: 100%;
  right: 0;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  box-shadow: shadow(xs);
  pointer-events: none;
}
.llm .field-type.textarea {
  flex-grow: 1;
  margin: 0;
}
.llm .field-type.textarea .textarea-outer {
  height: 80px;
  max-height: 80px;
  min-height: 80px;
  line-height: 1.25;
}
.llm__chatCompletion {
  position: relative;
}
.llm__busyIndicator {
  position: absolute;
  display: block;
  width: 40px;
  height: 30px;
  left: 10px;
  bottom: 0;
  user-select: none;
  pointer-events: none;
  transition: none;
}
.llm__busyIndicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  margin-left: -2.5px;
  animation: llmBouncing 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  animation-delay: 0.2s;
}
.llm__busyIndicator > span::before,
.llm__busyIndicator > span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  margin-left: -2.5px;
  animation: llmBouncing 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
}
.llm__busyIndicator > span::before {
  margin-left: -14px;
}
.llm__busyIndicator > span::after {
  margin-left: 9px;
  animation-delay: 0.4s;
}
@keyframes llmBouncing {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}
.preview-btn,
.preview-btn:hover {
  background: #11d951;
  border-color: green;
  box-shadow: none;
  color: black;
  font-weight: 500;
  outline: 2px solid #05aec0;
  outline-offset: 2px;
}
.preview-btn:hover {
  background: #0ecd4a;
}
