/* ─────────────────────────────────────────────────────────────
   Flaynn · Primitives d'interface (handoff design de septembre 2026)

   Charge après /css/ds/tokens.css et /css/ds/universes.css. Chaque
   composant lit les variables --u-* : il rend en nuit par défaut et
   en papier sous body[data-universe="atelier"], sans classe modifiée.

   Familles : boutons, pills et chips, provenance, jauges, champs,
   états vides, squelettes, toast et bannière, onglets, tableau,
   menu, info-bulle, sticker et surlignage papier, chargeur à traits.
   Tout chiffre passe par .num (tabular-nums).
   ───────────────────────────────────────────────────────────── */

/* Piege connu, trouve au navigateur le 2026-09-03 sur le tunnel Founder :
   toute regle AUTEUR qui pose display (.empty, .ft-step, .scene, une future
   carte de dashboard...) bat la regle USER-AGENT [hidden]{display:none},
   quelle que soit sa specificite comparee a elle : l'origine l'emporte avant
   la specificite. Sans ce reset, un script qui pose bien el.hidden=true ne
   change RIEN a l'ecran des qu'un composant du DS pose son propre display.
   Regle globale ici, et pas feuille par feuille, pour proteger toute
   surface qui charge primitives.css, dashboards des lots 3a/3b compris.
   Toggle avec el.hidden, jamais style.display. */
[hidden] { display: none !important; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ─── Eyebrow et libellés ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--u-ink-faint);
}
.eyebrow__n { color: var(--u-accent-ink); }
.eyebrow--rule { width: 100%; }
.eyebrow--rule::before { content: ''; width: 24px; height: 1px; background: var(--u-accent); opacity: 0.55; flex: none; }
.eyebrow--rule::after  { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--u-border-strong), transparent); }
.label { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--u-ink-faint); }

/* ─── Boutons ─── */
.btn-u {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--u-ink); background: transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background var(--dur-3) var(--ease-soft), color var(--dur-3), border-color var(--dur-3), transform var(--dur-2) var(--ease-bounce), box-shadow var(--dur-3);
}
.btn-u:focus-visible { outline: 2px solid var(--u-accent-ink); outline-offset: 2px; }
.btn-u--primary { background: var(--u-accent); color: #fff; box-shadow: var(--u-shadow-cta); }
.btn-u--primary:hover { transform: translateY(-1px); }
body:not([data-universe="atelier"]) .btn-u--primary:hover { background: var(--int-accent-mid); }
body[data-universe="atelier"] .btn-u--primary { background: var(--atl-cta); font-weight: 600; padding: 0 24px; }
body[data-universe="atelier"] .btn-u--primary:hover { filter: brightness(1.04); }
.btn-u--soft { border-color: var(--int-border-accent); background: var(--u-wash); color: var(--u-ink); }
.btn-u--soft:hover { background: var(--u-accent); color: #fff; }
.btn-u--ghost { border-color: var(--u-border-strong); color: var(--u-ink); background: transparent; }
.btn-u--ghost:hover { background: rgba(255, 255, 255, 0.06); }
body[data-universe="atelier"] .btn-u--ghost { background: var(--atl-paper); }
body[data-universe="atelier"] .btn-u--ghost:hover { border-color: rgba(232, 101, 26, 0.5); }
.btn-u--sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-u--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-u:disabled, .btn-u[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ─── Pills et chips ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--u-border-strong);
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--u-ink-muted);
  background: transparent; cursor: pointer; white-space: nowrap; transition: all var(--dur-1);
}
.pill .num { font-size: 10.5px; opacity: 0.7; }
.pill:hover { color: var(--u-ink); border-color: var(--u-ink-faint); }
.pill[aria-pressed="true"], .pill.is-active { border-color: var(--int-border-accent); background: var(--u-wash); color: var(--u-ink-strong); }
body[data-universe="atelier"] .pill.is-active { border-color: var(--atl-flaynn); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--u-ink-faint); background: transparent; white-space: nowrap;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip--strongyes { color: var(--u-strongyes); }
.chip--yes       { color: var(--u-yes); }
.chip--almost    { color: var(--u-almost); }
.chip--notyet    { color: var(--u-notyet); }

