/* Ali Gator v219 — page du lot plus claire (Dali, 19/10 : « il y en a dans tous les sens, des tuiles partout »).
   Quatre étapes lisibles, une carte par étape :
     1 Documents  : déposer des PDF · Google Drive · dossier · dossier Drive lié · assembler
     2 Références : tableaux, PDF modèles, captures (lignes compactes)
     3 Mode IA    : Mode intelligent + MAX dans une seule carte claire
     4 Consigne   : modification commune, pages à corriger
   Rien n'est déplacé dans le DOM (React reste maître) : .batch-intake passe en « display: contents »,
   la page devient une grille et l'ordre est seulement visuel. Retour arrière : retirer lot-clair-v219.css d'index.html. */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) {
  --agc-card: rgba(255, 255, 255, .9);
  --agc-line: rgba(29, 97, 65, .14);
  --agc-dash: rgba(29, 97, 65, .09);
  --agc-r: 24px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 34%);
  grid-auto-flow: row;
  column-gap: 0 !important;
  row-gap: 0 !important;
  align-content: start;
  align-items: start;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > * { grid-column: 1 / -1; grid-row: auto !important; order: 55; min-width: 0; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake { display: contents !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > * { grid-column: 1 / -1; grid-row: auto !important; order: 22; min-width: 0; }

/* en-tête : mêmes respirations qu'avant */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .row-between:first-child { order: 1; margin: 0 0 60px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .eyebrow { order: 2; margin: 0 0 17px !important; justify-self: start; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > h1 { order: 3; margin: 0 0 14px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > h1 + p { order: 4; margin: 0 !important; }

/* étiquettes d'étape : 1 Documents, 2 Références, 3 Mode IA, 4 Consigne */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake::before, html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake::after, html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake)::before, html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake)::after {
  grid-column: 1 / -1; display: flex; align-items: center; min-height: 24px; margin: 30px 0 12px; padding: 0 0 0 34px;
  font: 700 11.5px/1.2 var(--lx-sans, Hellix), ui-sans-serif, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: #3f5a4a; background: no-repeat 0 50% / 24px 24px; pointer-events: none;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake::before { content: "Documents"; order: 9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dcf2b0'/%3E%3Ctext x='12' y='16.4' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='12.5' font-weight='700' fill='%231d4d0b'%3E1%3C/text%3E%3C/svg%3E"); }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake::after { content: "Références"; order: 19; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dcf2b0'/%3E%3Ctext x='12' y='16.4' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='12.5' font-weight='700' fill='%231d4d0b'%3E2%3C/text%3E%3C/svg%3E"); }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake)::before { content: "Mode IA"; order: 29; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dcf2b0'/%3E%3Ctext x='12' y='16.4' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='12.5' font-weight='700' fill='%231d4d0b'%3E3%3C/text%3E%3C/svg%3E"); }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake)::after { content: "Consigne"; order: 39; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dcf2b0'/%3E%3Ctext x='12' y='16.4' text-anchor='middle' font-family='Helvetica,Arial,sans-serif' font-size='12.5' font-weight='700' fill='%231d4d0b'%3E4%3C/text%3E%3C/svg%3E"); }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> .batch-intake > .batch-attachments)) > .batch-intake::after { content: none; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> section.batch-smart-mode)):not(:has(> section.lxc-max-mode))::before { content: none; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> label > textarea))::after { content: none; }

/* ---------- 1 · Documents : une seule carte ---------- */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload {
  order: 10; grid-column: 1 !important; grid-row: auto !important; align-self: stretch;
  display: grid !important; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 18px; row-gap: 4px; align-content: center; align-items: center; justify-items: start;
  min-height: 112px !important; height: auto !important; margin: 0 !important; padding: 18px 24px !important;
  border: 1px solid var(--agc-line) !important; border-right: 0 !important; border-radius: var(--agc-r) 0 0 var(--agc-r) !important;
  background: radial-gradient(90% 130% at 0% 0%, rgba(197, 242, 111, .24), rgba(197, 242, 111, 0) 62%), var(--agc-card) !important;
  outline: none !important;
  box-shadow: none !important; text-align: left !important; cursor: pointer;
  transition: outline-color .3s ease, background-color .3s ease;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload:hover { background-color: rgba(250, 253, 245, .96) !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload > svg { grid-column: 1; grid-row: 1 / span 2; box-sizing: border-box !important; width: 52px !important; height: 52px !important; padding: 14px !important; margin: 0 !important; border-radius: 16px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload > strong { grid-column: 2; grid-row: 1; margin: 0 !important; font-size: 27px !important; line-height: 1.05 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload > span { grid-column: 2; grid-row: 2; margin: 0 !important; max-width: 52ch; font-size: 13.5px !important; line-height: 1.45 !important; color: #4a5d52 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control {
  order: 11; grid-column: 2 !important; grid-row: auto !important; align-self: stretch;
  display: flex !important; flex-direction: column !important; justify-content: center; gap: 2px !important;
  margin: 0 !important; padding: 10px !important;
  border: 1px solid var(--agc-line) !important; border-left: 1px solid var(--agc-dash) !important; border-radius: 0 var(--agc-r) var(--agc-r) 0 !important;
  background: var(--agc-card) !important; box-shadow: none !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control > .button {
  width: 100% !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 14px !important;
  justify-content: flex-start !important; gap: 12px !important; text-align: left;
  border: 0 !important; border-radius: 14px !important; background: transparent !important; box-shadow: none !important;
  font-size: 14px !important; font-weight: 600 !important; color: #0c1a12 !important;
  transition: background-color .25s ease, color .25s ease;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control > .button:hover:not(:disabled) { background: rgba(197, 242, 111, .24) !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control > .button svg { flex: none; }
/* la carte continue avec le dossier Drive lié et « Assembler des documents » */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):has(> .agl, > #assembly-v166 > .button:only-child) > .batch-intake > .batch-upload { border-bottom-left-radius: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):has(> .agl, > #assembly-v166 > .button:only-child) > .batch-intake > .google-drive-control { border-bottom-right-radius: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .agl {
  order: 12; margin: 0 !important; padding: 12px 18px 12px 20px !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important; column-gap: 14px !important;
  border: 1px solid var(--agc-line) !important; border-top: 1px solid var(--agc-dash) !important; border-radius: 0 0 var(--agc-r) var(--agc-r) !important;
  background: var(--agc-card) !important; box-shadow: none !important;
  animation: agc-in .45s cubic-bezier(.22, .8, .24, 1) both;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):has(> #assembly-v166 > .button:only-child) > .agl { border-radius: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .agl .agl-ic { width: 36px !important; height: 36px !important; border-radius: 12px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .agl .agl-txt strong { font-size: 14px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .agl .agl-txt p { font-size: 13px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > #assembly-v166 { order: 13; margin: 18px 0 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > #assembly-v166:has(> .button:only-child) {
  margin: 0 !important; padding: 8px 10px !important;
  border: 1px solid var(--agc-line); border-top: 1px solid var(--agc-dash); border-radius: 0 0 var(--agc-r) var(--agc-r);
  background: var(--agc-card);
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > #assembly-v166:has(> .button:only-child) > .button {
  margin: 0 !important; height: 40px !important; min-height: 40px !important; padding: 0 14px !important; gap: 10px !important;
  border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important;
  font-size: 13.5px !important; font-weight: 600 !important; color: #1d6141 !important; vertical-align: middle;
  transition: background-color .25s ease;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > #assembly-v166:has(> .button:only-child) > .button:hover:not(:disabled) { background: rgba(197, 242, 111, .24) !important; }

/* ---------- 2 · Références : une carte, des lignes compactes ---------- */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments {
  order: 20; margin: 0 !important; padding: 18px 22px 16px !important;
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 0; align-items: center;
  border: 1px solid var(--agc-line) !important; border-radius: var(--agc-r) !important;
  background: var(--agc-card) !important; box-shadow: none !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments::before, html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments::after { content: none !important; display: none !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > * { grid-column: 1 / -1; grid-row: auto; order: 20 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment { order: 10 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > p:not(.small) { order: 3 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > p.small { order: 4 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > h2 { order: 1 !important; grid-column: 1; grid-row: 1; margin: 0 !important; align-items: center; gap: 10px !important; font-size: 25px !important; line-height: 1.1 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > h2 svg { width: 18px !important; height: 18px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > .button {
  order: 2 !important; grid-column: 2; grid-row: 1; justify-self: end; margin: 0 !important; height: 38px !important; min-height: 38px !important;
  padding: 0 14px !important; border-radius: 12px !important; font-size: 13px !important; white-space: nowrap;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > p:not(.small) { margin: 8px 0 0 !important; max-width: none !important; font-size: 13.5px !important; line-height: 1.5 !important; color: #4a5d52 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > p.small { margin: 3px 0 0 !important; font-size: 12px !important; line-height: 1.45 !important; color: #7a877f !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment {
  display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto auto auto;
  grid-template-areas: "ic name voir dl del" "ic meta voir dl del";
  column-gap: 12px; row-gap: 1px; align-items: center;
  width: auto !important; max-width: none !important; flex: none !important; margin: 14px 0 0 !important; padding: 10px 10px 10px 12px !important;
  border: 1px solid rgba(12, 40, 24, .08) !important; border-radius: 16px !important; background: rgba(247, 251, 240, .92) !important; box-shadow: none !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment + article.batch-attachment { margin-top: 8px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment::before {
  content: ""; grid-area: ic; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(197, 242, 111, .38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6141' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2.5'/%3E%3Cpath d='M4 9.5h16M4 14.5h16M10 9.5V20'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .row-between { display: contents !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .row-between > :first-child { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .row-between > .icon-button { grid-area: del; margin: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > p.small { grid-area: meta; margin: 0 !important; font-size: 12.5px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > button.text-button { grid-area: voir; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > a.text-button { grid-area: dl; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .text-button {
  display: inline-flex !important; align-items: center; height: 32px; margin: 0 !important; padding: 0 12px !important;
  border: 1px solid rgba(12, 40, 24, .1) !important; border-radius: 10px !important; background: #fff !important;
  color: #1d6141 !important; text-decoration: none !important; white-space: nowrap;
  transition: background-color .25s ease, border-color .25s ease;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .text-button:hover { background: rgba(197, 242, 111, .22) !important; border-color: rgba(29, 97, 65, .26) !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .text-button[data-agc-short] { font-size: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > .text-button[data-agc-short]::after { content: attr(data-agc-short); font-size: 12.5px; font-weight: 600; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment > :not(.row-between):not(p.small):not(.text-button) { grid-column: 1 / -1; }
/* « Joindre un fichier » de MAX : déjà dans le chat, inutile en double sur la page */
html:root body:has(aside.lxc.is-max):not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .ag214-panel { display: none !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .ag214-panel {
  order: 21; display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 !important; padding: 12px 22px !important;
  border: 1px solid var(--agc-line); border-top: 1px solid var(--agc-dash); border-radius: 0 0 var(--agc-r) var(--agc-r); background: var(--agc-card);
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .ag214-panel > :is(.ag217-references, .ag217-reference-note) { display: none !important; }
html:root body:not(:has(aside.lxc.is-max)):not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):has(> .batch-intake > .ag214-panel) > .batch-intake > .batch-attachments { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> .batch-intake > .batch-attachments)) > .batch-intake > .ag214-panel { border-top-style: solid; border-radius: var(--agc-r); }

/* ---------- 3 · Mode IA : une carte, deux lignes ---------- */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode {
  order: 30; margin: 0 !important; padding: 16px 20px !important; overflow: visible !important;
  display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; row-gap: 0; align-items: center;
  border: 1px solid var(--agc-line) !important; border-radius: var(--agc-r) var(--agc-r) 0 0 !important;
  background: radial-gradient(80% 140% at 0% 0%, rgba(197, 242, 111, .2), rgba(197, 242, 111, 0) 60%), var(--agc-card) !important;
  box-shadow: none !important; color: #173d30 !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> section.lxc-max-mode)) > section.batch-smart-mode { border-radius: var(--agc-r) !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > div:first-child { grid-column: 1; grid-row: 1; display: flex !important; align-items: flex-start; gap: 14px !important; min-width: 0; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > div:first-child > svg { flex: none; box-sizing: border-box !important; width: 40px !important; height: 40px !important; padding: 10px !important; border-radius: 12px !important; background: rgba(197, 242, 111, .45) !important; color: #1d4d0b !important; box-shadow: none !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode strong { color: #0c1a12 !important; font-size: 15px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > div:first-child p { margin: 3px 0 0 !important; max-width: 64ch; color: #4a5d52 !important; font-size: 13px !important; line-height: 1.5 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > label.batch-smart-switch { grid-column: 2; grid-row: 1; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > label.batch-smart-switch strong { color: #0c1a12 !important; font-size: 13.5px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > p.batch-smart-note { grid-column: 1 / -1; margin: 10px 0 0 54px !important; padding: 0 !important; border: 0 !important; color: #6b7a71 !important; font-size: 12px !important; line-height: 1.5 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.lxc-max-mode {
  order: 31; margin: 0 !important; padding: 14px 20px 16px 74px !important;
  border: 1px solid var(--agc-line) !important; border-top: 1px solid var(--agc-dash) !important; border-radius: 0 0 var(--agc-r) var(--agc-r) !important;
  background: var(--agc-card) !important; box-shadow: none !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> section.batch-smart-mode)) > section.lxc-max-mode { padding-left: 20px !important; border-top-style: solid !important; border-radius: var(--agc-r) !important; }

/* ---------- 4 · Consigne : une carte ---------- */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > label:has(> textarea) {
  order: 40; margin: 0 !important; padding: 16px 20px 14px !important; gap: 10px !important;
  border: 1px solid var(--agc-line); border-bottom: 0; border-radius: var(--agc-r) var(--agc-r) 0 0;
  background: var(--agc-card); color: #0c1a12 !important; font-size: 14.5px !important; font-weight: 650 !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > label:has(> textarea) > textarea { min-height: 118px; border-radius: 16px !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > #batch-attachment-instruction-hint {
  order: 41; margin: 0 !important; padding: 0 20px 10px !important;
  border-left: 1px solid var(--agc-line); border-right: 1px solid var(--agc-line); background: var(--agc-card); font-size: 12.5px !important;
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > label.agp-pt {
  order: 42; display: flex !important; width: auto !important; margin: 0 !important; padding: 4px 20px 16px !important;
  border: 1px solid var(--agc-line); border-top: 0; border-radius: 0 0 var(--agc-r) var(--agc-r); background: var(--agc-card);
}
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > label.agp-pt ~ :is(label, p.small) { order: 43; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> label.agp-pt)) > #batch-attachment-instruction-hint { padding-bottom: 16px !important; border-bottom: 1px solid var(--agc-line); border-radius: 0 0 var(--agc-r) var(--agc-r); }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):not(:has(> label.agp-pt)):not(:has(> #batch-attachment-instruction-hint)) > label:has(> textarea) { padding-bottom: 18px !important; border-bottom: 1px solid var(--agc-line); border-radius: var(--agc-r); }

/* ---------- suite de la page ---------- */
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-actions { order: 60; margin: 26px 0 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-progress { order: 61; margin: 20px 0 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-list { order: 70; margin: 20px 0 0 !important; }
html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-final { order: 80; margin: 24px 0 0 !important; }

@keyframes agc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) { grid-template-columns: minmax(0, 1fr) !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-upload { grid-column: 1 / -1 !important; border-right: 1px solid var(--agc-line) !important; border-radius: var(--agc-r) var(--agc-r) 0 0 !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control { grid-column: 1 / -1 !important; flex-direction: row !important; border-left: 1px solid var(--agc-line) !important; border-top: 1px solid var(--agc-dash) !important; border-radius: 0 0 var(--agc-r) var(--agc-r) !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake):has(> .agl, > #assembly-v166 > .button:only-child) > .batch-intake > .google-drive-control { border-radius: 0 !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .google-drive-control > .button { flex: 1 1 0; justify-content: center !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.lxc-max-mode { padding-left: 20px !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > section.batch-smart-mode > p.batch-smart-note { margin-left: 0 !important; }
  html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .batch-intake > .batch-attachments > article.batch-attachment { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "ic name del" "ic meta del" ". voir dl"; }
}
@media (prefers-reduced-motion: reduce) { html:root body:not(#agc-z):not(#agc-y) #root section.batch-page:has(> .batch-intake) > .agl { animation: none !important; } }
