:root {
  --markprompt-background: #fff;
  --markprompt-foreground: #171717;
  --markprompt-muted: #fafafa;
  --markprompt-mutedForeground: #737373;
  --markprompt-border: #e5e5e5;
  --markprompt-input: #fff;
  --markprompt-primary: #6366f1;
  --markprompt-primaryForeground: #fff;
  --markprompt-primaryMuted: #8285f4;
  --markprompt-secondary: #fafafa;
  --markprompt-secondaryForeground: #171717;
  --markprompt-primaryHighlight: #ec4899;
  --markprompt-secondaryHighlight: #a855f7;
  --markprompt-overlay: #00000010;
  --markprompt-ring: #0ea5e9;
  --markprompt-radius: 8px;
  --markprompt-text-size: 0.875rem;
  --markprompt-text-size-xs: 0.75rem;
  --markprompt-button-icon-size: 1rem;
  --markprompt-icon-stroke-width: 2px;
  --markprompt-shadow: 0 1px 2px 0 #0000000d;
  --markprompt-ring-shadow: 0 0 #0000;
  --markprompt-ring-offset-shadow: 0 0 #0000;
}

@media (prefers-color-scheme: dark) {
  /* Support Docusaurus dark theme data attribute */
  :not([data-theme='light']):root {
    --markprompt-background: #050505;
    --markprompt-foreground: #d4d4d4;
    --markprompt-muted: #171717;
    --markprompt-mutedForeground: #808080;
    --markprompt-border: #262626;
    --markprompt-input: #fff;
    --markprompt-primary: #6366f1;
    --markprompt-primaryForeground: #fff;
    --markprompt-primaryMuted: #8285f4;
    --markprompt-secondary: #0e0e0e;
    --markprompt-secondaryForeground: #fff;
    --markprompt-primaryHighlight: #ec4899;
    --markprompt-secondaryHighlight: #a855f7;
    --markprompt-overlay: #00000040;
    --markprompt-ring: #fff;
  }
}

/* Support Docusaurus dark theme data attribute */
[data-theme='dark']:root {
  --markprompt-background: #050505;
  --markprompt-foreground: #d4d4d4;
  --markprompt-muted: #171717;
  --markprompt-mutedForeground: #808080;
  --markprompt-border: #262626;
  --markprompt-input: #fff;
  --markprompt-primary: #6366f1;
  --markprompt-primaryForeground: #fff;
  --markprompt-primaryMuted: #8285f4;
  --markprompt-secondary: #0e0e0e;
  --markprompt-secondaryForeground: #fff;
  --markprompt-primaryHighlight: #ec4899;
  --markprompt-secondaryHighlight: #a855f7;
  --markprompt-overlay: #00000040;
  --markprompt-ring: #fff;
}

:where([class^='Markprompt']) {
  box-sizing: border-box;
}

:where(
    [class^='Markprompt'] *,
    [class^='Markprompt'] *::before,
    [class^='Markprompt'] *::after
  ) {
  box-sizing: inherit;
}

:where(
    .MarkpromptFloatingTrigger,
    .MarkpromptSearchBoxTrigger,
    .MarkpromptClose
  ) {
  all: unset;
}

:where(.MarkpromptFloatingTrigger) {
  display: flex;
  cursor: pointer;
  border-radius: 99999px;
  color: var(--markprompt-primaryForeground);
  background-color: var(--markprompt-primary);
  padding: 0.75rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  stroke-width: var(--markprompt-icon-stroke-width);
  transition-property: opacity;
  transition-duration: 200ms;
  z-index: 20;
}

:where(.MarkpromptFloatingTrigger:hover) {
  opacity: 0.8;
}

:where(.MarkpromptSearchBoxTrigger) {
  display: flex;
  cursor: pointer;
  color: var(--markprompt-mutedForeground);
  background-color: var(--markprompt-muted);
  border: var(--markprompt-border);
  border-radius: 0.25rem;
  font-size: 0.8rem;
  min-width: 10rem;
}

:where(.MarkpromptSearchBoxTriggerContent) {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.25rem 0.5rem;
  width: 100%;
}

:where(.MarkpromptSearchBoxTriggerText) {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

:where(.MarkpromptSearchBoxTriggerContent kbd) {
  display: flex;
  align-items: center;
  margin-left: auto;
}

:where(.MarkpromptIcon) {
  width: 1.25rem;
  height: 1.25rem;
}

:where(.MarkpromptOverlay) {
  position: fixed;
  inset: 0;
  animation: markprompt-fade-in 150ms cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--markprompt-overlay);
}