/* ─── Provenance ─── */
.prov {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; min-width: 74px; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid currentColor;
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.prov::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.prov--verified { color: var(--u-prov-verified); }
.prov--declared { color: var(--u-prov-declared); }
.prov--inferred { color: var(--u-prov-inferred); }
.prov--missing  { color: var(--prov-missing); }
.prov--missing::before { background: transparent; border: 1px dashed currentColor; }
.prov--conflict { color: var(--prov-conflict); }
.prov--conflict::before { border-radius: 2px; }

/* Barre de provenance : vérifié, déclaré, inféré, dans cet ordre, gap 2px. */
.prov-bar { display: flex; gap: 2px; height: 5px; border-radius: 3px; overflow: hidden; }
.prov-bar > span { display: block; height: 100%; }
.prov-bar__v { background: var(--u-prov-verified); }
.prov-bar__d { background: var(--u-prov-declared); }
.prov-bar__i { background: var(--u-prov-inferred); }
.prov-bar--thin { height: 3px; }
.prov-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-family: var(--font-mono); font-size: 9.5px; color: var(--u-ink-faint); font-variant-numeric: tabular-nums; }
.prov-legend .is-v { color: var(--u-prov-verified); }
.prov-legend .is-i { color: var(--u-prov-inferred); }

/* Fil affirmation vers preuve. */
.thread { position: relative; height: 1px; background: linear-gradient(90deg, var(--u-prov-declared), var(--u-prov-verified)); }
.thread::before, .thread::after { content: ''; position: absolute; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; }
.thread::before { left: -3px; background: var(--u-prov-declared); }
.thread::after  { right: -3px; background: var(--u-prov-verified); }

/* ─── Jauges ─── */
.bar { height: 3px; border-radius: 2px; background: rgba(233, 235, 242, 0.1); overflow: hidden; }
body[data-universe="atelier"] .bar { background: var(--atl-paper-dense); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--u-accent); transition: width var(--dur-6) var(--ease-soft); }
.bar--md { height: 5px; border-radius: 3px; }
.bar--progress > span { background: linear-gradient(90deg, var(--int-accent), var(--orange, #e8651a)); }
body[data-universe="atelier"] .bar--progress > span { background: linear-gradient(90deg, var(--atl-flaynn), var(--atl-flaynn-soft)); }
.ring { position: relative; display: inline-block; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(233, 235, 242, 0.08); }
body[data-universe="atelier"] .ring__track { stroke: var(--atl-paper-dense); }
.ring__arc { fill: none; stroke: var(--u-accent); stroke-linecap: round; transition: stroke-dashoffset var(--dur-6) var(--ease-soft); }
.ring__value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--u-ink); }
.ring--sm { width: 48px; height: 48px; }
.ring--sm .ring__value { font-size: 14px; }
.ring--md { width: 72px; height: 72px; }
.ring--md .ring__value { font-size: 18px; font-weight: 600; }

/* ─── Champs ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--u-ink-muted); }
.field > input, .field > textarea, .field > select {
  height: 42px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--u-border-strong);
  background: rgba(0, 0, 0, 0.35); color: var(--u-ink); font-family: var(--font-sans); font-size: 13.5px; outline: none;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
body[data-universe="atelier"] .field > input, body[data-universe="atelier"] .field > textarea, body[data-universe="atelier"] .field > select { background: var(--atl-paper); border-color: rgba(36, 28, 21, 0.2); }
.field > textarea { height: auto; min-height: 76px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.field > input:focus-visible, .field > textarea:focus-visible, .field > select:focus-visible { border-color: var(--u-accent-ink); box-shadow: 0 0 0 3px var(--u-wash); }
.field > input:disabled { opacity: 0.45; }
.field__hint { font-family: var(--font-sans); font-size: 11px; line-height: 1.45; color: var(--u-ink-faint); min-height: 1.45em; }
.field[data-invalid] > input, .field[data-invalid] > textarea { border-color: var(--prov-conflict); }
.field[data-invalid] .field__hint { color: #fca5a5; }
body[data-universe="atelier"] .field[data-invalid] .field__hint { color: var(--atl-notyet); }
.field__count { font-family: var(--font-mono); font-size: 10.5px; color: var(--u-ink-faint); font-variant-numeric: tabular-nums; align-self: flex-end; }

/* Choix multiples en pills (enum). */
.choice-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.choice-group label {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--u-border-strong); font-size: 13.5px; font-weight: 500; color: var(--u-ink-muted); cursor: pointer; transition: all var(--dur-1);
}
.choice-group input:checked + label { border-color: var(--u-accent); background: var(--u-wash); color: var(--u-ink-strong); }
.choice-group input:focus-visible + label { outline: 2px solid var(--u-accent-ink); outline-offset: 2px; }

