/* (27/11/2026) SubScale IA, la conversation (Coach et Assistant) : questions de relance, Réessayer, lecture des réponses.
   Chargé après menu.css (même astuce :is(#gs,*) que stylepro / sections) ; jetons de stylepro.css et motion.css. */

/* questions de relance : pastilles sous la dernière réponse */
html body :is(#gs, .app) .ia-suite:is(#gs,*) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
html body :is(#gs, .app) .ia-suite-t:is(#gs,*) { width: 100%; font-size: 12px; color: var(--muted-2); }
html body :is(#gs, .app) .ia-suite-q:is(#gs,*) { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--fg); font: 500 12.5px/1.3 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
html body :is(#gs, .app) .ia-suite-q:is(#gs,*):hover { border-color: var(--acc, var(--fg)); background: var(--acc-soft, var(--surface-2)); }
html body :is(#gs, .app) .ia-suite-q:is(#gs,*):active { transform: scale(.98); }
html body :is(#gs, .app) .ia-suite-q:is(#gs,*):focus-visible { outline: 2px solid var(--acc, var(--fg)); outline-offset: 2px; }
html body :is(#gs, .app) .ia-retry:is(#gs,*) { margin-top: 10px; }

/* lecture des réponses : titres, listes, tableaux et encadrés plus aérés, chiffres tabulaires */
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body:is(#gs,*) { font-variant-numeric: tabular-nums; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body h3:is(#gs,*) { margin: 16px 0 6px; font: 700 15px/1.3 "Hanken Grotesk", Inter, system-ui, sans-serif; letter-spacing: -.005em; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body > h3:first-child:is(#gs,*) { margin-top: 2px; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body :is(ul, ol):is(#gs,*) { margin: 6px 0 10px; padding-left: 20px; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body li:is(#gs,*) { margin: 3px 0; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body li::marker:is(#gs,*) { color: var(--muted-2); }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body strong:is(#gs,*) { color: var(--fg); font-weight: 650; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .table:is(#gs,*) { margin: 8px 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .table table:is(#gs,*) { width: 100%; border-collapse: collapse; font-size: 13px; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .table :is(th, td):is(#gs,*) { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .table th:is(#gs,*) { font-weight: 600; color: var(--muted); background: var(--surface-2); }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .table tr:last-child td:is(#gs,*) { border-bottom: 0; }
html body :is(#gs, .app) :is(#view-chat, #view-coach) .msg.ai .body .box:is(#gs,*) { margin: 8px 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--acc, var(--fg)); border-radius: 10px; background: var(--surface); }
@media (max-width: 760px) {
  html body :is(#gs, .app) .ia-suite-q:is(#gs,*) { min-height: 36px; font-size: 13px; }
}
/* (28/11/2026) refonte UX, lot 4 : Générateur IA (rail : liens « Voir aussi » vers Réglages IA et l'analyse des scripts),
   Contenu › Scripts › Analyse (choix du script), page Scripts (lien « Voir l'analyse » du résumé) */
html body :is(#gs, .app) .bl-rail .bl-rail-sep:is(#gs,*) { display: block; margin: 16px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
html body :is(#gs, .app) .bl-rail .bl-go:is(#gs,*) { white-space: nowrap; }
html body :is(#gs, .app) .bl-rail .bl-go .bl-go-arr:is(#gs,*) { width: 13px; height: 13px; margin-left: auto; color: var(--muted); transition: transform .15s ease; }
html body :is(#gs, .app) .bl-rail .bl-go:is(:hover, :focus-visible) .bl-go-arr:is(#gs,*) { transform: translateX(2px); color: var(--fg); }
html body :is(#gs, .app) #sc-stats .sc-pick:is(#gs,*) { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--fg-2); }
html body :is(#gs, .app) #sc-stats .sc-pick select:is(#gs,*) { min-width: 220px; max-width: 100%; }
html body :is(#gs, .app) #lb-sum .sm-ana:is(#gs,*) { align-self: center; margin-left: 6px; font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) {
  html body :is(#gs, .app) .bl-rail .bl-rail-sep:is(#gs,*) { display: none; }
  html body :is(#gs, .app) #sc-stats .sc-pick:is(#gs,*) { display: flex; }
  html body :is(#gs, .app) #sc-stats .sc-pick select:is(#gs,*) { flex: 1; min-width: 0; }
  /* Réglages IA a 4 onglets : sous l'en-tête de pilotage (Vue d'ensemble), la barre garde ses marges de 28 px et défile dans l'écran */
  html body :is(#gs, .app) #view-iaconfig.vai-page > .vtabs.grp-tabs:is(#gs,*) { max-width: calc(100% - 56px) !important; }
  /* Générateur IA : les champs de l'éditeur de script (nom d'étape, note pour l'équipe…) à 16 px, sinon l'iPhone zoome au toucher */
  html body :is(#gs, .app) #view-scripts #bl-ed :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea):is(#gs,*) { font-size: 16px !important; }
}
