/* LES STORIES (chantier stories-ecrans, 01/10 ; FUSION-STORIES.md ; DECISIONS D-SE1 à D-SE14). Mounir : « une rangée
   d'anneaux en haut de l'Accueil, comme sur Instagram » ; « ça doit pas être très très jeu, entre le jeu et un peu
   Instagram… que ça plaise à tout le monde, même les filles, classe ». Donc : sobre, élégant, fluide ; des traits fins ;
   le noir profond du plein écran ; transform et opacity seulement ; « moins de mouvement » respecté.
   L'ANNEAU ALLUMÉ (D-SE2) : un dégradé or → orange, la couleur « nouveau » de NOVA, le même pour tous (la couleur du poste
   reste l'affaire de l'anneau de la photo, ailleurs) ; ÉTEINT : un trait gris fin. Jamais de rouge. */

:root { --st-allume: linear-gradient(135deg, #E8B23A 0%, #E2862C 48%, #D9481C 100%); --st-noir: #07090B; --st-feuille: #15181B; }

/* ================================ LA RANGÉE (l'Accueil) ================================ */
.app--nova .st-rangee { margin: -8px -16px -4px; min-width: 0; }
.app--nova .st-piste { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 4px 12px 2px; scroll-snap-type: x proximity;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.app--nova .st-piste::-webkit-scrollbar { display: none; }
.app--nova .st-a { flex: none; width: 76px; min-height: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0 0; border: 0;
  background: none; color: var(--encre); font: inherit; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; border-radius: 14px; }
.app--nova .st-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.app--nova .st-a:active .st-bague { transform: scale(.95); }
.st-bague { --b: 64px; --ep: 1px; position: relative; flex: none; width: var(--b); height: var(--b); border-radius: 50%; background: var(--ligne); transition: transform .15s ease-out; }
/* l'air entre le trait et la photo (la couleur du fond de page) */
.st-bague::before { content: ""; position: absolute; inset: var(--ep); border-radius: 50%; background: var(--fond); }
.st-a--allume .st-bague { --ep: 2.5px; background: var(--st-allume); }
.st-a--vu .st-bague { --ep: 1px; background: var(--ligne); }
.st-visage { position: absolute; inset: 5px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #FFFFFF;
  background-image: linear-gradient(155deg, hsl(var(--teinte, 200) 20% 60%), hsl(var(--teinte, 200) 24% 41%));
  font-family: var(--f-texte); font-weight: 600; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.st-visage--anonyme { background: var(--surface-2); color: var(--gris); }
.st-visage--anonyme svg { width: 58%; height: 58%; }
.st-visage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease-out; -webkit-user-drag: none; }
.st-visage-img[src] { opacity: 1; }
.st-visage-apercu { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover; }
.st-nom { max-width: 76px; font-size: 14px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .005em; }
.st-a--vu .st-nom { color: var(--gris); }
/* « + » : en créer une */
.st-plus { position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  color: #FFFFFF; box-shadow: 0 0 0 2.5px var(--fond); }
.st-plus svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* sur l'anneau allumé : la pastille a sa propre cible, un ROND de 40 px centré sur elle (le toucher sur elle crée) ; il ne
   touche jamais le milieu de la photo (à 25 px au moins du centre du bouton : là, on regarde sa story) */
.st-plus--cible { z-index: 2; }
.st-plus--cible::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; }
.app--nova .st-piste--seul .st-plus--cible::after { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
/* l'envoi (l'anneau se remplit), la préparation (il tourne doucement), l'envoi coupé */
.st-progres { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.st-progres circle { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.st-progres--tourne { animation: st-tourne 1.3s linear infinite; }
.st-a--envoi .st-nom { color: var(--gris); font-variant-numeric: tabular-nums; max-width: none; }
.app--nova .st-a.st-a--envoi { width: auto; min-width: 76px; padding-inline: 2px; }
.st-a--coupe .st-nom { color: var(--accent-texte); font-weight: 600; }
.st-a--coupe .st-bague { background: var(--accent); --ep: 1.5px; }
@keyframes st-tourne { to { transform: rotate(270deg); } }
/* personne d'autre n'a de story : « Ta story » seule, sur une ligne (aucune place perdue ; D-SE3) */
.app--nova .st-piste--seul { padding-top: 2px; }
.app--nova .st-piste--seul .st-a { width: auto; flex-direction: row; gap: 12px; padding: 0 12px 0 4px; }
.app--nova .st-piste--seul .st-bague { --b: 48px; }
.app--nova .st-piste--seul .st-visage, .app--nova .st-piste--seul .st-visage-apercu { inset: 4px; }
.app--nova .st-piste--seul .st-visage-apercu { width: calc(100% - 8px); height: calc(100% - 8px); }
.app--nova .st-piste--seul .st-visage { font-size: 14px; }
.app--nova .st-piste--seul .st-plus { width: 19px; height: 19px; }
.app--nova .st-piste--seul .st-plus svg { width: 12px; height: 12px; }
.app--nova .st-piste--seul .st-nom { max-width: none; font-size: 16px; font-weight: 600; }
.app--nova .st-feuille-envoi .st-envoi-t { font-size: 16px; margin: 0 0 14px; }
.app--nova .st-feuille-envoi .st-envoi-b { display: flex; flex-direction: column; gap: 10px; }

/* ================================ LE CADRE 9:16 (le lecteur et le studio : le même) ================================ */
.st-lect, .st-studio { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #FFFFFF; font-family: var(--f-texte); -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; }
.st-lect [hidden], .st-studio [hidden] { display: none !important; }
.st-cadre { position: absolute; overflow: hidden; border-radius: 12px; background: #000000; transform: translateZ(0); }
.st-flou { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.6) saturate(1.1); pointer-events: none; }
.st-flou:not([src]), .st-flou[src=""] { display: none; }
.st-img, .st-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.st-calques { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-ombre { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .18) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }

/* ---------- les calques (texte, emojis) : posés sur le cadre ---------- */
.st-calque { position: absolute; left: 0; top: 0; line-height: 1.2; text-align: center; transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; pointer-events: none; }
.st-calque--emoji { line-height: 1; white-space: nowrap; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.st-calque--texte { white-space: pre-wrap; width: max-content; max-width: calc(var(--L, 390px) * .88); overflow-wrap: anywhere; }
.st-calque-t { padding: .1em .3em; border-radius: .26em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-fond--aucun .st-calque-t { text-shadow: 0 1px 2px rgba(0, 0, 0, .32), 0 0 14px rgba(0, 0, 0, .14); }
.st-style--classique { font-family: var(--f-texte); font-weight: 600; letter-spacing: .005em; }
.st-style--gras { font-family: var(--f-titre); font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
/* « Élégant » (clé serveur « machine », inchangée : rien à migrer ; D-SE17) : un empattement italique sobre, celui du système
   (New York sur iPhone, Noto Serif sur Android) ; la machine à écrire faisait moins « classe » */
.st-style--machine { font-family: ui-serif, "New York", "Noto Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; letter-spacing: .005em; }
.st-style--neon { font-family: var(--f-texte); font-weight: 600; }
.st-style--neon .st-calque-t { text-shadow: 0 0 .1em #FFFFFF, 0 0 .32em var(--neon, #FFFFFF), 0 0 .8em var(--neon, #FFFFFF); }
.st-style--manuscrit { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-style: italic; font-weight: 500; }
.st-align--centre { text-align: center; }
.st-align--gauche { text-align: left; }
.st-align--droite { text-align: right; }

/* ================================ LE LECTEUR ================================ */
.st-lect-fond { position: absolute; inset: 0; background: var(--st-noir); opacity: 0; will-change: opacity; }
.st-lect-scene { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.st-carte, .st-voisin { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.st-haut { position: absolute; left: 0; right: 0; top: 0; padding: 8px 2px 0 10px; transition: opacity .2s ease-out; }
.st-barres { display: flex; gap: 3px; height: 2.5px; margin-right: 8px; }
.st-barres i { flex: 1; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .34); overflow: hidden; }
.st-barres b { display: block; height: 100%; background: #FFFFFF; transform-origin: 0 50%; will-change: transform; }
.st-tete { display: flex; align-items: center; gap: 4px; height: 52px; }
.st-qui { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.st-qui-t { min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.st-qui-t b { font-weight: 600; font-size: 15.5px; letter-spacing: .005em; overflow: hidden; text-overflow: ellipsis; }
.st-qui-t small { font-size: 14px; color: rgba(255, 255, 255, .72); }
.st-boutons { flex: none; display: flex; }
.st-b { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; cursor: pointer; }
.st-b svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.st-b:active { background: rgba(255, 255, 255, .14); }
.st-b:focus-visible, .st-r:focus-visible, .st-vu:focus-visible, .st-musique:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -3px; }
.st-b--son { background: rgba(0, 0, 0, .35); }
/* la musique : « ♪ Titre — Artiste · CC BY » (le crédit CC BY s'affiche sur la story qui l'utilise) */
.st-musique { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px); min-height: 48px; margin: -6px 0 0; padding: 0 2px; border: 0; background: none;
  color: #FFFFFF; font: inherit; cursor: pointer; text-align: left; }
.st-musique-i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.st-musique-i svg { width: 13px; height: 13px; }
.st-musique-t { min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
/* garder le doigt : la story seule (le haut et le bas s'effacent) */
.st-retenu .st-haut, .st-retenu .st-pied, .st-retenu .st-ombre { opacity: 0; }
.st-ombre, .st-pied { transition: opacity .2s ease-out; }
.st-attente { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s ease-out; pointer-events: none; }
.st-attente--la { opacity: 1; }
.st-attente i, .st-p-attente i { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .22); border-top-color: #FFFFFF; animation: st-rond .9s linear infinite; }
@keyframes st-rond { to { transform: rotate(360deg); } }
.st-tete--voisin { position: absolute; left: 10px; top: 18px; }
/* le bas : ❤️ 🔥 👏 (les autres) ; « Vu par » et « + » (l'auteur) */
.st-pied { position: absolute; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 10px; }
.st-reactions { display: flex; gap: 14px; }
.st-r { width: 60px; height: 52px; display: grid; place-items: center; padding: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .15s ease-out, border-color .15s ease-out; }
.st-r span { display: inline-block; }
.st-r--la { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .78); }
.st-r-vole { position: fixed; z-index: 4; font-size: 34px; line-height: 1; pointer-events: none; }
.st-pied:has(.st-vu) { justify-content: space-between; }
.st-vu { display: flex; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #FFFFFF;
  font: 600 15px var(--f-texte); cursor: pointer; }
.st-vu-visages { display: flex; padding-left: 8px; }
.st-vu-visages .st-pv { margin-left: -8px; box-shadow: 0 0 0 2px var(--st-noir); }
.st-vu-oeil svg { width: 22px; height: 22px; display: block; }
.st-vu-t { white-space: nowrap; }
.st-vu-r { font-size: 14px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .85); }
.st-b--ajouter { border: 1px solid rgba(255, 255, 255, .3); }
/* un petit visage (la tête du lecteur, « Vu par ») */
.st-pv { --t: 32px; position: relative; flex: none; width: var(--t); height: var(--t); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background-image: linear-gradient(155deg, hsl(var(--teinte, 200) 20% 60%), hsl(var(--teinte, 200) 24% 41%)); color: #FFFFFF; font-weight: 600;
  font-size: calc(var(--t) * .36); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.st-pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease-out; }
.st-pv img[src] { opacity: 1; }
.st-pv--anonyme { background: rgba(255, 255, 255, .2); }
/* le petit message de la couche */
.st-toast { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 76px); z-index: 20; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 14px;
  background: rgba(22, 25, 28, .94); color: #FFFFFF; font-size: 15px; font-weight: 500; text-align: center; opacity: 0; transform: translate(-50%, -6px);
  transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.st-toast--la { opacity: 1; transform: translate(-50%, 0); }
/* près de ce qu'il concerne, jamais sur l'auteur ni sur « ♪ Titre — Artiste » : le lecteur, au-dessus des réactions ; le
   studio, juste au-dessus du rappel et de « Publier » */
.st-lect .st-toast { top: auto; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translate(-50%, 6px); }
.st-studio .st-toast { top: auto; bottom: calc(env(safe-area-inset-bottom) + 142px); transform: translate(-50%, 6px); }
.st-lect .st-toast--la, .st-studio .st-toast--la { transform: translate(-50%, 0); }

/* ---------- les panneaux de la couche (Vu par, le crédit, Enlever, la musique, les emojis) : sombres, sobres ---------- */
.st-panneau { position: absolute; inset: 0; z-index: 10; }
.st-panneau-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .46); }
.st-panneau-feuille { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80%; overflow-y: auto; overscroll-behavior: contain; margin: 0 auto; max-width: 560px;
  padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--st-feuille); color: #FFFFFF; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); }
.st-poignee { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .24); margin: 8px auto 10px; }
.st-p-titre { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-family: var(--f-texte); font-weight: 600; font-size: 18px; letter-spacing: .005em; }
.st-p-titre svg { width: 20px; height: 20px; opacity: .85; }
.st-p-vide { color: rgba(255, 255, 255, .7); font-size: 15px; }
.st-p-attente { display: grid; place-items: center; height: 140px; }
.st-p-attente--clair i { border-color: var(--ligne); border-top-color: var(--encre); }
.st-p-choix { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 2px; }
.st-p-question { margin: 0 0 6px; text-align: center; font-size: 16.5px; font-weight: 500; }
.st-p-b { min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #FFFFFF; font: 600 16.5px var(--f-texte); cursor: pointer; }
.st-p-b--fort { background: #FFFFFF; color: #0B0F12; }
.st-p-b:active { transform: scale(.985); }
.st-p-b[disabled] { opacity: .55; cursor: progress; }
.st-vp-reac { display: flex; gap: 18px; margin: -2px 0 8px; }
.st-vp-r { font-size: 15px; }
.st-vp-r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.st-vp-r--zero { opacity: .42; }
.st-vp { list-style: none; margin: 0; padding: 0; }
.st-vp-l { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.st-vp-l .st-pv { box-shadow: none; }
.st-vp-n { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-vp-e { font-size: 22px; }
.st-vp-autres { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.st-credit { margin: 0; white-space: pre-line; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); overflow-wrap: anywhere; }

/* ================================ LE STUDIO ================================ */
.st-st-fond { position: absolute; inset: 0; background: var(--st-noir); }
.st-st-cadre { touch-action: none; user-select: none; -webkit-user-select: none; background: #0D0F11; }
.st-st-flou { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; filter: blur(16px) brightness(.7); opacity: 1; }
.st-st-media { position: absolute; inset: 0; }
.st-st-media--muette::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); }
.st-st-photo { position: absolute; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.st-st-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.st-st-calques .st-calque { pointer-events: auto; cursor: grab; touch-action: none; transition: opacity .12s ease-out; }
.st-st-calques .st-calque--jete { opacity: .4; }
.st-st-tient .st-st-calques .st-calque { cursor: grabbing; }
.st-st-ombre { height: 120px; }
.st-st-haut { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; transition: opacity .15s ease-out; }
.st-st-outils { display: flex; gap: 2px; }
.st-b--la { background: rgba(255, 255, 255, .2); }
.st-st-pastille { position: absolute; left: 10px; top: 60px; z-index: 2; transition: opacity .15s ease-out; }
.st-st-tient .st-st-haut, .st-st-tient .st-st-pastille, .st-st-tient .st-st-coupe { opacity: 0; }
/* pendant l'écriture : les outils du studio s'effacent (les mêmes places servent aux outils du texte) */
.st-st-edite .st-st-haut, .st-st-edite .st-st-pastille, .st-st-edite .st-st-coupe, .st-st-edite .st-st-bas { opacity: 0; pointer-events: none; }
/* d'où : trois tuiles sobres */
.st-st-choix { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px;
  background: radial-gradient(120% 70% at 50% 28%, #22272C 0%, #0D0F11 72%); }
.st-st-source { position: relative; flex: 1 1 0; max-width: 112px; height: 124px; min-height: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 28px 4px 10px;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .045); color: #FFFFFF; font: inherit; cursor: pointer;
  transition: background .15s ease-out, transform .15s ease-out; }
.st-st-source span svg { width: 34px; height: 34px; display: block; }
.st-st-source b { font-weight: 600; font-size: 16px; letter-spacing: .01em; }
/* « 15 s » sous « Vidéo », posé à part : il ne pousse rien (les trois tuiles à la même hauteur, alignées) */
.st-st-source small { position: absolute; left: 0; right: 0; top: 92px; font-size: 13.5px; line-height: 1.2; color: rgba(255, 255, 255, .6); }
.st-st-source:active { transform: scale(.97); background: rgba(255, 255, 255, .1); }
.st-st-source:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
/* la fenêtre de 15 s d'une vidéo plus longue */
.st-st-coupe { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; transition: opacity .15s ease-out; }
.st-st-coupe-piste { position: relative; height: 48px; border-radius: 12px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .22); touch-action: none; cursor: grab;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 9px); }
.st-st-coupe-t { margin: 4px 0 0; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.st-st-coupe-fen, .st-bout-fen { position: absolute; top: -1px; bottom: -1px; left: 0; border: 2.5px solid #FFFFFF; border-radius: 12px; background: rgba(255, 255, 255, .16);
  will-change: transform; transition: background .15s ease-out; }
.st-bout-fen--tenue { background: rgba(255, 255, 255, .28); }
.st-st-coupe-fen:focus-visible, .st-bout-fen:focus-visible { outline: 2px solid var(--etoile); outline-offset: 2px; }
/* la corbeille (paraît quand on tient un calque) */
.st-st-poubelle { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 56px; height: 56px; margin-left: -28px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .38); opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .15s ease-out, transform .15s ease-out, background .15s; }
.st-st-poubelle svg { width: 26px; height: 26px; }
.st-st-tient .st-st-poubelle { opacity: 1; transform: none; }
.st-st-tient .st-st-poubelle.st-st-poubelle--dessus { transform: scale(1.18); background: rgba(255, 255, 255, .26); }
/* le bas : le rappel à cocher, « Publier » */
.st-st-bas { position: absolute; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.st-rappel { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05); color: #FFFFFF; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; text-align: left; transition: border-color .2s; }
.st-rappel-case { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .7); transition: background .15s, border-color .15s; }
.st-rappel-case svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.st-rappel[aria-checked="true"] .st-rappel-case { background: #FFFFFF; border-color: #FFFFFF; color: #0B0F12; }
.st-rappel[aria-checked="true"] .st-rappel-case svg { opacity: 1; transform: none; }
.st-rappel-t { flex: 1; min-width: 0; }
.st-rappel--rappelle { animation: st-secoue .42s ease-in-out; border-color: var(--etoile); }
@keyframes st-secoue { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.st-studio .st-publier { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 16px; }
.st-studio .st-publier svg { width: 20px; height: 20px; }
.st-studio .st-publier[disabled] { opacity: .6; }
/* Aa : le texte (le studio s'assombrit ; les outils en haut, les couleurs dessous, la saisie au tiers) */
.st-texte { position: absolute; inset: 0; z-index: 12; }
.st-texte-fond { position: absolute; inset: 0; background: rgba(0, 0, 0, .64); }
.st-texte-haut { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.st-texte-style { width: auto; min-width: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .42); font-size: 15.5px; }
.st-texte-fondb { border-radius: 12px; }
.st-texte-fondb[aria-pressed="false"] svg { opacity: .55; }
.st-texte-fondb--doux svg rect { opacity: .5; }
.st-texte-ok { margin-left: auto; min-width: 72px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #FFFFFF; color: #0B0F12; font: 600 16px var(--f-texte); cursor: pointer; }
.st-texte-couleurs { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 66px); display: flex; gap: 0; padding: 0 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.st-texte-couleurs::-webkit-scrollbar { display: none; }
.st-couleur { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.st-couleur::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transition: transform .12s ease-out; }
.st-couleur[aria-checked="true"]::before { transform: scale(1.2); box-shadow: 0 0 0 2.5px #FFFFFF, 0 0 0 5px rgba(255, 255, 255, .25); }
.st-texte-zone { position: absolute; left: 0; right: 0; top: 28%; display: flex; justify-content: center; padding: 0 16px; }
.st-texte-saisie { box-sizing: border-box; width: auto; min-width: 2ch; max-width: calc(var(--L, 390px) * .9); field-sizing: content; margin: 0; padding: .1em .3em; border: 0; outline: 0; resize: none;
  border-radius: .26em; background: transparent; color: #FFFFFF; line-height: 1.2; overflow: hidden; caret-color: #FFFFFF; font-size: 28px; min-height: 48px; }
.st-texte-saisie::placeholder { color: rgba(255, 255, 255, .5); }
/* la saisie posée SUR le calque qu'elle dessine (D-SE18) : le calque (.st-texte-miroir, le même dessin que le lecteur) donne la
   taille ; la saisie, transparente, garde le curseur et la sélection ; les mêmes retours à la ligne (la même police, la même
   largeur, à 2 px près pour qu'une seule ligne ne se coupe jamais dans la saisie) */
.st-texte-boite { position: relative; min-width: 2ch; min-height: 48px; }
.st-texte-miroir { position: relative; display: block; pointer-events: none; }
.st-texte-miroir--vide .st-calque-t { visibility: hidden; }
.st-texte-boite .st-texte-saisie { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; max-width: none; min-height: 0; field-sizing: fixed;
  padding: 0 calc(.3em - 2px) 0 .3em; border-radius: 0; background: transparent !important; color: transparent !important; text-shadow: none !important; overflow: hidden; }
.st-texte-saisie.st-style--neon { text-shadow: 0 0 .1em #FFFFFF, 0 0 .32em var(--neon, #FFFFFF), 0 0 .8em var(--neon, #FFFFFF); }
.st-texte-saisie.st-fond--aucun { text-shadow: 0 1px 2px rgba(0, 0, 0, .32); }
/* ☺ : les emojis */
.st-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 2px; padding-top: 4px; }
.st-emoji { height: 54px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }
.st-emoji:active { background: rgba(255, 255, 255, .1); transform: scale(.94); }
/* ♪ : la musique (le choix, le bout de 15 s) */
.st-puce { flex: none; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: rgba(255, 255, 255, .88);
  font: 500 15px var(--f-texte); white-space: nowrap; cursor: pointer; }
.st-puce--la { background: #FFFFFF; border-color: #FFFFFF; color: #0B0F12; }
.st-puce small { font-size: 13px; opacity: .6; margin-left: 2px; }
.st-mus-genres { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 4px; scrollbar-width: none; }
.st-mus-genres::-webkit-scrollbar { display: none; }
.st-mus-liste { list-style: none; margin: 0; padding: 0; }
.st-mus-l { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.st-mus-ecoute { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26); background: transparent;
  color: #FFFFFF; cursor: pointer; transition: background .15s, color .15s; }
.st-mus-ecoute svg { width: 20px; height: 20px; }
.st-mus-ecoute--joue { background: #FFFFFF; color: #0B0F12; border-color: #FFFFFF; }
.st-mus-ecoute--grand { width: 52px; height: 52px; background: #FFFFFF; color: #0B0F12; border-color: #FFFFFF; }
.st-mus-choisir { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0; border: 0;
  background: none; color: #FFFFFF; font: inherit; text-align: left; cursor: pointer; }
.st-mus-choisir b, .st-bout-t b { max-width: 100%; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mus-choisir small, .st-bout-t small { max-width: 100%; font-size: 14px; color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mus-l--choisie .st-mus-choisir b::after { content: " ✓"; color: var(--etoile); }
.st-bout-tete { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.st-bout-t { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.st-bout { position: relative; height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .06); touch-action: none; cursor: grab; }
.st-bout-barres { position: absolute; inset: 10px 8px; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.st-bout-barres i { flex: 1; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .34); }
.st-bout-temps { margin: 8px 0 10px; text-align: center; font-size: 14.5px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.st-vol { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.st-vol span { flex: none; width: 128px; }
.st-vol input[type=range] { flex: 1; min-width: 0; height: 48px; margin: 0; accent-color: #FFFFFF; background: transparent; }
.st-bout-b { display: flex; gap: 10px; margin-top: 12px; }
.st-bout-b .st-p-b { flex: none; }
.st-bout-ok { flex: 1; border-radius: 16px; }
.st-b--clair { width: 48px; height: 48px; }

/* ================================ LE GÉRANT : Moi › Musique (une feuille de l'app, claire ou sombre) ================================ */
.app--nova .st-gm .st-puce { border-color: var(--ligne); color: var(--encre); }
.app--nova .st-gm .st-puce--la { background: var(--encre); border-color: var(--encre); color: var(--surface); }
.app--nova .st-gm-ajouter { margin: 0 0 14px; }
.app--nova .st-gm-genres { margin-bottom: 6px; }
.app--nova .st-gm-liste { list-style: none; margin: 0; padding: 0; }
.app--nova .st-gm-l { display: flex; align-items: center; gap: 10px; min-height: 68px; border-bottom: 1px solid var(--ligne); }
.app--nova .st-gm-ecoute { flex: none; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--ligne); background: var(--surface);
  color: var(--encre); cursor: pointer; }
.app--nova .st-gm-ecoute svg { width: 20px; height: 20px; }
.app--nova .st-gm-ecoute--joue { background: var(--encre); border-color: var(--encre); color: var(--surface); }
.app--nova .st-gm-ecoute--vide { border-style: dashed; cursor: default; }
.app--nova .st-gm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.app--nova .st-gm-t b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .st-gm-t small { font-size: 14px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app--nova .st-gm-etat { font-size: 14px; font-weight: 600; color: var(--ambre-texte); }
.app--nova .st-gm-l--off b { color: var(--gris); }
.app--nova .st-gm-b { flex: none; min-height: 48px; padding: 0 16px; border: 1px solid var(--ligne); border-radius: 999px; background: transparent; color: var(--encre);
  font: 600 15px var(--f-texte); letter-spacing: 0; text-transform: none; cursor: pointer; }
.app--nova .st-gm-b:active { background: var(--surface-2); }
.app--nova .st-gm-boutons .st-gm-annuler { border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); }
.app--nova .st-gm-form { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.app--nova .st-gm-droit { margin: 0; font-size: 15.5px; font-weight: 600; }
.app--nova .st-gm-fichier { margin: 0; font-size: 15px; color: var(--gris); overflow-wrap: anywhere; }
.app--nova .st-gm-barre { height: 6px; border-radius: 3px; background: var(--ligne); overflow: hidden; }
.app--nova .st-gm-barre i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform .2s linear; }
.app--nova .st-gm-erreur { margin: 0; min-height: 0; font-size: 15px; color: var(--accent-texte); }
.app--nova .st-gm-erreur:empty { display: none; }
.app--nova .st-gm-boutons { display: flex; gap: 10px; }
.app--nova .st-gm-boutons > * { flex: 1; }

/* ================================ moins de mouvement ================================ */
@media (prefers-reduced-motion: reduce) {
  .st-progres--tourne, .st-attente i, .st-p-attente i { animation: none !important; }
  .st-progres--tourne circle { stroke-dasharray: 6 6 !important; }
  .st-rappel--rappelle { animation: none !important; }
  .st-bague, .st-haut, .st-pied, .st-ombre, .st-toast, .st-st-poubelle, .st-st-haut, .st-visage-img, .st-pv img, .st-r, .st-rappel-case, .st-rappel-case svg, .st-couleur::before { transition: none !important; }
}