/* Zone de dépôt de fichier. */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); text-align: center;
  min-height: 200px; padding: var(--sp-6); border-radius: var(--r-xl); border: 1px dashed var(--u-border-strong);
  background: rgba(255, 255, 255, 0.02); transition: all var(--dur-3);
}
body[data-universe="atelier"] .drop { background: var(--atl-paper); }
.drop.is-drag { border-color: var(--u-accent); background: var(--u-wash); box-shadow: 0 0 0 4px var(--u-wash); }
.drop.is-done { border-style: solid; border-color: var(--int-border-accent); }
.drop.is-error { border-style: solid; border-color: rgba(220, 38, 38, 0.45); background: rgba(220, 38, 38, 0.05); }
.drop__meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--u-ink-faint); }

/* ─── États vides ─── */
.empty {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 210px; padding: 34px 26px;
  border-radius: var(--r-md); border: 1px dashed var(--u-border-strong);
}
.empty[data-kind="error"] { border-style: solid; border-color: rgba(220, 38, 38, 0.4); background: rgba(220, 38, 38, 0.04); }
.empty__tag { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--u-accent-ink); }
.empty[data-kind="none"]  .empty__tag { color: var(--u-ink-faint); }
.empty[data-kind="done"]  .empty__tag { color: var(--u-strongyes); }
.empty[data-kind="error"] .empty__tag { color: var(--u-notyet); }
.empty__title { font-family: var(--font-sans); font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; color: var(--u-ink-strong); max-width: 34ch; margin: 0; }
body[data-universe="atelier"] .empty__title { font-family: var(--font-title); font-weight: 600; font-size: 23px; }
.empty__body { font-size: 13.5px; line-height: 1.5; color: var(--u-ink-muted); max-width: 52ch; margin: 0; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }

/* ─── Squelettes ─── */
@keyframes skel { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.8; } }
.skel { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); animation: skel 1.4s ease-in-out infinite; }
.skel--line  { height: 9px; background: rgba(255, 255, 255, 0.14); }
.skel--title { height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); }
.skel:nth-child(2) { animation-delay: 0.18s; }
.skel:nth-child(3) { animation-delay: 0.36s; }
.skel:nth-child(4) { animation-delay: 0.54s; }
body[data-universe="atelier"] .skel { background: var(--atl-paper-dense); }
body[data-universe="atelier"] .skel--title { background: #e7dfcd; }
[aria-busy="true"] .skel { animation-play-state: running; }

/* Chargeur à traits : 14 traits de 2px, cycle 1,1 s, décalage 55 ms. */
@keyframes tick { 0%, 100% { opacity: 0.18; transform: scaleY(0.55); } 45% { opacity: 1; transform: scaleY(1); } }
.ticks { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.ticks > span { width: 2px; height: 100%; border-radius: 1px; background: var(--u-accent-ink); transform-origin: bottom; animation: tick 1.1s ease-in-out infinite; }
body:not([data-universe="atelier"]) .ticks > span { background: var(--int-accent-mid); }
body[data-universe="atelier"] .ticks > span { background: var(--atl-flaynn); }
.ticks > span:nth-child(2)  { animation-delay: 55ms; }
.ticks > span:nth-child(3)  { animation-delay: 110ms; }
.ticks > span:nth-child(4)  { animation-delay: 165ms; }
.ticks > span:nth-child(5)  { animation-delay: 220ms; }
.ticks > span:nth-child(6)  { animation-delay: 275ms; }
.ticks > span:nth-child(7)  { animation-delay: 330ms; }
.ticks > span:nth-child(8)  { animation-delay: 385ms; }
.ticks > span:nth-child(9)  { animation-delay: 440ms; }
.ticks > span:nth-child(10) { animation-delay: 495ms; }
.ticks > span:nth-child(11) { animation-delay: 550ms; }
.ticks > span:nth-child(12) { animation-delay: 605ms; }
.ticks > span:nth-child(13) { animation-delay: 660ms; }
.ticks > span:nth-child(14) { animation-delay: 715ms; }

/* ─── Toast et bannière ─── */
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: 340px; display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--u-border-strong); background: var(--u-surface);
  box-shadow: var(--int-shadow-pop); animation: toast-in 260ms var(--ease-soft) both; color: var(--u-ink);
}
.toast::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--u-ink-faint); }
.toast[data-kind="ok"]   { border-color: rgba(34, 197, 94, 0.35); }   .toast[data-kind="ok"]::before   { background: var(--u-strongyes); }
.toast[data-kind="warn"] { border-color: rgba(245, 158, 11, 0.35); }  .toast[data-kind="warn"]::before { background: var(--u-almost); }
.toast[data-kind="err"]  { border-color: rgba(220, 38, 38, 0.4); }    .toast[data-kind="err"]::before  { background: var(--u-notyet); }
.toast__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast__title { font-size: 12.5px; font-weight: 500; }
.toast__text { font-size: 11.5px; line-height: 1.4; color: var(--u-ink-muted); }
.toast__close { margin-left: 8px; background: transparent; border: 0; color: var(--u-ink-faint); cursor: pointer; font-size: 12px; min-width: 24px; min-height: 24px; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 11px;
  border: 1px solid var(--u-border-strong); background: rgba(255, 255, 255, 0.02); color: var(--u-ink);
}
.banner::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--u-accent-ink); }
.banner[data-kind="warn"] { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.banner[data-kind="warn"]::before { background: var(--u-almost); }
.banner[data-kind="err"] { border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.05); }
.banner[data-kind="err"]::before { background: var(--u-notyet); }
body[data-universe="atelier"] .banner { background: var(--atl-flaynn-wash); border-color: rgba(232, 101, 26, 0.28); }
.banner__title { font-size: 12.5px; font-weight: 500; }
.banner__text { font-size: 11.5px; line-height: 1.45; color: var(--u-ink-muted); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--u-accent); color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ─── Onglets, fil d'Ariane, pagination ─── */
.tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md); border: 1px solid var(--u-border); background: rgba(255, 255, 255, 0.02); }
.tab { flex: 1; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--u-ink-muted); font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all var(--dur-1); }
.tab .num { font-size: 10px; opacity: 0.6; }
.tab[aria-selected="true"] { background: rgba(123, 45, 142, 0.35); color: var(--int-ink-strong); }
body[data-universe="atelier"] .tab[aria-selected="true"] { background: var(--atl-flaynn-wash); color: var(--atl-ink); }
.tabs--under { gap: 20px; padding: 0; border: 0; border-bottom: 1px solid var(--u-border-strong); border-radius: 0; background: none; }
.tabs--under .tab { flex: none; height: auto; padding: 0 0 11px; border-radius: 0; position: relative; font-size: 13px; }
.tabs--under .tab[aria-selected="true"] { background: none; color: var(--u-ink); }
.tabs--under .tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--u-accent-ink); }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--u-ink-faint); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; opacity: 0.5; margin-right: 9px; }
.crumbs a { color: var(--u-ink-muted); text-decoration: none; }
.crumbs [aria-current="page"] { color: var(--u-ink); font-weight: 500; }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--u-border-strong); background: transparent; color: var(--u-ink-muted); font-family: var(--font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pager button[aria-current="page"] { border-color: var(--int-border-accent); background: var(--u-wash); color: var(--u-ink-strong); }
.pager__total { font-family: var(--font-mono); font-size: 11px; color: var(--u-ink-faint); margin-left: 4px; }
.steps { display: flex; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.steps li { display: inline-flex; align-items: center; }
.steps__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--u-border-strong); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--u-ink-faint); }
.steps li:not(:last-child)::after { content: ''; width: 22px; height: 2px; background: var(--u-border); }
.steps [data-state="done"] .steps__dot { background: var(--u-accent); border-color: var(--u-accent); color: #fff; }
.steps [data-state="done"]::after { background: var(--u-accent); }
.steps [data-state="current"] .steps__dot { border-color: var(--u-accent); background: var(--u-wash); color: var(--u-accent-ink); }

/* ─── Tableau ─── */
.tbl { border: 1px solid var(--u-border); border-radius: var(--r-sm); background: var(--u-surface); overflow: hidden; }
.tbl__head, .tbl__row { display: grid; gap: var(--sp-3); padding: 11px var(--sp-3); align-items: center; }
.tbl__head { position: sticky; top: 0; background: var(--u-surface); border-bottom: 1px solid var(--u-border-strong); font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--u-ink-faint); }
.tbl__row { border-bottom: 1px solid var(--u-border); font-size: 13px; color: var(--u-ink); cursor: pointer; transition: background var(--dur-1); }
.tbl__row:last-child { border-bottom: 0; }
.tbl__row:hover { background: rgba(255, 255, 255, 0.03); }
.tbl__row[aria-selected="true"] { background: var(--u-wash); box-shadow: inset 0 0 0 1px var(--int-border-accent); }
.tbl__num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--u-ink-muted); }
body[data-universe="atelier"] .tbl__row:hover { background: var(--atl-desk); }

