/* Outils de données (relevés, imports, comptes-rendus) : partagés par la carte des saveurs
   (fiches saveur) et Produits › Données (relevé Hiboutik, import de secours, photos). */
.hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--encre-douce); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-2); }

/* Outils d'administration : numérotés dans l'ordre où on les lance (stock → fiches → photos) */
.outil { height: 100%; display: flex; flex-direction: column; }
.outil__corps { flex: 1; display: grid; align-content: start; gap: var(--espace-3); }
.outil__etape { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--piste); color: var(--encre-douce); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.aide { font-size: 13px; line-height: 18px; color: var(--encre-douce); }
.aide summary { cursor: pointer; font-weight: 500; color: var(--encre); }
.aide p { margin: 6px 0 var(--espace-2); }

/* Dépôt d'un fichier */
.dropzone { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-3); padding: 14px; border-radius: var(--arrondi-bouton); background: var(--surface-douce); outline: 1px dashed var(--contour-champ); outline-offset: -1px; transition: background var(--duree-rapide), outline-color var(--duree-rapide); }
.dropzone.is-over { background: var(--rouge-clair); outline-color: var(--rouge); }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__label { flex: 1; min-width: 160px; display: grid; gap: 2px; cursor: pointer; }
.dropzone__input:focus-visible + .dropzone__label { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.dropzone__title { font-weight: 500; font-size: 14px; text-decoration: underline; text-decoration-color: var(--contour-champ); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dropzone__sub { font-size: 12px; color: var(--encre-douce); }

/* Comptes-rendus des imports */
.success { margin: 0; color: var(--succes-fonce); }
.error { margin: 0; color: var(--erreur-fonce); }
.report { display: grid; gap: var(--espace-2); font-size: 14px; }
.report details summary { cursor: pointer; font-weight: 500; }
.anomalies { font-size: 13px; color: var(--encre-douce); max-height: 220px; overflow: auto; padding-left: 18px; }
.counts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.counts li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid var(--ligne); }
.counts strong { font-weight: 600; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 6px; accent-color: var(--rouge); }

/* Relevés Hiboutik (lecture seule) */
.hiboutik-etat .counts { margin: 0; }
.hiboutik-etat .message { display: block; font-size: 13px; color: var(--encre-douce); }
.counts strong.ok { color: var(--succes-fonce); }
.counts strong.ko { color: var(--erreur-fonce); }
.outil__corps details.aide .dropzone { margin-top: var(--espace-2); }
.hint a { color: var(--rouge); }
