.ask-fabrice .title {
  margin-bottom: 0.35rem;
}

.ask-fabrice article {
  padding-bottom: 1.35rem;
}

.ask-fabrice-intro {
  color: #4B5563;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 0.9rem;
  max-width: 48rem;
}

.ask-fabrice-messages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.ask-fabrice-message {
  border: 1px solid black;
  box-shadow: 3px 3px 0 0 black;
  max-width: 92%;
  padding: 0.6rem 0.8rem;
  white-space: normal;
}

.ask-fabrice-message p,
.ask-fabrice-message li {
  line-height: 1.35;
}

.ask-fabrice-message p {
  margin: 0;
}

.ask-fabrice-message p + p,
.ask-fabrice-message p + ul,
.ask-fabrice-message ul + p {
  margin-top: 0.6rem;
}

.ask-fabrice-message ul {
  list-style: disc;
  margin: 0.55rem 0 0;
  padding-left: 1.3rem;
}

.ask-fabrice-message ul li {
  font-size: 0.9rem;
  text-indent: 0;
}

.ask-fabrice-message ul li::before {
  content: none;
}

.ask-fabrice-message h3 {
  font-size: 0.95rem;
  margin: 0.75rem 0 0.25rem;
}

.ask-fabrice-message h3:first-child {
  margin-top: 0;
}

.ask-fabrice-message h3::before {
  content: none;
}

.ask-fabrice-message-user {
  align-self: flex-end;
  background: #EBF8FF;
}

.ask-fabrice-message-assistant {
  align-self: flex-start;
  background: #FFFFFF;
}

.ask-fabrice-message-loading {
  min-width: 3rem;
}

.ask-fabrice-typing {
  align-items: center;
  display: inline-flex;
  gap: 0.28rem;
  min-height: 1.35rem;
}

.ask-fabrice-typing span {
  animation: ask-fabrice-twinkle 1.35s ease-in-out infinite;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 0.34rem;
  opacity: 0.25;
  width: 0.34rem;
}

.ask-fabrice-typing span:nth-child(2) {
  animation-delay: 0.18s;
}

.ask-fabrice-typing span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes ask-fabrice-twinkle {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  35% {
    opacity: 0.9;
    transform: translateY(-0.12rem);
  }
}

.ask-fabrice-form {
  display: grid;
  gap: 0.25rem;
}

.ask-fabrice-divider {
  margin: 0 0 0.45rem;
}

.ask-fabrice-input-row {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ask-fabrice-form input {
  border: 1px solid black;
  box-shadow: inset 0 0 0 1px #FFFFFF, inset 0 0 0 2px black;
  box-sizing: border-box;
  font: inherit;
  min-height: 3.5rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.ask-fabrice-form input::placeholder {
  color: #737373;
  font-style: italic;
}

.ask-fabrice-input-meta {
  display: flex;
  justify-content: flex-end;
  min-height: 1rem;
}

.ask-fabrice-counter {
  color: #737373;
  font-size: 0.75rem;
  line-height: 1.2;
}

.ask-fabrice-counter[data-warning="true"] {
  color: #9A3412;
}

.ask-fabrice-form button {
  background: #D1D5DB;
  border: 1px solid black;
  box-shadow: 3px 3px 0 0 black;
  color: #2D3436;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 3.5rem;
  min-width: 7rem;
  padding: 0.4rem 1rem;
}

.ask-fabrice-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.ask-fabrice-status {
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

.ask-fabrice-status:empty {
  display: none;
}

.ask-fabrice-turnstile {
  margin-top: 0.25rem;
}

.ask-fabrice-turnstile:empty {
  display: none;
}

html[data-theme="dark"] .ask-fabrice,
html[data-win31-theme="dark"] .ask-fabrice {
  color: #F3F4F6;
}

html[data-theme="dark"] .ask-fabrice .title h1,
html[data-theme="dark"] .ask-fabrice .title h1::before,
html[data-win31-theme="dark"] .ask-fabrice .title h1,
html[data-win31-theme="dark"] .ask-fabrice .title h1::before {
  color: #F3F4F6;
}

html[data-theme="dark"] .ask-fabrice-intro,
html[data-win31-theme="dark"] .ask-fabrice-intro {
  color: #DDE6F3;
}

html[data-theme="dark"] .ask-fabrice-divider,
html[data-win31-theme="dark"] .ask-fabrice-divider {
  border-color: #8EA3BF;
}

html[data-theme="dark"] .ask-fabrice-message,
html[data-win31-theme="dark"] .ask-fabrice-message {
  border-color: #C7D2FE;
  box-shadow: 3px 3px 0 0 #000000;
}

html[data-theme="dark"] .ask-fabrice-message-user,
html[data-win31-theme="dark"] .ask-fabrice-message-user {
  background: #233047;
  color: #F3F4F6;
}

html[data-theme="dark"] .ask-fabrice-message-assistant,
html[data-win31-theme="dark"] .ask-fabrice-message-assistant {
  background: #111827;
  color: #F3F4F6;
}

html[data-theme="dark"] .ask-fabrice-form input,
html[data-win31-theme="dark"] .ask-fabrice-form input {
  background: #111827;
  border-color: #C7D2FE;
  color: #F3F4F6;
  box-shadow: inset 0 0 0 1px #4B5563, inset 0 0 0 2px #C7D2FE;
}

html[data-theme="dark"] .ask-fabrice-form input::placeholder,
html[data-win31-theme="dark"] .ask-fabrice-form input::placeholder {
  color: #AAB6C8;
}

html[data-theme="dark"] .ask-fabrice-counter,
html[data-win31-theme="dark"] .ask-fabrice-counter {
  color: #DDE6F3;
}

html[data-theme="dark"] .ask-fabrice-counter[data-warning="true"],
html[data-win31-theme="dark"] .ask-fabrice-counter[data-warning="true"] {
  color: #FDBA74;
}

html[data-theme="dark"] .ask-fabrice-status,
html[data-win31-theme="dark"] .ask-fabrice-status {
  color: #F3F4F6;
}

html[data-theme="dark"] .ask-fabrice-form button,
html[data-win31-theme="dark"] .ask-fabrice-form button {
  background: #1F2937;
  border-color: #C7D2FE;
  box-shadow: 3px 3px 0 0 #000000;
  color: #F3F4F6;
}

@media only screen and (max-width: 520px) {
  .ask-fabrice-message {
    max-width: 100%;
  }

  .ask-fabrice-input-row {
    grid-template-columns: 1fr;
  }

  .ask-fabrice-form button {
    width: 100%;
  }
}
