/* LE CARRÉ « ? » SUR FEEDZY.AI ET APP.FEEDZY.AI (FZ-452) — les jetons que sidepanel/css/bouton-retour.css lit, posés pour une page
   web qui n'a pas la feuille de l'extension. Ils restent DANS le carré, le tiroir et le calque du mode magique : les deux sites
   ont des jetons du même nom (--text-main, --bg-card, --danger…) qu'on ne touche pas. Sombre par défaut, comme les deux sites ;
   clair quand le site l'est (`data-theme='light'`, ou le système en clair sans `data-theme='dark'`). Les valeurs sont celles de
   sidepanel/css/base.css. Ce fichier passe AVANT bouton-retour.css dans fzr-bouton.css (scripts/lib/widget-build.mjs). */

.fzr-carre,
.fzr-tiroir,
.fzm-hote {
  --fz-t-micro: 10px;
  --fz-t-meta: 11px;
  --fz-t-label: 12px;
  --fz-marque-1: #7c44fb;
  --fz-marque-2: #a254fb;
  --fz-marque-3: #4275fb;
  --fz-marque-4: #01cafa;
  --fz-bouton-1: #6e00f4;
  --fz-bouton-3: #005eab;
  --fz-bouton-4: #006f88;
  --on-fill: #ffffff;
  --fz-etincelle: #faf9f5;
  --bg-card: rgba(14, 14, 14, 0.45);
  --bg-menu: #1f1f1e;
  --bg-card-hover: rgba(250, 249, 245, 0.08);
  --border-card: rgba(222, 220, 209, 0.1);
  --text-main: #f5f4ef;
  --text-muted: #a6a39b;
  --border-field: color-mix(in srgb, var(--text-muted) 65%, transparent);
  --accent-blue: #0ea5b7;
  --bg-deep: #151515;
  --bg-black: #151515;
  --danger: #ff453a;
  --danger-ink: #f87171;
  --sur-blanc-accent: #0b6f7d;
  --sur-blanc-violet: #4a28c9;
  --sur-blanc-danger: #d93025;
  --sur-blanc-att: #8a5a00;
  font-family: inherit;
  line-height: 1.4;
}
:root[data-theme='light'] :is(.fzr-carre, .fzr-tiroir, .fzm-hote) {
  --fz-etincelle: #262624;
  --bg-card: rgba(255, 255, 255, 0.6);
  --bg-menu: #ffffff;
  --bg-card-hover: rgba(31, 30, 29, 0.05);
  --border-card: rgba(31, 30, 29, 0.1);
  --text-main: #141413;
  --text-muted: #57564f;
  --accent-blue: #0e92a3;
  --bg-deep: #fcfcfb;
  --bg-black: #fcfcfb;
  --danger: #d93025;
  --danger-ink: #b3261e;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) :is(.fzr-carre, .fzr-tiroir, .fzm-hote) {
    --fz-etincelle: #262624;
    --bg-card: rgba(255, 255, 255, 0.6);
    --bg-menu: #ffffff;
    --bg-card-hover: rgba(31, 30, 29, 0.05);
    --border-card: rgba(31, 30, 29, 0.1);
    --text-main: #141413;
    --text-muted: #57564f;
    --accent-blue: #0e92a3;
    --bg-deep: #fcfcfb;
    --bg-black: #fcfcfb;
    --danger: #d93025;
    --danger-ink: #b3261e;
  }
}

