:root {
  color-scheme: light;
  --vert: #0d5c2e;
  --encre: #1c2a22;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7f5;
  color: var(--encre);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px;
  background: #fff;
  border-bottom: 4px solid var(--vert);
}

header img {
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 0;
  color: var(--vert);
  font-size: 1.4rem;
}

header p {
  margin: 4px 0 0;
}

main {
  max-width: 640px;
  padding: 16px;
}

/* Le texte de la page ne passe pas sous le panneau du widget. */
@media (min-width: 433px) {
  main {
    max-width: min(640px, calc(100vw - 440px));
  }
}

/* Le widget limite le logo de son en-tête à 48 px, ce qui le rend illisible. */
#anything-llm-header img {
  width: 130px !important;
  max-width: 130px !important;
  height: auto !important;
  max-height: 46px !important;
}

/* Le panneau du widget fait 400 px : sur téléphone, son bord gauche sortirait de l'écran. */
@media (max-width: 432px) {
  #anything-llm-chat {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
}
