/* GENERATED by scripts/bundle-css.mjs — do not edit. */
/* assistant-ui prebuilt styles (scoped under :where(.aui-root)). */

/* ===== @assistant-ui/react-ui/styles/index.css ===== */
/* src/styles/base.css */
:where(.aui-root) *,
:where(.aui-root) ::before,
:where(.aui-root) ::after {
  --aui-border-spacing-x: 0;
  --aui-border-spacing-y: 0;
  --aui-translate-x: 0;
  --aui-translate-y: 0;
  --aui-rotate: 0;
  --aui-skew-x: 0;
  --aui-skew-y: 0;
  --aui-scale-x: 1;
  --aui-scale-y: 1;
  --aui-ring-inset: ;
  --aui-ring-offset-width: 0px;
  --aui-ring-offset-color: #fff;
  --aui-ring-color: rgb(59 130 246 / 0.5);
  --aui-ring-offset-shadow: 0 0 #0000;
  --aui-ring-shadow: 0 0 #0000;
  --aui-shadow: 0 0 #0000;
  --aui-shadow-colored: 0 0 #0000;
  --aui-blur: ;
  --aui-brightness: ;
  --aui-contrast: ;
  --aui-grayscale: ;
  --aui-hue-rotate: ;
  --aui-invert: ;
  --aui-saturate: ;
  --aui-sepia: ;
  --aui-drop-shadow: ;
  --aui-backdrop-blur: ;
  --aui-backdrop-brightness: ;
  --aui-backdrop-contrast: ;
  --aui-backdrop-grayscale: ;
  --aui-backdrop-hue-rotate: ;
  --aui-backdrop-invert: ;
  --aui-backdrop-opacity: ;
  --aui-backdrop-saturate: ;
  --aui-backdrop-sepia: ;
  --aui-contain-size: ;
  --aui-contain-layout: ;
  --aui-contain-paint: ;
  --aui-contain-style: ;
}
:where(.aui-root) ::backdrop {
  --aui-border-spacing-x: 0;
  --aui-border-spacing-y: 0;
  --aui-translate-x: 0;
  --aui-translate-y: 0;
  --aui-rotate: 0;
  --aui-skew-x: 0;
  --aui-skew-y: 0;
  --aui-scale-x: 1;
  --aui-scale-y: 1;
  --aui-ring-inset: ;
  --aui-ring-offset-width: 0px;
  --aui-ring-offset-color: #fff;
  --aui-ring-color: rgb(59 130 246 / 0.5);
  --aui-ring-offset-shadow: 0 0 #0000;
  --aui-ring-shadow: 0 0 #0000;
  --aui-shadow: 0 0 #0000;
  --aui-shadow-colored: 0 0 #0000;
  --aui-blur: ;
  --aui-brightness: ;
  --aui-contrast: ;
  --aui-grayscale: ;
  --aui-hue-rotate: ;
  --aui-invert: ;
  --aui-saturate: ;
  --aui-sepia: ;
  --aui-drop-shadow: ;
  --aui-backdrop-blur: ;
  --aui-backdrop-brightness: ;
  --aui-backdrop-contrast: ;
  --aui-backdrop-grayscale: ;
  --aui-backdrop-hue-rotate: ;
  --aui-backdrop-invert: ;
  --aui-backdrop-opacity: ;
  --aui-backdrop-saturate: ;
  --aui-backdrop-sepia: ;
  --aui-contain-size: ;
  --aui-contain-layout: ;
  --aui-contain-paint: ;
  --aui-contain-style: ;
}
:where(.aui-root) *,
:where(.aui-root) ::before,
:where(.aui-root) ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
:where(.aui-root) ::before,
:where(.aui-root) ::after {
  --aui-content: "";
}
:where(.aui-root) html,
:where(.aui-root) :host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}
:where(.aui-root) body {
  margin: 0;
  line-height: inherit;
}
:where(.aui-root) hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
:where(.aui-root) abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
:where(.aui-root) h1,
:where(.aui-root) h2,
:where(.aui-root) h3,
:where(.aui-root) h4,
:where(.aui-root) h5,
:where(.aui-root) h6 {
  font-size: inherit;
  font-weight: inherit;
}
:where(.aui-root) a {
  color: inherit;
  text-decoration: inherit;
}
:where(.aui-root) b,
:where(.aui-root) strong {
  font-weight: bolder;
}
:where(.aui-root) code,
:where(.aui-root) kbd,
:where(.aui-root) samp,
:where(.aui-root) pre {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}
:where(.aui-root) small {
  font-size: 80%;
}
:where(.aui-root) sub,
:where(.aui-root) sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
:where(.aui-root) sub {
  bottom: -0.25em;
}
:where(.aui-root) sup {
  top: -0.5em;
}
:where(.aui-root) table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}
:where(.aui-root) button,
:where(.aui-root) input,
:where(.aui-root) optgroup,
:where(.aui-root) select,
:where(.aui-root) textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
:where(.aui-root) button,
:where(.aui-root) select {
  text-transform: none;
}
:where(.aui-root) button,
:where(.aui-root) input:where([type=button]),
:where(.aui-root) input:where([type=reset]),
:where(.aui-root) input:where([type=submit]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
:where(.aui-root) :-moz-focusring {
  outline: auto;
}
:where(.aui-root) :-moz-ui-invalid {
  box-shadow: none;
}
:where(.aui-root) progress {
  vertical-align: baseline;
}
:where(.aui-root) ::-webkit-inner-spin-button,
:where(.aui-root) ::-webkit-outer-spin-button {
  height: auto;
}
:where(.aui-root) [type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
:where(.aui-root) ::-webkit-search-decoration {
  -webkit-appearance: none;
}
:where(.aui-root) ::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
:where(.aui-root) summary {
  display: list-item;
}
:where(.aui-root) blockquote,
:where(.aui-root) dl,
:where(.aui-root) dd,
:where(.aui-root) h1,
:where(.aui-root) h2,
:where(.aui-root) h3,
:where(.aui-root) h4,
:where(.aui-root) h5,
:where(.aui-root) h6,
:where(.aui-root) hr,
:where(.aui-root) figure,
:where(.aui-root) p,
:where(.aui-root) pre {
  margin: 0;
}
:where(.aui-root) fieldset {
  margin: 0;
  padding: 0;
}
:where(.aui-root) legend {
  padding: 0;
}
:where(.aui-root) ol,
:where(.aui-root) ul,
:where(.aui-root) menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
:where(.aui-root) dialog {
  padding: 0;
}
:where(.aui-root) textarea {
  resize: vertical;
}
:where(.aui-root) input::-moz-placeholder,
:where(.aui-root) textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}
:where(.aui-root) input::placeholder,
:where(.aui-root) textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}
:where(.aui-root) button,
:where(.aui-root) [role=button] {
  cursor: pointer;
}
:where(.aui-root) :disabled {
  cursor: default;
}
:where(.aui-root) img,
:where(.aui-root) svg,
:where(.aui-root) video,
:where(.aui-root) canvas,
:where(.aui-root) audio,
:where(.aui-root) iframe,
:where(.aui-root) embed,
:where(.aui-root) object {
  display: block;
  vertical-align: middle;
}
:where(.aui-root) img,
:where(.aui-root) video {
  max-width: 100%;
  height: auto;
}
:where(.aui-root) [hidden]:where(:not([hidden=until-found])) {
  display: none;
}
@keyframes aui-enter {
  from {
    opacity: var(--aui-enter-opacity, 1);
    transform: translate3d(var(--aui-enter-translate-x, 0), var(--aui-enter-translate-y, 0), 0) scale3d(var(--aui-enter-scale, 1), var(--aui-enter-scale, 1), var(--aui-enter-scale, 1)) rotate(var(--aui-enter-rotate, 0));
  }
}
@keyframes aui-exit {
  to {
    opacity: var(--aui-exit-opacity, 1);
    transform: translate3d(var(--aui-exit-translate-x, 0), var(--aui-exit-translate-y, 0), 0) scale3d(var(--aui-exit-scale, 1), var(--aui-exit-scale, 1), var(--aui-exit-scale, 1)) rotate(var(--aui-exit-rotate, 0));
  }
}

