/* Ali Gator v159 — page d'un lot :
   · « Pages à corriger (facultatif) » repliées derrière une petite coche (lot-v159.js) ;
   · bouton « Lancer la compréhension » juste à gauche de « Lancer le mode intelligent » (chat-v159.js) ;
   · « Ajouter depuis Google Drive » et « Importer un dossier » espacés. */

/* ---------- Pages à corriger : une petite coche ---------- */
html.agp-pg-off:root body:not(#lx) section.batch-page>label:has(>input:not([type=checkbox])):not(.agp-pt):not(#agp-x),
html.agp-pg-off:root body:not(#lx) section.batch-page>label:has(>input:not([type=checkbox])):not(.agp-pt):not(#agp-x)+p.small.muted{display:none!important}
/* Ouverte : le libellé est porté par la coche, le champ suit juste dessous */
html.agp-pg-on:root body:not(#lx) section.batch-page>label:has(>input:not([type=checkbox])):not(.agp-pt):not(#agp-x){font-size:0!important;line-height:0!important;gap:0!important;margin-top:12px!important;letter-spacing:0!important}
html.agp-pg-on:root body:not(#lx) section.batch-page>label:has(>input:not([type=checkbox])):not(.agp-pt):not(#agp-x)>input{font-size:16px!important;line-height:1.4!important}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x){display:flex!important;align-items:center;gap:11px!important;width:fit-content;margin:22px 0 0!important;font-size:14px!important;font-weight:600!important;letter-spacing:0;color:var(--lx-ink2,#28392e)!important;cursor:pointer;user-select:none;-webkit-user-select:none}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x)>input{-webkit-appearance:none;appearance:none;flex:none;display:block;width:20px!important;height:20px!important;min-height:0!important;margin:0!important;padding:0!important;border:1.5px solid rgba(29,97,65,.42)!important;border-radius:7px!important;background:#fff!important;box-shadow:inset 0 1px 2px rgba(8,30,18,.06)!important;cursor:pointer;transition:background-color .18s,border-color .18s,box-shadow .18s}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x)>input:checked{border-color:#1d6141!important;background:#1d6141 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat!important}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x)>input:focus{outline:0!important}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x)>input:focus-visible{box-shadow:0 0 0 4px rgba(162,222,74,.38)!important}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x):hover>input:not(:checked):not(:disabled){border-color:rgba(29,97,65,.7)!important}
html:root body:not(#lx) section.batch-page>label.agp-pt:not(#agp-x):has(>input:disabled){opacity:.55;cursor:default}

/* ---------- « Lancer la compréhension » ---------- */
html:root body:not(#lx) section.batch-page>.batch-actions>.lxc-launch:not(#agp-x){display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:56px!important;padding:0 24px!important;font-size:15.5px!important;font-weight:600!important;border-radius:18px!important}
@media (max-width:760px){html:root body:not(#lx) section.batch-page>.batch-actions>.lxc-launch:not(#agp-x){width:100%}}
html:root body:not(#lx) section.batch-page>.batch-actions>.lxc-launch:not(#agp-x) svg{flex:none;width:18px;height:18px;color:#3f8f2e}
html:root body:not(#lx) section.batch-page>.batch-actions>.lxc-launch.is-busy:not(#agp-x) svg{animation:lxc-breathe 1.6s ease-in-out infinite}
@keyframes lxc-breathe{0%,100%{opacity:1;scale:1}50%{opacity:.45;scale:.86}}
@media (prefers-reduced-motion:reduce){html:root body:not(#lx) section.batch-page>.batch-actions>.lxc-launch.is-busy:not(#agp-x) svg{animation:none}}

/* ---------- Google Drive / Importer un dossier : de l'air entre les deux ---------- */
html:root body #root .google-drive-control>.agf-folder:not(#agp-x){margin-top:12px!important}