/* L'hôte au bout du pied : le carré s'aligne sur la ligne des liens. */
[data-feedzy-retour] {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* LE TIROIR D'UN SITE : une carte posée en bas à droite de la fenêtre, au-dessus de la page (le pied est en bas de page : sous
   lui, la carte sortirait de l'écran), et sous elle la boîte de l'anti-robot. À 320 px, la largeur moins ses marges. */
.fzr-site {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482000;
  display: grid;
  gap: 6px;
  justify-items: end;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
/* `border-box` : un site sans remise à zéro globale ajoutait le remplissage et le bord à la largeur (22 px de trop à 320 px,
   vu par e2e/bouton-sites.spec.mjs). */
.fzr-site > .fzr-tiroir--carte {
  position: static;
  box-sizing: border-box;
}
.fzr-site > .fzr-tiroir[hidden] ~ .fzr-defi {
  display: none;
}
@media (max-width: 400px) {
  .fzr-site {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }
  .fzr-site > .fzr-tiroir--carte {
    width: 100%;
  }
}
.fzr-tiroir *,
.fzr-tiroir *::before,
.fzr-tiroir *::after {
  box-sizing: border-box;
}

/* Le bouton d'envoi : la classe de l'extension (`fz-btn fz-btn--envoi`, sidepanel/css/chrome.css) n'existe pas sur un site. */
.fzr-tiroir .fz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-family: inherit;
  line-height: 1.3;
}
.fzr-tiroir .fz-btn--envoi {
  background: linear-gradient(120deg, var(--fz-bouton-1), var(--fz-bouton-3) 60%, var(--fz-bouton-4));
  color: var(--on-fill);
}
.fzr-tiroir .fz-btn--envoi:hover:not(:disabled) {
  filter: brightness(1.08);
}

/* L'ANTI-ROBOT DU WIDGET (Turnstile, si le widget Retours en porte un) : sa boîte, dans le tiroir, sous le champ. */
.fzr-defi:empty {
  display: none;
}
.fzr-defi {
  min-height: 65px;
}

/* LE CARRÉ « ? » ET SON MINI TIROIR (FZ-450, render/bouton-retour.js) — le même sur les trois pages de l'extension : au bout du pied du
   panneau, de la tête des Réglages, de la barre de la visionneuse. Le dessin de la maquette (`questionGlyphe`, son choix du 22/11/2026) :
   un carré arrondi au trait du dégradé de la marque, le « ? » couleur étincelle. Jamais de rond ni de capsule : rayon ≤ 0,40 × côté. */

.fzr-carre {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
}
.fzr-carre svg {
  width: 22px;
  height: 22px;
  display: block;
}
.fzr-carre:hover {
  background: var(--bg-card-hover);
}
.fzr-carre:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}
/* Ouvert : le carré s'allume du cyan de la marque, comme la tuile du tiroir de la maquette. */
.fzr-carre.is-ouvert {
  background: var(--bg-card-hover);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fz-marque-4) 70%, transparent);
}
.fzr-g1 {
  stop-color: var(--fz-marque-1);
}
.fzr-g2 {
  stop-color: var(--fz-marque-2);
}
.fzr-g3 {
  stop-color: var(--fz-marque-3);
}
.fzr-g4 {
  stop-color: var(--fz-marque-4);
}
.fzr-q {
  stroke: var(--fz-etincelle);
}

/* ── Le mini tiroir ─────────────────────────────────────────────────────── */

.fzr-tiroir {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px 0 6px;
  margin-top: 2px;
  border-top: 1px solid var(--border-card);
  color: var(--text-main);
  font-size: var(--fz-t-label);
  text-align: left;
}
.fzr-tiroir[hidden] {
  display: none;
}
/* EN CARTE (Réglages, visionneuse) : sous la barre qui porte le carré, calée à droite. */
.fzr-tiroir--carte {
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
  padding: 10px;
  margin: 0;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background: var(--bg-menu);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--bg-black) 35%, transparent);
}
.fzr-hote {
  position: relative;
  /* AU-DESSUS DU CORPS DES RÉGLAGES (FZ-451) : leur tête a un `backdrop-filter` (sa propre pile) et le corps vient après elle ;
     sans ce rang, le tiroir en carte passait SOUS le corps là où il le chevauche — vu quand le compositeur l'a grandi. */
  z-index: 60;
}
.fzr-hote > .fzr-tiroir--carte {
  position: absolute;
  top: calc(100% + 4px);
  right: 12px;
}
.feedzy-visionneuse > .fzr-tiroir--carte {
  position: fixed;
  top: var(--vz-sous-barre, 56px);
  right: 16px;
}

