body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
  font-size: 18px;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

#appli {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

button {
  border: 0;
  border-radius: 1rem;
  padding: 0.8rem 1.3rem;
  background: #0d9488;
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
}

#parler {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  font-size: 1.4rem;
}

#parler.ouverte {
  background: #be123c;
}

#ici,
#etat {
  margin: 0;
  color: #94a3b8;
}

#fil {
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  text-align: left;
}

#fil p {
  margin: 0.4rem 0;
  padding: 0.5rem 0.8rem;
  border-radius: 0.8rem;
  background: #1e293b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Version 1.7.1 : les lignes d'un message mis en forme. */
#fil .ligne {
  display: block;
}

#fil .ligne:empty::before {
  content: '\00a0';
}

#fil .puce {
  padding-left: 1.1em;
  text-indent: -0.8em;
}

#fil .puce::before {
  content: '• ';
}

#fil p.leo {
  margin-left: 3rem;
  background: #334155;
}

#fil p.info,
#fil p.attente {
  background: none;
  font-style: italic;
  color: #94a3b8;
}

form {
  width: 100%;
  display: flex;
  gap: 0.5rem;
}

textarea,
input {
  flex: 1;
  min-width: 0;
  border: 1px solid #334155;
  border-radius: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: #1e293b;
  color: #e2e8f0;
  font: inherit;
}

textarea {
  resize: vertical;
}

#entree {
  justify-content: center;
}

details {
  width: 100%;
  text-align: left;
  color: #94a3b8;
}

summary {
  cursor: pointer;
}

#liste {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

#liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

#liste .detail {
  flex-basis: 100%;
  font-size: 0.85rem;
}

#liste button {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

#liste button.retirer {
  background: #475569;
}

#liste button.confirmer {
  background: #be123c;
}

[hidden] {
  display: none !important;
}
