/* Pastille « Trace » : style terminal, monospace, petite, sans fond, sans icône, sans rond. */
.pastilles { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; pointer-events: none; font-family: "Share Tech Mono", "Share Tech Mono Repli", ui-monospace, monospace; }
.pastille { display: inline-block; padding: 1px 4px 0; border: 1px solid currentColor; border-radius: 0; background: transparent; font-size: 9px; line-height: 1.35; letter-spacing: 0.06em; text-transform: none; white-space: nowrap; }
.pastille-trace { color: #e10600; border-color: rgba(225, 6, 0, 0.85); }
.pastilles-host { position: relative; }
.pastilles-abs { position: absolute; top: 6px; right: 6px; z-index: 4; }
.pastilles-row { margin-left: auto; }
.dc-ph .pastilles-row + .dc-s { margin-left: 0; }
/* Fiche détail : Trace à côté du profil (auteur), plus dans l'en-tête ni sur les miniatures. */
#piece .dc-fiche .creator-link + .pastilles-row { height: auto; margin: 0 0 0.8rem 0.7rem; vertical-align: middle; }
#fe .fe-top { align-items: center; }
/* /u/ : la règle « #fe .fe-top span:last-child » (puce de format) ne s'applique pas à la pastille. */
#fe .fe-top .pastilles .pastille-trace { color: #e10600; border: 1px solid rgba(225, 6, 0, 0.85); padding: 1px 4px 0; }
/* PR 4 Mux : « EN CONVERSION » (media_state = converting). Même gabarit que Trace (bordure + texte en couleur),
   fond noir opaque pour garder le contraste sur une vignette : #f40700 sur #000 ≈ 5,1:1 (≥ 4,5:1).
   Insérée en position absolue (cartes) ou dans un en-tête existant à hauteur fixe : aucun décalage de mise en page. */
.pastille-conversion { color: var(--rouge-texte, #f40700); border-color: var(--rouge-texte, #f40700); background: #000; text-transform: uppercase; }
#fe .fe-top .pastilles .pastille-conversion { color: var(--rouge-texte, #f40700); border: 1px solid var(--rouge-texte, #f40700); padding: 1px 4px 0; }
.rm-meta .pastilles-row { margin-left: 0.5em; vertical-align: middle; }
/* Rail : en tête de la ligne tronquée (overflow: hidden) ; hauteur réelle, sinon la règle height: 0 ci-dessous la fait couper. */
.dc-rd .pastilles-row { margin: 0 0.4em 0 0; vertical-align: middle; }
/* Vignette de salle (118 px) : pastilles empilées en bas à droite, loin du format (span.fmt, en haut à gauche), même en « EN CONVERSION ». */
.it-thumb.pastilles-host .pastilles-abs { top: auto; bottom: 3px; right: 3px; flex-direction: column; align-items: flex-end; gap: 2px; }
/* Fiche, vue auteur : palier 1080p imposé par le débit (§ 1 bis). Gris clair sur fond console : contraste ≥ 7:1. */
.pastille-palier { color: #c9b8b8; border-color: #8a8082; font-size: 10px; }
.dc-fiche .meta dd.dc-tier { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.dc-tier-note { margin: 0; max-width: 34ch; color: #b7aaa8; font-size: 0.68rem; line-height: 1.45; text-align: right; }
.dc-fiche .meta .dc-tier-slot { display: contents; }
.dc-tier .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Zéro CLS en en-tête (fiche P-01, /u/, rail, recherche) : conteneur sans hauteur, la pastille déborde centrée
   sur la ligne au lieu de l'agrandir. */
.pastilles-row { height: 0; align-self: center; overflow: visible; }
.dc-rd .pastilles-row { height: auto; }
/* /u/ (cartes étroites, 2 colonnes à 390) : l'en-tête n'a pas la place d'« EN CONVERSION » sans passer à la ligne.
   Les pastilles d'une carte en conversion sortent alors de l'en-tête et se posent sur le média, en haut à gauche. */
@media (max-width: 560px) {
  #fe .fe-mc .fe-open { position: relative; }
  #fe .fe-top .pastilles-row:has(.pastille-conversion) { position: absolute; top: calc(1.6rem + 4px); left: 4px; z-index: 4; height: auto; margin: 0; }
}