.fzr-tete {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fzr-titre {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--fz-t-label);
  font-weight: 700;
}
.fzr-x {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--fz-t-meta);
  display: grid;
  place-items: center;
}
.fzr-x:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}
.fzr-ligne {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.fzr-genre {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 7px;
  background: var(--bg-card);
}
.fzr-genre button {
  border: 0;
  border-radius: 5px;
  padding: 2px 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fz-t-meta);
  font-weight: 600;
  cursor: pointer;
}
.fzr-genre button[aria-pressed='true'] {
  background: var(--bg-card-hover);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--border-card);
}
.fzr-ou {
  min-width: 0;
  font-size: var(--fz-t-meta);
  color: var(--text-muted);
}
.fzr-champ {
  display: grid;
  min-width: 0;
  border: 1px solid var(--border-field);
  border-radius: 9px;
  background: var(--bg-deep);
}
/* LE FOCUS SUR LE CADRE (23/11/2026, sa capture : le champ n'a plus de contour propre) : l'anneau que base.css posait sur le textarea
   (`textarea:focus-visible`) vient sur le cadre du compositeur, tant que le focus est dedans — texte, tuile, micro ou vidéo. */
.fzr-champ:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(
    --focus-ring,
    0 0 0 3px color-mix(in srgb, var(--accent-blue) 28%, transparent),
    0 0 0 1.5px var(--accent-blue)
  );
}
/* LE CHAMP (contenteditable, render/champ-retour.js) : du texte et des chips MÊLÉS dans la phrase. Les retours à la ligne et les espaces
   s'écrivent tels quels ; un mot trop long se coupe plutôt que de déborder. */
.fzr-texte {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  max-height: 176px;
  overflow-y: auto;
  padding: 7px 9px;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: var(--fz-t-label);
  line-height: 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
  color: var(--text-main);
}
.fzr-texte:focus,
.fzr-texte:focus-visible {
  box-shadow: none;
}
/* L'attente d'un contenteditable : son attribut `data-placeholder`, montré tant que le champ est vide (ni texte, ni chip). */
.fzr-texte[data-fzr-vide]::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}
/* « Envoyer » dans le compositeur : en bas à droite, sur la rangée de la dernière icône (26 px, comme elle). */
.fzr-envoyer {
  align-self: flex-end;
  flex: none;
  margin-top: 5px;
  height: 26px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: var(--fz-t-label);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.fzr-envoyer:disabled {
  opacity: 0.6;
  cursor: default;
}
.fzr-erreur {
  margin: 0;
  font-size: var(--fz-t-meta);
  color: var(--danger-ink);
}
.fzr-liste {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-card);
  list-style: none;
  font-size: var(--fz-t-meta);
  color: var(--text-muted);
}
/* Réservé aux lecteurs d'écran : la phrase d'« Envoyer » et le détail de ce qui part. */
.fzr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fzr-liste li::before {
  content: '› ';
  color: var(--accent-blue);
}
.fzr-liste li.fzr-jamais {
  color: var(--text-main);
}
.fzr-liste li.fzr-jamais::before {
  content: '✕ ';
  color: var(--danger);
}
.fzr-merci {
  display: grid;
  gap: 4px;
}
.fzr-merci-titre {
  font-size: var(--fz-t-label);
}
.fzr-merci-texte {
  margin: 0;
  font-size: var(--fz-t-meta);
  color: var(--text-muted);
}
.fzr-encore {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: var(--fz-t-meta);
  cursor: pointer;
}
.fzr-encore:hover {
  background: var(--bg-card-hover);
}