:where(.MarkpromptContentDialog) {
  background-color: var(--markprompt-background);
  border-radius: var(--markprompt-radius);
  border: 1px solid var(--markprompt-border);
  box-shadow:
    hsl(206deg 22% 7% / 35%) 0 10px 38px -10px,
    hsl(206deg 22% 7% / 20%) 0 10px 20px -15px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 600px;
  height: calc(100vh - 200px);
  max-height: 600px;
  animation-name: markprompt-show-content;
  animation-duration: 300ms;
  animation-fill-mode: both;
  transition-timing-function: cubic-bezier(0.25, 0.4, 0.55, 1.4);
  color: var(--markprompt-foreground);
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  outline: 2px solid transparent;
  outline-offset: 2px;
  z-index: 100;
}

:where(.MarkpromptContentPlain) {
  background-color: var(--markprompt-background);
  width: 100%;
  height: 100%;
  color: var(--markprompt-foreground);
  display: grid;
  grid-template-rows: 1fr auto;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

:where(.MarkpromptTabsContainer) {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-y: auto;
}

:where(.MarkpromptTabsList) {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--markprompt-border);
}

:where(.MarkpromptTab) {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.25rem;
  font-weight: 600;
  padding: 0.5rem;
  font-size: var(--markprompt-text-size);
  background-color: transparent;
  outline: none;
  border: 0;
  cursor: pointer;
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptTab[data-state='active']) {
  border-top: 2px solid transparent;
  border-bottom: 2px solid var(--markprompt-primary);
  color: var(--markprompt-primary);
}

