/* Ali Gator — refonte « Luxe » (v153). Couche additive, thème clair uniquement. */
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-v153.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-italic-v153.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
:root{
  --lx-serif:"Instrument Serif","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --lx-sans:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --lx-mono:"Geist Mono",ui-monospace,"SF Mono",Menlo,monospace;
  --lx-ink:#0c1a12;--lx-ink2:#28392e;--lx-ink3:#58685e;--lx-ink4:#8a968e;
  --lx-g9:#082517;--lx-g8:#0e3523;--lx-g7:#154a31;--lx-g6:#1d6141;--lx-g5:#2a7a52;
  --lx-lime:#c5f26f;--lx-lime2:#a2de4a;--lx-lime3:#7fbf2a;--lx-limeink:#355c0e;
  --lx-line:rgba(12,40,24,.075);--lx-line2:rgba(12,40,24,.12);--lx-line3:rgba(12,40,24,.2);
  --lx-card:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.82));
  --lx-edge:rgba(255,255,255,.95);
  --lx-sh1:0 1px 1px rgba(8,30,18,.04),0 3px 8px -4px rgba(8,30,18,.08);
  --lx-sh2:0 1px 1px rgba(8,30,18,.035),0 10px 24px -14px rgba(8,30,18,.2),0 30px 60px -38px rgba(8,30,18,.22);
  --lx-sh3:0 2px 4px rgba(8,30,18,.05),0 24px 48px -22px rgba(8,30,18,.3),0 56px 100px -56px rgba(8,30,18,.3);
  --lx-hi:inset 0 1px 0 rgba(255,255,255,.96);
  --lx-ring:0 0 0 4px rgba(162,222,74,.3);
  --lx-btn:linear-gradient(180deg,#24704a 0%,#11402a 100%);
  --lx-btn-h:linear-gradient(180deg,#2b8055 0%,#144b31 100%);
  --lx-ease:cubic-bezier(.22,1,.36,1);--lx-spring:cubic-bezier(.34,1.4,.64,1);
  --lx-w:1240px;--lx-pad:clamp(20px,4vw,56px)
}
html:root body:not(#lx) ::selection{background:rgba(197,242,111,.62);color:var(--lx-ink)}
html:root body:not(#lx) *{scrollbar-width:thin;scrollbar-color:rgba(12,40,24,.2) transparent}

/* Sur-titres : capitales fines + point citron */
html:root body:not(#lx) .eyebrow,html:root body:not(#lx) .entry-kicker{display:inline-flex;align-items:center;gap:10px;font-family:var(--lx-mono)!important;font-size:11px!important;font-weight:500!important;letter-spacing:.2em!important;text-transform:uppercase;color:var(--lx-g6)!important}
html:root body:not(#lx) .eyebrow::before,html:root body:not(#lx) .entry-kicker::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--lx-lime2);box-shadow:0 0 0 4px rgba(162,222,74,.2)}

/* Grands titres en serif éditoriale */
html:root body:not(#lx) :is(.home-introduction h1,.batch-library-heading h1,section.batch-page>h1,.login-card h1){font-family:var(--lx-serif)!important;font-weight:400!important;letter-spacing:-.022em!important;line-height:.98!important;color:var(--lx-ink)!important;font-variation-settings:normal}
html:root body:not(#lx) :is(.library-heading h2,.batch-library-tools h2,section.batch-new-card h2,.entry-copy h2,.modal-header h2,.batch-attachments h2,.assistant-intro h2){font-family:var(--lx-serif)!important;font-weight:400!important;letter-spacing:-.012em!important;color:var(--lx-ink)!important}

/* Boutons */
html:root body:not(#lx) .button{border-radius:14px;font-weight:600;letter-spacing:-.005em;transition:transform .35s var(--lx-ease),box-shadow .35s var(--lx-ease),background .25s,border-color .25s,color .25s}
html:root body:not(#lx) .button.primary{min-height:46px;padding:0 20px;border:0!important;color:#fff!important;background:var(--lx-btn)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.18),0 1px 2px rgba(8,30,18,.2),0 12px 24px -12px rgba(14,53,35,.7)!important}
html:root body:not(#lx) .button.primary:hover:not(:disabled){background:var(--lx-btn-h)!important;transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.26),0 2px 4px rgba(8,30,18,.2),0 18px 30px -14px rgba(14,53,35,.78)!important}
html:root body:not(#lx) .button.primary svg{color:var(--lx-lime)}
html:root body:not(#lx) .button.secondary{min-height:44px;padding:0 18px;color:var(--lx-ink)!important;background:rgba(255,255,255,.84)!important;border:1px solid var(--lx-line2)!important;box-shadow:var(--lx-hi),var(--lx-sh1)!important}
html:root body:not(#lx) .button.secondary:hover:not(:disabled){background:#fff!important;border-color:var(--lx-line3)!important;transform:translateY(-1px);box-shadow:var(--lx-hi),0 10px 22px -14px rgba(8,30,18,.34)!important}
html:root body:not(#lx) .button:disabled{opacity:.5;transform:none}
html:root body:not(#lx) .text-button{font-weight:500;transition:color .2s}
html:root body:not(#lx) :is(button,a,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--lx-g5)!important;outline-offset:3px}

/* Pastille « retour » (Accueil, Tous les lots) */
html:root body:not(#lx) :is(.batch-library-back,section.batch-page>.row-between:first-child>.text-button){display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 16px 0 12px;border-radius:999px;background:rgba(255,255,255,.66);border:1px solid var(--lx-line);box-shadow:var(--lx-hi),var(--lx-sh1);font-size:13.5px;font-weight:550;color:var(--lx-ink2)}
html:root body:not(#lx) :is(.batch-library-back,section.batch-page>.row-between:first-child>.text-button):hover{background:#fff;color:var(--lx-ink)}
html:root body:not(#lx) :is(.batch-library-back,section.batch-page>.row-between:first-child>.text-button) svg{transition:transform .45s var(--lx-spring)}
html:root body:not(#lx) :is(.batch-library-back,section.batch-page>.row-between:first-child>.text-button):hover svg{transform:translateX(-3px)}

/* Cases à cocher élégantes */
html:root body:not(#lx) :is(.batch-history-toolbar,.batch-card-top,.library-selection,.document-check) input[type=checkbox]{-webkit-appearance:none;appearance:none;flex:none;width:20px;height:20px;margin:0;border-radius:7px;border:1.5px solid rgba(12,40,24,.28);background:#fff center/12px 12px no-repeat;display:inline-block;vertical-align:middle;cursor:pointer;transition:background-color .2s,border-color .2s,box-shadow .2s}
html:root body:not(#lx) :is(.batch-history-toolbar,.batch-card-top,.library-selection,.document-check) input[type=checkbox]:hover{border-color:var(--lx-g5)}
html:root body:not(#lx) :is(.batch-history-toolbar,.batch-card-top,.library-selection,.document-check) input[type=checkbox]:checked{background-color:var(--lx-g6);border-color:var(--lx-g6);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.6-5.2' fill='none' stroke='%23c5f26f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
html:root body:not(#lx) :is(.batch-history-toolbar,.batch-card-top,.library-selection,.document-check) input[type=checkbox]:disabled{opacity:.4;cursor:default}

/* Champs de recherche en pilule */
html:root body:not(#lx) :is(.batch-library-tools>label,label.library-search){display:flex!important;align-items:center;gap:10px;height:50px!important;padding:0 18px!important;border-radius:999px!important;background:rgba(255,255,255,.84)!important;border:1px solid var(--lx-line2)!important;box-shadow:var(--lx-hi),var(--lx-sh1)!important;transition:box-shadow .3s,border-color .3s}
html:root body:not(#lx) :is(.batch-library-tools>label,label.library-search):focus-within{border-color:rgba(29,97,65,.45)!important;box-shadow:var(--lx-hi),var(--lx-ring)!important}
html:root body:not(#lx) :is(.batch-library-tools>label,label.library-search) svg{flex:none;color:var(--lx-ink3)}
html:root body:not(#lx) :is(.batch-library-tools>label,label.library-search) input{flex:1;min-width:0;height:44px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:15px!important;color:var(--lx-ink)!important;outline:0!important}
/* ---------- Accueil ---------- */
html:root body:not(#lx) main.atelier-home{padding:44px max(var(--lx-pad),calc((100% - var(--lx-w))/2)) 110px!important}
html:root body:not(#lx) .home-introduction h1{font-size:clamp(60px,7.4vw,112px)!important;line-height:.94!important;margin:20px 0 22px!important;max-width:13ch!important}
html:root body:not(#lx) .home-introduction h1 em{font-family:var(--lx-serif)!important;font-style:italic!important;font-weight:400!important;letter-spacing:-.025em!important}
html:root body:not(#lx) .home-introduction>p{font-size:18px!important;line-height:1.55!important;color:var(--lx-ink3)!important;max-width:44ch!important}
html:root body:not(#lx) .studio-home-note{border-radius:22px!important;padding:16px 18px!important;background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important;color:var(--lx-ink2)!important;font-size:13.5px!important;line-height:1.5!important}
html:root body:not(#lx) .studio-home-note svg{color:var(--lx-g6)}

/* Sélecteur PDF / Tableur / PowerPoint */
html:root body:not(#lx) nav.document-mode-tabs{padding:5px!important;margin:46px 0 22px!important;border-radius:999px!important;background:rgba(255,255,255,.8)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh1)!important}
html:root body:not(#lx) nav.document-mode-tabs button{border-radius:999px!important;height:40px;padding:0 20px!important;font-size:14px!important;font-weight:600!important}
html:root body:not(#lx) nav.document-mode-tabs .ag-tab-pill{border-radius:999px!important;background:var(--lx-btn)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 8px 18px -10px rgba(14,53,35,.85)!important}

/* Cartes d'entrée */
html:root body:not(#lx) .entry-cards{gap:22px!important}
html:root body:not(#lx) .entry-card{border-radius:32px!important;padding:32px 34px!important;border:1px solid rgba(255,255,255,.95)!important;background:radial-gradient(80% 120% at 100% 0%,rgba(197,242,111,.22),transparent 60%),var(--lx-card)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important}
html:root body:not(#lx) .entry-card.entry-multi{background:radial-gradient(80% 120% at 100% 0%,rgba(160,224,198,.3),transparent 60%),var(--lx-card)!important}
html:root body:not(#lx) .entry-card.ag-hot,html:root body:not(#lx) .entry-card:hover{box-shadow:var(--lx-hi),0 0 0 1px rgba(29,97,65,.18),var(--lx-sh3)!important}
html:root body:not(#lx) .entry-copy h2{font-size:clamp(32px,3vw,40px)!important;line-height:1.02!important;margin:14px 0 12px!important}
html:root body:not(#lx) .entry-copy p{font-size:15px!important;line-height:1.55!important;color:var(--lx-ink3)!important}
html:root body:not(#lx) .entry-cta{display:inline-flex!important;align-items:center;gap:8px;width:auto!important;height:40px;margin-top:18px!important;padding:0 16px 0 18px!important;border-radius:999px!important;background:rgba(29,97,65,.08)!important;color:var(--lx-g6)!important;font-size:14px!important;font-weight:600!important;transition:background .35s var(--lx-ease),color .35s,box-shadow .35s}
html:root body:not(#lx) .entry-card:hover .entry-cta{background:var(--lx-btn)!important;color:#fff!important;box-shadow:0 10px 20px -12px rgba(14,53,35,.8)}
html:root body:not(#lx) .entry-card:hover .entry-cta svg{color:var(--lx-lime)}
html:root body:not(#lx) .entry-paper,html:root body:not(#lx) .home-office-paper{border-radius:14px!important;box-shadow:0 1px 2px rgba(8,30,18,.06),0 24px 40px -20px rgba(8,30,18,.4)!important}

/* Tuile Drive */
html:root body:not(#lx) button.drive-tile{margin-top:22px!important;border-radius:28px!important;padding:24px 30px!important;border:1px solid rgba(255,255,255,.95)!important;background:linear-gradient(100deg,rgba(255,255,255,.92),rgba(255,255,255,.76))!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh1)!important}
html:root body:not(#lx) .drive-tile-copy strong{font-size:30px!important;line-height:1.05!important}
html:root body:not(#lx) .drive-tile-copy>span:last-child{color:var(--lx-ink3)!important}
html:root body:not(#lx) .drive-tile-cta{height:40px;padding:0 16px!important;border-radius:999px;background:rgba(29,97,65,.08);color:var(--lx-g6)!important;font-weight:600!important;display:inline-flex!important;align-items:center;gap:8px}

/* Bibliothèque « Vos documents » */
html:root body:not(#lx) section.document-library{margin-top:72px!important}
html:root body:not(#lx) .library-heading{align-items:flex-end!important;gap:24px!important;margin:0 0 18px!important}
html:root body:not(#lx) .library-heading h2{display:flex!important;align-items:center;gap:14px;font-size:48px!important;line-height:1!important;margin:14px 0 0!important}
html:root body:not(#lx) .library-heading h2>span{font-family:var(--lx-mono)!important;font-size:12.5px!important;font-weight:500!important;letter-spacing:0!important;line-height:1;padding:7px 11px;border-radius:999px;background:rgba(12,40,24,.06);color:var(--lx-ink3)!important}
html:root body:not(#lx) label.library-search{width:min(340px,100%)!important}
html:root body:not(#lx) .library-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px!important;padding:10px 6px!important;border-top:1px solid var(--lx-line);border-bottom:1px solid var(--lx-line);font-size:13.5px;color:var(--lx-ink3)}
html:root body:not(#lx) .library-selection label{display:inline-flex!important;align-items:center;gap:10px;font-weight:550;color:var(--lx-ink2)}
html:root body:not(#lx) .document-grid{display:flex!important;flex-direction:column!important;gap:2px!important;padding:6px!important;border-radius:28px!important;background:var(--lx-card)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important;overflow:hidden}
html:root body:not(#lx) article.document-tile{display:flex!important;flex-direction:row!important;align-items:center;gap:14px;min-height:68px;padding:10px 14px!important;margin:0!important;border:0!important;border-radius:18px!important;background:transparent!important;box-shadow:none!important;transition:background .25s}
html:root body:not(#lx) article.document-tile:hover{background:rgba(197,242,111,.14)!important}
html:root body:not(#lx) article.document-tile.is-selected{background:rgba(197,242,111,.24)!important}
html:root body:not(#lx) .document-tile-top{display:flex!important;flex:none;align-items:center;gap:14px;margin:0!important;padding:0 0 0 4px!important}
html:root body:not(#lx) .document-glyph{display:grid!important;place-items:center;width:40px!important;height:46px!important;border-radius:11px!important;background:linear-gradient(180deg,#fff,#f4f8ee)!important;color:var(--lx-g6)!important;box-shadow:0 1px 2px rgba(8,30,18,.08),0 8px 16px -10px rgba(8,30,18,.35),inset 0 0 0 1px var(--lx-line)!important}
html:root body:not(#lx) .document-glyph svg{width:20px;height:20px}
html:root body:not(#lx) .document-tile-open{display:flex!important;flex-direction:row!important;align-items:center;gap:16px;flex:1;min-width:0;width:auto!important;min-height:0!important;padding:0!important;text-align:left}
html:root body:not(#lx) .document-tile-open h3{flex:1;min-width:0;margin:0!important;font-size:15px!important;font-weight:600!important;letter-spacing:-.01em!important;color:var(--lx-ink)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:root body:not(#lx) .document-tile-meta{display:flex!important;align-items:center;gap:10px;flex:none;font-size:13px!important;color:var(--lx-ink3)!important}
html:root body:not(#lx) .document-tile-meta>span{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:8px;background:rgba(12,40,24,.055);color:var(--lx-ink2)!important;font-size:12px!important;font-weight:550}
html:root body:not(#lx) .document-tile-footer{flex:none;display:inline-flex!important;width:auto!important;margin:0!important;border:0!important;align-items:center;gap:6px;height:34px;padding:0 14px!important;border-radius:999px;color:var(--lx-g6)!important;font-size:13.5px!important;font-weight:600!important;opacity:.55;transition:opacity .25s,background .25s}
html:root body:not(#lx) article.document-tile:hover .document-tile-footer{opacity:1;background:rgba(29,97,65,.08)}
html:root body:not(#lx) nav.agp{margin-top:18px!important}
html:root body:not(#lx) nav.agp .agp-btn{border-radius:12px!important}
html:root body:not(#lx) nav.agp .agp-btn[aria-current=page]{background:var(--lx-btn)!important;color:#fff!important;border-color:transparent!important}
html:root body:not(#lx) .home-note{margin-top:34px!important;justify-content:center;text-align:center;color:var(--lx-ink4)!important;font-size:13px!important}
/* ---------- Multi PDF : bibliothèque des lots ---------- */
html:root body:not(#lx) main.batch-library{padding:30px max(var(--lx-pad),calc((100% - var(--lx-w))/2)) 110px!important}
html:root body:not(#lx) .batch-library-heading{align-items:flex-end!important;gap:40px!important;margin:30px 0 34px!important}
html:root body:not(#lx) .batch-library-heading>div:first-child{min-width:0}
html:root body:not(#lx) .batch-library-heading h1{font-size:clamp(58px,6.6vw,96px)!important;margin:18px 0 16px!important}
html:root body:not(#lx) .batch-library-heading p{font-size:17px!important;line-height:1.55!important;color:var(--lx-ink3)!important;max-width:46ch;margin:0!important}
html:root body:not(#lx) .batch-library-count{flex:none;height:44px;padding:0 18px 0 14px;border-radius:999px;background:rgba(255,255,255,.74);border:1px solid var(--lx-line);box-shadow:var(--lx-hi),var(--lx-sh1);font-size:14px!important;font-weight:600;color:var(--lx-ink2)!important;margin-bottom:10px}
html:root body:not(#lx) .batch-library-count svg{color:var(--lx-g6)}
html:root body:not(#lx) .batch-library-heading.lx-has-stats>.batch-library-count{display:none!important}

/* Statistiques du haut (ajoutées par luxe-v153.js) */
html:root body:not(#lx) .lx-stats{flex:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(118px,auto);margin-bottom:6px;border-radius:24px;background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.95);box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2);overflow:hidden;animation:lx-rise .8s var(--lx-ease) both .1s}
html:root body:not(#lx) .lx-stat{display:grid;gap:6px;padding:16px 22px 15px;position:relative}
html:root body:not(#lx) .lx-stat+.lx-stat::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:1px;background:var(--lx-line2)}
html:root body:not(#lx) .lx-stat b{font-family:var(--lx-serif);font-weight:400;font-size:38px;line-height:1;letter-spacing:-.02em;color:var(--lx-ink);white-space:nowrap}
html:root body:not(#lx) .lx-stat span{font-size:12px;font-weight:500;letter-spacing:.01em;color:var(--lx-ink3);white-space:nowrap}
html:root body:not(#lx) .lx-stat.is-lime b{color:var(--lx-g6)}
@keyframes lx-rise{from{opacity:0;transform:translateY(10px)}}

/* Carte « Nouveau lot » : zone de dépôt haut de gamme */
html:root body:not(#lx) section.batch-new-card{position:relative;isolation:isolate;display:grid!important;grid-template-columns:150px minmax(0,1fr) minmax(250px,292px);align-items:center;gap:38px!important;padding:44px 48px!important;margin:0 0 64px!important;border-radius:34px!important;border:1px solid rgba(255,255,255,.95)!important;background:radial-gradient(70% 120% at 0% 0%,rgba(197,242,111,.34),transparent 60%),radial-gradient(60% 110% at 100% 100%,rgba(160,224,198,.34),transparent 62%),linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.8))!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important;overflow:hidden}
html:root body:not(#lx) section.batch-new-card::after{content:"";position:absolute;inset:12px;border-radius:26px;border:1.5px dashed rgba(29,97,65,.17);pointer-events:none;transition:border-color .45s,inset .5s var(--lx-ease)}
html:root body:not(#lx) section.batch-new-card:hover::after,html:root body:not(#lx) section.batch-new-card.is-dragging::after,html:root body:not(#lx) section.batch-new-card.drag-over::after{border-color:rgba(29,97,65,.38);inset:9px}
html:root body:not(#lx) section.batch-new-card.ag-hot{box-shadow:var(--lx-hi),0 0 0 1px rgba(29,97,65,.16),var(--lx-sh3)!important}
html:root body:not(#lx) .batch-new-symbol{position:relative;justify-self:center;display:grid!important;place-items:center;width:108px!important;height:132px!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fbfdf7)!important;transform:none!important;color:var(--lx-g6)!important;box-shadow:0 1px 2px rgba(8,30,18,.07),0 22px 40px -20px rgba(8,30,18,.42)!important}
html:root body:not(#lx) .batch-new-symbol::before,html:root body:not(#lx) .batch-new-symbol::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:18px;background:linear-gradient(180deg,#eef6e3,#dfeacf);box-shadow:0 0 0 1px rgba(12,40,24,.07),0 16px 30px -16px rgba(8,30,18,.45);transition:transform .8s var(--lx-spring)}
html:root body:not(#lx) .batch-new-symbol::before{transform:rotate(-11deg) translate(-18px,8px)}
html:root body:not(#lx) .batch-new-symbol::after{transform:rotate(9deg) translate(16px,5px);background:linear-gradient(180deg,#e5f3cf,#d3e8b6)}
html:root body:not(#lx) section.batch-new-card:hover .batch-new-symbol::before{transform:rotate(-15deg) translate(-24px,10px)}
html:root body:not(#lx) section.batch-new-card:hover .batch-new-symbol::after{transform:rotate(14deg) translate(24px,4px)}
html:root body:not(#lx) .batch-new-symbol svg{width:40px;height:40px;stroke-width:1.6}
html:root body:not(#lx) section.batch-new-card h2{font-size:46px!important;line-height:1!important;margin:14px 0 14px!important}
html:root body:not(#lx) section.batch-new-card p{font-size:16.5px!important;line-height:1.5;color:var(--lx-ink2)!important;margin:0 0 6px!important}
html:root body:not(#lx) section.batch-new-card small{display:block;font-size:14px!important;line-height:1.5;color:var(--lx-ink3)!important}
html:root body:not(#lx) .batch-new-actions{display:grid!important;gap:12px!important;width:auto!important;margin:0!important;align-self:center}
html:root body:not(#lx) .batch-new-actions>.button,html:root body:not(#lx) .batch-new-actions .google-drive-control,html:root body:not(#lx) .batch-new-actions .google-drive-trigger{width:100%!important}
html:root body:not(#lx) .batch-new-actions .button{min-height:52px!important;font-size:15px!important;justify-content:center;border-radius:16px!important}
html:root body:not(#lx) .batch-new-actions>.text-button{justify-self:center;height:34px;font-size:14px;color:var(--lx-ink3)}
html:root body:not(#lx) .batch-new-actions>.text-button:hover{color:var(--lx-ink)}

/* Outils : titre, recherche, sélection */
html:root body:not(#lx) .batch-library-tools{align-items:flex-end!important;gap:24px!important;margin:0 0 20px!important}
html:root body:not(#lx) .batch-library-tools h2{font-size:48px!important;line-height:1!important;margin:0!important}
html:root body:not(#lx) .batch-library-tools>label{width:min(360px,100%)!important}
html:root body:not(#lx) .batch-history-toolbar{margin:0 0 26px!important;padding:12px 2px!important;border-top:1px solid var(--lx-line);border-bottom:1px solid var(--lx-line);min-height:0}
html:root body:not(#lx) .batch-history-toolbar>label{display:inline-flex;align-items:center;gap:11px;font-size:14px;font-weight:550;color:var(--lx-ink2)}
html:root body:not(#lx) .batch-history-toolbar .button{min-height:38px!important;padding:0 14px!important;font-size:13.5px!important;border-radius:12px!important}

/* Cartes des lots */
html:root body:not(#lx) .batch-library-grid{grid-template-columns:repeat(auto-fill,minmax(272px,1fr))!important;gap:22px!important}
html:root body:not(#lx) article.batch-library-card{position:relative;display:flex!important;flex-direction:column;padding:0!important;border-radius:26px!important;overflow:hidden;border:1px solid rgba(255,255,255,.95)!important;background:var(--lx-card)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important}
html:root body:not(#lx) article.batch-library-card:hover,html:root body:not(#lx) article.batch-library-card.ag-hot{box-shadow:var(--lx-hi),0 0 0 1px rgba(29,97,65,.2),var(--lx-sh3)!important}
html:root body:not(#lx) article.batch-library-card.is-selected{box-shadow:var(--lx-hi),0 0 0 2px var(--lx-g5),var(--lx-sh2)!important}
html:root body:not(#lx) .batch-card-top{position:relative;height:92px;margin:0!important;padding:20px 20px 0 22px!important;align-items:flex-start!important;background:radial-gradient(110% 150% at 0% 0%,rgba(197,242,111,.6),transparent 58%),radial-gradient(100% 140% at 100% 0%,rgba(167,226,203,.62),transparent 62%),linear-gradient(180deg,#f2f8ea,#fbfdf8);border-bottom:1px solid var(--lx-line)}
html:root body:not(#lx) article.batch-library-card:nth-child(4n+2) .batch-card-top{background:radial-gradient(110% 150% at 0% 0%,rgba(167,226,203,.7),transparent 58%),radial-gradient(100% 140% at 100% 0%,rgba(233,242,190,.8),transparent 62%),linear-gradient(180deg,#eef7f1,#fbfdf8)}
html:root body:not(#lx) article.batch-library-card:nth-child(4n+3) .batch-card-top{background:radial-gradient(110% 150% at 0% 0%,rgba(240,232,200,.85),transparent 58%),radial-gradient(100% 140% at 100% 0%,rgba(197,242,111,.45),transparent 62%),linear-gradient(180deg,#f7f5ea,#fbfdf8)}
html:root body:not(#lx) article.batch-library-card:nth-child(4n+4) .batch-card-top{background:radial-gradient(110% 150% at 0% 0%,rgba(205,232,214,.85),transparent 58%),radial-gradient(100% 140% at 100% 0%,rgba(214,236,168,.7),transparent 62%),linear-gradient(180deg,#f0f6ef,#fbfdf8)}
html:root body:not(#lx) .batch-folder{position:relative;width:48px!important;height:48px!important;border-radius:15px!important;display:grid!important;place-items:center;background:#fff!important;color:var(--lx-g6)!important;box-shadow:0 1px 2px rgba(8,30,18,.08),0 12px 22px -12px rgba(8,30,18,.4),7px -7px 0 -2px rgba(255,255,255,.72),14px -14px 0 -4px rgba(255,255,255,.45)!important}
html:root body:not(#lx) .batch-folder svg{width:22px;height:22px}
html:root body:not(#lx) .batch-card-top input[type=checkbox]{margin-top:4px;background-color:rgba(255,255,255,.9)}
html:root body:not(#lx) .batch-card-open{flex:1;display:flex!important;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:18px 22px 20px!important;text-align:left;min-height:210px}
html:root body:not(#lx) .batch-card-state{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px!important;border-radius:999px!important;background:rgba(29,97,65,.08)!important;color:var(--lx-g6)!important;font-size:12px!important;font-weight:600!important;letter-spacing:.01em;border:0!important}
html:root body:not(#lx) .batch-card-state.is-active{background:linear-gradient(180deg,#dcf8a9,#c5f26f)!important;color:var(--lx-limeink)!important}
html:root body:not(#lx) .batch-card-open h3{font-family:var(--lx-sans)!important;font-size:17px!important;font-weight:600!important;line-height:1.4!important;letter-spacing:-.012em!important;color:var(--lx-ink)!important;margin:0!important;height:auto!important;max-height:none!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html:root body:not(#lx) .batch-card-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px;margin-top:auto!important;font-size:13px!important;color:var(--lx-ink3)!important}
html:root body:not(#lx) .batch-card-meta b{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:8px;background:rgba(12,40,24,.06);color:var(--lx-ink)!important;font-weight:600;font-size:12.5px}
html:root body:not(#lx) .batch-card-bottom{display:flex!important;align-items:center;justify-content:space-between;width:100%;margin:0!important;padding:14px 0 0!important;border-top:1px solid var(--lx-line)!important;font-size:14px!important;font-weight:600!important;color:var(--lx-g6)!important;background:none!important}
html:root body:not(#lx) .batch-card-bottom svg{transition:transform .5s var(--lx-spring)}
html:root body:not(#lx) article.batch-library-card:hover .batch-card-bottom svg{transform:translateX(5px)}
html:root body:not(#lx) .batch-library-note{margin:34px auto 0!important;text-align:center;font-size:13px!important;color:var(--lx-ink4)!important;max-width:70ch}
html:root body:not(#lx) .lx-stat.is-date b{font-size:30px;line-height:38px}
@media (max-width:760px){html:root body:not(#lx) .lx-stat.is-date b{font-size:21px;line-height:30px}}
/* ---------- Page d'un lot ---------- */
html:root body:not(#lx) section.batch-page{padding:30px max(var(--lx-pad),calc((100% - var(--lx-w))/2)) 110px!important}
html:root body:not(#lx) section.batch-page>.row-between:first-child{margin:0 0 30px!important;align-items:center}
html:root body:not(#lx) section.batch-page>.row-between:first-child>.button{min-height:40px!important;padding:0 16px!important;border-radius:999px!important;font-size:13.5px!important}
html:root body:not(#lx) section.batch-page>h1{font-size:clamp(46px,5.6vw,80px)!important;margin:16px 0 14px!important}
html:root body:not(#lx) section.batch-page>p:not(.small){font-size:17px!important;line-height:1.55!important;color:var(--lx-ink3)!important;max-width:62ch;margin:0!important}

/* Dépôt : grande zone + Drive + références */
html:root body:not(#lx) .batch-intake{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-auto-rows:auto;align-items:stretch;gap:18px 20px!important;margin:32px 0 22px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html:root body:not(#lx) .batch-intake>*{grid-column:1/-1;min-width:0}
html:root body:not(#lx) .batch-intake>.batch-upload{grid-column:1;grid-row:1/span 2}
html:root body:not(#lx) .batch-intake>.google-drive-control{grid-column:2;grid-row:1}
html:root body:not(#lx) .batch-intake>.batch-attachments{grid-column:2;grid-row:2}
html:root body:not(#lx) .batch-upload{position:relative;isolation:isolate;min-height:300px!important;height:auto!important;margin:0!important;border-radius:30px!important;border:1.5px dashed rgba(29,97,65,.26)!important;background:radial-gradient(70% 80% at 50% 0%,rgba(197,242,111,.3),transparent 70%),linear-gradient(180deg,rgba(255,255,255,.93),rgba(255,255,255,.76))!important;box-shadow:var(--lx-hi),var(--lx-sh2)!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:12px!important;padding:34px!important;text-align:center;transition:border-color .3s,box-shadow .4s var(--lx-ease),transform .5s var(--lx-ease)}
html:root body:not(#lx) .batch-upload:hover,html:root body:not(#lx) .batch-upload.is-dragging,html:root body:not(#lx) .batch-upload.drag-over{border-color:rgba(29,97,65,.55)!important;box-shadow:var(--lx-hi),var(--lx-sh3)!important;transform:translateY(-2px)}
html:root body:not(#lx) .batch-upload>svg{box-sizing:content-box;width:30px;height:30px;padding:17px;border-radius:20px;background:#fff;color:var(--lx-g6);box-shadow:0 1px 2px rgba(8,30,18,.08),0 16px 30px -16px rgba(8,30,18,.45);margin-bottom:6px;transition:transform .6s var(--lx-spring)}
html:root body:not(#lx) .batch-upload:hover>svg{transform:translateY(-4px) rotate(-4deg)}
html:root body:not(#lx) .batch-upload>strong{font-family:var(--lx-serif)!important;font-weight:400!important;font-size:38px!important;line-height:1!important;letter-spacing:-.015em;color:var(--lx-ink)!important}
html:root body:not(#lx) .batch-upload>span{font-size:14.5px!important;line-height:1.5;color:var(--lx-ink3)!important;max-width:36ch}
html:root body:not(#lx) .batch-intake>.google-drive-control .button{width:100%!important;min-height:60px!important;border-radius:20px!important;font-size:15px!important;justify-content:center}
html:root body:not(#lx) .batch-attachments{margin:0!important;border-radius:26px!important;padding:24px 26px!important;background:var(--lx-card)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh2)!important}
html:root body:not(#lx) .batch-attachments h2{display:flex!important;align-items:center;gap:10px;font-size:32px!important;line-height:1.05!important;margin:0 0 8px!important}
html:root body:not(#lx) .batch-attachments h2 svg{flex:none;width:22px;height:22px;color:var(--lx-g6)}
html:root body:not(#lx) .batch-attachments>p{color:var(--lx-ink3)!important;font-size:14px!important;line-height:1.55;margin:0 0 14px!important}
html:root body:not(#lx) .batch-attachments>p.small{margin:10px 0 0!important;font-size:12.5px!important;color:var(--lx-ink4)!important}
html:root body:not(#lx) .batch-attachments .button{border-radius:14px!important}

/* Mode intelligent : carte vert profond */
html:root body:not(#lx) .batch-smart-mode{position:relative;overflow:hidden;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px!important;margin:0 0 26px!important;padding:24px 28px!important;border-radius:26px!important;border:1px solid rgba(255,255,255,.08)!important;background:radial-gradient(60% 140% at 100% 0%,rgba(197,242,111,.22),transparent 60%),linear-gradient(135deg,#0f3a26,#17533a)!important;color:#e7f3df!important;box-shadow:0 1px 2px rgba(8,30,18,.2),0 24px 48px -26px rgba(8,37,23,.7)!important}
html:root body:not(#lx) .batch-smart-mode>div:first-child{display:flex;align-items:flex-start;gap:16px;flex:1;min-width:0}
html:root body:not(#lx) .batch-smart-mode>div:first-child>svg{flex:none;box-sizing:content-box;width:22px;height:22px;padding:11px;border-radius:14px;background:rgba(197,242,111,.14);color:var(--lx-lime)}
html:root body:not(#lx) .batch-smart-mode strong{color:#fff!important;font-size:16px!important;font-weight:650!important}
html:root body:not(#lx) .batch-smart-mode p{color:rgba(231,243,223,.78)!important;font-size:14px!important;line-height:1.55;margin:4px 0 0!important}
html:root body:not(#lx) .batch-smart-mode .batch-smart-note{flex-basis:100%;margin:0!important;padding:12px 0 0!important;border-top:1px solid rgba(255,255,255,.1);font-size:13px!important;color:rgba(231,243,223,.66)!important}
html:root body:not(#lx) .batch-smart-switch{position:relative;display:inline-flex!important;align-items:center;gap:12px;cursor:pointer}
html:root body:not(#lx) .batch-smart-switch>input{position:absolute;opacity:0;inset:0;width:46px;height:28px;margin:0;cursor:pointer}
html:root body:not(#lx) .batch-smart-switch>span{position:relative;flex:none;width:46px!important;height:28px!important;border-radius:999px!important;background:rgba(255,255,255,.18)!important;border:0!important;transition:background .3s}
html:root body:not(#lx) .batch-smart-switch>span::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .45s var(--lx-spring)}
html:root body:not(#lx) .batch-smart-switch>input:checked+span{background:var(--lx-lime2)!important}
html:root body:not(#lx) .batch-smart-switch>input:checked+span::after{transform:translateX(18px)}
html:root body:not(#lx) .batch-smart-switch>span::before{display:none!important}
html:root body:not(#lx) .batch-smart-switch>strong{font-size:14px!important;color:#fff!important}

/* Consigne et pages */
html:root body:not(#lx) section.batch-page>label{display:grid!important;gap:10px;margin:22px 0 0!important;font-size:13px!important;font-weight:650!important;letter-spacing:.02em;color:var(--lx-ink2)!important}
html:root body:not(#lx) section.batch-page>label :is(textarea,input){width:100%;margin:0!important;border-radius:20px!important;border:1px solid var(--lx-line2)!important;background:rgba(255,255,255,.9)!important;box-shadow:var(--lx-hi),var(--lx-sh1)!important;padding:16px 18px!important;font-family:var(--lx-sans)!important;font-size:16px!important;font-weight:450!important;line-height:1.55!important;letter-spacing:0!important;color:var(--lx-ink)!important;transition:border-color .25s,box-shadow .25s}
html:root body:not(#lx) section.batch-page>label textarea{min-height:136px!important;resize:vertical}
html:root body:not(#lx) section.batch-page>label input{height:54px!important;padding:0 18px!important}
html:root body:not(#lx) section.batch-page>label :is(textarea,input):focus{border-color:rgba(29,97,65,.5)!important;box-shadow:var(--lx-hi),var(--lx-ring)!important;outline:0!important}
html:root body:not(#lx) section.batch-page>p.small{margin:10px 0 0!important;font-size:13px!important;color:var(--lx-ink4)!important}
html:root body:not(#lx) section.batch-page>.batch-actions{margin:26px 0 22px!important;display:flex;flex-wrap:wrap;gap:12px}
html:root body:not(#lx) section.batch-page>.batch-actions .button.primary{min-height:56px!important;padding:0 28px!important;font-size:15.5px!important;border-radius:18px!important}
html:root body:not(#lx) .batch-progress{border-radius:22px!important;padding:18px 22px!important;margin:0 0 22px!important;background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line)!important}
html:root body:not(#lx) .batch-progress strong{font-size:15px;color:var(--lx-ink)}
html:root body:not(#lx) .batch-progress p{color:var(--lx-ink3);font-size:13.5px}

/* PDF du lot */
html:root body:not(#lx) .batch-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:16px!important}
html:root body:not(#lx) article.batch-item{position:relative;border-radius:22px!important;padding:18px 18px 14px!important;background:var(--lx-card)!important;border:1px solid rgba(255,255,255,.95)!important;box-shadow:var(--lx-hi),0 0 0 1px var(--lx-line),var(--lx-sh1)!important;transition:box-shadow .4s var(--lx-ease),transform .4s var(--lx-ease)}
html:root body:not(#lx) article.batch-item:hover{transform:translateY(-2px);box-shadow:var(--lx-hi),0 0 0 1px rgba(29,97,65,.18),var(--lx-sh2)!important}
html:root body:not(#lx) article.batch-item>.row-between>strong{font-size:14.5px;font-weight:650;color:var(--lx-ink);min-width:0;overflow-wrap:anywhere}
html:root body:not(#lx) article.batch-item>p{font-size:13px;color:var(--lx-ink3)}
html:root body:not(#lx) .batch-status-badge{display:inline-flex!important;align-items:center;gap:6px;height:28px;padding:0 10px!important;border-radius:999px!important;font-size:12px!important;font-weight:600!important;white-space:nowrap}
html:root body:not(#lx) article.batch-item .batch-actions{border-top:1px solid var(--lx-line);padding-top:10px;margin-top:10px}
/* ---------- Atelier (éditeur) : finitions ---------- */
html:root body:not(#lx) .project-sidebar .new-document{min-height:46px!important;border-radius:14px!important;border:0!important;color:#fff!important;background:var(--lx-btn)!important;font-weight:600!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 12px 22px -12px rgba(14,53,35,.75)!important}
html:root body:not(#lx) .project-sidebar .new-document:hover:not(:disabled){background:var(--lx-btn-h)!important}
html:root body:not(#lx) .project-sidebar .new-document svg{color:var(--lx-lime)}
html:root body:not(#lx) :is(.documents-disclosure,.pages-disclosure){border-radius:12px!important;font-weight:600!important;color:var(--lx-ink2)!important}
html:root body:not(#lx) :is(.documents-disclosure,.pages-disclosure) .count{font-family:var(--lx-mono);font-size:11.5px!important;border-radius:999px!important;background:rgba(12,40,24,.06)!important;color:var(--lx-ink3)!important}
html:root body:not(#lx) .project-item{border-radius:14px!important;transition:background .2s}
html:root body:not(#lx) .project-item.active{background:rgba(197,242,111,.22)!important;box-shadow:inset 0 0 0 1px rgba(29,97,65,.14)!important}
html:root body:not(#lx) .page-tile{border-radius:12px!important}
html:root body:not(#lx) .page-tile :is(img,canvas){border-radius:8px;box-shadow:0 1px 2px rgba(8,30,18,.08),0 8px 18px -10px rgba(8,30,18,.35)}
html:root body:not(#lx) .arigato-launcher{border-radius:16px!important;border:1px solid var(--lx-line)!important;background:rgba(255,255,255,.7)!important;box-shadow:var(--lx-hi)!important}
html:root body:not(#lx) .document-name h1{font-size:16px!important;font-weight:650!important;letter-spacing:-.012em!important;color:var(--lx-ink)!important}
html:root body:not(#lx) .document-name>span{color:var(--lx-ink3)!important}
html:root body:not(#lx) .view-switch{padding:4px!important;border-radius:13px!important;background:rgba(12,40,24,.055)!important;border:0!important;gap:2px}
html:root body:not(#lx) .view-switch button{border-radius:10px!important;font-weight:600!important;color:var(--lx-ink3)!important;transition:background .25s,color .25s,box-shadow .25s}
html:root body:not(#lx) .view-switch button.active{background:#fff!important;color:var(--lx-ink)!important;box-shadow:0 1px 2px rgba(8,30,18,.1),0 4px 10px -6px rgba(8,30,18,.3)!important}
html:root body:not(#lx) .eraser-launch{border-radius:12px!important}
html:root body:not(#lx) .pdf-sheet{box-shadow:0 1px 2px rgba(8,30,18,.08),0 2px 6px rgba(8,30,18,.05),0 30px 60px -28px rgba(8,30,18,.38)!important;border-radius:3px}
html:root body:not(#lx) .type-badge{border-radius:999px!important;font-family:var(--lx-mono);font-size:11px!important;letter-spacing:.04em}

/* Assistant */
html:root body:not(#lx) .assistant-intro .ai-icon{border-radius:14px!important;background:radial-gradient(circle at 30% 25%,#e2fbb2,#a2de4a 70%)!important;color:var(--lx-g8)!important;box-shadow:0 10px 22px -12px rgba(127,191,42,.9)!important}
html:root body:not(#lx) .assistant-intro h2{font-size:32px!important;line-height:1.05!important;margin:14px 0 10px!important}
html:root body:not(#lx) .assistant-intro p{color:var(--lx-ink3)!important;line-height:1.55!important}
html:root body:not(#lx) .suggestions button{border-radius:14px!important;border:1px solid var(--lx-line2)!important;background:rgba(255,255,255,.78)!important;box-shadow:var(--lx-hi)!important;color:var(--lx-ink2)!important;font-weight:500!important;transition:background .25s,border-color .25s,transform .35s var(--lx-ease)}
html:root body:not(#lx) .suggestions button:hover{background:#fff!important;border-color:rgba(29,97,65,.3)!important;transform:translateX(3px)}
html:root body:not(#lx) form.composer{border-radius:20px!important}
html:root body:not(#lx) .send-button{border-radius:50%!important;background:var(--lx-btn)!important;color:var(--lx-lime)!important;box-shadow:0 8px 16px -8px rgba(14,53,35,.8)!important}
/* ---------- Fenêtres et connexion ---------- */
html:root body:not(#lx) dialog.app-modal{border-radius:30px!important}
html:root body:not(#lx) dialog.app-modal::backdrop{background:rgba(10,30,18,.28)!important;-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}
html:root body:not(#lx) .modal-header h2{font-size:40px!important;line-height:1!important;margin-top:8px!important}
html:root body:not(#lx) .settings-nav button{border-radius:12px!important;font-weight:550!important;color:var(--lx-ink3)!important;transition:background .2s,color .2s}
html:root body:not(#lx) .settings-nav button:hover{background:rgba(12,40,24,.04)!important;color:var(--lx-ink)!important}
html:root body:not(#lx) .settings-nav button.active{background:#fff!important;color:var(--lx-ink)!important;box-shadow:0 1px 2px rgba(8,30,18,.08),0 6px 14px -8px rgba(8,30,18,.3),inset 3px 0 0 var(--lx-lime2)!important}
html:root body:not(#lx) .settings-content h3{font-size:18px!important;font-weight:650!important;letter-spacing:-.01em!important}
html:root body:not(#lx) .provider-card{border-radius:22px!important}
html:root body:not(#lx) .provider-tabs button{border-radius:12px!important}
html:root body:not(#lx) dialog.app-modal :is(select,input:not([type=checkbox]):not([type=radio])){border-radius:12px!important}
html:root body:not(#lx) .login-card{border-radius:34px!important}
html:root body:not(#lx) .login-card h1{font-size:46px!important;margin:16px 0 12px!important}
html:root body:not(#lx) .login-card :is(input){border-radius:14px!important}
html:root body:not(#lx) .login-card .button.primary{min-height:50px!important;border-radius:16px!important;font-size:15px!important}
/* ---------- Tablette ---------- */
@media (max-width:1100px){
  html:root body:not(#lx) section.batch-new-card{grid-template-columns:120px minmax(0,1fr)!important;gap:22px 30px!important;padding:38px 36px!important}
  html:root body:not(#lx) .batch-new-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:center}
  html:root body:not(#lx) .batch-new-actions>.text-button{grid-column:1/-1}
  html:root body:not(#lx) .batch-new-symbol{width:92px!important;height:112px!important}
}
@media (max-width:1000px){
  html:root body:not(#lx) .document-tile-footer{font-size:0!important;line-height:0!important;padding:0 10px!important;opacity:.8}
}
@media (max-width:900px){
  html:root body:not(#lx) .entry-cards{grid-template-columns:minmax(0,1fr)!important}
  html:root body:not(#lx) .batch-intake{grid-template-columns:minmax(0,1fr)!important}
  html:root body:not(#lx) .batch-intake>:is(.batch-upload,.google-drive-control,.batch-attachments){grid-column:1!important;grid-row:auto!important}
  html:root body:not(#lx) .batch-upload{min-height:230px!important}
  html:root body:not(#lx) .batch-library-heading{flex-direction:column!important;align-items:flex-start!important;gap:22px!important}
  html:root body:not(#lx) .lx-stats{align-self:stretch;grid-auto-columns:minmax(0,1fr)}
}
/* ---------- iPhone ---------- */
@media (max-width:760px){
  html:root body:not(#lx) :is(main.batch-library,section.batch-page,main.atelier-home){padding:20px 16px 84px!important}
  html:root body:not(#lx) .batch-library-heading{margin:22px 0 24px!important}
  html:root body:not(#lx) .batch-library-heading h1{font-size:56px!important;margin:14px 0 12px!important}
  html:root body:not(#lx) .batch-library-heading p{font-size:15.5px!important}
  html:root body:not(#lx) .lx-stat{padding:14px 14px 13px}
  html:root body:not(#lx) .lx-stat b{font-size:30px}
  html:root body:not(#lx) .lx-stat span{white-space:normal;font-size:11.5px;line-height:1.3}
  html:root body:not(#lx) section.batch-new-card{grid-template-columns:minmax(0,1fr)!important;gap:20px!important;padding:28px 22px 24px!important;margin-bottom:46px!important;border-radius:28px!important}
  html:root body:not(#lx) section.batch-new-card::after{inset:9px;border-radius:21px}
  html:root body:not(#lx) .batch-new-symbol{justify-self:start;width:76px!important;height:92px!important;margin:6px 0 0 14px;border-radius:14px!important}
  html:root body:not(#lx) .batch-new-symbol::before,html:root body:not(#lx) .batch-new-symbol::after{border-radius:14px}
  html:root body:not(#lx) .batch-new-symbol svg{width:30px;height:30px}
  html:root body:not(#lx) section.batch-new-card h2{font-size:38px!important;margin:10px 0 10px!important}
  html:root body:not(#lx) .batch-new-actions{grid-column:auto;grid-template-columns:minmax(0,1fr)!important}
  html:root body:not(#lx) .batch-library-tools{flex-direction:column!important;align-items:stretch!important;gap:14px!important}
  html:root body:not(#lx) .batch-library-tools h2{font-size:40px!important}
  html:root body:not(#lx) .batch-library-tools>label{width:100%!important}
  html:root body:not(#lx) .batch-history-toolbar{flex-wrap:wrap;gap:10px!important}
  html:root body:not(#lx) .batch-library-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  html:root body:not(#lx) .batch-card-top{height:82px;padding:16px 16px 0 18px!important}
  html:root body:not(#lx) .batch-card-open{min-height:0;padding:16px 18px 18px!important}
  html:root body:not(#lx) section.batch-page>h1{font-size:44px!important}
  html:root body:not(#lx) section.batch-page>p:not(.small){font-size:15.5px!important}
  html:root body:not(#lx) .batch-upload{padding:26px 20px!important;border-radius:26px!important}
  html:root body:not(#lx) .batch-upload>strong{font-size:32px!important}
  html:root body:not(#lx) .batch-attachments{padding:20px!important}
  html:root body:not(#lx) .batch-attachments h2{font-size:28px!important}
  html:root body:not(#lx) .batch-smart-mode{padding:20px!important;border-radius:24px!important}
  html:root body:not(#lx) section.batch-page>.batch-actions .button.primary{width:100%}
  html:root body:not(#lx) .home-introduction h1{font-size:52px!important;line-height:.98!important}
  html:root body:not(#lx) .home-introduction>p{font-size:16px!important}
  html:root body:not(#lx) nav.document-mode-tabs{margin:30px 0 18px!important}
  html:root body:not(#lx) .entry-card{padding:24px 22px!important;border-radius:28px!important}
  html:root body:not(#lx) .entry-copy h2{font-size:31px!important}
  html:root body:not(#lx) button.drive-tile{padding:20px!important;border-radius:24px!important}
  html:root body:not(#lx) .drive-tile-copy strong{font-size:26px!important}
  html:root body:not(#lx) section.document-library{margin-top:52px!important}
  html:root body:not(#lx) .library-heading{flex-direction:column;align-items:stretch!important;gap:14px!important}
  html:root body:not(#lx) .library-heading h2{font-size:40px!important}
  html:root body:not(#lx) label.library-search{width:100%!important}
  html:root body:not(#lx) .document-grid{padding:4px!important;border-radius:24px!important}
  html:root body:not(#lx) article.document-tile{gap:12px;padding:10px!important}
  html:root body:not(#lx) .document-tile-open{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n f" "m f";align-items:center;gap:4px 10px}
  html:root body:not(#lx) .document-tile-open h3{grid-area:n;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;line-height:1.35!important}
  html:root body:not(#lx) .document-tile-meta{grid-area:m;gap:8px}
  html:root body:not(#lx) .document-tile-footer{grid-area:f}
  html:root body:not(#lx) .modal-header h2{font-size:34px!important}
  html:root body:not(#lx) .login-card h1{font-size:40px!important}
}
@media (prefers-reduced-motion:reduce){
  html:root body:not(#lx) .lx-stats,html:root body:not(#lx) .batch-new-symbol::before,html:root body:not(#lx) .batch-new-symbol::after{animation:none!important;transition:none!important}
}
