/* <image-slots> : zones de dépôt (une image, ou recto et verso). */

image-slots { display: grid; grid-template-columns: 1fr; gap: 12px; }
image-slots.two { grid-template-columns: 1fr 1fr; }
image-slots > * { min-width: 0; }
@media (max-width: 420px) { image-slots.two { grid-template-columns: 1fr; } }
.drop { position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, background-color .15s; }
.drop.empty { cursor: pointer; min-height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; color: var(--muted); }
.drop.empty:hover, .drop.over { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 5%, var(--surface)); }
image-slots:not(.two) .drop.empty { aspect-ratio: 1.586; }
.drop.empty .i { width: 24px; height: 24px; color: var(--faint); }
.drop.empty .btn.sm .i { width: 16px; height: 16px; color: inherit; }
.drop.empty .btn.sm { margin-top: 6px; background: var(--surface); }
.drop.empty .btn.sm .short, image-slots.two .drop.empty .btn.sm .long { display: none; }
image-slots.two .drop.empty .btn.sm .short { display: inline; }
.drop .slot-title { font-size: 13px; font-weight: 600; color: var(--text); }
.drop .slot-sub { font-size: 13px; }
.drop .slot-sub u { text-decoration-color: var(--border-strong); text-underline-offset: 3px; color: var(--focus); text-decoration: none; font-weight: 500; }
.drop.filled { border-style: solid; border-color: var(--border); padding: 8px; }
.thumb { aspect-ratio: 1.586; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb .pdf-thumb { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.thumb .pdf-thumb .i { width: 30px; height: 30px; color: var(--faint); margin-bottom: 2px; }
.thumb .pdf-thumb b { color: var(--text); font-size: 13px; }
image-slots.two .thumb .pdf-thumb span { display: none; }
.thumb .noprev { font-size: 12px; color: var(--muted); padding: 8px; text-align: center; }
.file-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.file-meta { flex: 1; min-width: 0; font-size: 12px; line-height: 1.35; }
.file-meta b { display: block; font-weight: 600; font-size: 12px; }
.file-meta span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop input[type=file] { display: none; }
image-slots.two .file-meta span { display: none; } /* place trop juste à deux colonnes : le titre suffit */
