/* ================================================================================================
   FICHIER espace.css — MISE EN FORME DU NOUVEL ESPACE CLIENT (#/app/new…)
   Rôle : couleurs kaki et sable, lumières floues du fond, boîte de création, 4 étapes, page de
   fabrication et éditeur. Toutes les classes commencent par « nx- » : elles ne touchent jamais
   aux pages existantes du site (style.css reste inchangé).
   ================================================================================================ */

/* Les couleurs du nouvel espace (posées sur :root pour servir aussi aux petits messages « toast »). */
:root {
  --nx-bg: #0c0e0a;
  --nx-card: #151912;
  --nx-line: rgba(217, 191, 134, .13);
  --nx-line2: rgba(217, 191, 134, .26);
  --nx-text: #ece8dc;
  --nx-muted: #a6a391;
  --nx-dim: #77755f;
  --nx-khaki: #7d8b4a;
  --nx-khaki2: #5c6a33;
  --nx-sand: #d9bf86;
  --nx-sand2: #c9a85f;
  --nx-ink: #1a1508;
  --nx-warn: #e0a24a;
  --nx-sand-grad: linear-gradient(135deg, #ecd49b, #c9a85f);
}

/* ---------- Base ---------- */
.nx { position: relative; min-height: 100vh; background: var(--nx-bg); color: var(--nx-text); font-family: var(--font-body); overflow-x: hidden; isolation: isolate; }
:where(.nx) svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Réglages de base des boutons et liens, avec une priorité très faible (« :where ») pour que chaque style de bouton l'emporte. */
:where(.nx) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:where(.nx) button:disabled { cursor: not-allowed; opacity: .45; }
:where(.nx) a { color: inherit; }
.nx button:focus-visible, .nx a:focus-visible, .nx input:focus-visible, .nx select:focus-visible, .nx textarea:focus-visible { outline: 2px solid var(--nx-sand); outline-offset: 2px; }
.nx-grow { flex: 1; }
/* Titres et paragraphes : on adoucit les réglages généraux du site (lettres moins serrées, couleur du texte). */
:where(.nx) :is(h1, h2, h3, h4) { letter-spacing: -.01em; line-height: 1.2; }
:where(.nx) p { color: inherit; }

/* Les lumières floues du fond : kaki en haut à gauche, brun-sable au centre, sable en bas à droite. */
.nx-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.nx-glow i { position: absolute; border-radius: 50%; filter: blur(100px); }
.nx-glow .g1 { width: 560px; height: 560px; left: -160px; top: -180px; background: #8d9c4c; opacity: .5; animation: nx-float 20s ease-in-out infinite alternate; }
.nx-glow .g2 { width: 760px; height: 760px; left: 50%; top: 6%; margin-left: -380px; background: #6b5a2e; opacity: .42; animation: nx-float 26s ease-in-out infinite alternate-reverse; }
.nx-glow .g3 { width: 480px; height: 480px; right: -140px; bottom: -180px; background: #c9a85f; opacity: .26; }
.nx-glow::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(6, 7, 5, .7) 100%); }

/* Le calque des étoiles (au-dessus de tout, mais ne bloque aucun clic). */
.nx-stars { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 3000; }

/* Petit message en bas de l'écran. */
.nx-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3100; padding: 11px 18px; border-radius: 10px; background: #1d2217; border: 1px solid var(--nx-line2); color: var(--nx-text); font-family: var(--font-body); font-size: .88rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); animation: nx-up .25s ease; transition: opacity .3s; }
.nx-toast.out { opacity: 0; }

/* ---------- Boutons communs ---------- */
.nx-ico-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--nx-muted); transition: background .15s, color .15s; }
.nx-ico-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: var(--nx-text); }
.nx-ico-btn svg { width: 19px; height: 19px; }
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--nx-line2) !important; background: rgba(255, 255, 255, .04) !important; font-weight: 600; font-size: .9rem; color: var(--nx-text); text-decoration: none; cursor: pointer; transition: border-color .15s, filter .15s; }
.nx-btn:hover:not(:disabled) { border-color: var(--nx-sand) !important; }
.nx-btn-sand { background: var(--nx-sand-grad) !important; border-color: transparent !important; color: var(--nx-ink) !important; }
.nx-btn-sand:hover:not(:disabled) { filter: brightness(1.08); }
.nx-btn-sm { padding: 7px 12px; font-size: .8rem; }
.nx-wide { width: 100%; margin-top: 10px; }
.nx-danger { color: #e48a73 !important; border-color: rgba(194, 85, 58, .4) !important; }
.nx-demo-pill { font-size: .72rem; padding: 4px 10px; border: 1px dashed var(--nx-line2); border-radius: 99px; color: var(--nx-muted); white-space: nowrap; }

/* ---------- Barre du haut et menu latéral ---------- */
.nx-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px; position: relative; z-index: 5; }
.nx-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--nx-text); text-decoration: none; }
.nx-logo-mark { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--nx-sand), var(--nx-khaki)); color: #14170f; display: grid; place-items: center; font-size: 1rem; font-weight: 800; }
.nx-logo b { color: var(--nx-sand); font-weight: 700; }
.nx-ws { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--nx-line) !important; border-radius: 10px; background: rgba(20, 23, 16, .6) !important; font-size: .86rem; }
.nx-ws span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-side-bg { position: fixed; inset: 0; z-index: 40; background: rgba(5, 6, 4, .55); backdrop-filter: blur(2px); }
.nx-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 41; width: 280px; padding: 16px; background: #10130d; border-right: 1px solid var(--nx-line2); box-shadow: 20px 0 60px rgba(0, 0, 0, .5); animation: nx-slide .2s ease; overflow-y: auto; }
.nx-side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.nx-side nav { display: flex; flex-direction: column; gap: 2px; }
.nx-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--nx-muted); text-decoration: none; font-size: .92rem; }
.nx-side nav a:hover { background: rgba(255, 255, 255, .05); color: var(--nx-text); }
.nx-side nav a.on { background: rgba(217, 191, 134, .1); color: var(--nx-sand); }
/* Étiquette « Bêta » à droite d'un lien du menu (le Studio au lancement). */
.nx-side nav a .nx-beta { margin-left: auto; padding: 2px 7px; border: 1px solid var(--nx-line2); border-radius: 999px; font-style: normal; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--nx-muted); }

