/* Storyboards à valider — styles de l'écran (15/10/2026). Complète index.html, jamais l'inverse.
   Variables de index.html uniquement (thème clair/sombre automatique) ; classes préfixées sb-.
   Seules couleurs en dur : surimpressions blanc/noir sur photo (comme la banque d'images) et le fond sombre d'une vignette vide. */

.sb { display: grid; gap: 16px; min-width: 0; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb h2, .sb h3 { margin: 0; letter-spacing: -0.01em; }
.sb button { font: inherit; }
.sb-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sb-n { color: var(--tres-doux); font-weight: 600; font-size: .85em; }
.sb-lib { font-size: 12px; font-weight: 600; color: var(--doux); }
.sb-aide { color: var(--doux); font-size: 13px; margin: 0; max-width: 72ch; }
.sb-aide b { color: var(--texte); }
.sb-erreur { color: var(--danger); }
.sb-vide { text-align: center; color: var(--doux); padding: 40px 12px; background: var(--carte); border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); }
.sb-vide.sb-erreur { color: var(--danger); }
.sb-vide .sb-btn { margin-top: 10px; }
.sb-vide-mini { color: var(--doux); font-size: 13.5px; margin: 0; }

/* ── Boutons, pastilles, champs ── */
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; min-height: 38px; border-radius: 8px; border: 1px solid var(--ligne-forte); background: var(--carte); color: var(--texte); cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.2; }
.sb-btn:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-fonce); }
.sb-btn[disabled] { opacity: .45; cursor: not-allowed; }
.sb-btn.sb-pri { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.sb-btn.sb-pri:hover:not([disabled]) { background: var(--accent-fonce); border-color: var(--accent-fonce); color: var(--sur-accent); }
.sb-btn.sb-pri.sb-attention { background: var(--warn); border-color: var(--warn); color: var(--fond); }
.sb-btn.sb-petit { padding: 4px 9px; min-height: 30px; font-size: 12.5px; }
.sb-btn.sb-large { width: 100%; }
.sb-lien { background: none; border: 0; padding: 4px 0; color: var(--accent-fonce); font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; }
.sb-lien:hover { text-decoration: underline; }
.sb-retour { display: inline-flex; align-items: center; gap: 4px; width: fit-content; }
.sb-mini { width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; flex: none; border-radius: 8px; border: 1px solid var(--ligne-forte); background: var(--carte); color: var(--texte); cursor: pointer; }
.sb-mini:hover:not([disabled]) { border-color: var(--accent); color: var(--accent-fonce); }
.sb-mini[disabled] { opacity: .35; cursor: default; }
.sb button:focus-visible, .sb input:focus-visible, .sb select:focus-visible, .sb textarea:focus-visible, .sb summary:focus-visible, .sb [data-slot]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sb-pil { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--creux); color: var(--texte); }
.sb-pil.sb-ok { background: var(--ok-pale); color: var(--ok); }
.sb-pil.sb-warn { background: var(--warn-pale); color: var(--warn); }
.sb-pil.sb-danger { background: var(--danger-pale); color: var(--danger); }
.sb-pil.sb-publie { background: var(--publie-pale); color: var(--publie); }
.sb-pil.sb-et-a-valider { background: var(--accent); color: var(--sur-accent); }
.sb-pil.sb-et-brouillon { background: var(--creux); color: var(--doux); }
.sb-pil.sb-et-valide { background: var(--ok-pale); color: var(--ok); }
.sb-pil.sb-et-fabrique { background: var(--publie-pale); color: var(--publie); }
.sb-pil.sb-ia-pil { background: var(--ia-pale); color: var(--ia); white-space: normal; }

.sb-in, .sb-sel { width: 100%; padding: 7px 9px; border: 1px solid var(--ligne-forte); border-radius: 8px; background: var(--carte); color: var(--texte); font-size: 14px; min-width: 0; }
textarea.sb-in { resize: vertical; min-height: 64px; line-height: 1.35; }
.sb-in.sb-neg { border-color: var(--danger); background: var(--danger-pale); }
.sb-in:disabled, .sb-sel:disabled { opacity: .7; background: var(--creux); }
.sb-champ { display: grid; gap: 3px; min-width: 0; }
.sb-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.sb-check input { margin-top: 3px; }

