/* Feuille de sélection modèle + raisonnement (v1.65) — façon app Claude :
   un panneau, deux sections, l'option active de CHAQUE section surlignée
   (un <select> natif ne sait cocher qu'une entrée pour tout le menu).
   Fichier séparé : app.css est au ras de son cliquet (test_static_size_guard). */

#engine {
  background: none;
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
}
@media (hover: hover) {
  #engine:hover { border-color: var(--accent); background: var(--accent-soft); }
}

#engine-dialog { width: min(94vw, 420px); }
.engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.engine-head h2 { margin-bottom: 0; }
/* Neutralise le style « bouton principal » générique des dialogs. */
#engine-dialog .engine-head button {
  width: auto;
  background: none;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
}
.engine-title {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 1rem 0 0.45rem;
}
.engine-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
#engine-dialog .engine-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  font-weight: 550;
  text-align: left;
  padding: 0.55rem 0.85rem;
}
.engine-option .engine-text { display: flex; flex-direction: column; min-width: 0; }
.engine-option .engine-name { overflow: hidden; text-overflow: ellipsis; }
.engine-option .engine-desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
#engine-dialog .engine-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.engine-option.active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 700;
}
