/* Ali Gator v157 — explorateur Google Drive d'Ali + « Importer un dossier » */
html.agx-open{overflow:hidden}
.agx{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:28px;opacity:0;transition:opacity .3s ease;font-family:inherit}
.agx.is-in{opacity:1}
.agx.is-out{opacity:0;pointer-events:none}
.agx-veil{position:absolute;inset:0;background:rgba(240,245,234,.58);-webkit-backdrop-filter:blur(16px) saturate(1.1);backdrop-filter:blur(16px) saturate(1.1)}
.agx-card{position:relative;display:flex;flex-direction:column;width:min(940px,100%);height:min(700px,calc(100vh - 56px));height:min(700px,calc(100dvh - 56px));border-radius:30px;outline:none;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(250,252,246,.98));border:1px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 1px rgba(12,40,24,.08),0 50px 100px -36px rgba(10,40,24,.5),0 14px 34px -20px rgba(10,40,24,.32);overflow:hidden;
  transform:translateY(12px) scale(.985);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.agx.is-in .agx-card{transform:none}
.agx-head{display:flex;align-items:center;gap:16px;padding:24px 22px 16px 26px}
.agx-mark{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff;box-shadow:0 1px 2px rgba(8,30,18,.08),0 10px 20px -12px rgba(8,30,18,.4),inset 0 0 0 1px rgba(12,40,24,.06)}
.agx-mark svg{width:26px;height:26px}
.agx-tt{flex:1;min-width:0}
.agx-tt h2{margin:0;font-family:var(--lx-serif,"Iowan Old Style",Georgia,serif);font-weight:400;font-size:34px;line-height:1;letter-spacing:-.018em;color:#0f2418}
.agx-tt p{margin:7px 0 0;font-size:14px;line-height:1.4;color:#5c6b61}
.agx-x{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(12,40,24,.1);background:#fff;color:#33443a;cursor:pointer;transition:background .2s,transform .3s cubic-bezier(.22,1,.36,1)}
.agx-x:hover{background:#f3f7ee;transform:rotate(90deg)}
.agx-x svg{width:18px;height:18px}
.agx-tools{display:flex;align-items:center;gap:12px;padding:0 22px 12px 26px}
.agx-tabs{flex:none;display:inline-flex;gap:3px;padding:4px;border-radius:999px;background:rgba(12,40,24,.055)}
.agx-tab{height:36px;padding:0 15px;border:0;border-radius:999px;background:transparent;font:inherit;font-size:13.5px;font-weight:600;color:#45554b;cursor:pointer;white-space:nowrap;transition:background .25s,color .25s,box-shadow .25s}
.agx-tab:hover{color:#0f2418}
.agx-tab[aria-selected=true]{background:#fff;color:#0f2418;box-shadow:0 1px 2px rgba(8,30,18,.1),0 8px 16px -10px rgba(8,30,18,.35)}
.agx-search{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:44px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid rgba(12,40,24,.1);box-shadow:inset 0 1px 2px rgba(8,30,18,.04);transition:border-color .2s,box-shadow .2s}
.agx-search:focus-within{border-color:rgba(29,97,65,.45);box-shadow:0 0 0 4px rgba(162,222,74,.25)}
.agx-search svg{flex:none;width:18px;height:18px;color:#6f7f74}
.agx-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;color:#0f2418;-webkit-appearance:none;appearance:none}
.agx-search input::-webkit-search-cancel-button{cursor:pointer}
.agx-crumbs{display:flex;align-items:center;gap:2px;flex-wrap:wrap;min-height:34px;padding:0 22px 10px 22px;font-size:13.5px;color:#5c6b61}
.agx-crumbs button{border:0;background:none;font:inherit;font-weight:600;color:#2f5d43;padding:5px 8px;border-radius:9px;cursor:pointer}
.agx-crumbs button:hover{background:rgba(29,97,65,.08)}
.agx-crumbs .agx-here{padding:5px 8px;font-weight:650;color:#0f2418}
.agx-crumbs .agx-sep{color:#a7b3aa;padding:0 1px}
.agx-crumbs .agx-q{padding:5px 8px;font-weight:600;color:#2f5d43}
.agx-body{flex:1;min-height:0;overflow:auto;padding:4px 14px 10px;border-top:1px solid rgba(12,40,24,.06);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.agx-list{list-style:none;margin:0;padding:4px 0}
.agx-row{display:flex;align-items:center;gap:4px;padding:0 6px 0 12px;margin:1px 0;border-radius:16px;transition:background .2s}
.agx-row:hover{background:rgba(197,242,111,.13)}
.agx-row.is-on{background:rgba(197,242,111,.26)}
.agx-cb,.agx-cb-gap{flex:none;width:21px;height:21px;margin:0 4px 0 0}
.agx-cb{-webkit-appearance:none;appearance:none;display:grid;place-items:center;border-radius:7px;border:1.6px solid rgba(12,40,24,.26);background:#fff;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
.agx-cb:hover{border-color:rgba(29,97,65,.6)}
.agx-cb:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(162,222,74,.35)}
.agx-cb:checked{border-color:#1d6141;background:#1d6141 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23d8f6a2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.agx-main{flex:1;min-width:0;display:flex;align-items:center;gap:13px;min-height:58px;padding:7px 8px;border:0;background:none;font:inherit;text-align:left;color:inherit;cursor:pointer;border-radius:13px}
.agx-main:focus-visible{outline:none;box-shadow:inset 0 0 0 2px rgba(29,97,65,.45)}
.agx-ic{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px}
.agx-ic svg{width:22px;height:22px}
.is-dir .agx-ic{background:#eaf5d8;color:#4f8a17}
.is-drive .agx-ic{background:#e9f0fb;color:#2c5ea8}
.is-pdf .agx-ic{background:#fdf0ee;color:#b33a2c}
.is-sheet .agx-ic{background:#e6f5eb;color:#16784a}
.agx-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.agx-name{font-size:14.5px;font-weight:600;color:#0f2418;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agx-meta{font-family:var(--lx-mono,ui-monospace,monospace);font-size:11.5px;color:#7b897f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agx-chev{flex:none;width:18px;height:18px;color:#9aa89e;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.agx-main:hover .agx-chev{transform:translateX(3px);color:#2f5d43}
.agx-sk{height:58px;margin:3px 0;border-radius:16px;background:linear-gradient(90deg,rgba(12,40,24,.035) 25%,rgba(12,40,24,.075) 50%,rgba(12,40,24,.035) 75%);background-size:220% 100%;animation:agx-sk 1.25s ease-in-out infinite}
@keyframes agx-sk{0%{background-position:100% 0}100%{background-position:-100% 0}}
.agx-empty{display:grid;justify-items:center;gap:14px;padding:72px 24px;text-align:center;font-size:14.5px;line-height:1.5;color:#5c6b61}
.agx-empty p{margin:0;max-width:40ch}
.agx-empty.is-bad{color:#8a3324}
.agx-note{margin:8px 10px;padding:10px 12px;border-radius:12px;background:rgba(255,196,0,.12);font-size:13px;color:#6b5310}
.agx-more{display:flex;justify-content:center;padding:12px 0 6px}
.agx-foot{display:flex;align-items:center;gap:14px;padding:16px 20px 20px 26px;border-top:1px solid rgba(12,40,24,.07);background:rgba(255,255,255,.75)}
.agx-sum{flex:1;min-width:0;margin:0;font-size:14px;color:#4d5d53}
.agx-btns{display:flex;align-items:center;gap:10px}
.agx-btn{height:46px;padding:0 20px;border-radius:999px;border:1px solid rgba(12,40,24,.12);background:#fff;font:inherit;font-size:14.5px;font-weight:600;color:#1d2b22;cursor:pointer;white-space:nowrap;transition:transform .3s cubic-bezier(.22,1,.36,1),background .2s,box-shadow .2s}
.agx-btn:hover:not(:disabled){transform:translateY(-1px);background:#f7faf3}
.agx-all{border-color:rgba(127,191,42,.5);background:linear-gradient(180deg,#f4ffe1,#e3f7bf);color:#24470f}
.agx-all:hover:not(:disabled){background:linear-gradient(180deg,#efffd5,#d9f3ab)}
.agx-go{border:0;color:#fff;background:linear-gradient(180deg,#24704a,#11402a);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 12px 24px -14px rgba(14,53,35,.95)}
.agx-go:hover:not(:disabled){background:linear-gradient(180deg,#2a7c52,#134a30)}
.agx-go:disabled{opacity:.42;cursor:default;box-shadow:none}
@media (max-width:760px){
  .agx{padding:0;place-items:end stretch}
  .agx-card{width:100%;height:calc(100vh - 12px);height:calc(100dvh - max(12px,env(safe-area-inset-top)));border-radius:28px 28px 0 0;transform:translateY(40px)}
  .agx-head{padding:20px 16px 12px 18px;gap:12px}
  .agx-mark{width:42px;height:42px;border-radius:13px}
  .agx-tt h2{font-size:29px}
  .agx-tt p{font-size:13px}
  .agx-tools{flex-direction:column;align-items:stretch;gap:10px;padding:0 14px 10px}
  .agx-tabs{overflow-x:auto;scrollbar-width:none}
  .agx-tabs::-webkit-scrollbar{display:none}
  .agx-tab{flex:1;padding:0 10px;font-size:13px}
  .agx-crumbs{padding:0 12px 8px}
  .agx-body{padding:2px 8px 8px}
  .agx-row{padding-left:8px}
  .agx-foot{flex-wrap:wrap;gap:10px;padding:12px 14px calc(14px + env(safe-area-inset-bottom))}
  .agx-sum{flex-basis:100%;font-size:13px}
  .agx-btns{width:100%}
  .agx-btns .agx-btn{flex:1;padding:0 10px;font-size:14px}
  .agx-cancel{flex:0 0 auto!important}
}
@media (prefers-reduced-motion:reduce){.agx,.agx-card,.agx-x,.agx-btn,.agx-chev{transition:none!important}.agx-sk{animation:none}}

/* bouton « Importer un dossier » (à côté de Google Drive) */
#root .agf-folder{display:inline-flex;align-items:center;justify-content:center;gap:9px}
#root .agf-folder svg{flex:none;width:19px;height:19px}
/* message discret en bas de l'écran */
.agf-toast{position:fixed;left:50%;bottom:28px;z-index:2147482000;max-width:min(560px,calc(100vw - 32px));padding:13px 20px;border-radius:999px;background:rgba(15,36,24,.94);color:#eef7e4;font-size:14px;line-height:1.35;font-weight:550;box-shadow:0 18px 40px -18px rgba(10,30,20,.7);transform:translate(-50%,16px);opacity:0;pointer-events:none;transition:opacity .3s,transform .45s cubic-bezier(.22,1,.36,1)}
.agf-toast.is-on{opacity:1;transform:translate(-50%,0)}
.agf-toast.is-bad{background:rgba(120,32,20,.95)}
#root .google-drive-control > .agf-folder{display:flex;width:100%}
#root .batch-new-actions .google-drive-control > .agf-folder{margin-top:10px}