:where(.MarkpromptTab):not([data-state='active']) {
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

:where(.MarkpromptTab):hover {
  color: var(--markprompt-primary);
}

:where(.MarkpromptViews) {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;
}

:where(.MarkpromptSearchView) {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

:where(.MarkpromptPromptView) {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

:where(.MarkpromptChatView) {
  container-name: chat;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 18rem 1fr;
  height: 100%;
  position: relative;
}

:where(.MarkpromptChatViewSidebar) {
  display: none;
  border-right: 1px solid var(--markprompt-border);
}

:where(.MarkpromptChatViewChat) {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-column: span 2;
}

@container (width > 50rem) {
  :where(.MarkpromptChatView) {
    grid-template-columns: 18rem 1fr;
  }

  :where(.MarkpromptChatViewSidebar) {
    display: grid;
    grid-column: 1;
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  :where(.MarkpromptChatViewChat) {
    grid-column: 2;
  }

  :where(.MarkpromptConversationSelect) {
    display: none;
  }
}

:where(.MarkpromptChatViewSidebarTitle) {
  border-bottom: 1px solid var(--markprompt-border);
  font-size: var(--markprompt-text-size);
  margin: 0;
  padding: 1em 0.75rem;
  color: var(--markprompt-foreground);
}

:where(.MarkpromptChatConversationList) {
  list-style-type: none;
  margin: 0;
  padding: 0.5rem;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: min-content;
  overflow-y: auto;
  gap: 0.5rem;
}

:where(.MarkpromptChatConversationList button) {
  all: unset;
  display: block;
  padding-inline: 0.75rem 0.25rem;
  padding-block: 0.75rem;
  font-size: var(--markprompt-text-size);
  cursor: pointer;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  width: 100%;
}

:where(.MarkpromptChatConversationList p) {
  margin: 0;
}

:where(.MarkpromptChatConversationList p:first-of-type) {
  margin: 0;
  color: var(--markprompt-foreground);
}

:where(.MarkpromptChatConversationList p:last-of-type) {
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptChatConversationList button:hover),
:where(.MarkpromptChatConversationList [data-selected='true'] button) {
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptChatConversationList [data-selected='true'] button) {
  border-color: var(--markprompt-border);
}

:where(.MarkpromptClose) {
  color: var(--markprompt-mutedForeground);
  background-color: var(--markprompt-muted);
  padding: 0.25rem;
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  border-color: var(--markprompt-border);
  text-transform: uppercase;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

:where(.MarkpromptClose:hover) {
  opacity: 0.9;
  color: var(--markprompt-foreground);
}

:where(.MarkpromptClose:focus) {
  box-shadow: inset 0 0 0 2px var(--markprompt-primary);
}

:where(.MarkpromptClose kbd) {
  font-weight: 600;
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  font-size: 0.5rem;
}

:where(.MarkpromptForm) {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  border-bottom: 1px solid var(--markprompt-border);
  padding: 0 1rem 0 0.75rem;
  gap: 0.75rem;
}

:where(.MarkpromptChatView .MarkpromptForm) {
  position: relative;
  border-top: 1px solid var(--markprompt-border);
  border-bottom: 0;
  background-color: var(--markprompt-background);
}

:where(.MarkpromptMessageAnswerContainer) {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: first baseline;
  max-width: 100%;
}

:where(.MarkpromptMessageAnswer) {
  overflow: hidden;
}

:where(.MarkpromptRegenerateButton) {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--markprompt-border);
  background-color: var(--markprompt-background);
  color: var(--markprompt-foreground);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--markprompt-ring-offset-shadow, 0 0 #0000),
    var(--markprompt-ring-shadow, 0 0 #0000), var(--markprompt-shadow);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

:where(.MarkpromptRegenerateButton:hover) {
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptPromptLabel) {
  cursor: pointer;
  display: flex;
  flex: none;
  padding: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
}

:where(.MarkpromptMessagePrompt) {
  padding-inline: 1.5rem;
  background-color: var(--markprompt-muted);
  border-top: 1px solid var(--markprompt-border);
  border-bottom: 1px solid var(--markprompt-border);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

:where(.MarkpromptAutoScroller section:first-of-type .MarkpromptMessagePrompt) {
  border-top: none;
  margin-top: 0;
}

:where(.MarkpromptMessagePromptText) {
  font-size: var(--markprompt-text-size);
  color: var(--markprompt-foreground);
}

:where(.MarkpromptPrimaryIcon) {
  color: var(--markprompt-primary);
}

:where(.MarkpromptHighlightedIcon) {
  color: var(--markprompt-primaryHighlight);
}

:where(.MarkpromptBaseIcon) {
  width: var(--markprompt-button-icon-size);
  height: var(--markprompt-button-icon-size);
  stroke-width: var(--markprompt-icon-stroke-width);
}

:where(.MarkpromptSearchIcon) {
  color: var(--markprompt-mutedForeground);
  width: var(--markprompt-button-icon-size);
  height: var(--markprompt-button-icon-size);
  stroke-width: var(--markprompt-icon-stroke-width);
}

:where(.MarkpromptTitle) {
  margin-block-start: 0;
}

:where(.MarkpromptPrompt) {
  border: none;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: var(--markprompt-text-size);
  background-color: var(--markprompt-background);
  color: var(--markprompt-foreground);
  caret-color: var(--markprompt-primary);
}

:where(.MarkpromptPrompt::placeholder) {
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptPrompt:focus) {
  outline: none;
}

/* Remove 2px padding that some browsers add to input */
:where(.MarkpromptPrompt[type='search' i]) {
  padding: 1rem 3rem 1rem 0;
}

/* Remove the 'x' clear button from the search :where(.MarkpromptPrompt field */
.MarkpromptPrompt[type='search']::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.MarkpromptPrompt[type='search']::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.MarkpromptPrompt[type='search']::-webkit-search-decoration,
.MarkpromptPrompt[type='search']::-webkit-search-cancel-button,
.MarkpromptPrompt[type='search']::-webkit-search-results-button,
.MarkpromptPrompt[type='search']::-webkit-search-results-decoration {
  display: none;
}

:where(.MarkpromptAnswerContainer) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

:where(.MarkpromptMessages) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

:where(.MarkpromptAutoScroller) {
  flex: 1 1 auto;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 3rem;
}

:where(.MarkpromptAutoScroller::-webkit-scrollbar) {
  display: none;
}

:where(.MarkpromptAnswer) {
  color: var(--markprompt-foreground);
  font-size: 0.875rem;
  font-size: var(--markprompt-text-size);
  line-height: 1.7142857;
}

:where(.MarkpromptPromptView .MarkpromptAnswer) {
  padding: 1rem 2rem;
}

:where(.MarkpromptChatView .MarkpromptAnswer) {
  padding: 0 2rem 1rem;
}

:where(.MarkpromptAnswer p) {
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
}

:where(.MarkpromptAnswer a) {
  color: var(--markprompt-primary);
  text-decoration: underline;
  font-weight: 500;
}

:where(.MarkpromptAnswer strong) {
  font-weight: 600;
}

:where(.MarkpromptAnswer a strong) {
  color: inherit;
}

:where(.MarkpromptAnswer blockquote strong) {
  color: inherit;
}

:where(.MarkpromptAnswer thead th strong) {
  color: inherit;
}

:where(.MarkpromptAnswer ol) {
  list-style-type: decimal;
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
  padding-left: 1.5714286em;
}

:where(.MarkpromptAnswer ol[type='A']) {
  list-style-type: upper-alpha;
}

:where(.MarkpromptAnswer ol[type='a']) {
  list-style-type: lower-alpha;
}

:where(.MarkpromptAnswer ol[type='A' s]) {
  list-style-type: upper-alpha;
}

:where(.MarkpromptAnswer ol[type='a' s]) {
  list-style-type: lower-alpha;
}

:where(.MarkpromptAnswer ol[type='I']) {
  list-style-type: upper-roman;
}

:where(.MarkpromptAnswer ol[type='i']) {
  list-style-type: lower-roman;
}

:where(.MarkpromptAnswer ol[type='I' s]) {
  list-style-type: upper-roman;
}

:where(.MarkpromptAnswer ol[type='i' s]) {
  list-style-type: lower-roman;
}

:where(.MarkpromptAnswer ol[type='1']) {
  list-style-type: decimal;
}

:where(.MarkpromptAnswer ul) {
  list-style-type: disc;
  margin-top: 1.1428571em;
  margin-bottom: 1.1428571em;
  padding-left: 1.5714286em;
}

:where(.MarkpromptAnswer ol > li::marker) {
  font-weight: 400;
  color: var(--markprompt-foreground);
}

:where(.MarkpromptAnswer ul > li::marker) {
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptAnswer hr) {
  border-color: var(--markprompt-border);
  border-top-width: 1;
  margin-top: 2.8571429em;
  margin-bottom: 2.8571429em;
}

:where(.MarkpromptAnswer blockquote) {
  font-weight: 500;
  font-style: italic;
  color: var(--markprompt-foreground);
  border-left-width: 0.25rem;
  border-left-color: var(--markprompt-border);
  quotes: '\201C' '\201D' '\2018' '\2019';
  margin-top: 1.3333333em;
  margin-bottom: 1.3333333em;
  padding-left: 1.1111111em;
}

:where(.MarkpromptAnswer blockquote p:first-of-type::before) {
  content: open-quote;
}

:where(.MarkpromptAnswer blockquote p:last-of-type::after) {
  content: close-quote;
}

:where(.MarkpromptAnswer h1) {
  color: var(--markprompt-foreground);
  font-weight: 800;
  font-size: 2.1428571em;
  margin-top: 0;
  margin-bottom: 0.8em;
  line-height: 1.2;
}

:where(.MarkpromptAnswer h1 strong) {
  font-weight: 900;
  color: inherit;
}

:where(.MarkpromptAnswer h2) {
  color: var(--markprompt-foreground);
  font-weight: 700;
  font-size: 1.4285714em;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

:where(.MarkpromptAnswer h2 strong) {
  font-weight: 800;
  color: inherit;
}

:where(.MarkpromptAnswer h3) {
  color: var(--markprompt-foreground);
  font-weight: 600;
  font-size: 1.2857143em;
  margin-top: 1.5555556em;
  margin-bottom: 0.4444444em;
  line-height: 1.5555556;
}

:where(.MarkpromptAnswer h3 strong) {
  font-weight: 700;
  color: inherit;
}

:where(.MarkpromptAnswer h4) {
  color: var(--markprompt-foreground);
  font-weight: 600;
  margin-top: 1.4285714em;
  margin-bottom: 0.5714286em;
  line-height: 1.4285714;
}

:where(.MarkpromptAnswer h4 strong) {
  font-weight: 700;
  color: inherit;
}

:where(.MarkpromptAnswer img) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

:where(.MarkpromptAnswer figure > *) {
  margin-top: 0;
  margin-bottom: 0;
}

:where(.MarkpromptAnswer figcaption) {
  color: var(--markprompt-mutedForeground);
  font-size: 0.8571429em;
  line-height: 1.3333333;
  margin-top: 0.6666667em;
}

:where(.MarkpromptAnswer code) {
  color: var(--markprompt-foreground);
  font-weight: 600;
  font-size: 0.8571429em;
}

:where(.MarkpromptAnswer code::before) {
  content: '`';
}

:where(.MarkpromptAnswer code::after) {
  content: '`';
}

:where(.MarkpromptAnswer a code) {
  color: inherit;
}

:where(.MarkpromptAnswer h1 code) {
  color: inherit;
}

:where(.MarkpromptAnswer h2 code) {
  color: inherit;
  font-size: 0.9em;
}

:where(.MarkpromptAnswer h3 code) {
  color: inherit;
  font-size: 0.8888889em;
}

:where(.MarkpromptAnswer h4 code) {
  color: inherit;
}

:where(.MarkpromptAnswer blockquote code) {
  color: inherit;
}

:where(.MarkpromptAnswer thead th code) {
  color: inherit;
}

:where(.MarkpromptAnswer pre) {
  color: var(--markprompt-foreground);
  background-color: var(--markprompt-muted);
  border: 1px solid var(--markprompt-border);
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.8571429em;
  line-height: 1.6666667;
  margin-top: 1.6666667em;
  margin-bottom: 1.6666667em;
  border-radius: 0.25rem;
  padding: 0.6666667em 1em;
}

:where(.MarkpromptAnswer pre code) {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

:where(.MarkpromptAnswer pre code::before) {
  content: none;
}

:where(.MarkpromptAnswer pre code::after) {
  content: none;
}

:where(.MarkpromptAnswer table) {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.8571429em;
  line-height: 1.5;
}

:where(.MarkpromptAnswer thead) {
  border-bottom-width: 1px;
  border-bottom-color: var(--markprompt-border);
}

:where(.MarkpromptAnswer thead th) {
  color: var(--markprompt-foreground);
  font-weight: 600;
  vertical-align: bottom;
  padding-right: 1em;
  padding-bottom: 0.6666667em;
  padding-left: 1em;
}

:where(.MarkpromptAnswer tbody tr) {
  border-bottom-width: 1px;
  border-bottom-color: var(--markprompt-border);
}

:where(.MarkpromptAnswer tbody tr:last-child) {
  border-bottom-width: 0;
}

:where(.MarkpromptAnswer tbody td) {
  vertical-align: baseline;
}

:where(.MarkpromptAnswer tfoot) {
  border-top-width: 1px;
  border-top-color: var(--markprompt-border);
}

:where(.MarkpromptAnswer tfoot td) {
  vertical-align: top;
}

:where(.MarkpromptAnswer video) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

:where(.MarkpromptAnswer figure) {
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
}

:where(.MarkpromptAnswer li) {
  margin-top: 0.2857143em;
  margin-bottom: 0.2857143em;
}

:where(.MarkpromptAnswer ol > li) {
  padding-left: 0.4285714em;
}

:where(.MarkpromptAnswer ul > li) {
  padding-left: 0.4285714em;
}

:where(.MarkpromptAnswer > ul > li p) {
  margin-top: 0.5714286em;
  margin-bottom: 0.5714286em;
}

:where(.MarkpromptAnswer > ul > li > *:first-child) {
  margin-top: 1.1428571em;
}

:where(.MarkpromptAnswer > ul > li > *:last-child) {
  margin-bottom: 1.1428571em;
}

:where(.MarkpromptAnswer > ol > li > *:first-child) {
  margin-top: 1.1428571em;
}

:where(.MarkpromptAnswer > ol > li > *:last-child) {
  margin-bottom: 1.1428571em;
}

:where(.MarkpromptAnswer ul ul),
:where(.MarkpromptAnswer ul ol),
:where(.MarkpromptAnswer ol ul),
:where(.MarkpromptAnswer ol ol) {
  margin-top: 0.5714286em;
  margin-bottom: 0.5714286em;
}

:where(.MarkpromptAnswer hr + *) {
  margin-top: 0;
}

:where(.MarkpromptAnswer h2 + *) {
  margin-top: 0;
}

:where(.MarkpromptAnswer h3 + *) {
  margin-top: 0;
}

:where(.MarkpromptAnswer h4 + *) {
  margin-top: 0;
}

:where(.MarkpromptAnswer thead th:first-child) {
  padding-left: 0;
}

:where(.MarkpromptAnswer thead th:last-child) {
  padding-right: 0;
}

:where(.MarkpromptAnswer tbody td),
:where(.MarkpromptAnswer tfoot td) {
  padding: 0.6666667em 1em;
}

:where(.MarkpromptAnswer tbody td:first-child),
:where(.MarkpromptAnswer tfoot td:first-child) {
  padding-left: 0;
}

:where(.MarkpromptAnswer tbody td:last-child),
:where(.MarkpromptAnswer tfoot td:last-child) {
  padding-right: 0;
}

:where(.MarkpromptMessageAnswer .MarkpromptAnswer) {
  padding: 0 1.5rem;
}

:where(.MarkpromptCaret) {
  display: none;
  height: 1em;
  width: 0.8ch;
  margin-top: 1.1428571em;
  margin-left: 0.2rem;
  transform: translate(2px, 2px);
  border-radius: 1px;
  background-color: var(--markprompt-primary);
  box-shadow: 0 0 3px 0 var(--markprompt-primary);
  animation-name: markprompt-fade-out;
  animation-duration: 1000ms;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  transition-timing-function: cubic-bezier(0.14, 0, 0.16, 1);
}

:where([data-loading-state='preload'] .MarkpromptCaret) {
  display: inline-block;
}

:where(.MarkpromptExtendedFeedback) {
  display: block;
  margin-top: 0.5rem;
}

:where(.MarkpromptExtendedFeedback button) {
  margin-top: 0.5rem;
}

:where(.MarkpromptPromptFeedback label[data-id="list-label"]) {
  display: block;
}

:where(.MarkpromptPromptFeedback[data-variant='text']) {
  margin: 0 2rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--markprompt-border);
}

:where(.MarkpromptPromptFeedback[data-variant='icons']) {
  padding: 0.75rem 0;
  margin-right: 1rem;
  align-self: last baseline;
}

:where(.MarkpromptPromptFeedback[data-variant='text'] h3) {
  animation: markprompt-fade-in 500ms ease-out forwards 1;
  font-size: var(--markprompt-text-size-xs);
  font-weight: 600;
  color: var(--markprompt-mutedForeground);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

:where(.MarkpromptPromptFeedback[data-variant='icons'] h3) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

:where(.MarkpromptFeedbackButtons) {
  display: flex;
  gap: 0.375rem;
}

label.MarkpromptExtendedFeedbackLabel {
  display: block;
}

.MarkpromptExtendedFeedbackLabel input {
  margin-right: 0.5rem;
}

:where(.MarkpromptPromptFeedback button) {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border-radius: 0.375rem;
  animation-name: markprompt-slide-up;
  animation-duration: 1s;
  animation-fill-mode: backwards;
  transition-timing-function: ease-in-out;
  color: var(--markprompt-mutedForeground);
  background-color: transparent;
}

:where(.MarkpromptPromptFeedback[data-variant='icons'] button) {
  border: 0;
}

:where(.MarkpromptPromptFeedback[data-variant='text'] button) {
  border: 1px solid var(--markprompt-border);
}

:where(.MarkpromptPromptFeedback button[data-active='true']) {
  background-color: var(--markprompt-primary);
  color: var(--markprompt-primaryForeground);
  border-color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptExtendedFeedbackRadio[data-active='true']) {
  background-color: var(--markprompt-primary);
  color: var(--markprompt-primaryForeground);
  border-color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptExtendedFeedbackTextInput[data-active='true']) {
  background-color: var(--markprompt-primary);
  color: var(--markprompt-primaryForeground);
  border-color: var(--markprompt-primaryForeground);
}

.MarkpromptExtendedFeedbackTextInput {
  margin-bottom: 0.5rem;
}

.MarkpromptPromptFeedback button[data-active='true']:hover {
  background-color: var(--markprompt-primary);
}

:where(.MarkpromptPromptFeedback button svg) {
  display: block;
}

.MarkpromptPromptFeedback button:hover {
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptProgress) {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  background-image: linear-gradient(
    to right,
    var(--markprompt-primaryHighlight),
    var(--markprompt-secondaryHighlight)
  );
  animation-name: markprompt-progress;
  animation-duration: 2s;
  animation-fill-mode: none;
  animation-iteration-count: infinite;
  transition-timing-function: cubic-bezier(0.14, 0, 0.16, 1);
  transition-property: opacity;
  transition-duration: 200ms;
  opacity: 0;
}

:where([data-loading-state='preload'] .MarkpromptProgress) {
  opacity: 1;
}

:where(.MarkpromptMessagePrompt .MarkpromptProgress) {
  bottom: -1px;
  top: unset;
}

:where(.MarkpromptReferences) {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  background-color: var(--markprompt-muted);
  border-top: 1px solid var(--markprompt-border);
  font-size: 0.875rem;
  color: var(--markprompt-mutedForeground);
  overflow: hidden;
  flex: 0 0 auto;
  transition-property: opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

:where(.MarkpromptReferences[data-loading-state='cancelled']) {
  display: none;
}

:where(.MarkpromptChatView .MarkpromptReferences) {
  background-color: unset;
  border-top: none;
  padding-block: 0 1.5rem;
}

:where(.MarkpromptPromptView .MarkpromptReferences p) {
  padding-inline: 2rem;
  margin-top: 0;
}

:where(.MarkpromptReferences[data-loading-state='preload']) {
  overflow-x: hidden;
}

:where(.MarkpromptChatView .MarkpromptReferences p) {
  animation: markprompt-fade-in 500ms ease-out forwards 1;
  font-weight: 600;
  margin: 0;
  margin-bottom: 0.5rem;
  padding-inline: 2rem;
}

.MarkpromptChatView .MarkpromptReferences p {
  padding-inline: 1.5rem;
}

:where(.MarkpromptReferences ul) {
  --transparent: rgb(255 255 255 / 0%);
  --shadow-size: 0.5rem;
  --shadow-color: var(--markprompt-border);

  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.25rem;
  list-style-type: none;
  margin-bottom: 0;
  overflow-x: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

:where(.MarkpromptPromptView .MarkpromptReferences ul) {
  padding: 0.25rem 2rem 0.5rem;
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptChatView .MarkpromptReferences ul) {
  background-color: unset;
  padding: 0.25rem 1.5rem 0.5rem;
}

.MarkpromptReferences ul::-webkit-scrollbar {
  display: none;
}

.MarkpromptReferences::before,
.MarkpromptReferences::after {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 0;
  width: 1rem;
  pointer-events: none;
  z-index: 1;
}

.MarkpromptReferences::before {
  left: 0;
  background-image: linear-gradient(
    to right,
    var(--markprompt-muted),
    transparent
  );
}

.MarkpromptReferences::after {
  right: 0;
  background-image: linear-gradient(
    to left,
    var(--markprompt-muted),
    transparent
  );
}

:where(.MarkpromptReference) {
  font-size: 0.875rem;
  line-height: 1.5rem;
  animation-name: markprompt-slide-up;
  animation-duration: 1s;
  animation-fill-mode: both;
  transition-timing-function: ease-in-out;
}

:where(.MarkpromptReference a) {
  display: inline-block;
  text-decoration: none;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--markprompt-border);
  border-radius: 0.375rem;
  color: var(--markprompt-primary);
  font-weight: 500;
  transition-property: opacity;
  transition-duration: 200ms;
  white-space: nowrap;
}

:where(.MarkpromptReference a:hover) {
  opacity: 0.8;
}

:where(.MarkpromptCancelled) {
  padding-inline: 1.5rem;
}

:where(.MarkpromptCancelledText) {
  font-size: var(--markprompt-text-size-xs);
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptBackButton) {
  font-size: var(--markprompt-text-size);
  background-color: var(--markprompt-muted);
  color: var(--markprompt-primary);
  border-bottom: 1px solid var(--markprompt-border);
  display: flex;
  flex: none;
  align-items: center;
  font-weight: 500;
  padding: 0.5rem 1rem;
  gap: 0.25rem;
  cursor: pointer;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  outline: none;
}

:where(.MarkpromptBackButton span:first-child) {
  display: flex;
  align-items: center;
}

:where(.MarkpromptBackButton span:last-child) {
  display: flex;
  align-items: center;
  font-weight: 500;
}

:where(.MarkpromptSearchResultsContainer) {
  padding: 0 0.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

:where(.MarkpromptSearchAnswerButton) {
  box-sizing: border-box;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--markprompt-muted);
  color: var(--markprompt-foreground);
  font-size: var(--markprompt-text-size);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  width: 100%;
  border: none;
  outline: none;
}

:where(.MarkpromptSearchAnswerButton:hover),
:where(.MarkpromptSearchAnswerButton:focus) {
  background-color: var(--markprompt-primary);
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptSearchAnswerButton:hover .MarkpromptSearchIcon),
:where(.MarkpromptSearchAnswerButton:focus .MarkpromptSearchIcon) {
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptSearchAnswerButton :last-child) {
  margin-left: auto;
}

:where(.MarkpromptSearchAnswerButton kbd) {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 4px;
  color: var(--markprompt-mutedForeground);
}

.MarkpromptSearchAnswerButton:hover kbd svg,
.MarkpromptSearchAnswerButton:focus kbd svg {
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptKeyboardKey) {
  color: var(--markprompt-mutedForeground);
  stroke-width: var(--markprompt-icon-stroke-width);
  width: calc(var(--markprompt-button-icon-size) * 0.8);
  height: calc(var(--markprompt-button-icon-size) * 0.8);
}

:where(.MarkpromptSearchResults),
:where(.MarkpromptSearchSubResults) {
  list-style-position: inside;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

:where(.MarkpromptSearchResults:focus) {
  outline: none;
}

:where(.MarkpromptSearchResults) {
  padding: 0;
}

:where(.MarkpromptSearchSubResults) {
  padding: 0;
}

:where(.MarkpromptSearchResult:first-of-type) {
  padding-top: 0.5rem;
}

:where(.MarkpromptSearchResult) {
  display: list-item;
  text-align: -webkit-match-parent;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0.5rem;
}

:where(.MarkpromptSearchResult a) {
  color: inherit;
  text-decoration: none;
}

:where(.MarkpromptSearchResultIndented) {
  margin-left: 1.75rem;
  padding-left: 1rem;
  padding-right: 0;
  border-left: 1px solid var(--markprompt-border);
}

:first-child(.MarkpromptSearchResultIndented) {
  padding-top: 1.5rem;
}

:where(.MarkpromptSearchResultLink) {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--markprompt-muted);
}

:where([aria-selected='true'] .MarkpromptSearchResultLink) {
  background-color: var(--markprompt-primary);
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptSearchResultContainer) {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 1rem;
  padding: 0.25rem 0;
}

:where(.MarkpromptSearchResultIconWrapper) {
  display: flex;
  flex: none;
  padding: 5px;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
}

:where(.MarkpromptSearchResultIconWrapperBordered) {
  background-color: var(--markprompt-background);
  border-radius: 0.375rem;
  border-style: solid;
  border-color: var(--markprompt-border);
}

:where([aria-selected='true'] .MarkpromptSearchResultIconWrapperBordered) {
  background-color: transparent;
  border-color: var(--markprompt-primaryMuted);
}

:where(.MarkpromptSearchResultIcon) {
  color: var(--markprompt-mutedForeground);
  stroke-width: var(--markprompt-icon-stroke-width);
  width: var(--markprompt-button-icon-size);
  height: var(--markprompt-button-icon-size);
}

:where([aria-selected='true'] .MarkpromptSearchResultIcon) {
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptSearchResultContentWrapper) {
  display: flex;
  flex-grow: 1;
  font-size: var(--markprompt-text-size);
  flex-direction: column;
  overflow: hidden;
}

:where(.MarkpromptSearchResultHeading) {
  width: min-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  background-color: var(--markprompt-background);
  border-radius: 9999px;
  border-color: var(--markprompt-border);
  border-style: solid;
  border-width: 1px;
  padding: 1px 8px;
  font-size: var(--markprompt-text-size-xs);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

:where([aria-selected='true'] .MarkpromptSearchResultHeading) {
  background-color: var(--markprompt-primaryMuted);
  border-color: var(--markprompt-primaryMuted);
}

:where(.MarkpromptSearchResultTitle) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

:where(.MarkpromptSearchResultSubtitle) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: var(--markprompt-text-size-xs);
  margin-top: 0.25rem;
  color: var(--markprompt-mutedForeground);
}

:where([aria-selected='true'] .MarkpromptSearchResultSubtitle) {
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptMatch) {
  font-weight: 600;
  color: var(--markprompt-primary);
  border-bottom: 0.1rem solid var(--markprompt-primary);
}

[aria-selected='true'] .MarkpromptSearchResultHeading .MarkpromptMatch,
:where(.MarkpromptSearchResultHeading .MarkpromptMatch) {
  border-bottom-color: transparent;
}

:where([aria-selected='true'] .MarkpromptMatch) {
  border-color: var(--markprompt-primaryForeground);
  color: var(--markprompt-primaryForeground);
}

:where(.MarkpromptNoSearchResults) {
  font-size: var(--markprompt-text-size);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
}

:where(.MarkpromptNoSearchResults p) {
  color: var(--markprompt-mutedForeground);
  padding: 2rem;
  text-align: center;
}

:where(.MarkpromptNoSearchResults span) {
  color: var(--markprompt-foreground);
  font-weight: 600;
}

:where(.MarkpromptChatActions) {
  display: flex;
  gap: 0.25rem;
  position: absolute;
  top: -1rem;
  right: 1.25rem;
  transform: translateY(-100%);
}

:where(.MarkpromptNewChatIcon) {
  width: 1.25em;
  height: 1.25em;
  color: var(--markprompt-mutedForeground);
}

:where(.MarkpromptSelect) {
  position: relative;
}

:where(.MarkpromptSelectToggle) {
  all: unset;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--markprompt-background);
  border: 1px solid var(--markprompt-border);
  border-radius: 0.375rem;
  color: var(--markprompt-mutedForeground);
  cursor: pointer;
  box-shadow: var(--markprompt-ring-offset-shadow, 0 0 #0000),
    var(--markprompt-ring-shadow, 0 0 #0000), var(--markprompt-shadow);
}

:where(.MarkpromptSelectToggle:hover) {
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptSelectMenu) {
  display: none;
  background-color: var(--markprompt-background);
  border: 1px solid var(--markprompt-border);
  border-radius: 0.375rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  list-style-type: none;
  padding-left: 0;
  z-index: 2;
  box-shadow: var(--markprompt-ring-offset-shadow, 0 0 #0000),
    var(--markprompt-ring-shadow, 0 0 #0000), var(--markprompt-shadow);
  max-width: 30ch;
}

:where(.MarkpromptSelectMenu[data-open='true']) {
  display: block;
}

:where(.MarkpromptSelectMenu li) {
  margin-left: 0;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

:where(.MarkpromptSelectMenu li[data-highlighted='true']) {
  background-color: var(--markprompt-muted);
}

:where(.MarkpromptSelectMenu li[data-selected='true']) {
  font-weight: 600;
}

:where(.MarkpromptNewChatOption) {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@keyframes markprompt-show-content {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
  }

  50% {
    transform: translate(-50%, -51%) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes markprompt-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes markprompt-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes markprompt-progress {
  0% {
    width: 0;
    transform: translateX(0);
  }

  50% {
    width: 100%;
    transform: translateX(0);
  }

  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

@keyframes markprompt-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes markprompt-slide-from-left {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes markprompt-slide-from-right {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.loading-dots {
  @apply inline-flex items-center text-center leading-7;
}

.loading-dots > span {
  @apply h-[5px] w-[5px] rounded-full;

  animation-name: blink;
  animation-duration: 1.4s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  margin: 0 2px;
}

.loading-dots > span:nth-of-type(2) {
  animation-delay: 0.2s;
}

.loading-dots > span:nth-of-type(3) {
  animation-delay: 0.4s;
}

:where(.MarkpromptDisclaimer) {
  color: orange;
  display: flex;
  gap: 10px;
  align-items: center;
}