/* LE LIEN DE SUIVI (le merci du web, FZ-452 ; celui du tuyau de l’extension, FZ-453) : un champ en lecture seule et « Copier le
   lien ». Ici et pas dans widget/bouton-sites.css : l’extension charge cette feuille-ci, le paquet des sites la concatène. */
.fzr-suivi {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.fzr-suivi-aide {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fz-t-meta);
}
.fzr-suivi-rang {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.fzr-suivi-lien {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-field);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: var(--fz-t-meta);
}
.fzr-suivi-copier {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: var(--fz-t-meta);
  font-weight: 700;
  cursor: pointer;
}
.fzr-suivi-copier:hover {
  background: var(--bg-card-hover);
}
.fzr-suivi-lien:focus-visible,
.fzr-suivi-copier:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}

/* LES ONGLETS DE LA TÊTE (FZ-453, la maquette) : « Écrire » et « Mes retours N », dès qu’un retour est parti d’ici. Des
   rectangles arrondis, jamais une capsule. */
.fzr-onglets {
  display: flex;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.fzr-onglets button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  padding: 3px 7px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--fz-t-meta);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.fzr-onglets button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fzr-onglets button[aria-pressed='true'] {
  background: var(--bg-card-hover);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px var(--border-card);
}
.fzr-onglet-n {
  font-variant-numeric: tabular-nums;
  color: var(--accent-blue);
}

/* « MES RETOURS » : une ligne par retour envoyé d’ici — le titre (coupé), son état, quand ; dessous, ses gestes. */
.fzr-retours {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.fzr-retours-aide {
  margin: 0;
  font-size: var(--fz-t-meta);
  color: var(--text-muted);
}
.fzr-retours-liste {
  display: grid;
  gap: 2px;
  max-height: 190px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}
.fzr-retour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 5px 6px;
  border-radius: 7px;
  background: var(--bg-card);
  font-size: var(--fz-t-meta);
}
.fzr-retour-titre {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fzr-etat {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: var(--fz-t-micro);
  font-weight: 700;
  white-space: nowrap;
}
.fzr-etat--parti {
  background: color-mix(in srgb, var(--success-ink) 14%, transparent);
  color: var(--success-ink);
}
.fzr-etat--rate {
  background: color-mix(in srgb, var(--danger-ink) 14%, transparent);
  color: var(--danger-ink);
}
/* « Pas encore parti » (reprise de la relecture, R7) : rangé, jamais tenté — ni vert ni rouge. */
.fzr-etat--attente {
  background: color-mix(in srgb, var(--text-muted) 16%, transparent);
  color: var(--text-main);
}
.fzr-retour-quand,
.fzr-retour-raison,
.fzr-retour-gestes,
.fzr-retour > .fzr-renvoi {
  grid-column: 1 / -1;
  min-width: 0;
}
/* « CE QUI PART », AVANT UN RENVOI (reprise de la relecture, R4) : le texte qui part, lisible et borné en hauteur, puis les mêmes
   lignes qu'au premier envoi, « Envoyer » et « Annuler ». Des rectangles arrondis. */
.fzr-renvoi {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
}
.fzr-renvoi-aide {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fz-t-meta);
}
.fzr-renvoi-texte {
  max-height: 9em;
  min-width: 0;
  overflow: auto;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: var(--fz-t-meta);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fzr-retour .fzr-renvoi-texte {
  background: transparent;
  border: 1px solid var(--border-card);
}
.fzr-retour-quand,
.fzr-retour-raison {
  color: var(--text-muted);
  font-size: var(--fz-t-meta);
}
.fzr-retour-gestes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.fzr-geste,
.fzr-retour-gestes .fzr-renvoyer {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: var(--fz-t-meta);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fzr-geste:hover {
  background: var(--bg-card-hover);
}
.fzr-renvoyer[aria-disabled='true'] {
  opacity: 0.6;
  cursor: default;
}
.fzr-onglets button:focus-visible,
.fzr-renvoi:focus-visible,
.fzr-renvoi-texte:focus-visible,
.fzr-geste:focus-visible,
.fzr-encore:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}

/* DANS LE PIED DU PANNEAU (relecture de FZ-450, I1) : le carré a SA colonne au bout de la ligne — la ligne et ses leviers
   (`pied-quota._ajusterRuban`) se mesurent sans lui ; le tiroir et tout autre enfant prennent toute la largeur, sous la ligne. */
.feedzy-pied-quota:has(> .fzr-carre) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.feedzy-pied-quota:has(> .fzr-carre) > :not(.pq-ligne, .fzr-carre) {
  grid-column: 1 / -1;
}
.feedzy-pied-quota > .fzr-carre {
  margin-left: 4px;
}
/* REPLIÉ (`is-carre-replie`, le levier qui suit la date longue) : la ligne ne tenait plus — le carré quitte sa colonne et devient un
   onglet posé sur le filet du pied, calé à droite ; la ligne retrouve toute sa largeur. Pied en haut (barre d'outils en bas) : dessous. */
.feedzy-pied-quota.is-carre-replie > .fzr-carre {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 1px);
  margin: 0;
  z-index: 2;
  border-radius: 6px 6px 0 0;
  background: var(--bg-deep);
  box-shadow: 0 -1px 0 0 var(--border-card);
}
.feedzy-root.topbar-bottom .feedzy-pied-quota.is-carre-replie > .fzr-carre {
  bottom: auto;
  top: calc(100% + 1px);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 1px 0 0 var(--border-card);
}