/* ── Liste des storyboards ── */
.sb-liste { display: grid; gap: 14px; }
.sb-liste-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sb-liste-haut h2 { font-size: 22px; }
.sb-segment { display: inline-flex; flex-wrap: wrap; background: var(--creux); border-radius: 9px; padding: 3px; gap: 2px; max-width: 100%; }
.sb-segment button { border: 0; background: none; padding: 7px 13px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--doux); }
.sb-segment button[aria-pressed="true"] { background: var(--carte); color: var(--texte); box-shadow: 0 1px 2px var(--ombre); }
.sb-client { display: grid; gap: 10px; }
.sb-client h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.sb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.sb-vcarte { display: flex; gap: 12px; text-align: left; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px; cursor: pointer; color: var(--texte); min-width: 0; width: 100%; }
.sb-vcarte:hover { border-color: var(--accent); }
.sb-vign { flex: none; width: 76px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #1a2230; display: block; }
.sb-vign img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-vign-vide { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; opacity: .7; }
.sb-vcorps { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sb-vcorps b { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.sb-vdate { color: var(--doux); font-size: 13px; }
.sb-vpils { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }

/* ── Storyboard ouvert : en-tête ── */
.sb-ouvert { display: grid; gap: 14px; min-width: 0; }
.sb-haut { display: grid; gap: 6px; }
.sb-haut h2 { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.sb-sujet { color: var(--doux); font-weight: 600; }
.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--doux); font-size: 13.5px; }
.sb-pils { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sb-bandeau { display: flex; gap: 10px; align-items: center; background: var(--accent-pale); color: var(--accent-fonce); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.sb-bandeau-doux { background: var(--creux); color: var(--doux); }
.sb-al { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sb-al button { display: inline-flex; gap: 6px; align-items: flex-start; text-align: left; border: 1px solid var(--ligne); border-left-width: 4px; border-radius: 8px; padding: 6px 10px; background: var(--carte); color: var(--texte); font-size: 13px; cursor: pointer; }
.sb-al button[disabled] { cursor: default; }
.sb-al-danger button { border-left-color: var(--danger); }
.sb-al-danger .sb-ico { color: var(--danger); }
.sb-al-warn button { border-left-color: var(--envoye); }
.sb-al-warn .sb-ico { color: var(--warn); }
.sb-ok-ligne { margin: 0; color: var(--ok); font-size: 13.5px; display: flex; gap: 6px; align-items: center; }

/* ── Rangée de cartes 9:16 ── */
.sb-rangee { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; overscroll-behavior-x: contain; align-items: flex-start; }
.sb-carte { flex: 0 0 calc((100% - 60px) / 6); min-width: 186px; display: grid; gap: 8px; align-content: start; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 8px; position: relative; }
.sb-carte.sb-pb-w { border-color: var(--envoye); }
.sb-carte.sb-pb-d { border-color: var(--danger); }
.sb-carte.sb-flash { box-shadow: 0 0 0 3px var(--accent); }
.sb-carte.sb-source { opacity: .45; }
.sb-carte.sb-avant { box-shadow: -6px 0 0 -2px var(--accent); }
.sb-carte.sb-apres { box-shadow: 6px 0 0 -2px var(--accent); }
.sb-cadre { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #1a2230; border: 1px solid var(--ligne); cursor: grab; }
.sb-fige .sb-cadre { cursor: default; }
.sb-slots { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-slots.sb-axe-h { flex-direction: row; }
.sb-slot { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--creux); cursor: pointer; }
.sb-fige .sb-slot { cursor: default; }
.sb-img { position: absolute; inset: 0; display: block; }
.sb-img img, .sb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; user-select: none; -webkit-user-drag: none; }
img.sb-casse { visibility: hidden; }
.sb-slot-txt { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: var(--doux); font-size: 12px; text-align: center; }
.sb-slot-txt .sb-ico { width: 22px; height: 22px; }
.sb-slot.sb-cible, .sb-slot.sb-survol { outline: 3px dashed var(--accent); outline-offset: -3px; }
.sb-slot.sb-cible::after, .sb-slot.sb-survol::after { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: .22; pointer-events: none; }
.sb-slot.sb-occupe { opacity: .5; cursor: progress; }
.sb-mot { position: absolute; left: 4px; right: 4px; bottom: 6px; text-align: center; color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); pointer-events: none; overflow-wrap: anywhere; }
.sb-etiq { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 4px; padding: 1px 6px; pointer-events: none; }
.sb-ovl { position: absolute; left: 8px; right: 8px; top: 38%; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.15; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); pointer-events: none; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sb-sans-photo { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; padding: 10px 10px 90px; text-align: center; background: var(--texte); color: var(--fond); }
.sb-sans-photo b { font-size: 14px; }
.sb-sans-photo small { opacity: .7; }
.sb-sans-photo ~ .sb-ovl { top: auto; bottom: 18%; text-align: center; color: var(--fond); text-shadow: none; }
.sb-num { position: absolute; top: 6px; left: 6px; font: 600 11px/1.4 var(--f-data); background: rgba(0, 0, 0, .6); color: #fff; border-radius: 4px; padding: 0 6px; pointer-events: none; }
.sb-grip { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 44px; height: 30px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: grab; touch-action: none; padding: 0; }
.sb-grip .sb-ico { width: 18px; height: 18px; }
.sb-x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sb-x .sb-ico { width: 15px; height: 15px; }
.sb-x:hover { background: var(--danger); }
.sb-tags { position: absolute; left: 4px; bottom: 4px; display: flex; flex-wrap: wrap; gap: 3px; pointer-events: none; max-width: calc(100% - 8px); }
.sb-tags b, .sb-photo .sb-tags b { font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-radius: 4px; padding: 1px 5px; background: rgba(0, 0, 0, .7); color: #fff; }
.sb-tags .sb-t-ia { background: var(--ia); color: var(--sur-ia); }
.sb-tags .sb-t-al { background: var(--danger); color: var(--sur-danger); }
.sb-slot .sb-tags { bottom: auto; top: 28px; left: 4px; }
.sb-l1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; }
.sb-nom { font: 600 12px var(--f-data); color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sb-ordre { display: inline-flex; gap: 4px; flex: none; }
.sb-l2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.sb-dur { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--doux); }
.sb-dur input { width: 4.2em; text-align: right; font-variant-numeric: tabular-nums; }
.sb-champs { display: grid; gap: 8px; min-width: 0; }
.sb-liste-champs { display: grid; gap: 6px; }
.sb-lrow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.sb-lrow .sb-in { flex: 1 1 0; }
.sb-lrow .sb-court { flex: 0 0 4.4em; max-width: 4.4em; }
.sb-lrow .sb-sel-ico { flex: 0 0 5.6em; width: 5.6em; padding-inline: 5px; }
.sb-plan { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--creux); display: grid; place-items: center; font: 600 11px var(--f-data); color: var(--doux); }
.sb-pb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.sb-pb-danger { color: var(--danger); }
.sb-pb-warn { color: var(--warn); }
.sb-pb:empty { display: none; }

/* Retouches IA */
.sb-ia { border-top: 1px solid var(--ligne); padding-top: 6px; font-size: 13px; }
.sb-ia > summary { cursor: pointer; font-weight: 600; color: var(--ia); list-style: none; display: flex; gap: 6px; align-items: center; min-height: 30px; }
.sb-ia > summary::-webkit-details-marker { display: none; }
.sb-ia-photo { display: grid; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--ligne); }
.sb-ia-nom { font: 12px var(--f-data); color: var(--doux); overflow-wrap: anywhere; }
.sb-ia-etats, .sb-ia-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-note-p { margin: 0; font-size: 12px; color: var(--doux); }

/* Ajouter une scène */
.sb-ajout { flex: 0 0 168px; display: grid; gap: 8px; align-content: center; justify-items: stretch; border: 1.5px dashed var(--ligne-forte); border-radius: 12px; padding: 14px 10px; color: var(--doux); min-height: 220px; align-self: stretch; }

/* ── Colonnes : bac | style, musique, note ── */
.sb-colonnes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sb-cote { display: grid; gap: 16px; min-width: 0; }
.sb-bloc { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.sb-bloc h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; }
.sb-bloc-haut { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-chip { border: 1px solid var(--ligne); background: var(--fond); color: var(--texte); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.sb-chip:hover { border-color: var(--accent); }
.sb-chip[aria-pressed="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.sb-chip[aria-pressed="true"] .sb-n { color: inherit; opacity: .7; }
.sb-bac { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sb-photo { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--ligne); border-radius: 8px; overflow: hidden; background: var(--creux); cursor: grab; display: block; touch-action: manipulation; color: var(--doux); }
.sb-photo:hover { border-color: var(--accent); }
.sb-photo.sb-choisie { outline: 3px solid var(--accent); outline-offset: -3px; }
.sb-photo.sb-ecartee img { filter: grayscale(1); opacity: .45; }
.sb-photo.sb-publiee img { opacity: .6; }
.sb-photo.sb-source { opacity: .5; }
.sb-photo.sb-inutilisable { cursor: not-allowed; }
.sb-photo.sb-inutilisable img { opacity: .4; }
.sb-photo .sb-tags { top: 4px; bottom: auto; }
.sb-statut { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10.5px; font-weight: 600; text-align: center; pointer-events: none; }
.sb-statut.sb-st-pub { background: var(--danger); color: var(--sur-danger); }
.sb-depot { display: flex; gap: 10px; align-items: center; border: 1.5px dashed var(--ligne-forte); border-radius: 10px; padding: 12px; color: var(--doux); font-size: 13.5px; cursor: pointer; }
.sb-depot:hover, .sb-depot.sb-sur { border-color: var(--accent); color: var(--texte); }
.sb-depot .sb-ico { width: 22px; height: 22px; }
.sb-consignes { border: 1px solid var(--ligne); border-left: 4px solid var(--danger); border-radius: 8px; padding: 6px 12px; font-size: 13px; background: var(--fond); }
.sb-consignes > summary { cursor: pointer; font-weight: 600; display: flex; gap: 6px; align-items: center; min-height: 30px; }
.sb-consignes ul { margin: 4px 0 6px; padding-left: 18px; display: grid; gap: 4px; color: var(--doux); }

/* Style et musique */
.sb-radios, .sb-pistes { display: grid; gap: 6px; }
.sb-radio { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--ligne); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--fond); min-width: 0; }
.sb-radio input { margin-top: 3px; flex: none; }
.sb-radio-txt { display: grid; gap: 1px; min-width: 0; }
.sb-radio-txt b { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sb-radio-txt small { color: var(--doux); font-size: 12px; overflow-wrap: anywhere; }
.sb-radio-txt small.sb-pour { color: var(--texte); opacity: .8; }
.sb-radio.sb-coche, .sb-piste.sb-coche { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sb-piste { display: grid; gap: 6px; border: 1px solid var(--ligne); border-radius: 10px; padding: 6px; background: var(--fond); }
.sb-piste .sb-radio { border: 0; padding: 4px; background: none; }
.sb-piste audio { width: 100%; height: 36px; }

/* ── Barre d'actions (collée en bas, au pouce) ── */
.sb-actions { position: sticky; bottom: 0; z-index: 15; background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px -10px var(--ombre); }
.sb-actions-in { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.sb-actions-etat { font-size: 13px; color: var(--doux); font-weight: 600; }
.sb-actions-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-actions .sb-btn { min-height: 42px; }

/* ── Dialogue ── */
.sb-dlg { border: 1px solid var(--ligne); border-radius: 14px; padding: 0; background: var(--carte); color: var(--texte); width: min(94vw, 520px); max-height: 90vh; overflow: auto; }
.sb-dlg::backdrop { background: var(--voile); }
.sb-dlg-in { display: grid; gap: 12px; padding: 18px; }
.sb-dlg-in p { margin: 0; color: var(--doux); font-size: 14px; }
.sb-dlg-al { border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.sb-dlg-al.sb-danger { background: var(--danger-pale); color: var(--danger); }
.sb-dlg-al.sb-warn { background: var(--warn-pale); color: var(--warn); }
.sb-dlg-al ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.sb-dlg-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ── Glisser-déposer ── */
.sb-glisse, .sb-glisse * { user-select: none; -webkit-user-select: none; cursor: grabbing !important; }
.sb-glisse .sb-rangee { scroll-snap-type: none !important; }
.sb-fantome { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 64px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--carte); color: var(--texte); box-shadow: 0 8px 24px var(--ombre); opacity: .92; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.sb-fantome img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-fantome-scene { width: 84px; aspect-ratio: 9 / 16; }

/* ── Téléphone (360-430 px) : cartes à ~70 %, rangée qui défile, boutons au pouce ── */
@media (max-width: 900px) {
  .sb-colonnes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sb { gap: 14px; }
  .sb-rangee { scroll-snap-type: x proximity; scroll-padding-inline: 2px; gap: 10px; margin-inline: -4px; padding-inline: 4px; }
  .sb-carte { flex: 0 0 70%; min-width: 0; max-width: 320px; scroll-snap-align: start; }
  .sb-ajout { flex: 0 0 56%; }
  .sb-in, .sb-sel { font-size: 16px; padding: 9px 10px; }
  .sb-mini { width: 38px; height: 38px; }
  .sb-grip { width: 56px; height: 38px; }
  .sb-x { width: 38px; height: 38px; }
  .sb-bac { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .sb-actions { margin-inline: -4px; border-radius: 12px 12px 0 0; }
  .sb-actions-in { display: grid; gap: 8px; }
  .sb-actions-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-actions .sb-btn { min-height: 46px; font-size: 15px; }
  .sb-haut h2 { font-size: 19px; }
  .sb-liste-haut h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .sb *, .sb-fantome { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Type de scène lisible en entier : la durée passe sous le menu (15/10/2026, après capture) */
.sb-l2 { grid-template-columns: minmax(0, 1fr); }
.sb-l2 .sb-dur { justify-self: end; }
