/* Aperçu d'un original (composant partagé, préfixe sdl-) : déclencheur en tuile ou en lien, fenêtre blanche posée sur le plateau.
   Jetons de systeme.css uniquement. */
.sdl { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 9px 12px; border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); text-align: left; cursor: pointer; transition: background-color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out); }
.sdl:hover { background: var(--surface-2); }
.sdl:active { transform: scale(.98); }
.sdl__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex-shrink: 0; }
.sdl__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sdl__label { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.sdl__name { font-size: 13.5px; line-height: 19px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdl__format { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); }
.sdl--compact { min-height: 44px; padding: 6px 10px; gap: 10px; }
.sdl--compact .sdl__icon { width: 28px; height: 28px; border-radius: 8px; }
.sdl-link { min-height: 28px; }

.sdl-dialog { width: min(920px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); font-family: var(--font); box-shadow: var(--shadow-pop); overflow: hidden; }
.sdl-dialog[open] { display: flex; flex-direction: column; animation: cg-dialog var(--dur-base) var(--ease-out) both; }
.sdl-dialog::backdrop { background: var(--scrim); }
.sdl-dialog__head, .sdl-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; flex-shrink: 0; }
.sdl-dialog__head { border-bottom: 1px solid var(--line); }
.sdl-dialog__head h2 { overflow-wrap: anywhere; }
.sdl-dialog__foot { border-top: 1px solid var(--line); background: var(--z2); }
.sdl-dialog__foot .t-xs { color: var(--z2-ink); }
.sdl-dialog__body { flex: 1 1 auto; min-height: 0; background: var(--surface-2); }
.sdl-dialog__body iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--surface); }
.sdl-dialog__file { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
@media (max-width: 767px) {
  .sdl, .sdl--compact { min-height: 44px; }
  .sdl-link { min-height: 44px; }
  .sdl-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .sdl-dialog__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .sdl-dialog[open] { animation-name: cg-fade; animation-duration: 120ms; } }