/* ── LE COMPOSITEUR DU TIROIR (FZ-451, maquette v3) : la tuile [✦] à gauche, le micro puis la vidéo sous elle ; les chips puis le
   texte à droite. Jamais de rond ni de capsule : rayon ≤ 0,40 × le plus petit côté (32 → 10, 26 → 8, 18 → 5). ── */
.fzr-compo {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
  padding: 6px;
  min-width: 0;
}
.fzr-tuile-col {
  align-self: start;
  display: grid;
  gap: 5px;
  justify-items: center;
}
.fzr-tuile,
.fzr-micro,
.fzr-video {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--text-main);
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fz-marque-2) 50%, transparent);
  transition: box-shadow 0.2s;
}
.fzr-tuile {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
/* Le logo du haut du panneau (le moteur du logo, au repos) : 24 px dans la tuile de 32, comme le header (45 dans 60). */
.fzr-tuile svg {
  width: 24px;
  height: 24px;
}
.fzr-logo-f {
  fill: var(--fz-etincelle);
}
.fzr-tuile[aria-pressed='true'] {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent-blue) 70%, transparent),
    0 0 10px color-mix(in srgb, var(--accent-blue) 40%, transparent);
}
.fzr-micro,
.fzr-video {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.fzr-micro svg,
.fzr-video svg {
  width: 14px;
  height: 14px;
}
.fzr-micro[aria-disabled='true'],
.fzr-video[aria-disabled='true'] {
  cursor: default;
  color: var(--text-muted);
}
.fzr-micro[aria-pressed='true'],
.fzr-video[aria-pressed='true'] {
  color: var(--accent-blue);
}
.fzr-provisoire {
  margin: 0;
  padding: 0 9px 4px;
  font-size: var(--fz-t-label);
  color: var(--text-muted);
  font-style: italic;
}
.fzr-provisoire:empty {
  display: none;
}
.fzr-tuile:focus-visible,
.fzr-micro:focus-visible,
.fzr-video:focus-visible,
.fzr-chip-x:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
}
.fzr-edit {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Les chips comme celles du compositeur (chips.js, editor.css) : blanches dans les DEUX thèmes, encres « sur-blanc » figées (base.css), rayon 6.
   Elles s'écrivent DANS la phrase, au fil du texte : en ligne, sur une seule ligne, jamais coupées. */
.fzr-chip {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 1px;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  height: 19px;
  user-select: none;
  padding: 0 2px 0 6px;
  border: 1px solid rgb(14 165 183 / 0.38);
  border-radius: 6px;
  line-height: 17px;
  font-size: var(--fz-t-meta);
  font-weight: 600;
  white-space: nowrap;
  background: rgb(255 255 255);
  color: var(--sur-blanc-accent);
  min-width: 0;
}
.fzr-chip--capture {
  color: var(--sur-blanc-violet);
  border-color: rgb(139 92 246 / 0.32);
}
.fzr-chip--erreur {
  color: var(--sur-blanc-danger);
  border-color: rgb(255 69 58 / 0.35);
}
.fzr-chip-teinte {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2);
}
.fzr-chip-nom {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--sur-blanc-atténué);
}
.fzr-chip-x {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 15px;
  cursor: pointer;
}
.fzr-chip-x:hover {
  background: rgb(11 111 125 / 0.12);
}