/* src/styles/tailwindcss/base-components.css */
.aui-root {
  color: hsl(var(--aui-foreground));
}
.aui-root * {
  border-color: hsl(var(--aui-border));
}
.aui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--aui-radius) - 2px);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  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: 150ms;
}
.aui-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --aui-ring-offset-shadow: var(--aui-ring-inset) 0 0 0 var(--aui-ring-offset-width) var(--aui-ring-offset-color);
  --aui-ring-shadow: var(--aui-ring-inset) 0 0 0 calc(1px + var(--aui-ring-offset-width)) var(--aui-ring-color);
  box-shadow:
    var(--aui-ring-offset-shadow),
    var(--aui-ring-shadow),
    var(--aui-shadow, 0 0 #0000);
  --aui-ring-color: hsl(var(--aui-ring)) ;
}
.aui-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.aui-button svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.aui-button-primary {
  background-color: hsl(var(--aui-primary));
  color: hsl(var(--aui-primary-foreground));
  --aui-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --aui-shadow-colored: 0 1px 3px 0 var(--aui-shadow-color), 0 1px 2px -1px var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
}
.aui-button-primary:hover {
  background-color: hsl(var(--aui-primary) / 0.9);
}
.aui-button-outline {
  border-width: 1px;
  border-color: hsl(var(--aui-input));
  background-color: hsl(var(--aui-background));
  --aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
}
.aui-button-outline:hover {
  background-color: hsl(var(--aui-accent));
  color: hsl(var(--aui-accent-foreground));
}
.aui-button-ghost:hover {
  background-color: hsl(var(--aui-accent));
  color: hsl(var(--aui-accent-foreground));
}
.aui-button-medium {
  height: 2.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.aui-button-icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
}
.aui-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.aui-avatar-root {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
}
.aui-avatar-image {
  aspect-ratio: 1 / 1;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.aui-avatar-fallback {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--aui-muted));
}
.aui-tooltip-content {
  z-index: 50;
  overflow: hidden;
  border-radius: calc(var(--aui-radius) - 2px);
  background-color: hsl(var(--aui-primary));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--aui-primary-foreground));
  animation-name: aui-enter;
  animation-duration: 150ms;
  --aui-enter-opacity: initial;
  --aui-enter-scale: initial;
  --aui-enter-rotate: initial;
  --aui-enter-translate-x: initial;
  --aui-enter-translate-y: initial;
  --aui-enter-opacity: 0;
  --aui-enter-scale: .95 ;
}
.aui-tooltip-content[data-state=closed] {
  animation-name: aui-exit;
  animation-duration: 150ms;
  --aui-exit-opacity: initial;
  --aui-exit-scale: initial;
  --aui-exit-rotate: initial;
  --aui-exit-translate-x: initial;
  --aui-exit-translate-y: initial;
  --aui-exit-opacity: 0;
  --aui-exit-scale: .95 ;
}
.aui-tooltip-content[data-side=bottom] {
  --aui-enter-translate-y: -0.5rem ;
}
.aui-tooltip-content[data-side=left] {
  --aui-enter-translate-x: 0.5rem ;
}
.aui-tooltip-content[data-side=right] {
  --aui-enter-translate-x: -0.5rem ;
}
.aui-tooltip-content[data-side=top] {
  --aui-enter-translate-y: 0.5rem ;
}
.aui-dialog-overlay {
  position: fixed;
  inset: 0px;
  z-index: 50;
  background-color: rgb(0 0 0 / 0.8);
}
.aui-dialog-overlay[data-state=open] {
  animation-name: aui-enter;
  animation-duration: 150ms;
  --aui-enter-opacity: initial;
  --aui-enter-scale: initial;
  --aui-enter-rotate: initial;
  --aui-enter-translate-x: initial;
  --aui-enter-translate-y: initial ;
}
.aui-dialog-overlay[data-state=closed] {
  animation-name: aui-exit;
  animation-duration: 150ms;
  --aui-exit-opacity: initial;
  --aui-exit-scale: initial;
  --aui-exit-rotate: initial;
  --aui-exit-translate-x: initial;
  --aui-exit-translate-y: initial;
  --aui-exit-opacity: 0 ;
}
.aui-dialog-overlay[data-state=open] {
  --aui-enter-opacity: 0 ;
}
.aui-dialog-content {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
}
.aui-dialog-content[data-state=open] {
  animation-name: aui-enter;
  animation-duration: 150ms;
  --aui-enter-opacity: initial;
  --aui-enter-scale: initial;
  --aui-enter-rotate: initial;
  --aui-enter-translate-x: initial;
  --aui-enter-translate-y: initial ;
}
.aui-dialog-content[data-state=closed] {
  animation-name: aui-exit;
  animation-duration: 150ms;
  --aui-exit-opacity: initial;
  --aui-exit-scale: initial;
  --aui-exit-rotate: initial;
  --aui-exit-translate-x: initial;
  --aui-exit-translate-y: initial;
  --aui-exit-opacity: 0 ;
}
.aui-dialog-content[data-state=open] {
  --aui-enter-opacity: 0 ;
}
.aui-dialog-content[data-state=closed] {
  --aui-exit-scale: .95 ;
}
.aui-dialog-content[data-state=open] {
  --aui-enter-scale: .95 ;
}
.aui-dialog-content[data-state=closed] {
  --aui-exit-translate-x: -50%;
  --aui-exit-translate-y: -48% ;
}
.aui-dialog-content[data-state=open] {
  --aui-enter-translate-x: -50%;
  --aui-enter-translate-y: -48% ;
}
.aui-dialog-content {
  display: grid;
  --aui-translate-x: -50%;
  --aui-translate-y: -50%;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
  --aui-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --aui-shadow-colored: 0 10px 15px -3px var(--aui-shadow-color), 0 4px 6px -4px var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
  transition-duration: 200ms;
  animation-duration: 200ms;
}