/* ─── Menu et info-bulle ─── */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.menu { width: 260px; border-radius: 11px; border: 1px solid var(--u-border-strong); background: var(--u-surface); box-shadow: var(--int-shadow-pop); overflow: hidden; animation: pop 200ms var(--ease-soft) both; }
.menu__head { padding: 9px 14px 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--u-ink-faint); }
.menu__item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: var(--u-ink); font-family: var(--font-sans); font-size: 13px; text-align: left; cursor: pointer; }
.menu__item:hover { background: var(--u-wash); }
.menu__item kbd { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--u-ink-faint); }
.menu__item.is-danger { color: #fca5a5; border-top: 1px solid var(--u-border-strong); }
body[data-universe="atelier"] .menu__item.is-danger { color: var(--atl-notyet); }
.tip-host { position: relative; border-bottom: 1px dashed var(--u-accent-ink); cursor: help; }
.tip-host .tip-mark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--u-accent-ink); color: var(--u-accent-ink); font-family: var(--font-mono); font-size: 9px; }
.tip { position: absolute; left: 0; bottom: calc(100% + 9px); z-index: 10; width: 250px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--u-surface); border: 1px solid var(--int-border-accent); box-shadow: var(--int-shadow-pop); font-size: 12px; line-height: 1.5; color: var(--u-ink); opacity: 0; transform: translateY(4px); transition: opacity var(--dur-1), transform var(--dur-1); pointer-events: none; }
.tip-host:hover .tip, .tip-host:focus-visible .tip, .tip-host:focus-within .tip { opacity: 1; transform: none; }

/* ─── Papier : sticker et surlignage marqueur ─── */
.sticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--atl-paper); color: #6b5c46; border: 1px dashed var(--atl-border-dashed);
  box-shadow: 0 2px 6px -2px rgba(66, 46, 22, 0.18); transform: rotate(-1.2deg);
}
.marker {
  background-image: linear-gradient(100deg, rgba(232, 101, 26, 0) 0.5%, rgba(245, 166, 94, 0.5) 3%, rgba(245, 166, 94, 0.42) 97%, rgba(232, 101, 26, 0) 99.5%);
  background-size: 100% 42%; background-position: 0 88%; background-repeat: no-repeat; padding: 0 0.08em;
}
.paper-card { border-radius: 18px; background: var(--atl-paper); border: 1px solid var(--atl-border); box-shadow: var(--atl-shadow-paper); }
.night-card { border-radius: 16px; border: 1px solid var(--int-border-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.night-card--lead { border-color: rgba(168, 94, 192, 0.3); background: linear-gradient(168deg, rgba(123, 45, 142, 0.16), rgba(6, 5, 10, 0.92) 55%, rgba(3, 4, 7, 0.96)); box-shadow: var(--int-shadow-glow); position: relative; overflow: hidden; }
.night-card--lead::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 142, 221, 0.6), transparent); }

/* ─── Mouvement réduit ─── */

/* ───────────────────────────────────────────────────────────────────────────
   Interrupteur. Cinquième primitive du socle, la seule qui manquait.

   L'état actif prend l'accent de l'univers, JAMAIS le vert : le vert
   appartient au seul Strong Yes, et un interrupteur vert le banaliserait. Le
   composant du handoff le proposait en #22c55e ; c'est la correction.

   La cible tactile fait 44px de haut par une zone de clic étendue, alors que
   la piste n'en fait que 22 : la piste est le dessin, le label est la cible.
   ─────────────────────────────────────────────────────────────────────────── */
.toggle-u {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  min-height: 44px; cursor: pointer;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--u-ink);
}
.toggle-u input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-u__piste {
  position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill);
  background: var(--u-border-strong); border: 1px solid transparent;
  transition: background var(--dur-3), border-color var(--dur-3);
}
.toggle-u__piste::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--u-ink-strong);
  transition: transform var(--dur-3) var(--ease-soft);
}
.toggle-u input:checked + .toggle-u__piste { background: var(--u-accent); }
.toggle-u input:checked + .toggle-u__piste::after { transform: translateX(16px); background: #fff; }
.toggle-u input:focus-visible + .toggle-u__piste { box-shadow: 0 0 0 3px var(--u-wash); border-color: var(--u-accent-ink); }
.toggle-u input:disabled + .toggle-u__piste { opacity: 0.45; }
.toggle-u input:disabled ~ .toggle-u__texte { opacity: 0.45; }
.toggle-u:has(input:disabled) { cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .btn-u, .pill, .bar > span, .ring__arc, .toast, .menu, .tip, .skel, .ticks > span,
  .toggle-u__piste, .toggle-u__piste::after { transition: none; animation: none; }
  .btn-u--primary:hover { transform: none; }
  .skel { opacity: 0.5; }
  .ticks > span { opacity: 0.6; transform: none; }
}