/* ── LE MODE MAGIQUE SUR LA PAGE MÊME (FZ-451, render/mode-magique-page.js) : un calque fixe, transparent aux gestes. ── */
html[data-fzm-actif] body {
  cursor: crosshair;
}
html[data-fzm-actif] .fzr-tiroir,
html[data-fzm-actif] .fzr-carre {
  cursor: auto;
}
.fzm-hote,
.fzm-angles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483000;
}
.fzm-angles {
  filter: drop-shadow(0 0 1.5px rgb(255 255 255 / 0.85));
}
.fzm-etiq {
  position: fixed;
  max-width: 60vw;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(38 38 36);
  color: rgb(250 249 245);
  font:
    600 12px/1.4 system-ui,
    sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2);
}
.fzm-marque {
  position: fixed;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  box-sizing: border-box;
  border-radius: 4px;
  background: rgb(14 165 183);
  color: rgb(255 255 255);
  font:
    700 var(--fz-t-micro) / 16px system-ui,
    sans-serif;
  text-align: center;
  box-shadow: 0 0 0 1.5px rgb(255 255 255);
}
.fzm-flash {
  position: fixed;
  border-radius: 3px;
  background: rgb(255 255 255);
  animation: fzm-flash 0.45s ease-out forwards;
}
@keyframes fzm-flash {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0;
  }
}
.fzm-cadre {
  position: fixed;
  background: rgb(1 202 250 / 0.08);
}
.fzm-loupe {
  position: fixed;
  width: 64px;
  display: grid;
  gap: 3px;
  justify-items: center;
}
.fzm-loupe-teinte {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgb(255 255 255),
    0 0 0 3px rgb(0 0 0 / 0.35),
    0 6px 18px rgb(0 0 0 / 0.3);
}
.fzm-loupe-code {
  padding: 0 5px;
  border-radius: 4px;
  background: rgb(38 38 36);
  color: rgb(255 255 255);
  font:
    700 var(--fz-t-micro) / 16px ui-monospace,
    monospace;
}
@media (prefers-reduced-motion: reduce) {
  .fzm-flash {
    animation: none;
    opacity: 0;
  }
}

/* L'APERÇU D'UNE PRISE (FZ-451, tranche 2) : l'image que la page a dessinée depuis son DOM, au survol ou au focus de sa chip. Posé sur la
   page (hors du champ, qui défile et le rognerait), au-dessus du tiroir, transparent aux gestes ; un rectangle arrondi, jamais un rond. */
.fzr-apercu {
  position: fixed;
  z-index: 2147483001;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  background: var(--bg-deep);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--bg-black) 35%, transparent);
}
.fzr-apercu[hidden] {
  display: none;
}
.fzr-apercu-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Une chip dont l'image est prête : son mot se souligne d'un trait pointillé (un aperçu l'attend au survol). */
.fzr-chip[data-fzr-image] .fzr-chip-mot {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
