/* Atelia · console sur téléphone (10/11/2026, demande de Saleh) : onglets « Marketing », « Menu », « Conversion »,
   « Réputation » et « Remboursements » de la page d'un restaurant, assistant de création marketing, tiroir des dossiers.
   Règles limitées à html[data-espace="console"] et à @media (max-width: 760px) : l'ordinateur reste tel quel.
   Repères : 11/11 (carte 687a0b91, « tout réduit de 40 % », décision D8) : les onglets sont serrés, toute cible au doigt fait au
   moins 32 × 32 px, aucun texte sous 11 px ; les champs de saisie en 16 px (le téléphone ne zoome pas), les longs libellés passent
   à la ligne ; les fenêtres et tiroirs de ces onglets (fiche d'un article, dossier, assistant) prennent tout l'écran avec leur titre
   et leurs boutons toujours visibles, et gardent leurs tailles (40 à 44 px). */

@media (max-width: 760px) {

  /* ---------------------------------------------------------------- Socle commun aux cinq onglets */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) {
    font-size: 12.5px;
    overflow-wrap: break-word;
  }
  /* Boutons (Button) et puces de filtre (Filter chips) : 32 px au doigt, texte des boutons à 12 px. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-btn,
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-btn.nc-s {
    min-height: 32px;
    min-width: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-align: left;
  }
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-btn.nc-s {
    padding-left: 10px;
    padding-right: 10px;
  }
  /* Puces de filtre et choix segmentés : 12 px, 32 px de haut. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) button.nc-chip {
    min-height: 32px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
    white-space: normal;
    text-align: left;
  }
  /* Choix segmenté (Segmented control) : chaque choix fait 32 px de haut. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-seg > button {
    min-height: 32px;
    padding: 3px 10px;
    font-size: 12px;
    white-space: normal;
  }
  /* Liens en texte (Text button) et volets repliés (Accordion) : la zone au doigt grandit, le dessin ne change pas. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) button.nc-lien,
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) button.rc-cmd-lien {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    min-width: 32px;
    padding: 0 4px;
  }
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) summary {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }
  /* Champs de saisie en 16 px : le téléphone ne zoome pas en touchant le champ (34 px de haut). */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px;
    min-height: 34px;
  }
  /* Petits textes : puces d'état (Status chip), puces de date (Date chip), badge de plateforme (Platform badge), en-têtes de groupe
     (11 à 11,5 px dans la console) à 12 px. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) :is(.nc-st, .nc-dc, .nc-pf, .nc-sec) {
    font-size: 12px;
  }
  /* Une longue puce d'état (« Acceptée par le restaurateur : à confirmer ») passe à la ligne dans sa carte. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-st {
    white-space: normal;
    max-width: 100%;
  }
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) :is(.nc-tb th, .nc-lab) {
    font-size: 12px;
  }
  /* Une info-bulle (Tooltip) reste dans l'écran. */
  html[data-espace="console"] :is([data-nc-onglet="marketing"], [data-nc-onglet="menu"], [data-nc-onglet="conversion"], [data-nc-onglet="reputation"], [data-nc-onglet="remboursements"]) .nc-bulle > .nc-tip {
    max-width: min(300px, calc(100vw - 32px));
    font-size: 12px;
  }

  /* ---------------------------------------------------------------- Zone « À valider » et « Historique » de ces cinq onglets
     (css/processus.css, css/restaurant-processus.css : elles ne paraissent que dans les onglets des processus). Les cartes des
     éléments préparés passent en une colonne : à 320 px, leur grille de 290 px au moins sortait de la carte, coupée à droite. */
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-cartes {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-espace="console"] .rc-page .rc-rp-zone :is(.av2-dl, .av2-grille) {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Zone et Historique serrés (carte 687a0b91) : marges de la page, cartes, titres, lignes et petits textes. */
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) {
    margin-left: 6px;
    margin-right: 6px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone {
    margin-top: 6px;
  }
  html[data-espace="console"] .rc-page .nc-av-hote {
    margin-bottom: 6px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) .nc-card {
    padding: 8px 10px;
    border-radius: 12px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) .nc-titre {
    font-size: 13.5px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) .nc-ligne {
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) .nc-ligne .nc-quoi {
    font-size: 13px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(.nc-ligne .nc-detail, .nc-av-reseau, .rp-journal) {
    font-size: 12px;
    line-height: 1.35;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-carte {
    padding: 8px;
    gap: 6px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-gestes {
    gap: 6px;
  }
  /* « Mode du robot » : le libellé et son choix (Select) restent dans la carte ; le choix passe sous le libellé s'il le faut
     (sur les vraies données, un choix de 261 px sortait de la carte à 375 px et moins). */
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-pf {
    flex-wrap: wrap;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-pf .nc-actions {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
    max-width: 100%;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-mode .nc-select {
    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
  }
  /* Le libellé « Mode du robot » au-dessus de son choix : le choix et son bouton (« Limites », « Reprendre ») tiennent sur une rangée. */
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-pf .nc-actions {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-pf .nc-av-mode {
    flex: 1 1 150px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .nc-av-pf .nc-av-mode > .nc-lab {
    flex: 1 1 100%;
  }
  /* La tête d'une carte (elle l'ouvre au doigt) garde 32 px de haut, même quand son titre tient sur une ligne. */
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-tete {
    min-height: 32px;
  }
  /* Les puces d'état d'une carte passent à la ligne au lieu de sortir de la carte (« Aperçu impossible chez Uber Eats »). */
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-pastilles {
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) .st {
    white-space: normal;
  }
  /* Petits textes à 12 px ; les puces de date (.pl-date, 12,5 px) gardent leur taille ; cibles de 32 px (D8). */
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(.nc-lab, .nc-st, .st, .nc-dc, .nc-pf, .nc-sec, .nc-nb, .av2-plateforme, .av2-onglet-n) {
    font-size: 12px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(.btn, .btn.sm) {
    min-height: 32px;
    min-width: 32px;
    white-space: normal;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(.nc-btn, .nc-btn.nc-s) {
    min-height: 32px;
    min-width: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-align: left;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(button.nc-chip, .av2-onglet) {
    min-height: 32px;
    font-size: 12px;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) summary {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
    box-sizing: border-box;
  }
  html[data-espace="console"] .rc-page :is(.rc-rp-zone, .rc-historique) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px;
    min-height: 34px;
  }

  /* ---------------------------------------------------------------- Marketing (garde-fous, pubs et offres) */
  /* Interrupteur (Switch) : 52 × 32 px au doigt, le dessin reste celui de la console, une piste de 44 × 26 px aux bouts ronds
     (bords transparents de 4 px à gauche et à droite, 3 px en haut et en bas ; coins de 17 / 16 px, soit 13 px sur la piste). */
  html[data-espace="console"] [data-nc-onglet="marketing"] button.nc-sw {
    width: 52px;
    height: 32px;
    padding: 0;
    border: 3px solid transparent;
    border-left-width: 4px;
    border-right-width: 4px;
    border-radius: 17px / 16px;
    background-clip: padding-box;
    box-sizing: border-box;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] button.nc-sw i {
    top: 3px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-gf {
    padding: 8px 10px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-resume {
    gap: 4px 8px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-in {
    width: 120px;
    font-size: 16px;
    min-height: 34px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-form {
    gap: 6px;
  }
  /* Tête de la liste : les filtres sur une ligne, « Lancer une pub » et « Lancer une offre » sur la suivante, pleine largeur. */
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tete {
    gap: 6px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tete .nc-sp {
    display: none;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-filtres {
    gap: 6px;
    width: 100%;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tete > :is(.nc-mk-lancer, [data-mk2-lancer]) {
    flex: 1 1 140px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] :is(.nc-mk-lancer > .nc-btn, .nc-mk-tete > .nc-btn[data-mk2-lancer]) {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  /* Menu de lancement (Dropdown menu) : des choix de 36 px, dans l'écran. */
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-menu {
    left: 0;
    right: auto;
    max-width: calc(100vw - 32px);
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-choix {
    min-height: 36px;
    font-size: 12.5px;
    white-space: normal;
  }
  /* Une pub ou une offre = une carte empilée (déjà par la largeur de la carte) : serrée, les boutons en ligne qui passent à la ligne. */
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb tr {
    padding: 6px 0;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb td {
    padding: 2px 0;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-nom b {
    font-size: 13px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-actions {
    gap: 6px;
    padding-top: 2px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-archives summary {
    font-size: 12.5px;
  }

  /* ---------------------------------------------------------------- Menu (carte comme sur Uber Eats, fiche d'un article) */
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-rubnom {
    font-size: 14px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-nm {
    font-size: 12px;
    padding: 5px 8px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] :is(.nc-mc-prix, .nc-mc-plus, .nc-mc-sans) {
    font-size: 12px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-photo {
    height: 80px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-bt .nc-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  /* Fiche d'un article (Modal) : plein écran, titre en haut et boutons en bas toujours visibles, le milieu défile. */
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-ph {
    flex: none;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-pb {
    min-height: 0;
    font-size: 14px;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-pfoot {
    flex: none;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  /* Mêmes tailles que les tiroirs de la console (css/mobile-coque.css) : croix et boutons du bas à 44 px, les autres à 40 px. */
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-pb :is(button, .nc-btn) {
    min-height: 40px;
    min-width: 40px;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-ph [data-nc-fermer] {
    min-height: 44px;
    min-width: 44px;
    flex: none;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-pfoot > .nc-btn {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d .nc-btn {
    font-size: 13.5px;
  }
  html[data-espace="console"] .nc-mc-fiche .nc-tiroir-d :is(.nc-st, .nc-dc, .nc-pf, .nc-sec, .nc-chip, .nc-lab) {
    font-size: 12px;
  }

  /* ---------------------------------------------------------------- Conversion (entonnoir, courbe, causes) */
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-l {
    font-size: 12.5px;
    gap: 3px 8px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-n {
    font-size: 14px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-t {
    font-size: 12px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-barre {
    height: 16px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] :is(.nc-cv-axe-y, .nc-cv-axe-x) {
    font-size: 11px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-svg {
    height: 130px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-retrait {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] :is(.nc-cv-raisons li, .nc-cv-etape-l) {
    font-size: 12.5px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-retrait dt {
    font-size: 12px;
  }

  /* ---------------------------------------------------------------- Réputation (notes, avis, réponses, filtres) */
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-filtres {
    gap: 6px;
  }
  /* Liste des avis : elle défile dans sa carte ; une ombre en haut et en bas dit qu'il y en a d'autres (repère). */
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-liste {
    max-height: 60vh;
    padding: 6px;
    gap: 6px;
    background:
      linear-gradient(var(--c-zone) 30%, rgba(245, 247, 250, 0)) center top / 100% 36px no-repeat local,
      linear-gradient(rgba(245, 247, 250, 0), var(--c-zone) 70%) center bottom / 100% 36px no-repeat local,
      radial-gradient(farthest-side at 50% 0, rgba(22, 36, 63, .2), rgba(22, 36, 63, 0)) center top / 100% 12px no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, rgba(22, 36, 63, .2), rgba(22, 36, 63, 0)) center bottom / 100% 12px no-repeat scroll,
      var(--c-zone);
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] button.nc-rep-item {
    padding: 6px 8px;
    gap: 3px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] button.nc-rep-item.nc-on {
    padding-left: 5px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-extrait {
    font-size: 12.5px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-volet {
    scroll-margin-top: 72px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-cmd {
    font-size: 12px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-boutons {
    gap: 6px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-boutons > .nc-btn {
    flex: 1 1 130px;
    justify-content: center;
    text-align: center;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-barre {
    font-size: 12px;
  }
  /* Carte « Bons d'avis » (screens/bons-avis.js) posée dans l'onglet : interrupteurs, puces de choix et boutons à 32 px. */
  html[data-espace="console"] [data-nc-onglet="reputation"] .ba-switch {
    min-height: 32px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .ba-puce span {
    min-height: 32px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .ba-carte :is(.btn, .btn.sm) {
    min-height: 32px;
    min-width: 32px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .ba-carte :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px;
    min-height: 34px;
  }

  /* ---------------------------------------------------------------- Remboursements (demandes, pages) */
  /* Jusqu'à 760 px, chaque demande est une carte (Card) : le nom de la colonne devant sa valeur (même forme qu'à 640 px). */
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-defile {
    overflow-x: visible;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] :is(.nc-rb-tb, .nc-rb-tb tbody, .nc-rb-tb tr, .nc-rb-tb td) {
    display: block;
    width: 100%;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb tr {
    border: 1px solid var(--c-ligne);
    border-radius: 10px;
    padding: 5px 8px;
    margin-top: 6px;
    background: var(--c-carte);
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td {
    border: 0;
    padding: 2px 0;
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-align: left;
    min-width: 0;
    font-size: 12.5px;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td[data-lib]::before {
    content: attr(data-lib);
    flex: 0 0 92px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--c-gris);
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td.nc-rb-pf::before {
    display: none;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td[data-lib="Motif"],
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td[data-lib="État"] {
    min-width: 0;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td.nc-rb-geste {
    justify-content: flex-start;
    padding-top: 4px;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td.nc-rb-geste .nc-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-tb td.nc-rb-geste [data-nc-rb-action] {
    flex-basis: 100%;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] :is(.nc-rb-tb td.nc-rb-geste:empty, .nc-rb-tb td[data-nc-rb-echeance]:empty) {
    display: none;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-montant {
    text-align: left;
    font-weight: 700;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] :is(.nc-rb-premier, .nc-rb-sans, .nc-rb-aumoins, .nc-rb-note) {
    font-size: 12px;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-filtres {
    gap: 6px;
  }
  /* Pages (Pagination) : « Précédente » et « Page suivante » se partagent la ligne. */
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-pages {
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
  }
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-pages > .nc-btn {
    flex: 1 1 120px;
    min-width: 32px;
    justify-content: center;
    text-align: center;
  }

  /* ---------------------------------------------------------------- Tiroir d'un dossier (screens/dossier-tiroir.js) */
  /* Pleine largeur (il prenait 96 % de l'écran), les lignes « libellé : valeur » l'une sous l'autre. */
  html[data-espace="console"] .drawer:has(.dt-tiroir) {
    width: 100%;
    max-width: 100vw;
  }
  html[data-espace="console"] .dt-tiroir {
    font-size: 14px;
  }
  html[data-espace="console"] .dt-tiroir .dt-bloc {
    padding: 12px;
  }
  html[data-espace="console"] .dt-tiroir .dt-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  html[data-espace="console"] .dt-tiroir .dt-dl dt {
    margin-top: 8px;
    font-size: 12.5px;
  }
  html[data-espace="console"] .dt-tiroir .dt-dl dd {
    font-size: 14px;
  }
  /* Petits textes du tiroir (intertitres, puces d'état, libellés, aperçu de l'action, légende posée sous le tiroir) : 12,5 px ; les
     textes d'explication (.muted, 13 px) gardent leur taille. */
  html[data-espace="console"] .drawer:has(.dt-tiroir) :is(.dt-sous, .st, .na-legende, dt, .au-aide-champ, pre, code, small) {
    font-size: 12.5px;
  }
  html[data-espace="console"] .dt-tiroir :is(.dt-pre, .dt-brut pre) {
    font-size: 12px;
    max-width: 100%;
  }
  html[data-espace="console"] .dt-tiroir summary {
    min-height: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
  }
  html[data-espace="console"] .dt-tiroir :is(.btn, button) {
    min-height: 40px;
    min-width: 40px;
  }
  /* « Lancer maintenant (essai) » : sa barre reste collée en bas de l'écran dès l'ouverture, le dossier défile au-dessus (même
     patron que la rangée .drawer-actions de css/components.css : position fixe, le tiroir porte une transform et lui sert de cadre).
     Le corps réserve la hauteur de la barre (deux lignes de plus quand « Élément périmé » s'y ajoute) : défilé au bout, la fin du
     dossier se voit en entier au-dessus d'elle. */
  html[data-espace="console"] .dt-tiroir .dt-lancer .dt-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--line-2);
  }
  html[data-espace="console"] .dt-tiroir .dt-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  html[data-espace="console"] .drawer:has(.dt-lancer .dt-actions) .db {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  }
  html[data-espace="console"] .drawer:has(.dt-lancer .dt-actions .muted) .db {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 136px);
  }

  /* ---------------------------------------------------------------- Assistant « Créer de zéro » (screens/creation-marketing.js) */
  /* Le tiroir de l'assistant prend tout l'écran ; « Annuler », « Retour », « Continuer » restent en bas de l'écran. */
  html[data-espace="console"] .drawer:has(.cm) {
    width: 100%;
    max-width: 100vw;
  }
  /* La croix garde sa taille à côté d'un long titre ; le corps réserve la place de la barre des boutons, posée en bas : une fois
     défilé au bout, le dernier champ se voit en entier au-dessus d'elle (même réserve que css/mobile-coque.css pour les tiroirs). */
  html[data-espace="console"] :is(.drawer:has(.cm), .drawer:has(.dt-tiroir)) .dh .x {
    flex: none;
  }
  html[data-espace="console"] .drawer:has(.cm) .db {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  }
  html[data-espace="console"] .cm {
    font-size: 14px;
  }
  html[data-espace="console"] .cm .cm-stepper li {
    font-size: 13px;
  }
  html[data-espace="console"] .cm .cm-stepper .cm-n {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  html[data-espace="console"] .cm :is(.cm-nv, .cm-carte-r, .cm-aide, .cm-tete) {
    font-size: 12.5px;
  }
  html[data-espace="console"] .cm .cm-nv {
    font-size: 12px;
  }
  html[data-espace="console"] .cm :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px;
    min-height: 44px;
  }
  html[data-espace="console"] .cm .cm-num {
    max-width: 160px;
  }
  /* Cartes de choix (Radio card) et cases (Checkbox) : toute la carte se touche, 44 px au moins. */
  html[data-espace="console"] .cm .cm-carte {
    min-height: 44px;
    padding: 12px;
  }
  html[data-espace="console"] .cm .cm-carte input,
  html[data-espace="console"] .cm .ge-case input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
  }
  html[data-espace="console"] .cm .ge-case {
    min-height: 40px;
    align-items: center;
    font-size: 14px;
  }
  html[data-espace="console"] .cm .cm-cartes {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-espace="console"] .cm .cm-articles {
    max-height: 50vh;
  }
  html[data-espace="console"] .cm .cm-recap > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  html[data-espace="console"] .cm .cm-pied {
    flex-wrap: nowrap;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  html[data-espace="console"] .cm .cm-pied .btn {
    flex: 1 1 auto;
    min-height: 44px;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  html[data-espace="console"] .cm :is(.btn, button) {
    min-height: 40px;
    min-width: 40px;
  }

  /* ---------------------------------------------------------------- Huit onglets serrés comme le Résumé (11/11, carte 687a0b91,
     « tout réduit de 40 % ») : Commandes, Opérations, Configuration, Marketing, Menu, Conversion, Réputation, Remboursements, avec
     les zones « À valider » et « Historique ». Texte courant à 12 px, interligne de 1,3, marges et intervalles de 2 à 6 px, cartes
     statistiques (Stat card) par deux ; cibles de 32 px au moins et 8 px au moins entre deux cibles voisines, texte de 11 px au
     moins (D8). Le Résumé garde ses règles (css/mobile-onglets-a.css). */
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :where(div, p, li, td, th, span, label, b, strong, dd, dt, h3, h4, small, summary) {
    line-height: 1.2;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :where(.nc, .nc-card, .nc-quoi, .nc-ct, .nc-kv, .nc-vide, .nc-ligne, .card, .ba, .ba-aide, .ba-switch, .muted, .nc-rep-extrait) {
    font-size: 11.5px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :where(.nc-detail, .nc-t12, .nc-mut, .nc-rc-ecart) {
    font-size: 11px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :where(.nc-titre) {
    font-size: 12px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-card {
    padding: 4px 6px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-ligne {
    column-gap: 8px;
    row-gap: 3px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-kv {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-vide {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-titre {
    margin-bottom: 4px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-stat {
    padding: 5px 8px;
    gap: 1px;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) .nc-stat .nc-v {
    font-size: 16px;
    line-height: 1.2;
  }
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :is(.nc-oc, .nc-rep, .nc-mc, .nc-cv, .nc-rep-notes, .nc-rep-reglages, .nc-oc-bloc, .nc-oc-cartes, .nc-cv-paire) {
    gap: 5px;
  }
  /* Deux cibles voisines (boutons, puces) : 8 px l'une de l'autre au moins. */
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :is(.nc-row, .nc-actions) {
    gap: 8px;
  }
  /* Cartes statistiques par deux (Opérations, Réputation). */
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :is(.nc-oc-stats, .nc-rep-notes-pf) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  /* Puce de dates (Date chip) dans une carte statistique par deux (verdict n°37, 11/11/2026) : à 320 px, une carte de « Qualité du
     service » n'a que 126 px de place, et la puce d'une période de douze mois, qui garde son année (« du 03/11/2025 au 01/11 »,
     environ 150 px), ne passait jamais à la ligne (nowrap de la feuille de base) : elle sortait de sa carte, jusque hors de l'écran ;
     en Réputation, « du 03/11/2025 au 02/11/2026 » sortait de sa carte à toutes les largeurs. La puce passe à la ligne quand la place
     manque, en lignes équilibrées (« du 03/11/2025 » / « au 01/11 »), coins arrondis comme une puce d'état sur deux lignes : elle
     reste dans sa carte. Sur une seule ligne, elle ne change pas. */
  html[data-espace="console"] .rc-panneau > :where(:not([data-nc-onglet="resume"])) :is(.nc-oc-stats, .nc-rep-notes-pf) .nc-dc {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    max-width: 100%;
    border-radius: 10px;
  }
  /* « À valider » : le bloc vide du robot (« Le robot n'a rien préparé… ») sans ses 40 px de marge, l'en-tête vide de sa carte et
     les intervalles serrés ; « Historique » collé à la carte d'au-dessus. */
  html[data-espace="console"] .rc-page .rc-rp-zone .pc.pc-resto {
    gap: 6px;
  }
  /* Zones encore vides sous les éléments préparés (état, chiffres, onglet, « propre », « fait ») : sans elles, leurs intervalles
     (14 px dans la zone Uber Eats, 6 px entre zones) laissaient environ 60 px de blanc sous la carte « À valider ». Une zone qui se
     remplit reparaît. */
  html[data-espace="console"] .rc-page .rc-rp-zone .pc.pc-resto > :empty,
  html[data-espace="console"] .rc-page .rc-rp-zone .pc.pc-resto [data-pc-uber] > :empty {
    display: none;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .pc.pc-resto > [data-pc-uber]:not(:has(> :not(:empty))) {
    display: none;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-nc > .card-h {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .empty.av2-vide {
    padding: 6px 8px;
    margin: 2px 0 0;
    min-height: 0;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .rp-journal {
    margin-top: 2px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-gestes {
    gap: 8px;
  }
  /* Éléments préparés par le robot (Cards) : panneau, groupes, cartes et observations serrés (marges de 11 à 18 px à 2 à 8 px). */
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-panneau {
    padding: 8px 8px 10px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-resto-tete {
    gap: 6px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-resto-gestes .btn {
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-regle {
    margin-top: 4px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-groupe {
    margin-top: 8px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-groupe-titre {
    padding-bottom: 2px;
    margin-bottom: 0;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-groupe-aide {
    margin-top: 2px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-cartes {
    margin-top: 6px;
    gap: 6px;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-obs {
    margin-top: 2px;
    margin-bottom: 2px;
  }
  /* Gestes d'une carte (« Je l'applique dans Deliverect », « Détail », « Refuser ») sur une seule rangée : un long libellé passe à
     la ligne dans son bouton (jamais plus étroit que son plus long mot) au lieu de pousser les autres boutons sur une deuxième rangée. */
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-gestes {
    flex-wrap: nowrap;
  }
  html[data-espace="console"] .rc-page .rc-rp-zone .av2-gestes > .btn {
    flex: 0 1 auto;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  html[data-espace="console"] .rc-page .rc-historique {
    margin-bottom: 6px;
  }
  html[data-espace="console"] .rc-page .rc-historique > .nc {
    margin-top: 6px;
  }
  /* Marketing : une pub ou une offre en grille (la plateforme et l'état sur la première ligne). */
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding: 4px 0;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb td {
    grid-column: 1 / -1;
    padding: 1px 0;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb td.nc-mk-pf {
    grid-column: 1;
    grid-row: 1;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] .nc-mk-tb td.nc-mk-etat {
    grid-column: 2;
    grid-row: 1;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] :is(.nc-mk-dates, .nc-mk-budget .nc-st) {
    margin-top: 2px;
  }
  html[data-espace="console"] [data-nc-onglet="marketing"] :is(.nc-mk-actions, .nc-mk-tete, .nc-mk-filtres) {
    gap: 8px;
  }
  /* Menu : photo des tuiles plus basse, nom, prix et bouton serrés. */
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-photo {
    height: 44px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-nm {
    padding: 3px 6px;
    gap: 1px;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-bt {
    padding: 2px 0 0;
  }
  html[data-espace="console"] [data-nc-onglet="menu"] .nc-mc-carte {
    gap: 6px;
  }
  /* Conversion : intervalles et courbe serrés. */
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-cle {
    margin: 2px 0 4px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-rangees {
    gap: 4px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-svg {
    height: 96px;
  }
  html[data-espace="console"] [data-nc-onglet="conversion"] .nc-cv-barre {
    height: 12px;
  }
  /* Réputation : liste des avis moins haute ; bons d'avis serrés ; filtres à 8 px l'un de l'autre. */
  html[data-espace="console"] [data-nc-onglet="reputation"] .nc-rep-liste {
    max-height: 45vh;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] .ba-carte > :is(.card-h, .card-b) {
    padding: 6px 7px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] :is(.ba-carte .card-b, .ba, .ba-regles, .ba-regle, .ba-dlv) {
    gap: 6px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] :is(.ba-regle, .ba-dlv) {
    padding: 6px;
  }
  html[data-espace="console"] [data-nc-onglet="reputation"] :is(.nc-rep-filtres, .nc-rep-boutons, .nc-rep-liste) {
    gap: 8px;
  }
  /* Remboursements : filtres à 8 px l'un de l'autre, marges serrées. */
  html[data-espace="console"] [data-nc-onglet="remboursements"] .nc-rb-filtres {
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
  }
}