/* src/styles/tailwindcss/thread.css */
.aui-thread-root {
  box-sizing: border-box;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background-color: hsl(var(--aui-background));
}
.aui-thread-viewport {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  overflow-y: scroll;
  scroll-behavior: smooth;
  background-color: inherit;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 2rem;
}
.aui-thread-viewport-footer {
  position: sticky;
  bottom: 0px;
  margin-top: 0.75rem;
  display: flex;
  width: 100%;
  max-width: var(--aui-thread-max-width);
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-top-left-radius: var(--aui-radius);
  border-top-right-radius: var(--aui-radius);
  background-color: inherit;
  padding-bottom: 1rem;
}
.aui-thread-scroll-to-bottom {
  position: absolute;
  top: -2rem;
  border-radius: 9999px;
}
.aui-thread-scroll-to-bottom:disabled {
  visibility: hidden;
}
.aui-thread-followup-suggestions {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.aui-thread-followup-suggestion {
  border-radius: 9999px;
  border-width: 1px;
  background-color: hsl(var(--aui-background));
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  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: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-thread-followup-suggestion:hover {
  background-color: hsl(var(--aui-muted) / 0.8);
}
.aui-thread-welcome-root {
  display: flex;
  width: 100%;
  max-width: var(--aui-thread-max-width);
  flex-grow: 1;
  flex-direction: column;
}
.aui-thread-welcome-center {
  display: flex;
  width: 100%;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.aui-thread-welcome-message {
  margin-top: 1rem;
  font-weight: 500;
}
.aui-thread-welcome-suggestions {
  margin-top: 0.75rem;
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}
.aui-thread-welcome-suggestion {
  display: flex;
  max-width: 24rem;
  flex-grow: 1;
  flex-basis: 0px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--aui-radius);
  border-width: 1px;
  padding: 0.75rem;
  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: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-thread-welcome-suggestion:hover {
  background-color: hsl(var(--aui-muted) / 0.8);
}
.aui-thread-welcome-suggestion-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.aui-composer-root {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  border-radius: var(--aui-radius);
  border-width: 1px;
  background-color: inherit;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  --aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-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: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-composer-root:focus-within {
  border-color: hsl(var(--aui-ring) / 0.2);
}
.aui-composer-input {
  max-height: 10rem;
  flex-grow: 1;
  resize: none;
  border-style: none;
  background-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.aui-composer-input::-moz-placeholder {
  color: hsl(var(--aui-muted-foreground));
}
.aui-composer-input::placeholder {
  color: hsl(var(--aui-muted-foreground));
}
.aui-composer-input:focus {
  --aui-ring-offset-shadow: var(--aui-ring-inset) 0 0 0 var(--aui-ring-offset-width) var(--aui-ring-offset-color);
  --aui-ring-shadow: var(--aui-ring-inset) 0 0 0 calc(0px + var(--aui-ring-offset-width)) var(--aui-ring-color);
  box-shadow:
    var(--aui-ring-offset-shadow),
    var(--aui-ring-shadow),
    var(--aui-shadow, 0 0 #0000);
}
.aui-composer-input:disabled {
  cursor: not-allowed;
}
.aui-composer-send {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-composer-cancel {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-composer-attach {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.aui-composer-attachments {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 0.75rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.aui-attachment-root {
  position: relative;
  margin-top: 0.75rem;
}
.aui-attachment-content {
  display: flex;
  height: 3rem;
  width: 10rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--aui-radius);
  border-width: 1px;
  padding: 0.25rem;
}
.aui-attachment-preview-trigger {
  cursor: pointer;
  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: 150ms;
}
.aui-attachment-preview-trigger:hover {
  background-color: hsl(var(--aui-accent) / 0.5);
}
.aui-attachment-thumb {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border-width: 1px;
  background-color: hsl(var(--aui-muted));
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.aui-attachment-text {
  flex-grow: 1;
  flex-basis: 0px;
}
.aui-attachment-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  text-overflow: ellipsis;
  word-break: break-all;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: hsl(var(--aui-muted-foreground));
}
.aui-attachment-type {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--aui-muted-foreground));
}
.aui-attachment-remove {
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--aui-muted-foreground));
}
.aui-attachment-remove > svg {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: hsl(var(--aui-background));
}
.aui-user-message-root {
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: minmax(72px, 1fr) auto;
  row-gap: 0.5rem;
}
.aui-user-message-root:where(> *) {
  grid-column-start: 2;
}
.aui-user-message-root {
  width: 100%;
  max-width: var(--aui-thread-max-width);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
:where(.aui-user-message-root) > .aui-branch-picker-root {
  grid-column: 1 / -1;
  grid-column-start: 1;
  grid-row-start: 3;
  margin-right: -0.25rem;
  justify-content: flex-end;
}
.aui-user-branch-picker {
  grid-column: 1 / -1;
  grid-column-start: 1;
  grid-row-start: 3;
  margin-right: -0.25rem;
  justify-content: flex-end;
}
.aui-user-message-content {
  max-width: calc(var(--aui-thread-max-width) * 0.8);
  overflow-wrap: break-word;
  border-radius: 1.5rem;
  background-color: hsl(var(--aui-muted));
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  color: hsl(var(--aui-foreground));
  grid-column-start: 2;
  grid-row-start: 2;
}
.aui-user-message-attachments {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-column-start: 1;
  grid-row-start: 1;
  justify-content: flex-end;
}
.aui-user-action-bar-root {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  grid-column-start: 1;
  grid-row-start: 2;
  margin-right: 0.75rem;
  margin-top: 0.625rem;
}
.aui-edit-composer-root {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  width: 100%;
  max-width: var(--aui-thread-max-width);
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--aui-muted));
}
.aui-edit-composer-input {
  display: flex;
  height: 2rem;
  width: 100%;
  resize: none;
  background-color: transparent;
  padding: 1rem;
  padding-bottom: 0px;
  color: hsl(var(--aui-foreground));
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.aui-edit-composer-footer {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-end;
}
.aui-assistant-message-root {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto 1fr;
  position: relative;
  width: 100%;
  max-width: var(--aui-thread-max-width);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
:where(.aui-assistant-message-root) > .aui-avatar-root {
  grid-column-start: 1;
  grid-row: 1 / -1;
  grid-row-start: 1;
  margin-right: 1rem;
}
.aui-assistant-avatar {
  grid-column-start: 1;
  grid-row: 1 / -1;
  grid-row-start: 1;
  margin-right: 1rem;
}
:where(.aui-assistant-message-root) > .aui-branch-picker-root {
  grid-column-start: 2;
  grid-row-start: 2;
  margin-left: -0.5rem;
  margin-right: 0.5rem;
}
.aui-assistant-branch-picker {
  grid-column-start: 2;
  grid-row-start: 2;
  margin-left: -0.5rem;
  margin-right: 0.5rem;
}
.aui-assistant-message-content {
  max-width: calc(var(--aui-thread-max-width) * 0.8);
  overflow-wrap: break-word;
  line-height: 1.75rem;
  color: hsl(var(--aui-foreground));
  grid-column: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 1;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}
.aui-assistant-action-bar-root {
  display: flex;
  gap: 0.25rem;
  color: hsl(var(--aui-muted-foreground));
  grid-column-start: 3;
  grid-row-start: 2;
  margin-left: -0.25rem;
}
.aui-assistant-action-bar-root[data-floating] {
  position: absolute;
  border-radius: calc(var(--aui-radius) - 2px);
  border-width: 1px;
  background-color: hsl(var(--aui-background));
  padding: 0.25rem;
  --aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
}
.aui-assistant-action-bar-feedback-positive[data-submitted] {
  --aui-text-opacity: 1;
  color: rgb(22 163 74 / var(--aui-text-opacity, 1));
}
.aui-assistant-action-bar-feedback-positive:hover[data-submitted] {
  --aui-text-opacity: 1;
  color: rgb(21 128 61 / var(--aui-text-opacity, 1));
}
@media (prefers-color-scheme: dark) {
  .aui-assistant-action-bar-feedback-positive[data-submitted] {
    --aui-text-opacity: 1;
    color: rgb(34 197 94 / var(--aui-text-opacity, 1));
  }
  .aui-assistant-action-bar-feedback-positive:hover[data-submitted] {
    --aui-text-opacity: 1;
    color: rgb(74 222 128 / var(--aui-text-opacity, 1));
  }
}
.aui-assistant-action-bar-feedback-negative[data-submitted] {
  --aui-text-opacity: 1;
  color: rgb(220 38 38 / var(--aui-text-opacity, 1));
}
.aui-assistant-action-bar-feedback-negative:hover[data-submitted] {
  --aui-text-opacity: 1;
  color: rgb(185 28 28 / var(--aui-text-opacity, 1));
}
@media (prefers-color-scheme: dark) {
  .aui-assistant-action-bar-feedback-negative[data-submitted] {
    --aui-text-opacity: 1;
    color: rgb(239 68 68 / var(--aui-text-opacity, 1));
  }
  .aui-assistant-action-bar-feedback-negative:hover[data-submitted] {
    --aui-text-opacity: 1;
    color: rgb(248 113 113 / var(--aui-text-opacity, 1));
  }
}
.aui-branch-picker-root {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--aui-muted-foreground));
}
.aui-branch-picker-state {
  font-weight: 500;
}
.aui-text {
  white-space: pre-line;
}
@keyframes aui-pulse {
  50% {
    opacity: .5;
  }
}
.aui-text-running::after {
  animation: aui-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  --aui-content: "\25cf";
  content: var(--aui-content);
}
.aui-text-running:where([dir=ltr], [dir=ltr] *)::after {
  margin-left: 0.25rem;
}
.aui-text-running:where([dir=rtl], [dir=rtl] *)::after {
  margin-right: 0.25rem;
}
.aui-thread-list-root {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
}
.aui-thread-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--aui-radius);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.aui-thread-list-item:hover {
  background-color: hsl(var(--aui-muted));
}
.aui-thread-list-item:focus-visible {
  background-color: hsl(var(--aui-muted));
  outline: 2px solid transparent;
  outline-offset: 2px;
  --aui-ring-offset-shadow: var(--aui-ring-inset) 0 0 0 var(--aui-ring-offset-width) var(--aui-ring-offset-color);
  --aui-ring-shadow: var(--aui-ring-inset) 0 0 0 calc(2px + var(--aui-ring-offset-width)) var(--aui-ring-color);
  box-shadow:
    var(--aui-ring-offset-shadow),
    var(--aui-ring-shadow),
    var(--aui-shadow, 0 0 #0000);
  --aui-ring-color: hsl(var(--aui-ring)) ;
}
.aui-thread-list-item[data-active] {
  background-color: hsl(var(--aui-muted));
}
.aui-thread-list-new {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  border-radius: var(--aui-radius);
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: start;
}
.aui-thread-list-new:hover {
  background-color: hsl(var(--aui-muted));
}
.aui-thread-list-new[data-active] {
  background-color: hsl(var(--aui-muted));
}
.aui-thread-list-new > .lucide-plus {
  width: 1.25rem;
  height: 1.25rem;
}
.aui-thread-list-item-trigger {
  flex-grow: 1;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: start;
}
.aui-thread-list-item-title {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.aui-thread-list-item-archive {
  margin-left: auto;
  margin-right: 0.75rem;
  width: 1rem;
  height: 1rem;
  padding: 0px;
  color: hsl(var(--aui-foreground));
}
.aui-thread-list-item-archive:hover {
  color: hsl(var(--aui-primary));
}

/* src/styles/themes/default.css */
:root {
  --aui-background: 0 0% 100%;
  --aui-foreground: 240 10% 3.9%;
  --aui-card: 0 0% 100%;
  --aui-card-foreground: 240 10% 3.9%;
  --aui-popover: 0 0% 100%;
  --aui-popover-foreground: 240 10% 3.9%;
  --aui-primary: 240 5.9% 10%;
  --aui-primary-foreground: 0 0% 98%;
  --aui-secondary: 240 4.8% 95.9%;
  --aui-secondary-foreground: 240 5.9% 10%;
  --aui-muted: 240 4.8% 95.9%;
  --aui-muted-foreground: 240 3.8% 46.1%;
  --aui-accent: 240 4.8% 95.9%;
  --aui-accent-foreground: 240 5.9% 10%;
  --aui-destructive: 0 84.2% 60.2%;
  --aui-destructive-foreground: 0 0% 98%;
  --aui-border: 240 5.9% 90%;
  --aui-input: 240 5.9% 90%;
  --aui-ring: 240 10% 3.9%;
  --aui-radius: 0.5rem;
  --aui-thread-max-width: 42rem;
}
.dark {
  --aui-background: 0 0% 7%;
  --aui-foreground: 0 0% 98%;
  --aui-card: 240 10% 3.9%;
  --aui-card-foreground: 0 0% 98%;
  --aui-popover: 240 10% 3.9%;
  --aui-popover-foreground: 0 0% 98%;
  --aui-primary: 0 0% 98%;
  --aui-primary-foreground: 240 5.9% 10%;
  --aui-secondary: 240 3.7% 15.9%;
  --aui-secondary-foreground: 0 0% 98%;
  --aui-muted: 240 3.7% 15.9%;
  --aui-muted-foreground: 240 5% 64.9%;
  --aui-accent: 240 3.7% 15.9%;
  --aui-accent-foreground: 0 0% 98%;
  --aui-destructive: 0 62.8% 30.6%;
  --aui-destructive-foreground: 0 0% 98%;
  --aui-border: 240 3.7% 15.9%;
  --aui-input: 240 3.7% 15.9%;
  --aui-ring: 240 4.9% 83.9%;
}

/* src/styles/index.css */
/*# sourceMappingURL=index.css.map */

/* ===== @assistant-ui/react-ui/styles/modal.css ===== */
/* src/styles/tailwindcss/modal.css */
.aui-modal-content {
  z-index: 50;
  height: 500px;
  width: 400px;
  overflow: clip;
  border-radius: 0.75rem;
  border-width: 1px;
  background-color: hsl(var(--aui-popover));
  padding: 0px;
  color: hsl(var(--aui-popover-foreground));
  --aui-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --aui-shadow-colored: 0 4px 6px -1px var(--aui-shadow-color), 0 2px 4px -2px var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.aui-modal-content > .aui-thread-root {
  background-color: inherit;
}
.aui-modal-content[data-state=open] {
  animation-name: aui-enter;
  animation-duration: 150ms;
  --aui-enter-opacity: initial;
  --aui-enter-scale: initial;
  --aui-enter-rotate: initial;
  --aui-enter-translate-x: initial;
  --aui-enter-translate-y: initial ;
}
.aui-modal-content[data-state=closed] {
  animation-name: aui-exit;
  animation-duration: 150ms;
  --aui-exit-opacity: initial;
  --aui-exit-scale: initial;
  --aui-exit-rotate: initial;
  --aui-exit-translate-x: initial;
  --aui-exit-translate-y: initial;
  --aui-exit-opacity: 0 ;
}
.aui-modal-content[data-state=open] {
  --aui-enter-opacity: 0 ;
}
.aui-modal-content[data-state=closed] {
  --aui-exit-scale: 0 ;
}
.aui-modal-content[data-state=open] {
  --aui-enter-scale: 0;
  --aui-enter-translate-y: 50%;
  --aui-enter-translate-x: 50% ;
}
.aui-modal-content[data-state=closed] {
  --aui-exit-translate-y: 50%;
  --aui-exit-translate-x: 50% ;
}
.aui-modal-anchor {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}
.aui-modal-button {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  --aui-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --aui-shadow-colored: 0 1px 3px 0 var(--aui-shadow-color), 0 1px 2px -1px var(--aui-shadow-color);
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.aui-modal-button:hover {
  --aui-scale-x: 1.1;
  --aui-scale-y: 1.1;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button:active {
  --aui-scale-x: .9;
  --aui-scale-y: .9;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-closed-icon {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.aui-modal-button-closed-icon[data-state=closed] {
  --aui-rotate: 0deg;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-closed-icon[data-state=open] {
  --aui-rotate: 90deg;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-closed-icon[data-state=closed] {
  --aui-scale-x: 1;
  --aui-scale-y: 1;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-closed-icon[data-state=open] {
  --aui-scale-x: 0;
  --aui-scale-y: 0;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-open-icon {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.aui-modal-button-open-icon[data-state=closed] {
  --aui-rotate: -90deg;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-open-icon[data-state=open] {
  --aui-rotate: 0deg;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-open-icon[data-state=closed] {
  --aui-scale-x: 0;
  --aui-scale-y: 0;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}
.aui-modal-button-open-icon[data-state=open] {
  --aui-scale-x: 1;
  --aui-scale-y: 1;
  transform: translate(var(--aui-translate-x), var(--aui-translate-y)) rotate(var(--aui-rotate)) skewX(var(--aui-skew-x)) skewY(var(--aui-skew-y)) scaleX(var(--aui-scale-x)) scaleY(var(--aui-scale-y));
}

/* src/styles/modal.css */
/*# sourceMappingURL=modal.css.map */

/* ===== @assistant-ui/react-ui/styles/markdown.css ===== */
/* src/styles/tailwindcss/markdown.css */
@keyframes aui-pulse {
  50% {
    opacity: .5;
  }
}
:where(.aui-md-running):empty::after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child::after,
:where(.aui-md-running) > pre:last-child code::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li)))::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li)))::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child)::after {
  animation: aui-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  --aui-content: "\25cf";
  content: var(--aui-content);
}
:where(.aui-md-running):empty:where([dir=ltr], [dir=ltr] *)::after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child:where([dir=ltr], [dir=ltr] *)::after,
:where(.aui-md-running) > pre:last-child code:where([dir=ltr], [dir=ltr] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir=ltr], [dir=ltr] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir=ltr], [dir=ltr] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child):where([dir=ltr], [dir=ltr] *)::after {
  margin-left: 0.25rem;
}
:where(.aui-md-running):empty:where([dir=rtl], [dir=rtl] *)::after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child:where([dir=rtl], [dir=rtl] *)::after,
:where(.aui-md-running) > pre:last-child code:where([dir=rtl], [dir=rtl] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir=rtl], [dir=rtl] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir=rtl], [dir=rtl] *)::after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child):where([dir=rtl], [dir=rtl] *)::after {
  margin-right: 0.25rem;
}
.aui-md-h1 {
  margin-bottom: 2rem;
  scroll-margin: 5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.aui-md-h1:last-child {
  margin-bottom: 0px;
}
.aui-md-h2 {
  margin-bottom: 1rem;
  margin-top: 2rem;
  scroll-margin: 5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.aui-md-h2:first-child {
  margin-top: 0px;
}
.aui-md-h2:last-child {
  margin-bottom: 0px;
}
.aui-md-h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  scroll-margin: 5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.aui-md-h3:first-child {
  margin-top: 0px;
}
.aui-md-h3:last-child {
  margin-bottom: 0px;
}
.aui-md-h4 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  scroll-margin: 5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.aui-md-h4:first-child {
  margin-top: 0px;
}
.aui-md-h4:last-child {
  margin-bottom: 0px;
}
.aui-md-h5 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.aui-md-h5:first-child {
  margin-top: 0px;
}
.aui-md-h5:last-child {
  margin-bottom: 0px;
}
.aui-md-h6 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.aui-md-h6:first-child {
  margin-top: 0px;
}
.aui-md-h6:last-child {
  margin-bottom: 0px;
}
.aui-md-p {
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
  line-height: 1.75rem;
}
.aui-md-p:first-child {
  margin-top: 0px;
}
.aui-md-p:last-child {
  margin-bottom: 0px;
}
.aui-md-a {
  font-weight: 500;
  color: hsl(var(--aui-primary));
  text-decoration-line: underline;
  text-underline-offset: 4px;
}
.aui-md-blockquote {
  border-left-width: 2px;
  padding-left: 1.5rem;
  font-style: italic;
}
.aui-md-ul {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  list-style-type: disc;
}
.aui-md-ul > li {
  margin-top: 0.5rem;
}
.aui-md-ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  list-style-type: decimal;
}
.aui-md-ol > li {
  margin-top: 0.5rem;
}
.aui-md-hr {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom-width: 1px;
}
.aui-md-table {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
  border-collapse: separate;
  --aui-border-spacing-x: 0px;
  --aui-border-spacing-y: 0px;
  border-spacing: var(--aui-border-spacing-x) var(--aui-border-spacing-y);
  overflow-y: auto;
}
.aui-md-th {
  background-color: hsl(var(--aui-muted));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
}
.aui-md-th:first-child {
  border-top-left-radius: var(--aui-radius);
}
.aui-md-th:last-child {
  border-top-right-radius: var(--aui-radius);
}
.aui-md-th[align=center] {
  text-align: center;
}
.aui-md-th[align=right] {
  text-align: right;
}
.aui-md-td {
  border-bottom-width: 1px;
  border-left-width: 1px;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: left;
}
.aui-md-td:last-child {
  border-right-width: 1px;
}
.aui-md-td[align=center] {
  text-align: center;
}
.aui-md-td[align=right] {
  text-align: right;
}
.aui-md-tr {
  margin: 0px;
  border-bottom-width: 1px;
  padding: 0px;
}
.aui-md-tr:first-child {
  border-top-width: 1px;
}
.aui-md-tr:last-child > td:first-child {
  border-bottom-left-radius: var(--aui-radius);
}
.aui-md-tr:last-child > td:last-child {
  border-bottom-right-radius: var(--aui-radius);
}
.aui-md-sup > a {
  font-size: 0.75rem;
  line-height: 1rem;
  text-decoration-line: none;
}
.aui-md-pre {
  overflow-x: auto;
  border-bottom-right-radius: var(--aui-radius);
  border-bottom-left-radius: var(--aui-radius);
  background-color: #000;
  padding: 1rem;
  --aui-text-opacity: 1;
  color: rgb(255 255 255 / var(--aui-text-opacity, 1));
}
.aui-md-inline-code {
  border-radius: 0.25rem;
  border-width: 1px;
  background-color: hsl(var(--aui-muted));
  font-weight: 600;
}
.aui-code-header-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top-left-radius: var(--aui-radius);
  border-top-right-radius: var(--aui-radius);
  background-color: #18181b;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --aui-text-opacity: 1;
  color: rgb(255 255 255 / var(--aui-text-opacity, 1));
}
.aui-code-header-language {
  text-transform: lowercase;
}
.aui-code-header-language > span {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* src/styles/markdown.css */
/*# sourceMappingURL=markdown.css.map */

/* ===== @assistant-ui/react-ui/styles/themes/default.css ===== */
:root {
  --aui-background: 0 0% 100%;
  --aui-foreground: 240 10% 3.9%;

  --aui-card: 0 0% 100%;
  --aui-card-foreground: 240 10% 3.9%;

  --aui-popover: 0 0% 100%;
  --aui-popover-foreground: 240 10% 3.9%;

  --aui-primary: 240 5.9% 10%;
  --aui-primary-foreground: 0 0% 98%;

  --aui-secondary: 240 4.8% 95.9%;
  --aui-secondary-foreground: 240 5.9% 10%;

  --aui-muted: 240 4.8% 95.9%;
  --aui-muted-foreground: 240 3.8% 46.1%;

  --aui-accent: 240 4.8% 95.9%;
  --aui-accent-foreground: 240 5.9% 10%;

  --aui-destructive: 0 84.2% 60.2%;
  --aui-destructive-foreground: 0 0% 98%;

  --aui-border: 240 5.9% 90%;
  --aui-input: 240 5.9% 90%;
  --aui-ring: 240 10% 3.9%;

  --aui-radius: 0.5rem;

  /* aui specific */
  --aui-thread-max-width: 42rem;
}

.dark {
  --aui-background: 0 0% 7%;
  --aui-foreground: 0 0% 98%;

  --aui-card: 240 10% 3.9%;
  --aui-card-foreground: 0 0% 98%;

  --aui-popover: 240 10% 3.9%;
  --aui-popover-foreground: 0 0% 98%;

  --aui-primary: 0 0% 98%;
  --aui-primary-foreground: 240 5.9% 10%;

  --aui-secondary: 240 3.7% 15.9%;
  --aui-secondary-foreground: 0 0% 98%;

  --aui-muted: 240 3.7% 15.9%;
  --aui-muted-foreground: 240 5% 64.9%;

  --aui-accent: 240 3.7% 15.9%;
  --aui-accent-foreground: 0 0% 98%;

  --aui-destructive: 0 62.8% 30.6%;
  --aui-destructive-foreground: 0 0% 98%;

  --aui-border: 240 3.7% 15.9%;
  --aui-input: 240 3.7% 15.9%;
  --aui-ring: 240 4.9% 83.9%;
}


/* ===== src/widget.css (local overrides) ===== */
/*
 * Web.Eng chatbot — overrides layered on top of assistant-ui's prebuilt styles.
 * Everything is scoped under .aui-root so it only affects the widget, and this
 * file is concatenated AFTER the prebuilt CSS (see scripts/bundle-css.mjs) so
 * these rules win without !important.
 */

/* ----------------------------------------------------------------------------
 * BUG FIX: horizontal scroll on the welcome screen.
 * The welcome suggestions rendered as a single non-wrapping flex row and
 * overflowed the ~400px modal, making the whole thread scroll sideways (which
 * clipped the welcome text and chips). Wrap them and forbid horizontal scroll.
 * ------------------------------------------------------------------------- */
.aui-root .aui-thread-welcome-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.aui-root .aui-thread-viewport,
.aui-root .aui-thread-welcome-root,
.aui-root .aui-thread-welcome-message {
  overflow-x: hidden;
  max-width: 100%;
}

/* Anything that streams long unbroken tokens/URLs must wrap, not push width. */
.aui-root .aui-thread-welcome-message,
.aui-root .aui-md-root,
.aui-root [class*="message-content"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----------------------------------------------------------------------------
 * Spacing & polish
 * ------------------------------------------------------------------------- */

/* Host-theme isolation reset. The site's own theme styles raw HTML tags
   globally (GeneratePress, plus the EastvaalDigital Tailwind base layer — e.g.
   `p { @apply mb-2 }` => margin-bottom:.5rem, and `ul,ol {…}`). Those bleed into
   the modal because assistant-ui's resets are :where(.aui-root) (zero
   specificity) and lose to bare element selectors. Re-zero the affected
   elements with a `.aui-root :where(…)` selector — specificity (0,1,0), which
   beats bare element rules (0,0,1) — then assistant-ui and our higher-specificity
   .webeng-md rules re-apply the intended spacing. This kills the whole class of
   typography bleed in one rule instead of patching properties one by one. */
.aui-root :where(p, ul, ol, li, dl, dd, dt, blockquote, figure, pre, hr, table, fieldset, h1, h2, h3, h4, h5, h6) {
  margin: 0;
  padding: 0;
}

/* Host-theme ICON isolation. Same bleed class as the typography reset above,
   but for SVGs. Client themes ship bare `svg { fill:#000; … }` rules
   (GeneratePress, plus the Tailwind base layer) which leak into the modal.
   assistant-ui's icons are lucide, drawn from the inline `fill="none"
   stroke="currentColor"` presentation attributes — and aui sets no CSS fill/
   stroke of its own. Inline presentation attributes have lower priority than
   ANY stylesheet rule, so the theme's bare `svg{}` (specificity 0,0,1) repaints
   every icon — the launcher bot glyph and the composer send arrow get filled
   solid and vanish against the button. Re-assert the lucide contract with a
   `.aui-root svg.lucide` selector (0,2,1), which beats the bare `svg` rule; aui's
   own per-icon SIZE rules still win, so this governs fill/stroke only.
   Scoped to `.lucide` (every lucide icon carries it) so it does NOT touch our
   own DotMatrix svg, which is genuinely fill-drawn. */
.aui-root svg.lucide {
  fill: none;
  stroke: currentColor;
}

/* The DotMatrix loading indicator is a real fill-drawn svg (circles painted via
   `fill: currentColor`). The same host `svg{fill:#000}` rule would blacken it,
   so restore its fill to the inherited muted-foreground colour. */
.aui-root .webeng-dotmatrix svg {
  fill: currentColor;
}

/* Host-theme control isolation. Some child themes load Tailwind's form reset
   after the widget, which can erase assistant-ui button and input styling. */
.aui-root .aui-button-primary {
  background-color: hsl(var(--aui-primary));
  color: hsl(var(--aui-primary-foreground));
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
}
.aui-root .aui-button-primary:hover {
  background-color: hsl(var(--aui-primary) / 0.9);
}
.aui-root .aui-button-outline {
  border-width: 1px;
  border-color: hsl(var(--aui-input));
  background-color: hsl(var(--aui-background));
  box-shadow:
    var(--aui-ring-offset-shadow, 0 0 #0000),
    var(--aui-ring-shadow, 0 0 #0000),
    var(--aui-shadow);
}
.aui-root .aui-button-outline:hover {
  background-color: hsl(var(--aui-accent));
  color: hsl(var(--aui-accent-foreground));
}
.aui-root .aui-composer-input {
  border: 0;
  background-color: transparent;
  color: hsl(var(--aui-foreground));
  box-shadow: none;
}
.aui-root .aui-composer-input::placeholder {
  color: hsl(var(--aui-muted-foreground));
}

/* Base font size. GeneratePress sets `body { font-size: 17px }`, which leaks
   into the modal: assistant-ui's base rules are :where(.aui-root) (zero
   specificity) so they lose to that inherited body size. An explicit .aui-root
   rule (specificity 0,1,0) wins, restoring a compact 14px chat size for BOTH
   the user message and the assistant answer (keeps them equal). */
.aui-root {
  font-size: 14px;
}

/* The assistant message had 16px bottom padding, leaving a big gap above the
   action bar. Tighten it for even, compact spacing. */
.aui-root .aui-assistant-message-root {
  padding-bottom: 0.5rem;
}

.aui-root .aui-thread-viewport {
  padding-left: 1rem;
  padding-right: 1rem;
  scroll-padding-bottom: 1rem;
}

.aui-root .aui-thread-welcome-root {
  padding: 0;
}

.aui-root .webeng-welcome-copy {
  width: 100%;
  text-align: center;
}

.aui-root .webeng-welcome-title {
  margin: 0;
  color: hsl(var(--aui-foreground));
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.aui-root .webeng-welcome-prompt {
  max-width: 20rem;
  margin: 0.75rem auto 0;
  color: hsl(var(--aui-muted-foreground));
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Empty-state layout: greeting, composer, then compact suggestion chips. */
.aui-root .aui-thread-viewport:has(.aui-thread-welcome-root) {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.aui-root .aui-thread-viewport:has(.aui-thread-welcome-root) .aui-thread-welcome-root {
  display: contents;
}

.aui-root .aui-thread-viewport:has(.aui-thread-welcome-root) .aui-thread-welcome-center {
  order: 1;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding-top: 4rem;
}

.aui-root .aui-thread-viewport:has(.aui-thread-welcome-root) .aui-thread-viewport-footer {
  position: static;
  order: 2;
  margin-top: 1.4rem;
  padding-bottom: 0;
  background: transparent;
}

.aui-root .aui-thread-viewport:has(.aui-thread-welcome-root) .aui-thread-welcome-suggestions {
  order: 3;
  margin-top: 0.9rem;
}

/* Suggestion pills: intentional, wrapping chips that don't clip their text. */
.aui-root .aui-thread-welcome-suggestion {
  flex: 0 1 auto;
  max-width: 100%;
  height: auto;
  min-height: 1.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background-color: hsl(var(--aui-background));
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.aui-root .aui-thread-welcome-suggestion:hover {
  transform: translateY(-1px);
}
.aui-root .aui-thread-welcome-suggestion-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

/* Composer: large rounded input with the action pinned to the lower right. */
.aui-root .aui-composer-root {
  position: relative;
  min-height: 5.8rem;
  align-items: flex-start;
  border-radius: 1.5rem;
  border-color: hsl(var(--aui-border));
  background-color: hsl(var(--aui-background));
  padding: 0.9rem 0.75rem 3.25rem 1rem;
}

.aui-root .aui-composer-input {
  width: 100%;
  min-height: 2rem;
  max-height: 5.75rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.aui-root .aui-composer-send,
.aui-root .aui-composer-cancel {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2rem;
  height: 2rem;
  margin: 0;
  border-radius: 9999px;
  padding: 0.5rem;
}

/* ----------------------------------------------------------------------------
 * Rich markdown (assistant answers) — rendered via MarkdownTextPrimitive into
 * .webeng-md. Bold, lists, and especially GFM comparison TABLES.
 * ------------------------------------------------------------------------- */
.aui-root .webeng-md {
  /* Inherit the message bubble's size so the assistant answer matches the
     user message (don't shrink it). */
  font-size: inherit;
  line-height: 1.55;
}
.aui-root .webeng-md > :first-child {
  margin-top: 0;
}
.aui-root .webeng-md > :last-child {
  margin-bottom: 0;
}
.aui-root .webeng-md p {
  margin: 0.5rem 0;
}
.aui-root .webeng-md strong {
  font-weight: 650;
}
.aui-root .webeng-md ul,
.aui-root .webeng-md ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}
.aui-root .webeng-md li {
  margin: 0.2rem 0;
}
.aui-root .webeng-md h1,
.aui-root .webeng-md h2,
.aui-root .webeng-md h3 {
  font-weight: 650;
  line-height: 1.3;
  margin: 0.8rem 0 0.4rem;
}
.aui-root .webeng-md a {
  color: hsl(var(--aui-primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aui-root .webeng-md code {
  font-size: 0.85em;
  background: hsl(var(--aui-muted, 220 14% 96%));
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
}

/* Comparison tables — the headline rich element. The table sizes to its content
   and scrolls horizontally inside its OWN wrapper, so wide comparisons never
   stretch or clip the modal. */
.aui-root .webeng-md-tablewrap {
  margin: 0.6rem 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid hsl(var(--aui-border));
  border-radius: 0.6rem;
}
.aui-root .webeng-md table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.aui-root .webeng-md th,
.aui-root .webeng-md td {
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid hsl(var(--aui-border));
}
.aui-root .webeng-md thead th {
  background: hsl(var(--aui-muted, 220 14% 96%));
  font-weight: 650;
}
.aui-root .webeng-md tbody tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------------------------
 * Loading indicator (DotMatrix) — shown during the bot's warm-up, before the
 * first token streams. Driven by inline styles on each dot + these keyframes.
 * ------------------------------------------------------------------------- */
@property --aui-dot-matrix-hi {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --aui-dot-matrix-lo {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.15;
}
@keyframes aui-dot-matrix-blink {
  0%,
  100% {
    opacity: var(--aui-dot-matrix-hi, 1);
  }
  50% {
    opacity: var(--aui-dot-matrix-lo, 0.15);
  }
}
.aui-root .webeng-dotmatrix {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  vertical-align: middle;
  color: hsl(var(--aui-muted-foreground, 220 9% 46%));
}
.aui-root .webeng-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
  color: hsl(var(--aui-muted-foreground, 220 9% 46%));
  font-size: 0.95em;
}
.webeng-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------------------
 * Drop the assistant "bot" avatar (the "A" icon) — on the welcome screen and
 * beside each answer. The assistant message is a grid `56px 0 1fr` with the
 * avatar in the fixed 56px column 1, so we also collapse that column to 0 to
 * avoid leaving an empty gap; the content then fills the row width.
 * ------------------------------------------------------------------------- */
.aui-root .aui-avatar-root {
  display: none;
}
.aui-root .aui-assistant-message-root {
  grid-template-columns: 0 0 minmax(0, 1fr);
}

/* ----------------------------------------------------------------------------
 * Mobile: lift the chat launcher above the theme's sticky CTA bar so it doesn't
 * overlap the Enquire/WhatsApp buttons. That bar (.fixed-mobile in
 * page-new-car-detail.php) is `fixed bottom-0 … p-4 lg:hidden z-50`, ~76px tall
 * and shown below lg (1024px). Raise the launcher's bottom to clear it and lift
 * its z-index so the open modal also stays above the bar.
 * ------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .aui-modal-anchor {
    bottom: 6rem;
    z-index: 60;
  }
  .aui-modal-content {
    z-index: 60;
  }
}

@media (max-width: 480px) {
  .aui-root.aui-modal-content {
    width: min(400px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
  }
}

/* -------------------------------------------------------------------------
 * LAYOUT FIX: make the modal a flex column so content appended AFTER <Thread>
 * (suggestion buttons, the lead CTA, and the interactive form) is always
 * visible. The prebuilt CSS sets `.aui-modal-content { height:500px;
 * overflow:clip }` and `.aui-thread-root { height:100% }`, so Thread alone
 * filled the entire modal and everything after it was clipped off the bottom.
 * Here we let Thread flex/shrink and give the appended blocks a real slot.
 * ------------------------------------------------------------------------- */
.aui-root.aui-modal-content {
  display: flex;
  flex-direction: column;
}
.aui-root.aui-modal-content > .aui-thread-root {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

/* When the interactive form is showing, hide the composer text area so the
 * options take its place and the visitor focuses on the form (per design). */
.aui-root.webeng-form-active .aui-composer-root {
  display: none;
}

/* Session ended after a successful lead — lock the widget: hide the composer
 * so the visitor can't keep chatting, leaving only the confirmation banner. */
/* The composer stays available after an enquiry is submitted — the visitor can
   keep asking questions, and the conversation keeps being recorded against the
   lead. Only the follow-up form footer is retired. */
.aui-root.webeng-session-ended .aui-thread-viewport-footer {
  display: none;
}

.aui-root .webeng-session-done {
  padding: 0.85rem 1rem;
  border-top: 1px solid hsl(var(--aui-border));
  background: hsl(var(--aui-muted, 220 14% 96%));
  color: hsl(var(--aui-foreground));
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* -------------------------------------------------------------------------
 * AI-generated suggestion buttons — shown below the Thread after each response.
 * ------------------------------------------------------------------------- */
.aui-root .webeng-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid hsl(var(--aui-border));
}

.aui-root .webeng-suggestion-btn {
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--aui-border));
  background: hsl(var(--aui-background));
  color: hsl(var(--aui-foreground));
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}

.aui-root .webeng-suggestion-btn:hover {
  background: hsl(var(--aui-muted));
  border-color: hsl(var(--aui-muted-foreground) / 0.4);
}

.aui-root .webeng-lead-cta {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid hsl(var(--aui-border));
}

/* Deliberately quiet: a full-width solid pill directly under the composer reads
   as the send button and gets clicked by mistake. This is an optional shortcut,
   so it stays outlined and only fills in on hover. */
.aui-root .webeng-lead-cta-btn {
  width: auto;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--aui-primary));
  background: transparent;
  color: hsl(var(--aui-primary));
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.aui-root .webeng-lead-cta-btn:hover,
.aui-root .webeng-lead-cta-btn:focus-visible {
  background: hsl(var(--aui-primary));
  color: hsl(var(--aui-primary-foreground));
}

/* -------------------------------------------------------------------------
 * Inline follow-up form — interactive fields rendered after AI response.
 * Replaces the %%FORM%% marker block; cleared after visitor submits.
 * ------------------------------------------------------------------------- */
.aui-root .webeng-inline-form {
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid hsl(var(--aui-border));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  /* Never let a long variant list push the Submit button out of the modal —
     the form gets its own scroll while the button stays reachable. */
  max-height: 60%;
  overflow-y: auto;
  flex: 0 0 auto;
  background: hsl(var(--aui-background));
}

.aui-root .webeng-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aui-root .webeng-form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--aui-muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aui-root .webeng-form-opts,
.aui-root .webeng-form-yesno {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.aui-root .webeng-form-opt {
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--aui-border));
  background: hsl(var(--aui-background));
  color: hsl(var(--aui-foreground));
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.aui-root .webeng-form-opt:hover {
  background: hsl(var(--aui-muted));
  border-color: hsl(var(--aui-muted-foreground) / 0.4);
}

.aui-root .webeng-form-opt.selected {
  background: hsl(var(--aui-primary));
  border-color: hsl(var(--aui-primary));
  color: hsl(var(--aui-primary-foreground));
}

.aui-root .webeng-form-email {
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--aui-border));
  background: hsl(var(--aui-background));
  color: hsl(var(--aui-foreground));
  outline: none;
  transition: border-color 0.12s;
}

.aui-root .webeng-form-email:focus {
  border-color: hsl(var(--aui-primary));
}

.aui-root .webeng-form-email::placeholder {
  color: hsl(var(--aui-muted-foreground));
}

.aui-root .webeng-form-submit {
  margin-top: 0.2rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: hsl(var(--aui-primary));
  color: hsl(var(--aui-primary-foreground));
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s;
}

.aui-root .webeng-form-submit:hover {
  opacity: 0.88;
}