/* ---------- ACCUEIL : boîte de création ---------- */
.nx-home { max-width: 780px; margin: 0 auto; padding: 13vh 20px 60px; text-align: center; position: relative; z-index: 1; }
.nx-h1 { font-family: var(--font-head); font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 600; margin: 0 0 28px; letter-spacing: -.01em; }
.nx-composer { text-align: left; background: rgba(14, 16, 11, .84); border: 1px solid var(--nx-line2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(14px); }
.nx-bar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--nx-line); flex-wrap: wrap; }
.nx-dd { position: relative; }
.nx-dd-btn { display: flex; align-items: center; gap: 6px; padding: 8px 10px !important; border-radius: 9px; font-size: .86rem; font-weight: 600; }
.nx-dd-btn:hover, .nx-dd.open .nx-dd-btn { background: rgba(255, 255, 255, .06) !important; }
.nx-dd-btn svg { width: 15px; height: 15px; color: var(--nx-muted); transition: transform .2s; }
.nx-dd.open .nx-dd-btn svg { transform: rotate(180deg); }
.nx-dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 6px; background: #151912; border: 1px solid var(--nx-line2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); z-index: 20; animation: nx-up .15s ease; }
.nx-dd-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px !important; border-radius: 8px; text-align: left; font-size: .87rem; }
.nx-dd-menu button:hover { background: rgba(255, 255, 255, .05) !important; }
.nx-dd-menu button.on { color: var(--nx-sand); }
.nx-dd-menu small { display: block; color: var(--nx-muted); font-size: .74rem; margin-top: 2px; }
.nx-seg { display: flex; padding: 3px; background: rgba(255, 255, 255, .04); border: 1px solid var(--nx-line); border-radius: 99px; }
.nx-seg button { padding: 6px 15px !important; border-radius: 99px; font-size: .84rem; color: var(--nx-muted); transition: background .2s, color .2s; }
.nx-seg button.on { background: var(--nx-sand-grad) !important; color: var(--nx-ink); font-weight: 700; box-shadow: 0 4px 14px rgba(217, 191, 134, .3); }
.nx-title { display: flex; align-items: center; gap: 8px; margin: 16px 20px 0; padding-bottom: 10px; border-bottom: 1px solid var(--nx-line); }
.nx-title label { color: var(--nx-muted); font-size: .85rem; white-space: nowrap; }
.nx-title input { flex: 1; min-width: 0; background: none; border: 0; color: var(--nx-text); font: inherit; font-size: .95rem; outline: none !important; }
.nx-count { font-size: .74rem; color: var(--nx-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-script { display: block; width: 100%; box-sizing: border-box; min-height: 150px; max-height: 50vh; resize: vertical; padding: 16px 20px 4px; background: none; border: 0; color: var(--nx-text); font: inherit; font-size: 1.02rem; line-height: 1.6; outline: none !important; }
.nx-script::placeholder, .nx-title input::placeholder { color: var(--nx-dim); }
.nx-count-script { text-align: right; padding: 0 20px; }
.nx-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; }
.nx-round { border: 1px solid var(--nx-line2) !important; border-radius: 50%; width: 32px; height: 32px; }
.nx-est { position: relative; display: flex; align-items: center; gap: 6px; outline: none; }
.nx-est-chip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--nx-line); border-radius: 9px; font-size: .78rem; color: var(--nx-muted); }
.nx-est-chip b { color: var(--nx-sand); font-weight: 600; }
.nx-q { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--nx-line2); display: grid; place-items: center; font-size: .68rem; color: var(--nx-muted); cursor: help; }
.nx-tip { position: absolute; bottom: calc(100% + 8px); right: 0; width: 230px; padding: 10px 12px; background: #1d2217; border: 1px solid var(--nx-line2); border-radius: 10px; font-size: .76rem; color: var(--nx-muted); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 10; }
.nx-tip b { display: block; color: var(--nx-text); margin-bottom: 2px; }
.nx-est:hover .nx-tip, .nx-est:focus .nx-tip { opacity: 1; transform: none; }
.nx-send { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--nx-sand-grad) !important; color: var(--nx-ink) !important; transition: filter .15s, transform .15s; }
.nx-send:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.nx-send:disabled { background: #2a2f22 !important; color: var(--nx-dim) !important; opacity: 1 !important; }
.nx-send svg { stroke-width: 2.6; }
.nx-links { display: flex; justify-content: center; gap: 12px; margin-top: 42px; flex-wrap: wrap; }
.nx-links button { display: flex; align-items: center; gap: 8px; padding: 11px 18px !important; border: 1px solid var(--nx-line) !important; border-radius: 12px; background: rgba(20, 23, 16, .55) !important; font-size: .9rem; backdrop-filter: blur(8px); transition: border-color .15s; }
.nx-links button:hover { border-color: var(--nx-sand2) !important; }

/* ---------- La fenêtre du vérificateur ---------- */
.nx-modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 4, .72); backdrop-filter: blur(4px); display: grid; place-items: start center; overflow: auto; padding: 40px 16px; }
.nx-modal { position: relative; width: min(720px, 100%); background: #11140e; border: 1px solid var(--nx-line2); border-radius: 18px; padding: 30px 28px 24px; text-align: center; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: nx-pop .25s ease; }
.nx-x { position: absolute !important; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--nx-muted); }
.nx-x:hover { background: rgba(255, 255, 255, .06) !important; color: var(--nx-text); }
.nx-warn-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: rgba(224, 162, 74, .14); border: 1px solid rgba(224, 162, 74, .35); display: grid; place-items: center; color: var(--nx-warn); }
.nx-warn-ico svg { width: 24px; height: 24px; }
.nx-modal h2 { font-family: var(--font-head); font-size: 1.5rem; margin: 0 0 6px; }
.nx-sub { color: var(--nx-muted); margin: 0; }
.nx-draft { margin: 18px 0 6px; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 10px; background: rgba(255, 255, 255, .03); text-align: left; font-size: .87rem; color: var(--nx-muted); }
.nx-cap { display: flex; align-items: center; gap: 8px; text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-sand); margin: 18px 0 8px; font-weight: 700; }
.nx-wline { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 10px; background: rgba(224, 162, 74, .08); border: 1px solid rgba(224, 162, 74, .25); font-size: .9rem; margin-bottom: 8px; }
.nx-wline svg { color: var(--nx-warn); }
.nx-sugg { text-align: left; margin-top: 14px; padding: 4px 16px 16px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.nx-sugg p { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .9rem; }
.nx-sugg p svg { color: var(--nx-sand); }
.nx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chip { padding: 7px 12px !important; border-radius: 99px; border: 1px solid var(--nx-line2) !important; font-size: .82rem; color: var(--nx-muted); transition: border-color .15s, color .15s; }
.nx-chip:hover { border-color: var(--nx-sand) !important; color: var(--nx-text); }
.nx-issue { margin-top: 14px; text-align: left; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.nx-issue-head { display: flex; align-items: center; gap: 8px; }
.nx-issue p { margin: 10px 0 0; font-size: .9rem; }
.nx-num { padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: .75rem; }
.nx-tag, .nx-level { padding: 3px 9px; border-radius: 6px; background: rgba(224, 162, 74, .14); color: #e9b866; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid rgba(224, 162, 74, .3); }
.nx-level { border-radius: 99px; }
.nx-modal-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- LES 4 ÉTAPES ---------- */
.nx-ptop { height: 3px; background: rgba(255, 255, 255, .06); position: relative; z-index: 5; }
.nx-ptop i { display: block; height: 100%; background: linear-gradient(90deg, var(--nx-khaki), var(--nx-sand)); transition: width .5s ease; box-shadow: 0 0 12px rgba(217, 191, 134, .5); }
.nx-wiz { max-width: 1240px; margin: 0 auto; padding: 28px 40px 60px; position: relative; z-index: 1; }
.nx-step { color: var(--nx-muted); margin: 0 0 8px; font-weight: 500; }
.nx-wh { font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.nx-wh span { background: linear-gradient(90deg, var(--nx-sand), #b5bd78); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-wd { color: var(--nx-muted); margin: 8px 0 24px; max-width: 640px; font-size: .92rem; line-height: 1.5; }
.nx-tabs-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.nx-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(20, 23, 16, .6); }
.nx-tabs button { padding: 9px 16px !important; border-radius: 9px; font-size: .87rem; font-weight: 600; color: var(--nx-muted); }
.nx-tabs button:hover { color: var(--nx-text); }
.nx-tabs button.on { background: var(--nx-sand-grad) !important; color: var(--nx-ink); }
.nx-tabs-hint { color: var(--nx-muted); font-size: .85rem; }
.nx-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(14, 16, 11, .72); color: var(--nx-muted); transition: border-color .15s; }
.nx-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--nx-text); outline: none !important; font: inherit; font-size: .92rem; }
.nx-search input::placeholder { color: var(--nx-dim); }
.nx-search:focus-within { border-color: var(--nx-sand2); }
.nx-search.sm { height: 38px; border-radius: 10px; padding: 0 10px; }
.nx-search.sm input { font-size: .84rem; }
.nx-count-line { font-size: .85rem; color: var(--nx-muted); margin: 16px 0 10px; }
.nx-empty { padding: 24px; text-align: center; color: var(--nx-muted); border: 1px dashed var(--nx-line2); border-radius: 12px; font-size: .88rem; margin: 14px 0; line-height: 1.45; }
.nx-nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.nx-back { display: flex; align-items: center; gap: 8px; color: var(--nx-text); text-decoration: none; font-weight: 600; padding: 10px 6px; }
.nx-back:hover { color: var(--nx-sand); }
.nx-next { display: flex; align-items: center; gap: 8px; padding: 12px 20px !important; border-radius: 11px; background: var(--nx-sand-grad) !important; color: var(--nx-ink) !important; font-weight: 700; transition: filter .15s; }
.nx-next:hover:not(:disabled) { filter: brightness(1.08); }
.nx-next:disabled { background: #2a2f22 !important; color: var(--nx-dim) !important; opacity: 1 !important; }
.nx-need { font-size: .82rem; color: var(--nx-muted); }
.nx-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--nx-sand); color: var(--nx-ink); display: grid; place-items: center; }
.nx-tick svg { width: 13px; height: 13px; stroke-width: 3; }

/* Étape 1 : fiches voix. */
.nx-voice { display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 12px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(18, 21, 14, .78); transition: border-color .15s, box-shadow .15s; }
.nx-voice:hover { border-color: var(--nx-line2); }
.nx-voice.sel { border-color: var(--nx-sand); box-shadow: inset 0 0 0 1px var(--nx-sand), 0 10px 30px rgba(217, 191, 134, .08); }
.nx-av { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--c); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); }
.nx-vmain { flex: 1; min-width: 0; }
.nx-vmain h3 { margin: 0; font-size: 1.05rem; }
.nx-vmain p { margin: 2px 0 10px; color: var(--nx-muted); font-size: .82rem; }
.nx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--nx-line); border-radius: 8px; font-size: .75rem; color: var(--nx-muted); }
.nx-tags svg { width: 13px; height: 13px; }
.nx-vact { display: flex; align-items: center; gap: 8px; }
.nx-listen { display: flex; align-items: center; gap: 6px; padding: 8px 12px !important; border-radius: 9px; font-size: .8rem; color: var(--nx-muted); border: 1px solid var(--nx-line) !important; }
.nx-listen:hover, .nx-listen.on { color: var(--nx-sand); border-color: var(--nx-sand2) !important; }
.nx-listen svg { width: 12px; height: 12px; }
.nx-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.nx-eq i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; animation: nx-eq .8s ease-in-out infinite; }
.nx-eq i:nth-child(2) { animation-delay: -.3s; }
.nx-eq i:nth-child(3) { animation-delay: -.55s; }
.nx-heart { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--nx-muted); }
.nx-heart:hover { background: rgba(255, 255, 255, .05) !important; color: var(--nx-text); }
.nx-heart.on { color: #e07a5f; }
.nx-heart.on svg { fill: currentColor; }
.nx-pick { display: flex; align-items: center; gap: 6px; padding: 9px 16px !important; border-radius: 9px; background: rgba(255, 255, 255, .06) !important; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.nx-pick:hover { background: rgba(255, 255, 255, .1) !important; }
.nx-pick.on { background: var(--nx-sand-grad) !important; color: var(--nx-ink); }

/* Étapes 2 et 3 : liste à gauche, aperçu à droite. */
.nx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.nx-themes { display: flex; flex-direction: column; gap: 12px; }
.nx-theme { position: relative; display: flex; gap: 16px; align-items: center; padding: 14px !important; text-align: left; border: 1px solid var(--nx-line) !important; border-radius: 14px; background: rgba(18, 21, 14, .78) !important; transition: border-color .15s, background .15s; }
.nx-theme:hover { border-color: var(--nx-line2) !important; }
.nx-theme.sel { border-color: var(--nx-sand) !important; background: rgba(217, 191, 134, .07) !important; box-shadow: inset 0 0 0 1px var(--nx-sand); }
.nx-theme.sel b { color: var(--nx-sand); }
.nx-th-mini { width: 86px; height: 70px; border-radius: 8px; flex: none; overflow: hidden; padding: 12px 10px; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; background: var(--th-bg); color: var(--th-hl); border: 1px solid rgba(255, 255, 255, .08); }
.nx-th-mini i { display: block; height: 5px; border-radius: 2px; background: var(--th-fg); opacity: .55; }
.nx-th-mini i:nth-child(2) { width: 72%; }
.nx-th-mini i:nth-child(3) { width: 50%; background: var(--th-hl); opacity: 1; }
.nx-th-txt { padding-right: 30px; }
.nx-th-txt b { display: block; font-size: 1rem; margin-bottom: 4px; }
.nx-th-txt small { color: var(--nx-muted); font-size: .82rem; line-height: 1.45; }
.nx-player { position: sticky; top: 20px; border: 1px solid var(--nx-line); border-radius: 16px; background: rgba(14, 16, 11, .86); padding: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.nx-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--th-bg); color: var(--th-fg); display: grid; place-items: center; padding: 7% 8%; box-sizing: border-box; }
.nx-para p { font-family: var(--th-font); font-size: clamp(.8rem, 1.3vw, 1rem); line-height: 1.85; margin: 0; }
.nx-para mark { background: linear-gradient(var(--th-hl), var(--th-hl)) no-repeat 0 100% / 100% 100%; color: var(--th-hl-ink); padding: 0 3px; border-radius: 2px; font-weight: 700; }
.nx-screen.playing mark { animation: nx-hl 8s linear infinite; }
.nx-screen.playing mark:nth-of-type(2) { animation-delay: 1.3s; }
.nx-screen.playing mark:nth-of-type(3) { animation-delay: 2.6s; }
.nx-bigplay { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 0, 0, .5) !important; backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; transition: opacity .2s; }
.nx-bigplay svg { width: 22px; height: 22px; }
.nx-screen.playing .nx-bigplay { opacity: 0; }
.nx-screen:hover .nx-bigplay { opacity: 1; }
.nx-pbar { display: flex; align-items: center; gap: 10px; padding: 12px 4px 8px; font-size: .88rem; }
.nx-ptime { display: flex; gap: 6px; align-items: center; color: var(--nx-muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
.nx-ptrack { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 0 4px 4px; }
.nx-ptrack i { display: block; height: 100%; width: 38%; background: var(--nx-text); }
.nx-ptrack i.run { animation: nx-run 8s linear infinite; }
.nx-bggrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.nx-bgsw { display: flex; flex-direction: column; gap: 7px; align-items: center; text-align: center; }
.nx-bgsw small { font-size: .72rem; color: var(--nx-muted); line-height: 1.25; }
.nx-bgsw.sel small { color: var(--nx-sand); }
.nx-sw { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .06); overflow: hidden; transition: transform .15s, border-color .15s; box-sizing: border-box; }
.nx-bgsw:hover .nx-sw { transform: translateY(-2px); }
.nx-bgsw.sel .nx-sw { border-color: var(--nx-sand); box-shadow: 0 0 0 3px rgba(217, 191, 134, .2); }
.nx-sw .nx-tick { top: 6px; right: 6px; }
.nx-bgprev { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.nx-bgclip { width: 78%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.nx-ctrl { display: flex; align-items: center; gap: 14px; padding: 12px 6px 4px; font-size: .8rem; }
.nx-ctrl b { font-size: .66rem; padding: 2px 5px; border: 1px solid currentColor; border-radius: 4px; }

/* Les fonds (étape 3 et éditeur). */
.bg-topo { background-color: #141810; background-image: repeating-radial-gradient(circle at 28% 38%, transparent 0 10px, rgba(217, 191, 134, .22) 10px 11px), repeating-radial-gradient(circle at 76% 72%, transparent 0 14px, rgba(125, 139, 74, .28) 14px 15px); }
.bg-khaki { background: linear-gradient(160deg, #5f6b33, #232812 72%); }
.bg-sand { background: linear-gradient(160deg, #dcc591, #8a7444); }
.bg-camo { background-color: #3d4426; background-image: radial-gradient(ellipse 30% 20% at 20% 30%, #5a6436 60%, transparent 62%), radial-gradient(ellipse 25% 30% at 72% 25%, #2a2f19 60%, transparent 62%), radial-gradient(ellipse 35% 22% at 60% 76%, #6b6a44 60%, transparent 62%), radial-gradient(ellipse 22% 26% at 14% 82%, #2f3520 60%, transparent 62%); }
.bg-paper { background: radial-gradient(circle at 50% 40%, #f3e9d3, #d6c39b 92%); }
.bg-grid { background-color: #0f120c; background-image: linear-gradient(rgba(217, 191, 134, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 191, 134, .14) 1px, transparent 1px); background-size: 16px 16px; }
.bg-black { background: #000; }
.bg-radar { background-color: #050a05; background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(120, 220, 120, .18) 14px 15px), radial-gradient(circle, #163016, #050a05 75%); }
.bg-archive { background-color: #cdbb92; background-image: repeating-linear-gradient(0deg, transparent 0 9px, rgba(90, 69, 38, .16) 9px 10px), radial-gradient(circle at 50% 50%, #ddcca5, #b29d70); }
.bg-alert { background: radial-gradient(ellipse at 50% 120%, #8f1d12, #2a0806 60%, #0a0202); }

/* Petits paysages dessinés (exemples d'images). Chaque décor fixe 6 couleurs. */
.lk-0 { --s1: #7fb0d8; --s2: #ead5a8; --sun: #fff3c4; --far: #c9a466; --near: #a97d41; }
.lk-1 { --s1: #9db7c7; --s2: #d8d9c0; --sun: #fffbe6; --far: #7e8c4a; --near: #535f2c; }
.lk-2 { --s1: #05070d; --s2: #1d2638; --sun: #dfe6f0; --far: #121821; --near: #090c11; }
.lk-3 { --s1: #6f95b8; --s2: #cfdbe3; --sun: #ffffff; --far: #2f5876; --near: #1d3b52; }
.lk-4 { --s1: #aab8c4; --s2: #e6ebef; --sun: #f6f7f9; --far: #b9c4cd; --near: #eef2f5; }
.lk-5 { --s1: #3a3530; --s2: #8a7a66; --sun: #e07a3a; --far: #4a443c; --near: #26221e; }
.nx-scene { position: relative; width: 100%; height: 100%; overflow: hidden; }
.nx-scene i { position: absolute; display: block; }
.nx-scene .sky { inset: 0; background: linear-gradient(var(--s1), var(--s2)); }
.nx-scene .sun { width: 13%; aspect-ratio: 1; border-radius: 50%; left: 68%; top: 14%; background: var(--sun); box-shadow: 0 0 40px var(--sun); }
.nx-scene .far { left: -10%; right: -10%; bottom: 20%; height: 32%; background: var(--far); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.nx-scene .near { left: -20%; right: -20%; bottom: -10%; height: 40%; background: var(--near); border-radius: 60% 40% 0 0 / 100% 100% 0 0; }
.nx-scene.lk-3 .far, .nx-scene.lk-3 .near { border-radius: 0; }
.nx-scene.lk-5 .sky { background: linear-gradient(var(--s1), var(--s2)), radial-gradient(circle at 30% 60%, rgba(255, 255, 255, .2), transparent 50%); }

/* Étape 4 : miniatures. */
.nx-s4-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; margin-bottom: 30px; }
.nx-s4-lbl { font-weight: 600; margin: 0 0 10px; }
.nx-s4-sel .nx-nav { margin-top: 16px; }
/* Miniature IA (Nano Banana) : bloc de gauche de l'étape 4. */
.nx-gen { margin-top: 22px; padding: 18px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nx-gen-t { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--nx-sand); }
.nx-gen-t svg, .nx-gen-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nx-gen-d { margin: 0 0 14px; color: var(--nx-muted); font-size: .9rem; line-height: 1.45; }
.nx-gen-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--nx-line2); }
.nx-gen-wait { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--nx-muted); font-size: .9rem; }
.nx-gen-wait i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--nx-line2); border-top-color: var(--nx-sand); animation: nx-spin 0.9s linear infinite; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-skip { padding: 10px 6px; color: var(--nx-muted); font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nx-skip:hover:not(:disabled) { color: var(--nx-text); }
.nx-skip:disabled { opacity: .45; cursor: default; }
.nx-gen-styles { margin-bottom: 8px; }
.nx-gen-styles .nx-chip.on { border-color: var(--nx-sand) !important; color: var(--nx-ink); background: var(--nx-sand-grad) !important; }
.nx-gen-sd { margin: 0 0 14px; color: var(--nx-muted); font-size: .8rem; line-height: 1.4; }
.nx-gen-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-gen-cost { display: block; margin-top: 10px; color: var(--nx-muted); font-size: .78rem; }
.nx-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nx-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 2px solid transparent !important; transition: transform .15s, border-color .15s; }
.nx-thumb:hover:not(.big) { transform: translateY(-2px); }
.nx-thumb.sel { border-color: var(--nx-sand) !important; box-shadow: 0 0 0 3px rgba(217, 191, 134, .25); }
.nx-thumb.big { cursor: default; }
.nx-thumb .nx-scene { position: absolute; inset: 0; }
.nx-tb-txt { position: absolute; left: 6%; top: 10%; max-width: 70%; text-align: left; font-family: var(--font-head); font-weight: 800; font-size: clamp(.95rem, 1.9vw, 1.5rem); line-height: 1.05; color: #fff; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 0, 0, .6); letter-spacing: -.01em; }
.nx-thumb.big .nx-tb-txt { font-size: clamp(1.2rem, 2.6vw, 2rem); }
.nx-tb-txt.t1 { background: #111; color: var(--nx-sand); padding: 4px 10px; text-shadow: none; border-radius: 4px; }
.nx-tb-txt.t2 { color: #ffd166; }
.nx-tb-txt.t4 { color: #ff6b4a; }
.nx-tb-txt.t5 { color: #e8f1f5; }
.nx-tb-txt.t6 { color: #1a1508; text-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.nx-score { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 7px; background: var(--nx-sand-grad); color: var(--nx-ink); font-weight: 800; font-size: .76rem; }
.nx-thumb-url { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--nx-card); color: var(--nx-muted); border: 1px dashed var(--nx-line2) !important; }
.nx-thumb-url svg { width: 28px; height: 28px; color: var(--nx-sand); }
.nx-url { display: flex; gap: 10px; margin-top: 18px; }
.nx-url .nx-search { flex: 1; }
.nx-msg { margin: 10px 0 0; font-size: .88rem; }
.nx-msg.ok { color: #b5bd78; }
.nx-msg.err { color: #e48a73; }

/* ---------- SUIVI DE FABRICATION ---------- */
.nx-progress { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; text-align: center; position: relative; z-index: 1; }
.nx-ptitle { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 10px 0 8px; letter-spacing: -.02em; }
.nx-ptitle span { color: var(--nx-sand); }
.nx-plead { color: var(--nx-muted); margin: 0 0 30px; }
.nx-pcard { text-align: left; padding: 26px 28px; border: 1px solid var(--nx-line); border-radius: 18px; background: rgba(14, 16, 11, .86); backdrop-filter: blur(10px); }
.nx-prow { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.nx-pdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--nx-sand); margin-right: 10px; vertical-align: middle; box-shadow: 0 0 10px var(--nx-sand); animation: nx-blink 1.4s infinite; }
.nx-pbig { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 14px 0 8px; overflow: hidden; }
.nx-pbig i { display: block; height: 100%; background: linear-gradient(90deg, var(--nx-khaki), var(--nx-sand)); border-radius: 4px; transition: width .2s linear; }
.nx-pest { color: var(--nx-muted); font-size: .82rem; }
.nx-psteps { list-style: none; margin: 22px 0 0; padding: 0; }
.nx-ps { position: relative; display: flex; gap: 16px; align-items: center; padding: 14px 18px; margin-bottom: 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(255, 255, 255, .02); opacity: .5; transition: opacity .3s, border-color .3s; }
.nx-ps::before { content: ''; position: absolute; left: 35px; top: 100%; height: 15px; width: 2px; background: var(--nx-line2); }
.nx-ps:last-child::before { display: none; }
.nx-ps.done::before { background: var(--nx-sand2); }
.nx-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px solid var(--nx-line2); display: grid; place-items: center; color: transparent; box-sizing: border-box; }
.nx-dot svg { width: 16px; height: 16px; stroke-width: 3; }
.nx-ps.run { opacity: 1; border-color: var(--nx-line2); }
.nx-ps.run .nx-dot { border-color: var(--nx-sand); border-top-color: transparent; animation: nx-spin 1s linear infinite; }
.nx-ps.done { opacity: 1; }
.nx-ps.done .nx-dot { background: linear-gradient(135deg, var(--nx-sand), var(--nx-khaki)); border-color: transparent; color: var(--nx-ink); }
.nx-ps b { display: block; font-size: .95rem; }
.nx-ps small { color: var(--nx-muted); font-size: .74rem; }
.nx-pdone { display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; padding: 16px 18px; border-radius: 12px; background: rgba(217, 191, 134, .08); border: 1px solid rgba(217, 191, 134, .35); }
.nx-pdone.show { display: flex; animation: nx-pop .3s ease; }
.nx-pdone b { display: flex; gap: 8px; align-items: center; color: var(--nx-sand); }
.nx-note { color: var(--nx-dim); font-size: .8rem; margin-top: 14px; }

/* ---------- L'ÉDITEUR ---------- */
.nx-edmode { height: 100vh; overflow: hidden; }
.nx-ed { display: grid; height: 100vh; grid-template-columns: 76px 300px minmax(0, 1fr) 290px; grid-template-rows: 58px minmax(0, 1fr) 48px 236px; grid-template-areas: "rail panel top top" "rail panel stage right" "rail panel ctrl ctrl" "rail panel tl tl"; background: #0b0d09; }
.nx-ed.fold { grid-template-columns: 76px 0 minmax(0, 1fr) 290px; }
.nx-ed.fold .nx-panel { display: none; }
.nx-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; background: #0e110b; border-right: 1px solid var(--nx-line); overflow-y: auto; }
.nx-rail button { width: 62px; padding: 8px 0 !important; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--nx-muted); }
.nx-rail button:hover { color: var(--nx-text); background: rgba(255, 255, 255, .04) !important; }
.nx-rail button svg { width: 20px; height: 20px; }
.nx-rail button small { font-size: .64rem; }
.nx-rail button.on { background: rgba(217, 191, 134, .12) !important; color: var(--nx-sand); box-shadow: inset 0 0 0 1px rgba(217, 191, 134, .3); }
.nx-rail .nx-rail-top { margin-bottom: 6px; }
.nx-panel { grid-area: panel; overflow-y: auto; padding: 16px; background: #0f120c; border-right: 1px solid var(--nx-line); }
.nx-ph { font-size: 1rem; margin: 2px 0 14px; font-weight: 700; }
.nx-plead2 { display: block; color: var(--nx-muted); font-size: .79rem; line-height: 1.45; margin: 8px 0 12px; }
.nx-ed-top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--nx-line); background: linear-gradient(90deg, #10140c, #151a0f); }
.nx-ed-top .nx-logo { font-size: 1.15rem; }
.nx-ed-top .nx-logo-mark { width: 26px; height: 26px; font-size: .9rem; }
.nx-vsep { width: 1px; height: 26px; background: var(--nx-line2); }
.nx-ed-name { display: flex; flex-direction: column; min-width: 0; }
.nx-ed-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36vw; font-size: .9rem; }
.nx-ed-name small { color: var(--nx-muted); font-size: .73rem; }
.nx-stage-wrap { grid-area: stage; display: grid; place-items: center; padding: 18px; min-height: 0; position: relative; overflow: hidden; background: radial-gradient(ellipse at 20% 0%, rgba(125, 139, 74, .28), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(201, 168, 95, .18), transparent 50%), #0d100a; }
.nx-stage-wrap::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(217, 191, 134, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(217, 191, 134, .04) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.nx-canvas { position: relative; width: min(100%, calc((100vh - 58px - 48px - 236px - 36px) * 16 / 9)); aspect-ratio: 16 / 9; background-color: var(--canvas); border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.nx-canvas.bg-none { background: var(--canvas); }
.nx-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.nx-frame { position: relative; width: 78%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; }
.nx-frame.shadow { box-shadow: 0 18px 50px rgba(0, 0, 0, .7); }
.nx-capband { position: absolute; left: 10%; right: 10%; bottom: 7%; padding: 5px 12px; background: rgba(20, 20, 20, .74); color: #fff; text-align: center; font-weight: 600; font-size: clamp(.6rem, 1.15vw, .92rem); border-radius: 3px; z-index: 3; }
.nx-right { grid-area: right; overflow-y: auto; padding: 16px; background: #0f120c; border-left: 1px solid var(--nx-line); }
.nx-rh { font-size: .92rem; margin: 0 0 12px; }
.nx-rsec { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-dim); margin: 18px 0 8px; font-weight: 700; }
.nx-rlbl { font-size: .79rem; color: var(--nx-muted); margin: 10px 0 6px; }
.nx-color { display: flex; gap: 6px; align-items: center; }
.nx-color input[type="color"] { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--nx-line2); border-radius: 8px; background: none; cursor: pointer; flex: none; }
.nx-hex { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--nx-line2); border-radius: 8px; background: var(--nx-card); color: var(--nx-text); font-family: var(--font-mono); font-size: .8rem; box-sizing: border-box; }
.nx-select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--nx-line2); border-radius: 8px; background: var(--nx-card); color: var(--nx-text); font: inherit; font-size: .84rem; }
.nx-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: .84rem; cursor: pointer; position: relative; }
.nx-tg > span { display: flex; flex-direction: column; gap: 2px; }
.nx-tg > span small { color: var(--nx-muted); font-size: .72rem; line-height: 1.4; }
.nx-tg.sm { padding: 5px 0; font-size: .8rem; }
.nx-tg.sm > span { flex-direction: row; align-items: center; gap: 8px; color: var(--nx-muted); }
.nx-tg input { position: absolute; opacity: 0; pointer-events: none; }
.nx-tg > i { flex: none; width: 36px; height: 20px; border-radius: 99px; background: #2a2f22; position: relative; transition: background .2s; }
.nx-tg > i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8b8a78; transition: left .2s, background .2s; }
.nx-tg input:checked + i { background: var(--nx-sand2); }
.nx-tg input:checked + i::after { left: 18px; background: #fff; }
.nx-tg input:focus-visible + i { outline: 2px solid var(--nx-sand); outline-offset: 2px; }
.nx-slider { display: block; margin: 8px 0; }
.nx-slider span { display: flex; justify-content: space-between; font-size: .79rem; color: var(--nx-muted); margin-bottom: 4px; }
.nx-slider b { color: var(--nx-text); font-variant-numeric: tabular-nums; font-weight: 500; }
.nx-range { width: 100%; accent-color: var(--nx-sand2); }
.nx-2btn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.nx-ctrlbar { grid-area: ctrl; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 12px; border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: #10130d; }
.nx-cb-l, .nx-cb-r { display: flex; gap: 2px; }
.nx-cb-r { justify-content: flex-end; }
.nx-cb-c { display: flex; align-items: center; gap: 10px; }
.nx-speed { padding: 4px 8px !important; border-radius: 6px; font-size: .76rem; color: var(--nx-muted); border: 1px solid var(--nx-line) !important; min-width: 40px; }
.nx-playbtn { color: var(--nx-text) !important; }
.nx-time { font-family: var(--font-mono); font-size: .8rem; color: var(--nx-muted); }
.nx-time b { color: var(--nx-text); font-weight: 400; }

/* La frise. Hauteurs fixes pour que les poignées de gauche restent alignées avec les pistes. */
.nx-tl { grid-area: tl; display: grid; grid-template-columns: 30px minmax(0, 1fr); background: #0c0f0a; min-height: 0; }
.nx-tl-handles { display: flex; flex-direction: column; gap: 4px; color: var(--nx-dim); font-size: .8rem; border-right: 1px solid var(--nx-line); }
.nx-tl-handles span { display: grid; place-items: center; height: 40px; }
.nx-tl-handles .r { height: 20px; }
.nx-tl-handles span:nth-child(2) { height: 24px; }
.nx-tl-handles span:nth-child(5), .nx-tl-handles span:nth-child(6) { height: 28px; }
.nx-tl-handles span:nth-child(7) { height: 30px; }
.nx-tl-scroll { overflow-x: auto; overflow-y: auto; position: relative; }
.nx-tl-inner { position: relative; min-width: 100%; padding-bottom: 8px; cursor: pointer; }
.nx-ruler { position: relative; height: 24px; border-bottom: 1px solid var(--nx-line); }
.nx-ruler span { position: absolute; bottom: 0; height: 5px; border-left: 1px solid var(--nx-line2); }
.nx-ruler span.maj { height: 22px; padding: 2px 0 0 4px; font-size: .62rem; color: var(--nx-dim); box-sizing: border-box; white-space: nowrap; }
.nx-lane { position: relative; margin-top: 4px; height: 40px; }
.nx-lane.caps { height: 24px; }
.nx-lane.aud { height: 28px; }
.nx-lane.anim { height: 30px; }
.nx-lane.hid { opacity: .22; }
.nx-tcap { position: absolute; top: 0; bottom: 0; padding: 0 6px; font-size: .64rem; line-height: 24px; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .03); box-sizing: border-box; }
.nx-tclip, .nx-mini { background: linear-gradient(var(--s1), var(--s2) 50%, var(--far) 50% 68%, var(--near) 68%); }
.nx-tclip { position: absolute; top: 0; bottom: 0; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .55) !important; box-sizing: border-box; background-size: 46px 100%; background-repeat: repeat-x; overflow: hidden; }
.nx-tclip:hover { filter: brightness(1.12); }
.nx-tclip.sel { outline: 2px solid var(--nx-sand); outline-offset: -1px; z-index: 2; }
.nx-tclip.small { top: 4px; bottom: 4px; }
.nx-src { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 4px; background: rgba(93, 106, 51, .95); display: grid; place-items: center; color: #fff; }
.nx-src svg { width: 10px; height: 10px; }
.nx-tmark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 5px; background: #262c1c; border: 1px solid var(--nx-line2); display: grid; place-items: center; color: var(--nx-sand); z-index: 3; pointer-events: none; }
.nx-tmark svg { width: 10px; height: 10px; }
.nx-wave { position: absolute; inset: 0; border-radius: 6px; background-color: #a3741d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='28'%3E%3Cpath d='M0 14 L3 8 L6 18 L9 5 L12 20 L15 10 L18 16 L21 6 L24 22 L27 9 L30 15 L33 7 L36 19 L39 11 L42 17 L45 4 L48 21 L51 12 L54 16 L57 9 L60 14' fill='none' stroke='%23f6cf63' stroke-width='1.6'/%3E%3C/svg%3E"); background-size: 60px 100%; }
.nx-wave b { position: absolute; top: 3px; left: 6px; display: flex; gap: 4px; align-items: center; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .4); color: #fff; font-size: .6rem; font-weight: 500; }
.nx-wave svg { width: 10px; height: 10px; }
.nx-lane-empty { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 10px; font-size: .68rem; color: var(--nx-dim); border: 1px dashed var(--nx-line); border-radius: 6px; }
.nx-tanim { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 5px; padding: 0 8px !important; border-radius: 6px; background: linear-gradient(135deg, #6e7a3c, #4f5a2a) !important; border: 1px solid rgba(217, 191, 134, .35) !important; color: #f3ecd6; font-size: .64rem; overflow: hidden; white-space: nowrap; box-sizing: border-box; }
.nx-tanim span { overflow: hidden; text-overflow: ellipsis; }
.nx-tanim svg { width: 11px; height: 11px; }
.nx-tanim.sel { outline: 2px solid var(--nx-sand); z-index: 2; }
.nx-playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #e2553f; pointer-events: none; z-index: 5; }
.nx-playhead::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid #e2553f; }

/* Panneaux de gauche. */
.nx-cliplist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.nx-cliprow { display: flex; gap: 10px; align-items: center; padding: 6px !important; border-radius: 10px; text-align: left; border: 1px solid transparent !important; }
.nx-cliprow:hover { background: rgba(255, 255, 255, .04) !important; }
.nx-cliprow.sel { border-color: var(--nx-sand) !important; background: rgba(217, 191, 134, .06) !important; }
.nx-cliprow b { display: block; font-size: .82rem; }
.nx-cliprow small { color: var(--nx-muted); font-size: .72rem; }
.nx-mini { width: 64px; height: 36px; border-radius: 6px; flex: none; }
.nx-cards1 { display: flex; flex-direction: column; gap: 12px; }
.nx-txcard { display: block; width: 100%; text-align: left; border: 1px solid var(--nx-line) !important; border-radius: 12px; overflow: hidden; background: var(--nx-card) !important; transition: border-color .15s; }
.nx-txcard:hover { border-color: var(--nx-sand2) !important; }
.nx-txprev { display: grid; place-items: center; height: 78px; background: #0b0d09; padding: 0 10px; text-align: center; font-size: 1.2rem; color: #fff; }
.nx-txname { display: block; padding: 10px 12px; background: #000; }
.nx-txname b { display: block; font-size: .86rem; }
.nx-txname small { color: var(--nx-muted); font-size: .73rem; }
.tpl-tx-modern { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.tpl-tx-impact { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.tpl-tx-type { font-family: var(--font-mono); letter-spacing: .04em; }
.tpl-tx-sliced { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; text-shadow: -3px -2px 0 #a3492f, 3px 2px 0 #7d8b4a; }
.tpl-tx-mono { font-family: Georgia, serif; letter-spacing: .3em; font-weight: 400; }
.tpl-tx-hl { font-family: var(--font-head); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(217, 191, 134, .75); text-decoration-thickness: .35em; text-underline-offset: -.15em; text-decoration-skip-ink: none; }
.tpl-tx-mono .nx-tpl-txt { border: 1px solid currentColor; padding: .4em .8em; }
.nx-sbtn { display: flex; gap: 6px; }
.nx-sbtn .nx-search { flex: 1; }
.nx-dark { background: #000 !important; border: 1px solid var(--nx-line) !important; width: 38px; height: 38px; }
.nx-track-item { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 12px 0; border: 1px solid var(--nx-line); border-radius: 12px; }
.nx-track-item b { display: block; font-size: .86rem; }
.nx-track-item small { color: var(--nx-muted); font-size: .73rem; }
.nx-round-play { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--nx-line2); display: grid; place-items: center; }
.nx-round-play svg { width: 13px; height: 13px; }
.nx-empty-card { padding: 18px; border: 1px dashed var(--nx-line2); border-radius: 12px; text-align: center; color: var(--nx-muted); font-size: .79rem; }
.nx-empty-card svg { width: 22px; height: 22px; color: var(--nx-sand); }
.nx-empty-card b { display: block; color: var(--nx-text); margin: 8px 0 4px; font-size: .86rem; }
.nx-empty-card p { margin: 0; line-height: 1.45; }
.nx-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 1px dashed var(--nx-line2); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .15s; }
.nx-drop:hover { border-color: var(--nx-sand2); }
.nx-drop svg { color: var(--nx-sand); }
.nx-drop b { font-size: .86rem; }
.nx-drop small { color: var(--nx-muted); font-size: .73rem; word-break: break-all; }
.nx-or { text-align: center; color: var(--nx-dim); font-size: .75rem; margin: 10px 0; }
.nx-area { width: 100%; box-sizing: border-box; min-height: 170px; padding: 10px; border: 1px solid var(--nx-line2); border-radius: 10px; background: var(--nx-card); color: var(--nx-text); font: inherit; font-size: .84rem; resize: vertical; }
.nx-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.nx-pills button { padding: 5px 11px !important; border-radius: 99px; border: 1px solid var(--nx-line2) !important; font-size: .75rem; color: var(--nx-muted); }
.nx-pills button:hover { color: var(--nx-text); }
.nx-pills button.on { background: var(--nx-sand) !important; border-color: var(--nx-sand) !important; color: var(--nx-ink); font-weight: 700; }
.nx-seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border: 1px solid var(--nx-line); border-radius: 10px; margin-bottom: 12px; }
.nx-seg2 button { padding: 7px !important; border-radius: 7px; font-size: .8rem; color: var(--nx-muted); }
.nx-seg2 button.on { background: rgba(217, 191, 134, .12) !important; color: var(--nx-sand); box-shadow: inset 0 0 0 1px rgba(217, 191, 134, .4); }
.nx-ph-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.nx-ph-row .nx-ph { margin: 0; }
.nx-ph-row .nx-plead2 { margin: 2px 0 0; }
.nx-sub-t { display: block; font-size: .88rem; }
.nx-count-pill { padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); font-size: .7rem; color: var(--nx-muted); white-space: nowrap; }
.nx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-ancard { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 0 0 8px !important; border: 1px solid var(--nx-line) !important; border-radius: 10px; overflow: hidden; background: var(--nx-card) !important; transition: border-color .15s; }
.nx-ancard:hover { border-color: var(--nx-sand2) !important; }
.nx-ancard b { font-size: .75rem; padding: 0 8px; line-height: 1.25; }
.nx-ancard small { font-size: .65rem; color: var(--nx-sand); padding: 0 8px; }
.nx-anprev { display: block; height: 64px; margin-bottom: 6px; position: relative; background: #e9e4d6; }
.nx-anprev i { position: absolute; left: 12%; height: 5px; border-radius: 2px; background: rgba(0, 0, 0, .55); }
.nx-anprev i:nth-child(1) { top: 24%; width: 60%; }
.nx-anprev i:nth-child(2) { top: 46%; width: 42%; }
.nx-anprev i:nth-child(3) { top: 68%; width: 28%; background: var(--nx-sand2); }
.an-front { background: linear-gradient(160deg, #a9b26a, #5c6a33) !important; }
.an-front i:nth-child(1) { height: 3px; background: #a3492f; transform: rotate(-10deg); }
.an-number { background: #1a1f13 !important; }
.an-number i { background: rgba(217, 191, 134, .8); }
.an-number i:nth-child(1) { height: 14px; top: 22%; width: 50%; }
.an-timeline { background: #1d2015 !important; }
.an-timeline i:nth-child(1) { top: 48%; width: 76%; height: 2px; background: var(--nx-sand); }
.an-timeline i:nth-child(2), .an-timeline i:nth-child(3) { width: 9px; height: 9px; border-radius: 50%; top: calc(48% - 4px); background: var(--nx-sand); }
.an-timeline i:nth-child(2) { left: 26%; }
.an-timeline i:nth-child(3) { left: 62%; }
.an-pie { background: conic-gradient(#d9bf86 0 40%, #7d8b4a 0 70%, #a3492f 0 90%, #c9c2a8 0) center / 46px 46px no-repeat, #f2efe6 !important; border-radius: 0; }
.an-pie i { display: none; }
.an-forces { background: #2a2f22 !important; }
.an-forces i { background: var(--nx-sand); }
.an-forces i:nth-child(2) { background: #a3492f; width: 54%; }
.an-quote { background: #0c0c0e !important; }
.an-quote i { background: rgba(255, 255, 255, .7); }
.an-idcard { background: #d6c39b !important; }
.an-exhibit { background: #111 !important; }
.an-exhibit i { background: #c2553a; }
.nx-trcard { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px !important; border: 1px solid var(--nx-line) !important; border-radius: 10px; background: var(--nx-card) !important; transition: border-color .15s; }
.nx-trcard:hover { border-color: var(--nx-line2) !important; }
.nx-trcard.sel { border-color: var(--nx-sand) !important; box-shadow: inset 0 0 0 1px var(--nx-sand); }
.nx-trcard svg { color: var(--nx-sand); }
.nx-trcard b { font-size: .82rem; }
.nx-trcard small { font-size: .7rem; color: var(--nx-muted); line-height: 1.4; }
.nx-storage { padding: 12px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-card); margin-bottom: 12px; }
.nx-st-row { display: flex; gap: 6px; align-items: center; font-size: .79rem; }
.nx-plan { padding: 2px 8px; border-radius: 99px; background: rgba(125, 139, 74, .3); color: #cfd6a6; font-size: .67rem; }
.nx-meter { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); margin: 10px 0 6px; overflow: hidden; }
.nx-meter i { display: block; height: 100%; background: var(--nx-sand2); }
.nx-storage small { color: var(--nx-muted); font-size: .73rem; }
.nx-file { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--nx-line); border-radius: 10px; text-align: center; }
.nx-file svg { width: 26px; height: 26px; color: var(--nx-sand); }
.nx-file b { font-size: .72rem; word-break: break-all; }
.nx-file small { font-size: .67rem; color: var(--nx-muted); }
.nx-hist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nx-hist button, .nx-hist li.first { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 9px 10px !important; border-radius: 9px; border: 1px solid var(--nx-line) !important; font-size: .79rem; box-sizing: border-box; }
.nx-hist button:hover { border-color: var(--nx-sand2) !important; }
.nx-hist li.first { color: var(--nx-muted); }
.nx-back-link { display: flex; align-items: center; gap: 6px; color: var(--nx-muted); font-size: .8rem; padding: 4px 0 !important; margin-bottom: 8px; }
.nx-back-link:hover { color: var(--nx-text); }
.nx-box { padding: 12px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-card); margin-bottom: 10px; }
.nx-pager { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 12px; padding: 6px; border: 1px solid var(--nx-line2); border-radius: 10px; background: #0f120c; }
.nx-pager span { text-align: center; }
.nx-pager b { display: block; font-size: .84rem; }
.nx-pager small { color: var(--nx-muted); font-size: .7rem; }
.nx-fld { display: block; margin: 10px 0; }
.nx-fld > span { display: block; font-size: .79rem; margin-bottom: 5px; font-weight: 600; }
.nx-fld input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border: 1px solid var(--nx-line2); border-radius: 8px; background: #0f120c; color: var(--nx-text); font: inherit; font-size: .84rem; }
.nx-fld input:focus { border-color: var(--nx-sand2); outline: none; }
.nx-fld input:disabled { opacity: .45; }
.nx-fld small { display: block; color: var(--nx-muted); font-size: .71rem; margin-top: 5px; line-height: 1.4; }
.nx-fld2 { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; }
.nx-fld2 .nx-fld { margin: 6px 0; }
.nx-swatches { display: flex; gap: 6px; margin-top: 4px; }
.nx-swatches i { width: 28px; height: 28px; border-radius: 7px; }
.nx-clip-prev { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.nx-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .77rem; margin: 0 0 10px; }
.nx-kv dt { color: var(--nx-muted); }
.nx-kv dd { margin: 0; text-align: right; }

/* Les animations dans le lecteur (couleurs selon le thème choisi). */
.th-military { --th-bg: #1a1f13; --th-fg: #ece6cf; --th-hl: #d9bf86; --th-hl-ink: #1a1508; --th-font: var(--font-body); }
.th-archive { --th-bg: #e7d8b6; --th-fg: #3e2f18; --th-hl: #8a5a2b; --th-hl-ink: #fff6e3; --th-font: 'Courier New', monospace; }
.th-trial { --th-bg: #0c0c0e; --th-fg: #d8d4cc; --th-hl: #c2553a; --th-hl-ink: #fff; --th-font: Georgia, serif; }
.th-modern { --th-bg: #12171c; --th-fg: #e6ebee; --th-hl: #9fc3d6; --th-hl-ink: #0c1216; --th-font: var(--font-head); }
.th-minimal { --th-bg: #f3f1ec; --th-fg: #2a2a2a; --th-hl: #2a2a2a; --th-hl-ink: #fff; --th-font: var(--font-body); }
.nx-av-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--th-bg); color: var(--th-fg); padding: 6%; box-sizing: border-box; text-align: center; animation: nx-in .45s ease; }
.nx-big-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 4.6vw, 3.4rem); color: var(--th-hl); letter-spacing: -.02em; }
.nx-big-lbl { font-size: clamp(.65rem, 1.25vw, .95rem); opacity: .85; max-width: 80%; font-family: var(--th-font); }
.nx-tline { display: flex; width: 78%; justify-content: space-between; position: relative; margin-bottom: 8px; }
.nx-tline::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--th-hl); opacity: .5; }
.nx-tline span { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.nx-tline i { width: 14px; height: 14px; border-radius: 50%; background: var(--th-hl); }
.nx-tline b { font-family: var(--font-head); font-size: clamp(.7rem, 1.4vw, 1.1rem); }
.nx-tline .dim { opacity: .4; }
.nx-map svg { width: 84%; height: auto; max-height: 70%; }
.nx-map .land { fill: rgba(217, 191, 134, .16); }
.th-archive .nx-map .land, .th-minimal .nx-map .land { fill: rgba(0, 0, 0, .1); }
.nx-map .front { fill: none; stroke: #c2553a; stroke-width: 3; stroke-dasharray: 8 6; }
.nx-map .arrow { fill: none; stroke: var(--th-hl); stroke-width: 4; stroke-linecap: round; }
.nx-map .head { fill: var(--th-hl); }
.nx-pie h4 { margin: 0; font-family: var(--font-head); font-size: clamp(.85rem, 2vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em; }
.nx-pie-row { display: flex; align-items: center; gap: 6%; width: 100%; justify-content: center; }
.nx-pie-row svg { width: 36%; max-width: 220px; height: auto; }
.nx-pie-row path { animation: nx-pop .5s both; animation-delay: calc(var(--i) * .12s); transform-origin: 90px 90px; stroke: var(--th-bg); stroke-width: 1.5; }
.nx-pie-row ul { list-style: none; margin: 0; padding: 0; text-align: left; font-size: clamp(.55rem, 1.05vw, .85rem); }
.nx-pie-row li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.nx-pie-row li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.nx-pie-row li b { margin-left: auto; padding-left: 12px; }
.nx-tpl-txt { font-size: clamp(1.1rem, 3.2vw, 2.6rem); max-width: 90%; line-height: 1.15; }

/* ---------- Branchement au serveur (ajouts) ---------- */
/* Encadrés d'alerte : erreur (clé, licence…) et « bientôt » (choix gardé, pas encore utilisé par le moteur). */
.nx-alert { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.45; text-align: left; }
.nx-alert svg { margin-top: 2px; }
.nx-alert a { color: var(--nx-sand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nx-alert a:hover { text-decoration: underline; }
.nx-alert.err { background: rgba(194, 85, 58, .12); border: 1px solid rgba(194, 85, 58, .4); color: #f0c4b6; }
.nx-alert.err svg { color: #e48a73; }
.nx-alert.soon { background: rgba(217, 191, 134, .07); border: 1px dashed var(--nx-line2); color: var(--nx-muted); margin: -8px 0 22px; }
.nx-alert.soon svg { color: var(--nx-sand); }
.nx-home .nx-alert { max-width: 740px; margin-left: auto; margin-right: auto; }
.nx-provs { margin: 0; }
/* Suivi : arrêt de relecture, échec, boutons. */
.nx-pstop { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 4px; padding: 14px 16px; border-radius: 12px; background: rgba(224, 162, 74, .1); border: 1px solid rgba(224, 162, 74, .4); }
.nx-pstop b { display: flex; gap: 8px; align-items: center; }
.nx-pstop b svg { color: var(--nx-warn); }
.nx-pstop small { display: block; color: var(--nx-muted); font-size: .76rem; margin-top: 4px; }
.nx-pstop.err { background: rgba(194, 85, 58, .1); border-color: rgba(194, 85, 58, .45); }
.nx-pstop.err b svg { color: #e48a73; }
.nx-pbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-ps.wait { opacity: 1; border-color: rgba(224, 162, 74, .5); }
.nx-ps.wait .nx-dot { border-color: var(--nx-warn); color: transparent; animation: nx-blink 1.4s infinite; }
.nx-ps.wait small { color: var(--nx-warn); }
.nx-pdot.still { animation: none; }
.nx-progress .nx-empty a { color: var(--nx-sand); }
/* Éditeur : vraie vidéo, calque d'aperçu, messages, crédits. */
.nx-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; cursor: pointer; }
.nx-overlay { position: absolute; inset: 0; pointer-events: none; }
.nx-overlay:empty { display: none; }
.nx-frame-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #11140e; border: 1px dashed var(--nx-line2); color: var(--nx-muted); text-align: center; padding: 16px; box-sizing: border-box; }
.nx-frame-msg p { margin: 0; }
.nx-credits { margin: 0 0 6px; padding: 10px; max-height: 180px; overflow: auto; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-card); color: var(--nx-text); font-family: var(--font-mono); font-size: .72rem; line-height: 1.5; white-space: pre-wrap; }
.nx-tl { position: relative; }
.nx-tl-badge { position: absolute; top: 3px; right: 10px; padding: 1px 8px; border-radius: 99px; border: 1px dashed var(--nx-line2); background: #0c0f0a; color: var(--nx-dim); font-size: .62rem; z-index: 6; pointer-events: none; }

/* ---------- Animations ---------- */
@keyframes nx-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }
@keyframes nx-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes nx-hl { 0%, 4% { background-size: 0 100%; color: inherit; } 14%, 80% { background-size: 100% 100%; color: var(--th-hl-ink); } 90%, 100% { background-size: 0 100%; color: inherit; } }
@keyframes nx-run { from { width: 0; } to { width: 100%; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-blink { 50% { opacity: .35; } }
@keyframes nx-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nx-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-up { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes nx-slide { from { transform: translateX(-100%); } to { transform: none; } }
.nx-dd-menu { animation-name: nx-in; }

/* ---------- Petits écrans ---------- */
@media (max-width: 1100px) {
  .nx-ed { grid-template-columns: 70px 260px minmax(0, 1fr) 0; }
  .nx-ed.fold { grid-template-columns: 70px 0 minmax(0, 1fr) 0; }
  .nx-right { display: none; }
}
@media (max-width: 900px) {
  .nx-split, .nx-s4-top { grid-template-columns: 1fr; }
  .nx-player { position: static; }
  .nx-thumbs { grid-template-columns: 1fr 1fr; }
  .nx-wiz { padding: 20px; }
  .nx-voice { flex-wrap: wrap; }
  .nx-vact { width: 100%; justify-content: flex-end; }
  .nx-demo-pill { display: none; }
}
@media (max-width: 600px) {
  .nx-thumbs { grid-template-columns: 1fr; }
  .nx-bggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-home { padding-top: 6vh; }
}
/* Le client a demandé « moins d'animations » : on coupe les mouvements. */
@media (prefers-reduced-motion: reduce) {
  .nx *, .nx-toast { animation: none !important; transition: none !important; }
}

/* ===== Tableau de bord (lot 1 de la migration) ===== */
.nx-side-quota { margin-top: 18px; padding: 14px; border: 1px solid var(--nx-line); border-radius: 12px; font-size: .82rem; color: var(--nx-muted); }
.nx-side-quota b { display: block; color: var(--nx-text); margin-bottom: 8px; }
.nx-meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 8px; }
.nx-meter i { display: block; height: 100%; background: var(--nx-sand-grad); }
.nx-dash { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 34px 24px 60px; }
.nx-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.nx-dash-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.nx-dash-head h1 em { font-style: normal; color: var(--nx-sand); }
.nx-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 34px; }
.nx-stat { padding: 18px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nx-stat > span { display: block; color: var(--nx-muted); font-size: .85rem; margin-bottom: 10px; }
.nx-stat b { font-size: 1.6rem; font-weight: 700; }
.nx-stat b small { font-size: .95rem; color: var(--nx-muted); font-weight: 500; }
.nx-dash-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.nx-dash-sub h2 { margin: 0; font-size: 1.25rem; }
.nx-dash-sub a { color: var(--nx-muted); text-decoration: none; font-size: .9rem; }
.nx-dash-sub a:hover { color: var(--nx-sand); }
.nx-vlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nx-line); border-radius: 14px; overflow: hidden; }
.nx-vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--nx-line); background: rgba(255, 255, 255, .02); }
.nx-vrow:first-child { border-top: 0; }
.nx-vmain { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nx-vmain b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-vmeta { color: var(--nx-muted); font-size: .82rem; }
.nx-verr { color: #e48a73; font-size: .8rem; }
.nx-vacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.nx-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.nx-pill small { opacity: .8; }
.nx-pill.ok { background: rgba(125, 139, 74, .22); color: #c4d08a; border-color: rgba(125, 139, 74, .45); }
.nx-pill.run { background: rgba(255, 255, 255, .05); color: var(--nx-muted); border-color: var(--nx-line2); }
.nx-pill.you { background: rgba(217, 191, 134, .16); color: var(--nx-sand); border-color: rgba(217, 191, 134, .45); }
.nx-pill.err { background: rgba(194, 85, 58, .16); color: #e48a73; border-color: rgba(194, 85, 58, .4); }
.nx-vempty { padding: 34px; text-align: center; border: 1px dashed var(--nx-line2); border-radius: 14px; color: var(--nx-muted); }
@media (max-width: 860px) {
  .nx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-vrow { grid-template-columns: 1fr; }
  .nx-vacts { justify-content: flex-start; }
}

/* ===== Créer une vidéo : options reprises de l'ancienne page (lot 2 de la migration) ===== */
.nx-seg button { white-space: nowrap; }
.nx-opts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--nx-line); }
.nx-opt-l { color: var(--nx-muted); font-size: .82rem; }
.nx-opt-hint { margin: 6px 16px 10px; color: var(--nx-muted); font-size: .8rem; line-height: 1.45; }
.nx-cfg .nx-opt-hint { margin: 10px 0; }
.nx-approved { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 16px 12px; padding: 10px 14px; border-radius: 10px; background: rgba(125, 139, 74, .16); border: 1px solid rgba(125, 139, 74, .4); color: #c4d08a; font-size: .86rem; }
.nx-approved svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.nx-approved button { color: var(--nx-sand); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; cursor: pointer; }
.nx-audio { padding: 14px 16px; }
.nx-audio-file { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--nx-line2); border-radius: 12px; }
.nx-audio-file > svg { width: 22px; height: 22px; fill: none; stroke: var(--nx-sand); stroke-width: 2; }
.nx-audio-file span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nx-audio-file small { color: var(--nx-muted); }
.nx-audio-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--nx-muted); font-size: .8rem; line-height: 1.4; }
.nx-audio-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.nx-pmodal { max-width: 760px; }
.nx-pm-text { width: 100%; min-height: 320px; margin-top: 12px; }
.nx-rate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--nx-line); border-radius: 12px; color: var(--nx-muted); font-size: .9rem; }
.nx-rate b { color: var(--nx-sand); }
.nx-rate input { flex: 1; min-width: 180px; }
.nx-cfg { margin: 0 0 18px; padding: 18px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nx-cfg-t { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; color: var(--nx-sand); }
.nx-cfg-t svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nx-cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.nx-cfg .nx-fld { display: flex; flex-direction: column; gap: 8px; }
.nx-cfg .nx-fld > span { color: var(--nx-muted); font-size: .85rem; }
.nx-cfg .nx-fld small { color: var(--nx-muted); font-size: .78rem; }
.nx-cfg .nx-fld input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nx-line2); background: rgba(0, 0, 0, .25); color: var(--nx-text); }
.nx-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: var(--nx-muted); }
.nx-files button { margin-left: 8px; color: #e48a73; text-decoration: underline; cursor: pointer; }
.nx-sum { margin: 16px 0 0; padding: 16px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nx-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .86rem; }
.nx-sum dt { color: var(--nx-muted); }
.nx-sum dd { margin: 0; text-align: right; font-weight: 600; }
.nx-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nx-line); }
.nx-sum-total b { font-size: 1.3rem; color: var(--nx-sand); }
.nx-sum > small { display: block; margin: 6px 0 10px; color: var(--nx-muted); font-size: .76rem; }
@media (max-width: 760px) { .nx-cfg-grid { grid-template-columns: 1fr; } }

/* ===== Mes vidéos (lot 3 de la migration) ===== */
.nx-vtools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nx-vtools .nx-search { width: 260px; margin: 0; }

/* ===== Studio dans le nouvel espace (lot 4 de la migration) : même contenu que l'ancien, cadre du nouvel espace ===== */
.nx-stu { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 30px 24px 70px; }
.nx-stu .app-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.nx-stu .panel { background: rgba(255, 255, 255, .03); border-color: var(--nx-line2); }

/* ===== Abonnement (lot 6 de la migration) ===== */
.nx-alert.ok { background: rgba(125, 139, 74, .16); border: 1px solid rgba(125, 139, 74, .45); color: #c4d08a; }
.nx-bill { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nx-card { padding: 20px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.nx-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.nx-card p { margin: 0 0 12px; color: var(--nx-muted); font-size: .9rem; line-height: 1.5; }
.nx-card small { display: block; margin-top: 12px; color: var(--nx-muted); font-size: .8rem; line-height: 1.45; }
.nx-dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0 0 14px; font-size: .9rem; }
.nx-dl dt { color: var(--nx-muted); }
.nx-dl dd { margin: 0; text-align: right; }
.nx-dl code { font-family: var(--font-mono, monospace); }
.nx-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nx-input { flex: 1; min-width: 200px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--nx-line2); background: rgba(0, 0, 0, .25); color: var(--nx-text); font: inherit; }
.nx-input:disabled { opacity: .5; }
.nx-meter.big { height: 10px; margin-top: 6px; }
.nx-hist { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.nx-hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--nx-line); }
.nx-hist li:first-child { border-top: 0; }
.nx-hist li span:last-child { color: var(--nx-muted); }
.nx-bnote { margin: 18px 0; color: var(--nx-muted); font-size: .85rem; }
.nx-danger-zone { margin-top: 10px; border-color: rgba(194, 85, 58, .35); }
@media (max-width: 760px) { .nx-bill { grid-template-columns: 1fr; } }

/* Page Suivi : journal de la fabrication (étape 1 du Studio dans le nouvel espace) */
.nx-plog { margin-top: 18px; }
.nx-plog-t { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.nx-plog ul { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: 320px; overflow-y: auto; }
.nx-plog li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--nx-line); font-size: .9rem; }
.nx-plog li:first-child { border-top: 0; }
.nx-plog time { color: var(--nx-muted); font-variant-numeric: tabular-nums; }
/* « En ce moment » dans l'espace client : couleurs sable de l'espace (la mise en page vient de style.css). */
.nx-plog .st-now { border-color: var(--nx-sand); }
.nx-plog .st-now-dot { background: var(--nx-sand); box-shadow: 0 0 10px var(--nx-sand); animation: nx-blink 1.4s infinite; }
.nx-plog .st-now small { color: var(--nx-muted); }

/* Éditeur — arrêt ① Script (étape 2 du Studio dans le nouvel espace) */
.nx-ed.review { grid-template-rows: 58px minmax(0, 1fr) 0 112px; }
.nx-ed.review .nx-ctrlbar { display: none; }
.nx-ed.review .nx-stage-wrap { display: block; overflow-y: auto; padding: 22px 28px 40px; }
.nx-ed.review .nx-rail button:disabled { opacity: .35; cursor: not-allowed; }
.nx-script { position: relative; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.nx-sc { padding: 14px 16px 16px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(14, 16, 11, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.nx-sc:focus-within { border-color: rgba(217, 191, 134, .55); }
.nx-sc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.nx-sc-head b { color: var(--nx-sand); }
.nx-sc-head small { color: var(--nx-muted); margin-left: 4px; }
.nx-sc-head .nx-ico-btn { width: 32px; height: 32px; font-weight: 700; }
.nx-sc-head .nx-btn svg { width: 15px; height: 15px; }
.nx-sc-del:hover:not(:disabled) { color: #e48a73 !important; }
.nx-sc-text { min-height: 96px; resize: vertical; line-height: 1.55; font-size: .95rem; }
.nx-sc-rw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.nx-sc-add { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; color: var(--nx-muted); font-size: .8rem; opacity: .55; transition: opacity .15s, color .15s, background .15s; }
.nx-sc-add:hover { opacity: 1; color: var(--nx-sand); background: rgba(217, 191, 134, .08); }
.nx-sc-add svg { width: 14px; height: 14px; }
.nx-rbox { display: flex; flex-direction: column; gap: 4px; }
.nx-rbox b.over { color: #e48a73; }
.nx-rbox small { color: var(--nx-muted); }
.nx-runtil { margin-top: 4px; line-height: 1.4; }
.nx-panel .nx-wide + .nx-wide { margin-top: 8px; }
.nx-rsrc { margin-top: 16px; font-size: .85rem; }
.nx-rsrc summary { cursor: pointer; font-weight: 600; }
.nx-rsrc ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.nx-rsrc a { color: var(--nx-sand); }
.nx-rsrc li small { display: block; color: var(--nx-muted); }
.nx-rsteps { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.nx-rsteps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--nx-line); border-radius: 12px; color: var(--nx-muted); }
.nx-rsteps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--nx-line2); font-size: .8rem; }
.nx-rsteps li.on { color: var(--nx-text); border-color: rgba(217, 191, 134, .5); background: rgba(217, 191, 134, .08); }
.nx-rsteps li.on span { background: var(--nx-sand); color: #1a1508; border-color: transparent; font-weight: 700; }
.nx-rstrip { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; box-sizing: border-box; grid-column: 1 / -1; }
.nx-rstrip-t { font-size: .75rem; color: var(--nx-muted); text-transform: uppercase; letter-spacing: .08em; }
.nx-rstrip-row { flex: 1; display: flex; gap: 4px; min-height: 0; }
.nx-rstrip-sc { flex-basis: 0; min-width: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; overflow: hidden; border-radius: 8px; border: 1px solid rgba(217, 191, 134, .25); background: linear-gradient(180deg, rgba(125, 139, 74, .35), rgba(92, 106, 51, .18)); text-align: left; color: var(--nx-text); }
.nx-rstrip-sc:hover { border-color: var(--nx-sand); }
.nx-rstrip-sc b { font-size: .8rem; color: var(--nx-sand); }
.nx-rstrip-sc small { font-size: .7rem; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Éditeur — arrêt ② Images (étape 3 du Studio dans le nouvel espace) */
.nx-g-row { display: flex; gap: 8px; margin: 8px 0; align-items: center; flex-wrap: wrap; }
.nx-g-row .nx-select { flex: 1; min-width: 0; }
.nx-g-row label.nx-btn { cursor: pointer; }
.nx-g-row .nx-btn svg { width: 15px; height: 15px; }
.nx-g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.nx-gt { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--nx-line2); border-radius: 10px; background: var(--nx-card); color: var(--nx-text); text-align: left; transition: border-color .15s, transform .15s; }
.nx-gt:hover:not(:disabled) { border-color: var(--nx-sand); transform: translateY(-1px); }
.nx-gt:disabled { opacity: .45; cursor: not-allowed; }
.nx-gt.sel { border-color: var(--nx-sand); box-shadow: 0 0 0 2px rgba(217, 191, 134, .35); }
.nx-gt-img { display: block; aspect-ratio: 16 / 9; background: #070806; overflow: hidden; }
.nx-gt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-gt-file { display: grid; place-items: center; height: 100%; color: var(--nx-muted); }
.nx-gt-file svg { width: 28px; height: 28px; }
.nx-gt-meta { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 8px; min-width: 0; }
.nx-gt-meta b { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-gt-meta small { font-size: .7rem; color: var(--nx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-gt-auto { color: var(--nx-sand); }
.nx-gt-badge { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(10, 12, 8, .85); color: var(--nx-sand); font-size: .72rem; font-weight: 700; }
.nx-gt-n { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--nx-sand); color: #1a1508; font-size: .78rem; font-weight: 800; }
.nx-gt.big .nx-gt-meta b { font-size: .85rem; }
.nx-gt.solo { margin-bottom: 10px; cursor: default; }
.nx-gboard { max-width: 980px; margin: 0 auto; }
.nx-gb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nx-gb-head b { font-size: 1.1rem; color: var(--nx-sand); }
.nx-gb-text { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--nx-sand); border-radius: 0 10px 10px 0; background: rgba(217, 191, 134, .06); line-height: 1.55; }
.nx-gb-shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nx-gb-moment { display: block; margin-top: 4px; color: var(--nx-muted); font-size: .78rem; font-style: italic; }
.nx-gb-attrib { margin: 14px 0 0; color: var(--nx-muted); font-size: .78rem; }
.nx-rsteps li.done { color: var(--nx-text); }
.nx-rsteps li.done span { background: rgba(125, 139, 74, .4); border-color: transparent; color: #dfe7b5; }
.nx-gstrip-sc { flex-basis: 0; min-width: 42px; display: flex; flex-direction: column; gap: 3px; padding: 5px 6px; overflow: hidden; border-radius: 8px; border: 1px solid rgba(217, 191, 134, .22); background: rgba(125, 139, 74, .18); color: var(--nx-text); text-align: left; }
.nx-gstrip-sc:hover, .nx-gstrip-sc.on { border-color: var(--nx-sand); }
.nx-gstrip-sc.on { background: rgba(217, 191, 134, .16); }
.nx-gstrip-sc.short small { color: #e4b073; }
.nx-gstrip-sc b { font-size: .75rem; color: var(--nx-sand); }
.nx-gstrip-sc small { font-size: .68rem; color: var(--nx-muted); }
.nx-gstrip-th { display: flex; gap: 2px; min-height: 0; flex: 1; }
.nx-gstrip-th i { flex: 1; min-width: 0; border-radius: 3px; overflow: hidden; background: #070806; }
.nx-gstrip-th img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Éditeur — arrêt ③ Style (étape 4 du Studio dans le nouvel espace) */
.nx-yseg { flex-wrap: wrap; }
.nx-yseg button { flex: 1 1 auto; }
.nx-yswatch { display: flex; gap: 8px; }
.nx-yswatch button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--nx-line2); display: grid; place-items: center; }
.nx-yswatch button.on { border-color: var(--nx-sand); box-shadow: 0 0 0 2px rgba(217, 191, 134, .35); }
.nx-yswatch i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .4); }
.nx-panel .nx-select { width: 100%; }
.nx-panel .nx-alert { margin: 10px 0; }
.nx-ystage { max-width: 900px; margin: 0 auto; }
.nx-yframe { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, rgba(125, 139, 74, .45), transparent 60%), linear-gradient(160deg, #1d2214, #0b0d08); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.nx-yframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-ysub { position: absolute; left: 6%; right: 6%; text-align: center; line-height: 1.25; text-shadow: 0 2px 4px #000, 0 0 2px #000, 0 0 1px #000; font-family: Georgia, 'Times New Roman', serif; }
.nx-ysub.font-bold { font-family: 'Arial Black', Impact, sans-serif; font-weight: 900; letter-spacing: .01em; }
.nx-ysub.size-s { font-size: clamp(.9rem, 1.9vw, 1.2rem); }
.nx-ysub.size-m { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
.nx-ysub.size-l { font-size: clamp(1.35rem, 3.2vw, 2.1rem); }
.nx-ysub.pos-top { top: 7%; }
.nx-ysub.pos-center { top: 50%; transform: translateY(-50%); }
.nx-ysub.pos-low { bottom: 18%; }
.nx-ysub.pos-bottom { bottom: 6%; }
.nx-ysub .hl { color: #1a1508; background: var(--nx-sand); padding: 0 .2em; border-radius: 4px; text-shadow: none; }
.nx-ybadges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.nx-ybadges span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: rgba(10, 12, 8, .78); color: var(--nx-sand); font-size: .72rem; font-weight: 600; }
.nx-ybadges svg { width: 13px; height: 13px; }
.nx-ynote { text-align: center; margin-top: 10px; }
.nx-rstrip-sc.on { border-color: var(--nx-sand); background: rgba(217, 191, 134, .16); }
.nx-ystage, .nx-yframe { width: 100%; }
.nx-yseg:has(button[data-k="bgm"]) { grid-auto-flow: row; }
.nx-yseg:has(button[data-k="bgm"]) button { text-align: left; padding: 8px 12px !important; }

/* Éditeur — salle de montage en direct, remontage, Premiere (étape 5 du Studio dans le nouvel espace) */
.nx-ed.live { grid-template-rows: 58px minmax(0, 1fr) 0 200px; }
.nx-mt-frame img { transition: transform 1.2s ease; }
.nx-mt-frame img.zoomed.dynamic { transform: scale(1.12); }
.nx-mt-frame img.zoomed.punch { transform: scale(1.22); }
.nx-mt-tc, .nx-mt-badge, .nx-mt-stage { position: absolute; padding: 3px 9px; border-radius: 99px; background: rgba(10, 12, 8, .8); font-size: .74rem; font-weight: 600; }
.nx-mt-tc { left: 10px; bottom: 10px; color: var(--nx-text); font-variant-numeric: tabular-nums; }
.nx-mt-badge { right: 10px; bottom: 10px; color: var(--nx-sand); }
.nx-mt-stage { left: 10px; top: 10px; color: var(--nx-sand); }
.nx-mt-stage.ok { color: #c4d08a; }
.nx-mt-stage.err { color: #e48a73; }
.nx-mt-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--nx-muted); }
.nx-mt-tl { grid-column: 1 / -1; display: grid; grid-template-columns: 84px minmax(0, 1fr); height: 100%; padding: 6px 14px 10px 0; box-sizing: border-box; overflow: hidden; }
.nx-mt-names { display: grid; grid-auto-rows: 1fr; grid-template-rows: 20px; padding-left: 14px; }
.nx-mt-names b { display: flex; align-items: center; font-size: .72rem; color: var(--nx-muted); font-weight: 600; }
.nx-mt-area { position: relative; display: grid; grid-auto-rows: 1fr; grid-template-rows: 20px; cursor: pointer; }
.nx-mt-ruler { position: relative; border-bottom: 1px solid var(--nx-line); }
.nx-mt-ruler span { position: absolute; top: 2px; transform: translateX(-50%); font-size: .66rem; color: var(--nx-muted); font-variant-numeric: tabular-nums; }
.nx-mt-lane { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.nx-mt-lane > i, .nx-mt-lane > span { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.nx-mt-clip { background: #20261a center / cover no-repeat; border: 1px solid rgba(217, 191, 134, .35); }
.nx-mt-zoom { display: grid; place-items: center; font-size: .6rem; font-style: normal; color: #1a1508; background: rgba(217, 191, 134, .75); }
.nx-mt-zoom.punch { background: #e4b073; }
.nx-mt-wave { left: 0; display: block; }
.nx-mt-wave svg { width: 100%; height: 100%; display: block; }
.nx-mt-wave polygon { fill: rgba(196, 208, 138, .75); }
.nx-mt-sub { overflow: hidden; padding: 0 3px; font-size: .62rem; font-style: normal; line-height: 1.9; white-space: nowrap; text-overflow: ellipsis; color: var(--nx-text); background: rgba(125, 139, 74, .35); }
.nx-mt-music { left: 0; right: 0; padding: 0 8px; font-size: .72rem; line-height: 1.9; color: var(--nx-sand); background: rgba(217, 191, 134, .12); }
.nx-mt-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--nx-sand); box-shadow: 0 0 8px rgba(217, 191, 134, .7); pointer-events: none; transition: left .4s ease; }
.nx-mt-head.render { animation: nx-mt-sweep 3s linear infinite; }
@keyframes nx-mt-sweep { from { left: 0; } to { left: 100%; } }
.nx-mt-lane .arrive { animation: nx-mt-in .5s ease; }
@keyframes nx-mt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nx-mt-script { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .85rem; line-height: 1.5; color: var(--nx-muted); }
.nx-plive { margin-top: 12px; display: inline-flex; gap: 8px; }
.nx-right .nx-wide + .nx-plead2, .nx-right .nx-plead2 + .nx-wide { margin-top: 8px; }
.nx-right .nx-wide { margin-top: 8px; }
.nx-mt-wave svg polygon { fill: rgba(196, 208, 138, .75); stroke: none; }
.nx-tl:has(.nx-mt-tl) .nx-tl-badge { left: 10px; right: auto; top: 4px; }
/* Éditeur libre — frise du projet de montage (étape 1, 2026-11-01). */
.nx-pj-item { position: absolute; top: 3px; bottom: 3px; min-width: 2px; padding: 0; margin: 0; overflow: hidden; border-radius: 4px; border: 1px solid rgba(217, 191, 134, .3); font: inherit; color: var(--nx-text); cursor: pointer; text-align: left; box-sizing: border-box; }
.nx-pj-item > span { display: block; overflow: hidden; padding: 0 4px; font-size: .62rem; line-height: 1.9; white-space: nowrap; text-overflow: ellipsis; }
.nx-pj-item.vid { background: #20261a center / cover no-repeat; }
.nx-pj-item.vid > span { display: inline-block; max-width: 100%; margin: 2px; border-radius: 3px; background: rgba(13, 15, 11, .7); }
.nx-pj-item.txt { background: rgba(125, 139, 74, .35); border-color: rgba(125, 139, 74, .5); }
.nx-pj-item.aud { background: rgba(196, 208, 138, .08); border-color: rgba(196, 208, 138, .3); }
.nx-pj-item.aud svg { width: 100%; height: 100%; display: block; }
.nx-pj-item.aud polygon { fill: rgba(196, 208, 138, .75); stroke: none; }
.nx-pj-item.mus { background: rgba(217, 191, 134, .12); color: var(--nx-sand); }
.nx-pj-item:hover { border-color: rgba(217, 191, 134, .8); }
.nx-pj-item.sel { border: 2px solid var(--nx-sand); box-shadow: 0 0 0 1px rgba(13, 15, 11, .9), 0 0 10px rgba(217, 191, 134, .55); z-index: 2; }
.nx-pj-item:focus-visible { outline: 2px solid var(--nx-sand); outline-offset: 1px; }
.nx-pj-tl .nx-mt-head { transition: none; z-index: 3; }
.nx-pj-badge.saving, .nx-pj-badge.unsaved { color: var(--nx-sand); }
.nx-pj-badge.error, .nx-pj-badge.conflict, .nx-pj-state.error, .nx-pj-state.conflict { color: #e48a73; }
.nx-pj-state.saved { color: #c4d08a; }
.nx-pj-box { margin-top: 12px; }
.nx-pj-box .nx-ph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-pj-thumb { display: block; width: 100%; margin-top: 10px; border-radius: 6px; }
.nx-pj-alert { margin-top: 10px; }
/* Éditeur libre — étape 2 : manier la frise (2026-11-01). */
.nx-pj-scroll { position: relative; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.nx-pj-scroll > .nx-mt-area { height: 100%; min-width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.nx-pj-tl .nx-mt-ruler { cursor: ew-resize; }
.nx-pj-item { cursor: grab; }
.nx-pj-item .nx-pj-h { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; z-index: 1; }
.nx-pj-item .nx-pj-h.l { left: 0; }
.nx-pj-item .nx-pj-h.r { right: 0; }
.nx-pj-item.sel .nx-pj-h { background: rgba(217, 191, 134, .55); }
.nx-pj-item.drag { cursor: grabbing; opacity: .85; z-index: 4; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.nx-pj-tip { position: fixed; z-index: 99; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-variant-numeric: tabular-nums; color: #1a1508; background: var(--nx-sand); pointer-events: none; white-space: nowrap; }
.nx-pj-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.nx-pj-fields input { width: 100%; box-sizing: border-box; }
.nx-pj-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.nx-pj-acts .nx-btn { justify-content: center; gap: 6px; }
.nx-pj-acts .nx-btn svg { width: 14px; height: 14px; }
.nx-pj-keys { margin-top: 14px; font-size: .78rem; color: var(--nx-muted); }
.nx-pj-keys summary { cursor: pointer; color: var(--nx-text); font-weight: 600; }
.nx-pj-keys ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; line-height: 1.45; }

/* Éditeur libre, étape 3 (2026-11-01) : le chutier (médias du projet, import du PC, recherche DVIDS). */
.nx-demo-pill.pj { border-style: solid; border-color: rgba(196, 208, 138, .4); color: var(--nx-text); }
.nx-pj-drop { margin: 10px 0 6px; }
.nx-pj-drop.over { border-color: var(--nx-sand); background: rgba(217, 191, 134, .08); }
.nx-pj-bin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.nx-pj-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-card); cursor: grab; }
.nx-pj-card:hover { border-color: var(--nx-line2); }
.nx-pj-card:active { cursor: grabbing; }
.nx-pj-card > b { font-size: .74rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-pj-card > small { font-size: .66rem; color: var(--nx-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-pj-cthumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 6px; background: #20261a center / cover no-repeat; color: var(--nx-sand); }
.nx-pj-card.k-audio .nx-pj-cthumb { aspect-ratio: 4 / 1; background: rgba(196, 208, 138, .08); }
.nx-pj-cthumb em { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px; background: rgba(13, 15, 11, .75); color: var(--nx-text); font-size: .62rem; font-style: normal; line-height: 1.6; }
.nx-pj-cthumb em:empty { display: none; }
.nx-pj-cacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.nx-pj-cacts .nx-btn-sm { padding: 3px 7px; font-size: .66rem; }
.nx-pj-cacts .nx-btn-sm svg { width: 12px; height: 12px; }
.nx-pj-cacts .nx-ico-btn { width: 24px; height: 24px; margin-left: auto; }
.nx-pj-ups { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.nx-pj-up { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--nx-line); border-radius: 8px; font-size: .72rem; }
.nx-pj-up b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-pj-up small { color: var(--nx-muted); white-space: nowrap; }
.nx-pj-up i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--nx-sand); transition: width .2s; }
.nx-pj-up.err { border-color: rgba(214, 110, 90, .5); }
.nx-pj-up.err small { color: #e39a86; white-space: normal; text-align: right; }
.nx-pj-up.err i { background: rgba(214, 110, 90, .6); }
.nx-pj-lane.drop { background: rgba(217, 191, 134, .1); box-shadow: inset 0 0 0 1px var(--nx-sand); }
.nx-pj-credit { display: flex; gap: 6px; align-items: flex-start; }
.nx-pj-credit svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--nx-sand); }
.nx-pj-hint { color: var(--nx-sand); }

/* Éditeur libre, étape 4 (2026-11-01) : titres, fondus, volume, listes de textes, sons. */
.nx-pj-item.ttl { background: rgba(217, 191, 134, .22); border-color: rgba(217, 191, 134, .55); color: var(--nx-sand); font-weight: 700; }
.nx-pj-item.fd::before, .nx-pj-item.fd::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; }
.nx-pj-item.fd::before { left: 0; width: var(--fi, 0); background: linear-gradient(to right, rgba(0, 0, 0, .7), transparent); }
.nx-pj-item.fd::after { right: 0; width: var(--fo, 0); background: linear-gradient(to left, rgba(0, 0, 0, .7), transparent); }
.nx-pj-vol { position: absolute; right: 3px; top: 2px; z-index: 1; padding: 0 4px; border-radius: 3px; background: rgba(13, 15, 11, .8); color: var(--nx-sand); font-size: .58rem; font-style: normal; line-height: 1.5; pointer-events: none; }
.nx-pj-text textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--nx-line2); border-radius: 8px; background: var(--nx-card); color: var(--nx-text); font: inherit; font-size: .84rem; resize: vertical; }
.nx-pj-volf input[type=range] { width: 100%; accent-color: var(--nx-sand); }
.nx-pj-volf b { color: var(--nx-sand); font-weight: 600; }
.nx-pj-pos { margin: 6px 0 10px; }
.nx-pj-tstyles { display: grid; gap: 8px; margin: 10px 0 16px; }
.nx-pj-tstyle { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px !important; border: 1px solid var(--nx-line) !important; border-radius: 10px; background: var(--nx-card) !important; text-align: left; }
.nx-pj-tstyle:hover { border-color: var(--nx-sand2) !important; }
.nx-pj-tstyle b { font-size: .8rem; }
.nx-pj-tstyle small { grid-column: 2; color: var(--nx-muted); font-size: .7rem; }
.nx-pj-tprev { grid-row: span 2; position: relative; display: flex; aspect-ratio: 16 / 9; border-radius: 6px; background: #20261a; overflow: hidden; }
.nx-pj-tprev i { position: absolute; left: 8%; right: 8%; font-style: normal; font-size: .55rem; font-weight: 800; text-align: center; color: #fff; }
.s-center .nx-pj-tprev i { top: 50%; transform: translateY(-50%); font-size: .7rem; }
.s-top .nx-pj-tprev i { top: 10%; }
.s-lower .nx-pj-tprev i { bottom: 10%; left: 6%; right: 30%; padding: 2px 4px; text-align: left; background: rgba(217, 191, 134, .85); color: #111; }
.nx-pj-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }
.nx-pj-list > button { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px !important; border: 1px solid var(--nx-line) !important; border-radius: 8px; text-align: left; font-size: .76rem; color: var(--nx-text); }
.nx-pj-list > button:hover { border-color: var(--nx-line2) !important; }
.nx-pj-list > button.sel { border-color: var(--nx-sand) !important; background: rgba(217, 191, 134, .08) !important; }
.nx-pj-list time { flex: none; color: var(--nx-sand); font-variant-numeric: tabular-nums; font-size: .7rem; }
.nx-pj-list span { flex: 1; min-width: 0; }
.nx-pj-list em { flex: none; font-style: normal; font-size: .64rem; color: var(--nx-muted); }
.nx-pj-sq { margin: 10px 0 4px; }
.nx-pj-aubtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.nx-pj-arow { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--nx-line); border-radius: 8px; cursor: grab; }
.nx-pj-arow > svg { flex: none; width: 16px; height: 16px; color: var(--nx-sand); }
.nx-pj-arow span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-pj-arow b { font-size: .76rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-pj-arow small { font-size: .66rem; color: var(--nx-muted); }

/* Éditeur libre, étape 5 (2026-11-01) : aperçu et rendu, œil / haut-parleur des pistes. */
.nx-pj-render { margin-bottom: 12px; }
.nx-pj-render > b { display: block; margin-bottom: 8px; }
.nx-pj-prog { position: relative; overflow: hidden; margin: 6px 0 10px; padding: 6px 8px; border: 1px solid var(--nx-line); border-radius: 8px; font-size: .74rem; }
.nx-pj-prog i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--nx-sand); transition: width .4s; }
.nx-pj-views { margin: 6px 0 8px; }
.nx-pj-off { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 4px; padding: 0 !important; border: 0 !important; background: none !important; color: var(--nx-muted); vertical-align: middle; cursor: pointer; }
.nx-pj-off svg { width: 13px; height: 13px; }
.nx-pj-off:hover { color: var(--nx-text); }
.nx-pj-off.on { color: #e39a86; }
.nx-mt-names b.off { opacity: .55; text-decoration: line-through; }
.nx-pj-lane.off { opacity: .35; }

/* Lot G2 (2026-11-02) : idées d'actualité géopolitique, sous la zone de création. */
.nx-geo { width: 100%; max-width: 860px; margin: 18px auto 0; padding: 16px; border-radius: 14px; border: 1px solid var(--nx-line); background: rgba(255, 255, 255, .03); text-align: left; }
.nx-geo-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nx-geo-head h3 { margin: 0 0 2px; font-size: 1rem; }
.nx-geo-head p, .nx-geo-hint { margin: 0; font-size: .82rem; opacity: .75; }
.nx-geo-hint { margin-top: 10px; }
.nx-geo-err { margin: 10px 0 0; font-size: .86rem; color: #e8a27c; }
.nx-geo-card { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--nx-line); }
.nx-geo-card.on { border-color: rgba(125, 139, 74, .7); background: rgba(125, 139, 74, .12); }
.nx-geo-card p { margin: 6px 0 0; font-size: .88rem; line-height: 1.45; }
.nx-geo-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.nx-geo-score { color: var(--nx-sand); }
.nx-geo-meta { margin-left: auto; font-size: .78rem; opacity: .7; }
.nx-geo-claims { opacity: .75; font-style: italic; }
.nx-geo-titles { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.nx-geo-titles button { text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--nx-line); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font-size: .88rem; }
.nx-geo-titles button:hover { border-color: var(--nx-sand); color: var(--nx-sand); }

/* Copier le style d'une vidéo (scanner, 2026-11-06). */
.nx-desc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 20px 10px; }
.nx-desc-foot .nx-count-script { margin-left: auto; padding: 0; }
.nx-cs-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--nx-line2); background: rgba(125, 139, 74, .16); color: #c4d08a; font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap; }
.nx-cs-btn:hover { border-color: var(--nx-sand); color: var(--nx-sand); }
.nx-cs-btn svg { width: 15px; height: 15px; }
.nx-cs-row { display: flex; justify-content: flex-end; margin: 0 16px 10px; }
.nx-cs-btn em { font-style: normal; color: var(--nx-sand); }
.nx-cs-btn em:empty { display: none; }
.nx-cs-btn em::before { content: '· '; }
/* Pas d'animation d'ouverture sur cette fenêtre : elle ne doit jamais bouger pendant un scan. */
.nx-cs { text-align: left; animation: none; }
.nx-cs-run { margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px solid rgba(125, 139, 74, .5); background: rgba(125, 139, 74, .08); }
.nx-cs-ready { border-color: rgba(157, 176, 90, .8); }
.nx-cs-ready-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nx-cs-run-top { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.nx-cs-run-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-cs-run-top span { color: var(--nx-sand); font-variant-numeric: tabular-nums; font-weight: 600; }
.nx-cs-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nx-cs-bar i { display: block; height: 100%; border-radius: 99px; background: var(--nx-sand); transition: width .6s ease; }
.nx-cs-meta { margin: 8px 0 0; font-size: .78rem; color: var(--nx-muted); font-variant-numeric: tabular-nums; }
.nx-cs-wait { margin: 6px 0 0; font-size: .8rem; color: #e8a27c; }
.nx-cs-steps { list-style: none; width: 100%; margin: 10px 0 0; padding: 0; font-size: .82rem; }
.nx-cs-steps li { display: grid; grid-template-columns: 16px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 26px; }
.nx-cs-steps li i { width: 10px; height: 10px; margin-left: 3px; border-radius: 50%; border: 2px solid var(--nx-line2); box-sizing: border-box; }
.nx-cs-steps li.ok i { background: #9db05a; border-color: #9db05a; }
.nx-cs-steps li.bad i { background: #e8a27c; border-color: #e8a27c; }
.nx-cs-steps li.now i { width: 12px; height: 12px; margin-left: 2px; border-color: var(--nx-sand); border-top-color: transparent; animation: nx-cs-turn .9s linear infinite; }
.nx-cs-steps li b { font-weight: 500; white-space: nowrap; }
.nx-cs-steps li.todo b { color: var(--nx-dim); font-weight: 400; }
.nx-cs-steps li.now b { color: var(--nx-sand); }
.nx-cs-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nx-muted); font-size: .78rem; }
.nx-cs-steps li small { color: var(--nx-dim); font-size: .72rem; font-variant-numeric: tabular-nums; }
@keyframes nx-cs-turn { to { transform: rotate(360deg); } }
.nx-cs h3 { margin: 18px 0 8px; font-size: .95rem; }
.nx-cs-lead, .nx-cs-hint, .nx-cs-cost { margin: 6px 0 0; font-size: .86rem; color: var(--nx-muted); line-height: 1.5; }
.nx-cs-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.nx-cs-form input:not([type=file]) { min-width: 0; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--nx-line2); background: var(--nx-card); color: var(--nx-text); font: inherit; font-size: .88rem; }
.nx-cs-form label { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; cursor: pointer; }
.nx-cs-form label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-cs-card { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--nx-line); }
.nx-cs-card.on { border-color: rgba(125, 139, 74, .7); background: rgba(125, 139, 74, .12); }
.nx-cs-card small { display: block; margin-top: 2px; font-size: .78rem; color: var(--nx-muted); }
.nx-cs-src { margin: 4px 0 0; font-size: .82rem; color: #e8a27c; }
.nx-cs-src.ok { color: #c4d08a; }
.nx-cs-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nx-cs-nums div { padding: 10px; border-radius: 10px; border: 1px solid var(--nx-line); }
.nx-cs-nums b { display: block; font-size: 1.05rem; color: var(--nx-sand); }
.nx-cs-nums span { font-size: .74rem; color: var(--nx-muted); }
.nx-cs-color { display: flex !important; align-items: center; gap: 6px; font-size: .86rem !important; }
.nx-cs-color i { width: 14px; height: 14px; border-radius: 4px; }
.nx-cs-blocks { margin: 0; padding-left: 20px; font-size: .88rem; }
.nx-cs-blocks li { margin-bottom: 8px; }
.nx-cs-blocks span { color: var(--nx-sand); font-size: .8rem; }
.nx-cs-blocks p, .nx-cs-mix { margin: 2px 0 0; font-size: .82rem; color: var(--nx-muted); line-height: 1.45; }
.nx-cs-gaps { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.5; }
.nx-cs-sheet { margin-top: 16px; font-size: .86rem; }
.nx-cs-sheet summary { cursor: pointer; color: var(--nx-sand); }
.nx-cs-sheet pre { max-height: 340px; overflow: auto; white-space: pre-wrap; font: inherit; line-height: 1.5; }
.nx-cs-score { margin: 4px 0 8px; color: var(--nx-muted); }
.nx-cs-score b { font-size: 1.5rem; color: var(--nx-sand); }
.nx-cs-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.nx-cs-table th { text-align: right; font-weight: 500; color: var(--nx-muted); }
.nx-cs-table td { padding: 3px 0; text-align: right; }
.nx-cs-table td:first-child { text-align: left; }
.nx-cs-table tr.off td { color: #e8a27c; }
@media (max-width: 640px) { .nx-cs-steps li span { grid-column: 2 / -1; } .nx-cs-form { grid-template-columns: 1fr; } .nx-cs-nums { grid-template-columns: repeat(2, 1fr); } }

/* File des vidéos (2026-11-10) : message de position et de début estimé sur la page de suivi. */
.nx-pqueue { margin-top: 12px; }

/* ===== Accueil « Donne vie à ta vidéo brute » (lancement 2026-11-10) =====
   Un écran : grand titre, rangée de 3 cartes (Tes vidéos ← dépôt → Ton documentaire), barre de réglages en étiquettes.
   Une seule couleur forte (le sable) ; le kaki dit « prêt ». */
.nx-trh { max-width: 1180px; margin: 0 auto; }
.nx-trh-hero { text-align: center; padding: 5vh 0 0; max-width: 720px; margin: 0 auto 34px; }
.nx-trh-hero .nx-h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); margin-bottom: 12px; }
.nx-trh-hero p { margin: 0; color: var(--nx-muted); font-size: 1.05rem; line-height: 1.5; }
.nx-trh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
/* Les deux cartes de côté. */
.nx-trh-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--nx-line); border-radius: 18px; background: rgba(14, 16, 11, .78); backdrop-filter: blur(12px); }
.nx-trh-card h2 { margin: 0; font-size: 1.1rem; }
.nx-trh-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; color: var(--nx-muted); font-size: .84rem; }
.nx-trh-led { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-dim); flex: none; }
.nx-trh-led.ok { background: #a9bb5c; }
.nx-trh-led.run { background: var(--nx-sand); }
.nx-trh-ph { flex: 1; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--nx-line); font-size: 1.8rem; text-align: center; }
.nx-trh-ph span { font-size: .9rem; color: var(--nx-muted); max-width: 100%; }
.nx-trh-ph.ok { border-color: rgba(125, 139, 74, .55); color: #c4d08a; }
.nx-trh-doc .nx-trh-ph span.tr-name { color: var(--nx-text); font-weight: 600; }
.nx-trh-ph small { font-size: .78rem; color: var(--nx-muted); }
.nx-trh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.nx-trh-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); }
.nx-trh-list li.on { border-color: var(--nx-sand); background: rgba(217, 191, 134, .06); }
.nx-trh-it { flex: 1; min-width: 0; display: grid; gap: 3px; }
.nx-trh-it .tr-name { font-size: .9rem; font-weight: 600; }
.nx-trh-it small { color: var(--nx-muted); font-size: .76rem; }
.nx-trh-dot { margin-left: 4px; color: var(--nx-sand); font-weight: 600; }
.nx-trh-dot.ok { color: #a9bb5c; }
.nx-trh-dot.err, .nx-trh-err { color: #e48a73; }
.nx-trh-pick { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; }
.nx-trh-pick input { width: 18px; height: 18px; margin: 2px; accent-color: var(--nx-sand); cursor: pointer; }
.nx-trh-pick b { position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 99px; background: var(--nx-sand); color: var(--nx-ink); font-size: .65rem; display: grid; place-items: center; }
.nx-trh-pick.off { visibility: hidden; }
.nx-trh-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.nx-trh-mini { padding: 3px 9px; border-radius: 7px; border: 1px solid var(--nx-line2) !important; font-size: .74rem; color: var(--nx-muted); text-decoration: none; background: none; }
.nx-trh-mini:hover { color: var(--nx-text); border-color: var(--nx-sand) !important; }
.nx-trh-meter { margin-top: 14px; font-size: .82rem; }
.nx-trh-meter > div:first-child { display: flex; justify-content: space-between; color: var(--nx-muted); }
.nx-trh-meter b { color: var(--nx-sand); }
.nx-trh .meter { height: 5px; margin: 8px 0 0; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.nx-trh .meter i { border-radius: 99px; background: var(--nx-sand-grad); }
.nx-trh-busy i { animation: nx-trh-slide 1.4s ease-in-out infinite; }
@keyframes nx-trh-slide { 0% { margin-left: 0; } 50% { margin-left: 65%; } 100% { margin-left: 0; } }
.nx-trh-open { margin-top: 14px; align-self: flex-start; }
.nx-trh-more { margin-top: 14px; font-size: .84rem; color: var(--nx-muted); }
.nx-trh-more summary { cursor: pointer; }
.nx-trh-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.nx-trh-more li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.nx-trh-more .tr-name { color: var(--nx-text); min-width: 0; }
/* La zone de dépôt (au centre, l'action principale). */
.nx-trh-drop-wrap { display: flex; flex-direction: column; min-width: 0; padding: 0; }
/* Les <section> de cette page n'ont pas les grandes marges des sections de la vitrine (style.css). */
.nx-trh section { padding-top: 0; padding-bottom: 0; }
.nx-trh .nx-trh-card, .nx-trh .nx-trh-bar { padding: 20px; }
.nx-trh-drop { flex: 1; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 20px; border: 2px dashed rgba(217, 191, 134, .45); border-radius: 18px; background: rgba(217, 191, 134, .035); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
label.nx-trh-drop:hover { border-color: var(--nx-sand); background: rgba(217, 191, 134, .07); }
.nx-trh-drop-ico { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.nx-trh-drop b { font-size: 1.2rem; max-width: 100%; }
.nx-trh-or { color: var(--nx-muted); font-size: .92rem; }
.nx-trh-drop small { color: var(--nx-dim); font-size: .8rem; margin-top: 8px; }
.nx-trh-ok { margin-top: 10px; color: #c4d08a; font-size: .85rem; }
.nx-trh-up { cursor: default; }
.nx-trh-up .meter { width: 100%; max-width: 340px; }
.nx-trh-up .nx-row { justify-content: center; margin-top: 10px; }
.nx-trh-drop-foot { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.nx-trh-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(224, 162, 74, .35); background: rgba(224, 162, 74, .07); color: var(--nx-warn); font-size: .78rem; line-height: 1.45; }
.nx-trh-drop-wrap > .hint { text-align: center; margin-top: 8px; display: block; color: var(--nx-dim); }
/* Étiquettes (type, langue, durée…) : un menu déroulant habillé en pastille. */
.nx-trh-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--nx-line2) !important; background: rgba(255, 255, 255, .04) !important; color: var(--nx-text); font-size: .84rem; font-weight: 600; white-space: nowrap; flex: none; }
.nx-trh-chip.on { border-color: var(--nx-sand) !important; color: var(--nx-sand); }
.nx-trh-chip select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding-right: 14px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 4px 4px; background-position: right 4px center, right 0 center; background-repeat: no-repeat; }
.nx-trh-chip select option { background: #151912; color: var(--nx-text); }
.nx-trh-type { color: var(--nx-muted); }
.nx-trh-type select { color: var(--nx-sand); }
.nx-trh-plus { width: 38px; justify-content: center; padding: 0; font-size: 1.1rem; cursor: pointer; }
/* La barre du bas. */
.nx-trh-bar { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--nx-line2); border-radius: 18px; background: rgba(14, 16, 11, .84); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.nx-trh-bar-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nx-trh-title { flex: 1; min-width: 180px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--nx-line2); background: rgba(0, 0, 0, .25); color: var(--nx-text); font: inherit; font-size: .9rem; }
.nx-trh-go { height: 38px; margin-left: auto; flex: none; }
.nx-trh-need { margin: 8px 0 0; color: var(--nx-muted); font-size: .78rem; text-align: right; }
.nx-trh-need:empty { display: none; }
.nx-trh-adv { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nx-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 16px; }
.nx-trh-adv .field { margin-bottom: 8px; }
.nx-trh .input { border-radius: 10px; border-color: var(--nx-line2); background: rgba(0, 0, 0, .25); color: var(--nx-text); }
.nx-trh .hint { color: var(--nx-muted); }
.nx-trh .aud-chip { border: 1px solid var(--nx-line); background: rgba(255, 255, 255, .04); }
.nx-trh .pill { border: 1px solid transparent; font-weight: 600; padding: 3px 10px; }
.nx-trh .pill.ok { background: rgba(125, 139, 74, .22); color: #c4d08a; border-color: rgba(125, 139, 74, .45); }
.nx-trh .pill.you { background: rgba(217, 191, 134, .16); color: var(--nx-sand); border-color: rgba(217, 191, 134, .45); }
.nx-trh .pill.err { background: rgba(194, 85, 58, .16); color: #e48a73; border-color: rgba(194, 85, 58, .4); }
.nx-trh .pill.idle { background: rgba(255, 255, 255, .05); color: var(--nx-muted); border-color: var(--nx-line2); }
/* Lecteurs vidéo des cartes (vidéo brute à gauche, vidéo montée à droite). */
.nx-trh-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; border: 1px solid var(--nx-line); display: block; object-fit: contain; }
.nx-trh-cap { margin-top: 10px; font-size: .88rem; font-weight: 600; }
.nx-trh-card .nx-trh-ph { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
.nx-trh-cut-acts { margin-top: 14px; }
/* « Continuer » (page 1) / « Lancer » (page 2), centré sous les cartes. */
.nx-trh-next { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; }
.nx-trh-next .nx-trh-go { min-width: 260px; height: 48px; font-size: 1rem; margin: 0; text-decoration: none; }
.nx-trh-next small { color: var(--nx-muted); font-size: .82rem; }
.nx-trh-next small:empty { display: none; }
/* Page 2 : une colonne étroite, cartes l'une sous l'autre. */
.nx-trh-setup { max-width: 760px; display: grid; gap: 16px; }
.nx-trh-back { justify-self: start; color: var(--nx-muted) !important; text-decoration: none; font-size: .9rem; }
.nx-trh-back:hover { color: var(--nx-text) !important; }
.nx-trh-hero-sm { padding-top: 0; margin-bottom: 6px; }
.nx-trh-hero-sm .nx-h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.nx-trh-count { display: inline-block; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--nx-muted); font-family: var(--font-body); font-size: .76rem; font-weight: 600; }
.nx-trh-card h2 .nx-trh-count { margin-left: 8px; vertical-align: middle; }
.nx-trh-sub { color: var(--nx-muted); font-size: .86rem; line-height: 1.5; }
.nx-trh-setup .nx-trh-sub { margin: 6px 0 14px; }
.nx-trh-setup .nx-trh-list { max-height: 420px; }
.nx-trh-set { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--nx-line); }
.nx-trh-card h2 + .nx-trh-set { margin-top: 12px; }
.nx-trh-set > span { color: var(--nx-muted); font-size: .86rem; }
.nx-trh-set > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.nx-trh-set .nx-trh-title { width: 100%; flex: 1 1 100%; }
.nx-trh-hint { color: var(--nx-muted); font-size: .78rem; }
.nx-trh-advbtn { margin-top: 10px; padding: 8px 0 !important; color: var(--nx-sand); font-size: .88rem; font-weight: 600; }
.nx-trh-setup .nx-trh-adv { margin-top: 6px; }
/* Page 1 « déposer » : bonjour à gauche, une très grande zone de dépôt, rien d'autre. */
.nx-trh-one { max-width: 920px; padding-top: 5vh; }
.nx-trh-hello { margin: 0 0 26px; }
.nx-trh-hello h1 { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.nx-trh-hello p { margin: 0; color: var(--nx-muted); font-size: 1.05rem; }
.nx-trh-one .nx-trh-drop { min-height: 400px; gap: 10px; padding: 40px 24px; border-radius: 22px; }
.nx-trh-drop.drag { border-color: var(--nx-sand); border-style: solid; background: rgba(217, 191, 134, .1); }
.nx-trh-drop .nx-trh-drop-ico { width: 64px; height: 64px; margin: 0 0 10px; border-radius: 16px; display: grid; place-items: center; background: var(--nx-sand-grad); color: var(--nx-ink); font-size: 0; box-shadow: 0 12px 30px rgba(201, 168, 95, .25); }
.nx-trh-drop .nx-trh-drop-ico svg { width: 28px; height: 28px; stroke-width: 2.2; }
.nx-trh-one .nx-trh-drop b { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
.nx-trh-one .nx-trh-drop small { margin: 0; color: var(--nx-muted); font-size: .88rem; }
.nx-trh-choose { margin-top: 14px; padding: 14px 28px !important; font-size: 1rem !important; border-radius: 12px !important; pointer-events: none; }
.nx-trh-drop .hint { margin-top: 10px; color: var(--nx-dim); font-size: .78rem; }
.nx-trh-keep { margin-top: 6px !important; color: var(--nx-dim) !important; font-size: .78rem !important; max-width: 420px; }
.nx-trh-resume { display: block; width: max-content; max-width: 100%; margin: 18px auto 0; color: var(--nx-sand) !important; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nx-trh-resume:hover { text-decoration: underline; }
.nx-trh-upmini { padding: 14px 18px !important; }
.nx-trh-upmini .nx-trh-meter { margin-top: 0; }
.nx-trh-upmini .nx-trh-meter > div:first-child { gap: 12px; }
/* Page 1 : après la 1re vidéo, la zone de dépôt rétrécit et la liste « Vidéos ajoutées » apparaît dessous. */
.nx-trh-one .nx-trh-drop.nx-trh-drop-more { min-height: 220px; padding: 26px 20px; }
.nx-trh-drop-more .nx-trh-drop-ico { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 4px; }
.nx-trh-drop-more .nx-trh-drop-ico svg { width: 22px; height: 22px; }
.nx-trh-one .nx-trh-drop-more b { font-size: 1.15rem; }
.nx-trh-one .nx-trh-up { min-height: 260px; }
.nx-trh-added { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--nx-line); border-radius: 16px; background: rgba(14, 16, 11, .78); }
.nx-trh-added h2 { margin: 0 0 10px; font-size: .95rem; }
.nx-trh-added ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-trh-added li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); min-width: 0; }
.nx-trh-added li .tr-name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; -webkit-line-clamp: 1; }
.nx-trh-added li small { flex: none; color: var(--nx-muted); font-size: .78rem; }
.nx-trh-added-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--nx-muted); }
.nx-trh-added li.ok .nx-trh-added-ico { background: rgba(125, 139, 74, .3); color: #c4d08a; }
.nx-trh-added li.run .nx-trh-added-ico { background: rgba(217, 191, 134, .2); color: var(--nx-sand); }
/* Lien YouTube raté : pastille rouge, la raison s'affiche à côté. */
.nx-trh-added li.err .nx-trh-added-ico { background: rgba(239, 91, 91, .2); color: #ef8b8b; }
.nx-trh-added li.err small { color: #ef8b8b; white-space: normal; max-width: 60%; text-align: right; }
.nx-trh-added li .nx-trh-mini { flex: none; }
/* « Ou colle un lien YouTube » (2026-11-13), juste sous la zone de dépôt. */
.nx-trh-link { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.nx-trh-link > label { color: var(--nx-muted); font-size: .88rem; font-weight: 600; text-align: center; }
.nx-trh-link-row { display: flex; gap: 10px; min-width: 0; }
.nx-trh-link-row .nx-trh-in { flex: 1; min-width: 0; height: 44px; font-size: .95rem; }
/* La couleur du type (--g) n'existe que sur la page 2 : ici, le contour reste sable. */
.nx-trh-link .nx-trh-in:focus { border-color: var(--nx-sand); }
.nx-trh-link-row .nx-btn { flex: none; }
.nx-trh-link .nx-trh-keep { align-self: center; text-align: center; }
.nx-trh-one .nx-trh-next { margin-top: 22px; }
/* Téléphone et tablette : la zone de dépôt d'abord, puis Tes vidéos, puis Ton documentaire ; les étiquettes défilent de côté. */
@media (max-width: 900px) {
  .nx-trh-row { grid-template-columns: 1fr; }
  .nx-trh-drop-wrap { order: -1; }
  .nx-trh-drop { min-height: 190px; }
  .nx-trh-ph { min-height: 100px; }
}
@media (max-width: 600px) {
  .nx-trh-hero { padding-top: 1vh; margin-bottom: 22px; }
  .nx-trh .nx-trh-card { padding: 16px; }
  .nx-trh-list, .nx-trh-setup .nx-trh-list { max-height: none; }
  .nx-trh-next .nx-trh-go { width: 100%; min-width: 0; }
  /* Réglages sur téléphone : le nom au-dessus, le choix en dessous. */
  .nx-trh-set { grid-template-columns: 1fr; gap: 8px; }
  .nx-trh-one { padding-top: 1vh; }
  .nx-trh-one .nx-trh-drop { min-height: 330px; padding: 30px 18px; }
  .nx-trh-choose { width: 100%; }
  .nx-trh-added li { flex-wrap: wrap; }
  .nx-trh-added li small { width: 100%; padding-left: 34px; }
  .nx-trh-added li.err small { max-width: 100%; text-align: left; }
  /* Téléphone : le champ du lien en entier, le bouton Importer dessous. */
  .nx-trh-link-row { flex-direction: column; }
}

/* ===== Page 2 « Prépare ton documentaire » : compacte, à la couleur du type choisi ===== */
.nx-trh-setup { --g: var(--nx-sand); --g-soft: rgba(217, 191, 134, .1); max-width: 1120px; display: block; padding-bottom: 110px; }
.nx-trh-setup[data-g="family"] { --g: #d9957a; --g-soft: rgba(217, 149, 122, .11); }
.nx-trh-setup[data-g="combat"] { --g: #a9bb5c; --g-soft: rgba(169, 187, 92, .11); }
/* Bodycam (2026-11-14) : bleu « police ». */
.nx-trh-setup[data-g="bodycam"] { --g: #6fa8dc; --g-soft: rgba(111, 168, 220, .11); }
.nx-trh-h { margin: 6px 0 18px; font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 700; }
.nx-trh-setup .nx-trh-upmini { margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(14, 16, 11, .78); }
.nx-trh-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.nx-trh-main { display: grid; gap: 12px; min-width: 0; }
/* Les sections numérotées. */
.nx-trh .nx-trh-sec { padding: 16px 18px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(14, 16, 11, .78); }
.nx-trh-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .98rem; font-weight: 700; }
.nx-trh-sec h2 > span:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: var(--nx-ink); font-size: .72rem; font-weight: 800; flex: none; }
.nx-trh-sec h2 .nx-trh-count { margin-left: auto; }
.nx-trh-sec .nx-trh-sub { margin: -4px 0 10px; font-size: .8rem; }
/* ① Les vidéos : miniature, nom, état, ordre. */
.nx-trh-doc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nx-trh-doc li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; min-width: 0; }
.nx-trh-doc li:hover { border-color: var(--nx-line2); }
.nx-trh-n { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--g-soft); color: var(--g); font-size: .72rem; font-weight: 800; }
.nx-trh-thumb { position: relative; flex: none; width: 92px; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: #000; border: 1px solid var(--nx-line) !important; cursor: pointer; }
.nx-trh-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.nx-trh-thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: .7rem; color: #fff; background: rgba(0, 0, 0, .25); opacity: .85; transition: background .15s; }
.nx-trh-thumb:hover i { background: rgba(0, 0, 0, .05); }
.nx-trh-doc .nx-trh-it { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.nx-trh-doc .tr-name { font-size: .86rem; font-weight: 600; -webkit-line-clamp: 1; }
.nx-trh-doc small { color: var(--nx-muted); font-size: .74rem; }
.nx-trh-ord { display: flex; gap: 2px; flex: none; }
.nx-trh-ord button { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--nx-muted); }
.nx-trh-ord button:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: var(--nx-text); }
.nx-trh-ord svg { width: 15px; height: 15px; }
.nx-trh-addbtn { flex: none; }
.nx-trh-empty { margin: 0; padding: 14px; border: 1px dashed var(--nx-line2); border-radius: 10px; color: var(--nx-muted); font-size: .84rem; text-align: center; }
.nx-trh-lib { margin-top: 10px; font-size: .82rem; color: var(--nx-muted); }
.nx-trh-lib summary { cursor: pointer; margin-bottom: 8px; }
.nx-trh-addmore { display: inline-block; margin-top: 10px; color: var(--g) !important; font-size: .82rem; font-weight: 600; text-decoration: none; }
/* Les options illustrées (type, modèle, sous-titres / doublage). */
.nx-trh-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-trh-opts3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-trh-opt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--nx-line2); background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.nx-trh-opt:hover { border-color: var(--g); }
.nx-trh-opt.on { border-color: var(--g); background: var(--g-soft); box-shadow: inset 0 0 0 1px var(--g); }
.nx-trh-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nx-trh-opt:focus-within { outline: 2px solid var(--g); outline-offset: 2px; }
.nx-trh-opt b { font-size: .86rem; }
.nx-trh-opt small { color: var(--nx-muted); font-size: .74rem; line-height: 1.35; }
.nx-trh-opt em { align-self: flex-start; margin-top: 6px; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: .68rem; font-weight: 600; background: rgba(125, 139, 74, .2); color: #c4d08a; }
.nx-trh-opt em.hi { background: rgba(224, 162, 74, .14); color: var(--nx-warn); }
.nx-trh-opt-ico { font-size: 1.15rem; line-height: 1; margin-bottom: 4px; }
/* Chaque carte de type a sa couleur, même avant d'être choisie. */
.nx-trh-g-criminal { --g: var(--nx-sand); --g-soft: rgba(217, 191, 134, .1); }
.nx-trh-g-family { --g: #d9957a; --g-soft: rgba(217, 149, 122, .11); }
.nx-trh-g-combat { --g: #a9bb5c; --g-soft: rgba(169, 187, 92, .11); }
.nx-trh-g-bodycam { --g: #6fa8dc; --g-soft: rgba(111, 168, 220, .11); }
.nx-trh-types .nx-trh-opt.on b { color: var(--g); }
.nx-trh-share { display: block; height: 4px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nx-trh-share i { display: block; height: 100%; background: var(--g); }
.nx-trh-sharetxt { margin-top: 3px; }
/* ③ Réglages : une ligne par réglage, étiquette au-dessus. */
/* (Colonne bornée à la carte : un réglage large ne peut plus élargir la page sur téléphone — 2026-11-24.) */
.nx-trh-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0; border-top: 1px solid var(--nx-line); }
.nx-trh-sec h2 + .nx-trh-f { border-top: 0; padding-top: 0; }
.nx-trh-f > label { color: var(--nx-muted); font-size: .78rem; font-weight: 600; }
.nx-trh-f > label b { color: var(--g); }
.nx-trh-in { width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--nx-line2); background: rgba(0, 0, 0, .25); color: var(--nx-text); font: inherit; font-size: .88rem; }
.nx-trh-in:focus { border-color: var(--g); outline: none; }
.nx-trh-need-in { border-color: rgba(224, 162, 74, .55); }
.nx-trh-setup .nx-trh-hint { font-size: .74rem; line-height: 1.4; }
.nx-trh-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 3px; border-radius: 10px; border: 1px solid var(--nx-line2); justify-self: start; }
.nx-trh-seg .nx-trh-opt { flex-direction: row; padding: 6px 16px; border: 0; border-radius: 7px; background: none; font-size: .82rem; font-weight: 700; }
.nx-trh-seg .nx-trh-opt.on { background: var(--g); color: var(--nx-ink); box-shadow: none; }
.nx-trh-range { width: 100%; accent-color: var(--g); margin: 2px 0 0; }
.nx-trh-scale { display: flex; justify-content: space-between; color: var(--nx-dim); font-size: .72rem; }
.nx-trh-setup .nx-trh-warn { margin: 6px 0 4px; }
.nx-trh-setup .nx-trh-more { margin-top: 8px; }
.nx-trh-setup .nx-trh-more summary { font-size: .82rem; color: var(--g); font-weight: 600; }
.nx-trh-setup .nx-trh-more .field { margin: 10px 0 0; }
/* L'aperçu en direct (colonne de droite, reste visible). */
.nx-trh-pv { position: sticky; top: 16px; padding: 14px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(14, 16, 11, .84); display: grid; gap: 8px; }
.nx-trh-pv-cap { color: var(--nx-muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.nx-trh-pv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; display: grid; place-items: center; padding: 22px 14px; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(160deg, #262a1f, #0b0c09); border: 1px solid var(--nx-line); }
.nx-trh-pv-src { position: absolute; top: 7px; left: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #ddd; font-size: .58rem; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-trh-pv-title { font-family: var(--font-head); font-size: .92rem; line-height: 1.25; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.nx-trh-pv-sub { position: absolute; bottom: 8px; left: 10px; right: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #FFE14D; font-size: .62rem; font-weight: 600; }
.nx-trh-pv-dub { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; border-radius: 99px; background: var(--g); color: var(--nx-ink); font-size: .6rem; font-weight: 700; }
.nx-trh-pv-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.nx-trh-pv-bar i { display: block; height: 100%; background: var(--g); }
.nx-trh-pv-split, .nx-trh-pv-meta { color: var(--nx-muted); font-size: .74rem; line-height: 1.4; }
/* Barre « Lancer » collée en bas de l'écran. */
.nx-trh-launch { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 20; width: min(1120px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; border: 1px solid var(--nx-line2); border-radius: 14px; background: rgba(14, 16, 11, .94); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.nx-trh-sum { flex: 1; min-width: 0; color: var(--nx-muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-trh-launch .nx-trh-go { height: 42px; padding: 0 22px; margin: 0; font-size: .92rem; }
.nx-trh-launch small { order: 1; color: var(--nx-warn); font-size: .78rem; text-align: right; }
.nx-trh-launch .nx-trh-go { order: 2; }
.nx-trh-launch small:empty { display: none; }
/* Le lecteur en grand (touche sur une miniature). */
.nx-trh-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.nx-trh-modal-in { width: min(900px, 100%); display: grid; gap: 10px; justify-items: end; }
.nx-trh-modal-in video { width: 100%; max-height: 78vh; border-radius: 12px; background: #000; }
@media (max-width: 900px) {
  .nx-trh-cols { grid-template-columns: 1fr; }
  .nx-trh-pv { position: static; grid-template-columns: 140px 1fr; align-items: center; }
  .nx-trh-pv-cap { grid-column: 1 / -1; }
  .nx-trh-pv-screen { grid-row: span 3; padding: 14px 8px; }
  .nx-trh-pv-title { font-size: .7rem; }
}
@media (max-width: 600px) {
  .nx-trh .nx-trh-sec { padding: 14px; }
  .nx-trh-doc .tr-name { -webkit-line-clamp: 2; }
  .nx-trh-doc li { gap: 8px; }
  .nx-trh-n { width: 18px; height: 18px; font-size: .66rem; }
  .nx-trh-opts3, .nx-trh-opts { grid-template-columns: 1fr; }
  .nx-trh-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nx-trh-types .nx-trh-opt { align-items: center; text-align: center; padding: 10px 6px; }
  .nx-trh-types .nx-trh-opt small { display: none; }
  .nx-trh-thumb { width: 64px; }
  .nx-trh-ord button { width: 26px; height: 26px; }
  .nx-trh-launch { bottom: 8px; width: calc(100% - 16px); }
  .nx-trh-sum { flex-basis: 100%; white-space: normal; }
  .nx-trh-launch small { flex-basis: 100%; order: 3; text-align: center; }
  .nx-trh-launch .nx-trh-go { flex: 1; }
  .nx-trh-pv { grid-template-columns: 110px 1fr; }
}

/* Page 2 : case à cocher numérotée (l'ordre des coches = l'ordre de l'histoire), Supprimer, fond des sous-titres. */
.nx-trh-check { flex: none; position: relative; width: 24px; height: 24px; cursor: pointer; }
.nx-trh-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nx-trh-check span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; border: 1.5px solid var(--nx-line2); font-size: .74rem; font-weight: 800; color: var(--nx-ink); transition: background .15s, border-color .15s; }
.nx-trh-check:hover span { border-color: var(--g); }
.nx-trh-check input:checked + span { background: var(--g); border-color: var(--g); }
.nx-trh-check input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }
.nx-trh-doc li.on { border-color: var(--g); background: var(--g-soft); }
.nx-trh-del { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--nx-dim); }
.nx-trh-del:hover { background: rgba(194, 85, 58, .14); color: #e48a73; }
.nx-trh-del svg { width: 16px; height: 16px; }
.nx-trh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-trh-opts4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nx-trh-sbo { align-items: center; text-align: center; padding: 8px 6px; }
.nx-trh-sbs { display: inline-block; padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: .82rem; margin-bottom: 4px; }
/* Mêmes couleurs que le moteur (trialrender.SUB_BACKGROUNDS) ; « combat » = boîte kaki fixe. */
.nx-trh-sb-black { background: rgba(0, 0, 0, .85); color: #fff; }
.nx-trh-sb-yellow { background: #FFE14D; color: #000; }
.nx-trh-sb-white { background: #fff; color: #000; }
.nx-trh-sb-none { background: transparent; color: #fff; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.nx-trh-sb-khaki { background: rgba(92, 90, 46, .9); color: #fff; }
.nx-trh-pv-sub.nx-trh-sb-none { background: none; }
/* Aperçu Bodycam : sous-titre jaune à contour noir, sans boîte (comme la vidéo de référence). */
.nx-trh-pv-sub.nx-trh-pv-bc { background: none; color: #F4E04D; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
@media (max-width: 600px) {
  .nx-trh-opts4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Les 5 types sur téléphone : 3 par ligne, pour que « Bodycam » et « Célébrités » tiennent en entier. */
  .nx-trh-opts4.nx-trh-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-trh-sbo small { font-size: .66rem; }
}

/* Page 2 : l'avancement de la transcription, bien visible (ligne de la vidéo, miniature, barre « Lancer »). */
.nx-trh-doc li { align-items: flex-start; }
.nx-trh-doc .nx-trh-check, .nx-trh-doc .nx-trh-thumb { margin-top: 2px; }
.nx-trh-tx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; margin-top: 4px; font-size: .76rem; color: var(--nx-muted); }
.nx-trh-tx.ok > span { color: #a9bb5c; font-weight: 600; }
.nx-trh-tx.err > span { color: #e48a73; font-weight: 600; }
.nx-trh-tx.run { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 7px 9px; border-radius: 8px; background: rgba(217, 191, 134, .06); border: 1px solid rgba(217, 191, 134, .18); }
.nx-trh-tx-top { display: flex; justify-content: space-between; gap: 8px; color: var(--nx-text); font-weight: 600; }
.nx-trh-tx-top b { color: var(--nx-sand); }
.nx-trh-tx.run .nx-trh-tx-top, .nx-trh-tx.run .nx-trh-tx-bar, .nx-trh-tx.run .nx-trh-tx-note { grid-column: 1; }
.nx-trh-tx.run .nx-trh-mini { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.nx-trh-tx-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nx-trh-tx-bar i { display: block; height: 100%; border-radius: 99px; background: var(--nx-sand-grad); background-size: 200% 100%; animation: nx-trh-flow 2.4s linear infinite; transition: width .6s ease; }
@keyframes nx-trh-flow { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }
.nx-trh-tx-note { color: var(--nx-warn); font-size: .72rem; }
.nx-trh-tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); }
.nx-trh-tbar i { display: block; height: 100%; background: var(--nx-sand); }
.nx-trh-lwait { order: 1; display: grid; grid-template-columns: auto 120px auto; align-items: center; gap: 10px; color: var(--nx-sand); font-size: .8rem; font-weight: 600; }
.nx-trh-lwait b { color: var(--nx-sand); }
/* Explication au survol d'un choix (ordinateur) ; sur téléphone, l'explication du choix fait est écrite dessous. */
.nx-trh-opt[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  width: max-content; max-width: min(280px, 80vw); padding: 8px 11px; border-radius: 9px; border: 1px solid var(--nx-line2); background: #1b1f16;
  color: var(--nx-text); font-size: .74rem; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
@media (hover: hover) { .nx-trh-opt[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; } }
.nx-trh-desc { margin: 10px 0 0; padding: 8px 11px; border-left: 2px solid var(--g); border-radius: 0 8px 8px 0; background: var(--g-soft); color: var(--nx-muted); font-size: .78rem; line-height: 1.45; }
.nx-trh-tx-top b { white-space: nowrap; }
@media (max-width: 600px) {
  .nx-trh-lwait { order: 0; flex-basis: 100%; grid-template-columns: 1fr 80px auto; }
  .nx-trh-tx.run { grid-template-columns: 1fr; }
  .nx-trh-tx.run .nx-trh-mini { grid-column: 1; grid-row: auto; justify-self: start; }
}
/* Fond des sous-titres : 5 choix (kaki, noir, jaune, blanc, aucun). */
.nx-trh-opts5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 600px) { .nx-trh-opts5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; } .nx-trh-opts5 .nx-trh-sbo { padding: 8px 2px; } }
/* Interrupteur « Afficher la source sur la vidéo ». */
.nx-trh-switch { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 2px 0 !important; font-size: .84rem; font-weight: 600; color: var(--nx-text); }
.nx-trh-switch i { position: relative; width: 36px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid var(--nx-line2); transition: background .15s; flex: none; }
.nx-trh-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--nx-muted); transition: transform .15s, background .15s; }
.nx-trh-switch.on i { background: var(--g); border-color: var(--g); }
.nx-trh-switch.on i::after { transform: translateX(16px); background: var(--nx-ink); }
/* Étapes réelles de la transcription (✓ faite, ● en cours, ○ à venir) et barre qui ondule pendant que Gemini travaille. */
.nx-trh-steps { grid-column: 1; list-style: none; margin: 2px 0; padding: 0; display: grid; gap: 2px; }
.nx-trh-doc .nx-trh-steps li, .nx-trh-doc .nx-trh-steps li:hover, .nx-trh-doc .nx-trh-steps li.on { padding: 0; border: 0; border-radius: 0; background: none; align-items: center; }
.nx-trh-steps li { display: flex; align-items: center; gap: 7px; color: var(--nx-muted); font-size: .74rem; }
.nx-trh-steps li i { width: 12px; font-style: normal; text-align: center; font-size: .7rem; }
.nx-trh-steps li b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--nx-text); font-weight: 600; }
.nx-trh-steps li.ok { color: #a9bb5c; }
.nx-trh-steps li.ok b { color: #a9bb5c; }
.nx-trh-steps li.on { color: var(--nx-text); font-weight: 600; }
.nx-trh-steps li.on i { color: var(--nx-sand); animation: nx-trh-pulse 1.2s ease-in-out infinite; }
@keyframes nx-trh-pulse { 50% { opacity: .35; } }
.nx-trh-tx-bar.busy { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 6px, rgba(255, 255, 255, .11) 6px 12px); background-size: 34px 34px; animation: nx-trh-busy 1s linear infinite; }
@keyframes nx-trh-busy { to { background-position: 34px 0; } }
/* Étape 3 : en-tête (type choisi) et carte de suivi réel Écriture / Montage. */
.nx-trk-head { margin: 0 0 16px; }
.nx-trk-back { display: inline-block; margin-bottom: 10px; color: var(--nx-muted); font-size: .84rem; text-decoration: none; }
.nx-trk-back:hover { color: var(--nx-text); }
.nx-trk-head h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.nx-trk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-trk-chips span { padding: 3px 9px; border-radius: 99px; border: 1px solid var(--nx-line2); background: rgba(255, 255, 255, .03); color: var(--nx-muted); font-size: .76rem; }
.nx-trk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; max-width: 980px; }
.nx-trk-block { display: grid; gap: 10px; align-content: start; padding: 16px 18px; border: 1px solid var(--nx-line); border-radius: 14px; background: rgba(14, 16, 11, .78); }
.nx-trk-block.dim { opacity: .55; }
.nx-trk-bh { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.nx-trk-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--g); color: var(--nx-ink); font-size: .72rem; font-weight: 800; flex: none; }
.nx-trk-badge { margin-left: auto; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--nx-muted); font-variant-numeric: tabular-nums; }
.nx-trk-badge.working { background: var(--g-soft); color: var(--g); }
.nx-trk-badge.done { background: rgba(169, 187, 92, .14); color: #a9bb5c; }
.nx-trk-badge.failed { background: rgba(228, 138, 115, .14); color: #e48a73; }
.nx-trk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.nx-trk-steps li { display: flex; align-items: flex-start; gap: 9px; color: var(--nx-muted); font-size: .84rem; }
.nx-trk-steps li i { width: 14px; flex: none; font-style: normal; text-align: center; font-size: .76rem; line-height: 1.5; }
.nx-trk-steps li > span { display: grid; gap: 1px; min-width: 0; }
.nx-trk-steps li small { color: var(--nx-muted); font-size: .74rem; font-weight: 500; }
.nx-trk-steps li b { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--nx-text); font-weight: 600; font-size: .8rem; }
.nx-trk-steps li.ok, .nx-trk-steps li.ok i { color: #a9bb5c; }
.nx-trk-steps li.on { color: var(--nx-text); font-weight: 600; }
.nx-trk-steps li.on i { color: var(--g); animation: nx-trh-pulse 1.2s ease-in-out infinite; }
.nx-trk-steps li.err, .nx-trk-steps li.err i { color: #e48a73; }
.nx-trk-err { margin: 0; color: #e48a73; font-size: .8rem; }
.nx-trk-wait { color: var(--nx-muted); font-size: .76rem; }
.nx-trk-go { justify-self: start; }
.nx-trk .nx-trh-mini { justify-self: start; }
@media (max-width: 760px) { .nx-trk { grid-template-columns: 1fr; } }

/* Étiquette « Bêta » d'une langue encore en essai (espagnol, allemand ; 2026-11-15). */
.lg-beta { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--nx-line2); border-radius: 999px; font-style: normal; font-weight: 600; font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--nx-muted); vertical-align: middle; }
