/* Atelia · console sur téléphone (10/11/2026, demande de Saleh) : pages « Vue d'ensemble », « Messages des clients »,
   « Collectes », « Avancement », « Équipe », « Retours de l'équipe », « Journal des processus », « Connexion aux plateformes ».
   Règles limitées à html[data-espace="console"] et à @media (max-width: 760px) : l'ordinateur reste tel quel.
   Chaque règle vise la racine de sa page, posée par l'écran directement dans #screen (rien ne touche les autres pages) :
     .nc-ve (Vue d'ensemble) · .mc (Messages des clients) · .col-racine (Collectes) · .avt-racine (Avancement)
     · [data-equipe-zone] et son en-tête (Équipe) · .re (Retours de l'équipe) · .jr (Journal des processus) · .cp-racine (Connexion).
   Fiche d'un retour (tiroir posé sur <body>) : .nc.re-fiche.
   Critères : aucune page plus large que l'écran, cibles d'au moins 40 × 40 px, texte d'au moins 12 px, champs en 16 px
   (sinon le téléphone zoome à la saisie), libellés longs qui passent à la ligne, lisibilité avant densité. */

@media (max-width: 760px) {

  /* ------------------------------------------------------------ commun aux huit pages */

  /* Rien ne dépasse de l'écran : les blocs se resserrent, un mot plus long que sa ligne (adresse, courriel) passe à la ligne.
     break-word et non anywhere : anywhere réduit la largeur minimale des colonnes (tableau, grille, flex), qui coupent alors
     les mots au milieu (« Verseme / nts ») ; break-word ne coupe qu'un mot qui ne tient pas sur une ligne entière. */
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine) { min-width: 0; max-width: 100%; overflow-wrap: break-word; }
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine) :is(h1, h2, h3, p, li, td, th, dd, dt, label, summary) { overflow-wrap: break-word; }

  /* Cibles touchables : 40 px au moins (boutons, puces, segments, listes déroulantes, liens-boutons, « Détails »). */
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine, #screen:has(> [data-equipe-zone]) > .h-row)
    :is(.btn, .chip, .nc-btn, .nc-chip, .rc-segment, select) { min-height: 40px; min-width: 40px; }
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine, #screen:has(> [data-equipe-zone]) > .h-row)
    :is(.btn, .chip, .nc-btn, .nc-chip) { white-space: normal; text-align: center; justify-content: center; line-height: 1.25; }
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine) summary { min-height: 40px; padding-top: 9px; padding-bottom: 9px; box-sizing: border-box; }

  /* Champs de saisie en 16 px. */
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine)
    :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) { font-size: 16px; }

  /* Texte d'au moins 12 px : puces d'état et de date, étiquettes, en-têtes de tableau, petits boutons. */
  html[data-espace="console"] :is(#screen > .nc-ve, #screen > .mc, #screen > .col-racine, #screen > .avt-racine, #screen > [data-equipe-zone],
    #screen > .re, #screen > .jr, #screen > .cp-racine)
    :is(thead th, .st, .nc-st, .nc-dc, .nc-lab, .nc-pf, .nc-lg2, .nc-btn.nc-s) { font-size: 12px; }

  /* ------------------------------------------------------------ Vue d'ensemble */
  /* Nom du restaurant (lien vers sa fiche) et nombres qui ouvrent la liste : de vraies cibles. */
  html[data-espace="console"] #screen > .nc-ve .nc-ve-nom { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; text-align: left; }
  html[data-espace="console"] #screen > .nc-ve button.nc-st { min-width: 40px; min-height: 40px; justify-content: center; font-size: 13px; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-periode { min-height: 40px; }
  /* Lignes des cartes d'argent (libellé, montant, puce « Crédit publicitaire… : non mesuré ») : la puce passe à la ligne entière,
     sans couper ses mots, au lieu de sortir de la carte. */
  html[data-espace="console"] #screen > .nc-ve .nc-ln { flex-wrap: wrap; row-gap: 4px; }
  /* « À faire, par restaurant » (11/11, retour 5c112b93) : une grille de mini-cartes (Card), trois par rangée de 390 à 760 px, deux
     en dessous (comme les vignettes de la page Clients) : initiales, total à faire en pastille (Badge), nom sur deux lignes au plus.
     Un toucher ouvre la fenêtre du restaurant (plus bas, « Fenêtres »). */
  html[data-espace="console"] #screen > .nc-ve .nc-ve-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; min-height: 44px;
    padding: 8px; border: 1px solid var(--c-ligne); border-radius: 12px; background: var(--c-carte); color: var(--c-encre); font: inherit; text-align: left;
    cursor: pointer; box-sizing: border-box; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini:focus-visible { outline: 3px solid var(--c-bleu-bord); outline-offset: 2px; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini-h { display: flex; align-items: center; gap: 6px; min-width: 0; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini .nc-ve-lg { width: 30px; height: 30px; font-size: 12px; }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini-n { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px;
    border-radius: 999px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; box-sizing: border-box; background: var(--c-zone); color: var(--c-gris); }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini-att { background: var(--c-orange-doux); color: var(--c-orange-texte); }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini-ko { background: var(--c-rouge-doux); color: var(--c-rouge-texte); }
  html[data-espace="console"] #screen > .nc-ve .nc-ve-mini-nom { font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

  /* ------------------------------------------------------------ Messages des clients : la liste, puis la conversation seule */
  html[data-espace="console"] #screen > .mc .mc-corps { gap: 12px; }
  html[data-espace="console"] #screen > .mc .mc-corps:not(.mc-avec-fil) .mc-fil,
  html[data-espace="console"] #screen > .mc .mc-corps.mc-avec-fil .mc-liste { display: none; }
  html[data-espace="console"] #screen > .mc .mc-liste { padding: 10px; }
  html[data-espace="console"] #screen > .mc .mc-conv { padding: 12px; min-height: 56px; }
  html[data-espace="console"] #screen > .mc .mc-conv-t b { font-size: 15px; }
  html[data-espace="console"] #screen > .mc .mc-conv-a { font-size: 14px; }
  html[data-espace="console"] #screen > .mc :is(.mc-sr, .mc-bn) { font-size: 12px; }
  html[data-espace="console"] #screen > .mc .mc-fil { padding: 12px; }
  html[data-espace="console"] #screen > .mc .mc-fil-t { gap: 8px; }
  html[data-espace="console"] #screen > .mc .mc-fil-t h2 { flex: 1 1 100%; order: 1; font-size: 18px; }
  html[data-espace="console"] #screen > .mc .mc-fil-t .mc-retour { order: 0; margin-left: 0; }
  html[data-espace="console"] #screen > .mc .mc-fil-t > :not(h2):not(.mc-retour) { order: 2; }
  html[data-espace="console"] #screen > .mc .mc-fil-t .btn:not(.mc-retour) { margin-left: 0; }
  html[data-espace="console"] #screen > .mc .mc-bulle { max-width: 90%; font-size: 15px; }
  html[data-espace="console"] #screen > .mc .mc-form-b { flex-direction: column; align-items: stretch; }
  html[data-espace="console"] #screen > .mc .mc-sig { flex-wrap: wrap; }
  html[data-espace="console"] #screen > .mc .mc-sig input { width: 100%; min-height: 44px; box-sizing: border-box; }
  html[data-espace="console"] #screen > .mc .mc-form textarea { min-height: 120px; }
  html[data-espace="console"] #screen > .mc .mc-form .btn.primary { min-height: 48px; }

  /* ------------------------------------------------------------ Collectes : files et derniers fetchs l'un sous l'autre, aérés */
  html[data-espace="console"] #screen > .col-racine .cc-barre { gap: 10px; }
  html[data-espace="console"] #screen > .col-racine .cc-planning { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; }
  html[data-espace="console"] #screen > .col-racine .col-file > li { padding-top: 4px; padding-bottom: 4px; }
  /* Deux cartes en haut (14/11, retour 39c4738b, 2e tentative), Uber Eats et Deliveroo (Card), côte à côte jusqu'à 320 px : les
     collectes du jour de la plateforme, « Pas faites » (rouge), « En cours » (gris), « Faites » (vert), « Total » ; toutes faites :
     seulement « faites/total » en vert. Un toucher ouvre la fenêtre en bas de ses collectes (plus bas, « Fenêtres »). */
  html[data-espace="console"] #screen > .col-racine .col-pfs:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
  html[data-espace="console"] #screen > .col-racine .col-pfc { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; min-height: 44px;
    padding: 10px; border: 1px solid var(--c-ligne); border-radius: 14px; background: var(--c-carte); color: var(--c-encre); font: inherit; text-align: left;
    cursor: pointer; box-sizing: border-box; box-shadow: 0 4px 16px rgba(22, 36, 63, .05); }
  html[data-espace="console"] #screen > .col-racine .col-pfc:focus-visible { outline: 3px solid var(--c-bleu-bord); outline-offset: 2px; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-t { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 800; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-t .nc-logo { flex: none; width: 18px; height: 18px; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-nom { min-width: 0; overflow-wrap: anywhere; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-k { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-l { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.35; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-mot { min-width: 0; overflow-wrap: anywhere; color: var(--c-encre2); }
  html[data-espace="console"] #screen > .col-racine .col-pfc-l .col-n { flex: none; font-size: 15px; font-variant-numeric: tabular-nums; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-total { margin-top: 2px; padding-top: 3px; border-top: 1px solid var(--c-ligne2); }
  html[data-espace="console"] #screen > .col-racine .col-pfc-tout .col-n { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
  html[data-espace="console"] #screen > .col-racine .col-pfc-vide { font-size: 13px; color: var(--c-gris); }
  /* Cartes des restaurants (14/11, retour 39c4738b, 2e tentative) : la taille des vignettes de la page Clients (css/mobile-clients.css) :
     trois par rangée dès 390 px, deux en dessous (plus bas), écart de 8 px, marges de 12 px (celles de la page) ; couverture basse,
     logo réduit, nom sur trois lignes au plus ; une ligne par plateforme : son logo et sa pastille (coche, rond ou roue), le nom de la
     plateforme reste lu par les lecteurs d'écran. Un toucher ouvre « Fetch data », la roue le suivi, comme à l'ordinateur. */
  html[data-espace="console"] #screen > .col-racine .col-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-ccarte { flex: 1 1 auto; padding: 0 8px 6px; gap: 1px; border-radius: 12px; min-width: 0; min-height: 44px; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-ccover { height: 48px; margin: 0 -8px; border-radius: 11px 11px 0 0; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-ctete { margin-top: -15px; min-height: 0; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-clogo { width: 30px; height: 30px; border-width: 2px; font-size: 12px; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-cnom { margin-top: 2px; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-creseau { margin-bottom: 3px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-cpf { min-height: 0; padding: 4px 0; gap: 5px; font-size: 12px; }
  html[data-espace="console"] #screen > .col-racine .col-grille .col-pf-nom { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  html[data-espace="console"] #screen > .col-racine .col-grille .nc-cpf-non { font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
  /* Menu « Fetch data » d'une carte réduite : dans l'écran quelle que soit la colonne : calé à gauche de la carte dans la première,
     centré dans celle du milieu, calé à droite dans la dernière (deux colonnes sous 390 px : plus bas). */
  html[data-espace="console"] #screen > .col-racine .col-grille > .col-ancre:nth-child(3n+1) > .cc-menu { left: 0; right: auto; }
  html[data-espace="console"] #screen > .col-racine .col-grille > .col-ancre:nth-child(3n+2) > .cc-menu { left: 50%; right: auto; transform: translateX(-50%); }
  html[data-espace="console"] #screen > .col-racine .col-grille > .col-ancre:nth-child(3n) > .cc-menu { left: auto; right: 0; }
  /* Code couleur des collectes (cartes des plateformes et leur fenêtre) : pas faites en rouge, en cours en gris, faites en vert. */
  html[data-espace="console"] :is(#screen > .col-racine, .modal > .mbox.col-feuille) .col-n { font-weight: 800; }
  html[data-espace="console"] :is(#screen > .col-racine, .modal > .mbox.col-feuille) :is(.col-n-pas, .col-pfc-pas .col-pfc-mot) { color: var(--c-rouge-texte); }
  html[data-espace="console"] :is(#screen > .col-racine, .modal > .mbox.col-feuille) :is(.col-n-cours, .col-pfc-cours .col-pfc-mot) { color: var(--c-gris); }
  html[data-espace="console"] :is(#screen > .col-racine, .modal > .mbox.col-feuille) :is(.col-n-faites, .col-pfc-faites .col-pfc-mot) { color: var(--c-vert); }
  html[data-espace="console"] :is(#screen > .col-racine, .modal > .mbox.col-feuille) .col-n-total { color: var(--c-encre); }

  /* ------------------------------------------------------------ Avancement : les quatre colonnes l'une sous l'autre */
  html[data-espace="console"] #screen > .avt-racine .avt-tableau { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  html[data-espace="console"] #screen > .avt-racine .avt-col-h h3 { font-size: 16px; }
  html[data-espace="console"] #screen > .avt-racine .avt-el-t { font-size: 15px; }
  html[data-espace="console"] #screen > .avt-racine .avt-el-p { font-size: 14px; }
  html[data-espace="console"] #screen > .avt-racine :is(.avt-date, .avt-qui, .avt-sous-col, .avt-ac-r) { font-size: 12px; }
  html[data-espace="console"] #screen > .avt-racine .avt-bloque { font-size: 13px; min-height: 40px; padding: 6px 12px; }
  html[data-espace="console"] #screen > .avt-racine .avt-el-h { flex-wrap: wrap; }
  /* « Actions par plateforme » : une action par bloc, chaque plateforme sur sa ligne, son nom devant (data-avt-pf), sans défilement de côté. */
  html[data-espace="console"] #screen > .avt-racine .avt-ac-defile { overflow-x: visible; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table { min-width: 0; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table :is(tbody, tr, th, td) { display: block; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table thead { display: none; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table tbody tr:last-child { border-bottom: 0; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table tbody th { min-width: 0; padding: 0 0 6px; border: 0; font-size: 15px; font-weight: 800; color: var(--navy); }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table td.avt-ac-c { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); column-gap: 10px; align-items: start;
    width: auto; min-width: 0; padding: 7px 0; border: 0; border-top: 1px dashed var(--line); }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table td.avt-ac-c::before { content: attr(data-avt-pf); grid-column: 1; grid-row: 1 / span 6; font-size: 13px; font-weight: 700; color: var(--ink-2); }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-table td.avt-ac-c > * { grid-column: 2; }
  html[data-espace="console"] #screen > .avt-racine .avt-ac-mot { font-size: 14px; }

  /* ------------------------------------------------------------ Équipe */
  html[data-espace="console"] #screen > [data-equipe-zone] .st { font-size: 12px; }
  /* Menu « … » d'un compte (Désactiver, Supprimer…) : des lignes de 44 px. */
  html[data-espace="console"] #screen > [data-equipe-zone] .acces-menu-item { min-height: 44px; }
  /* « Inviter un membre » (tiroir de la coque, ouvert depuis cette page seulement) : l'aide sous le champ en 12 px. */
  html[data-espace="console"]:has(#screen > [data-equipe-zone]) #drawer .hint { font-size: 12px; }

  /* ------------------------------------------------------------ Retours de l'équipe : une colonne à la fois */
  /* Choix de la colonne (titre et nombre de chaque colonne), dessiné par screens/retours-equipe.js sur écran étroit seulement. */
  html[data-espace="console"] #screen > .re .re-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
  html[data-espace="console"] #screen > .re .re-choix-b { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 12px;
    border: 1px solid var(--c-ligne); border-radius: 12px; background: var(--c-carte); color: var(--c-encre); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
  html[data-espace="console"] #screen > .re .re-choix-b.on { border-color: var(--c-encre); background: var(--c-encre); color: #fff; }
  html[data-espace="console"] #screen > .re .re-choix-b:focus-visible { outline: 3px solid var(--c-bleu-bord); outline-offset: 2px; }
  html[data-espace="console"] #screen > .re .re-choix-l { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
  html[data-espace="console"] #screen > .re .re-choix-n { flex: 0 0 auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--c-zone); color: var(--c-encre);
    font-size: 13px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
  html[data-espace="console"] #screen > .re .re-choix-b.on .re-choix-n { background: #fff; color: var(--c-encre); }
  /* Le tableau : chaque colonne prend toute la largeur ; le doigt passe d'une colonne à l'autre, aimanté. */
  html[data-espace="console"] #screen > .re .re-tableau { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
  html[data-espace="console"] #screen > .re .re-colonne,
  html[data-espace="console"] #screen > .re .re-colonne.re-repliee { flex: 0 0 100%; max-width: 100%; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; }
  html[data-espace="console"] #screen > .re .re-colonne-titre { font-size: 16px; }
  html[data-espace="console"] #screen > .re .re-kb-compte { font-size: 13px; min-width: 28px; height: 26px; }
  html[data-espace="console"] #screen > .re .re-plier { min-height: 44px; font-size: 13px; }
  html[data-espace="console"] #screen > .re .re-kb-aide { font-size: 13px; }
  html[data-espace="console"] #screen > .re .re-carte { cursor: pointer; padding: 12px; }
  html[data-espace="console"] #screen > .re .re-carte-titre { font-size: 15px; }
  html[data-espace="console"] #screen > .re .re-carte-texte { font-size: 14px; }
  html[data-espace="console"] #screen > .re :is(.re-carte-ctx, .re-carte-auteur, .re-vignette, .re-colonne-vide) { font-size: 12.5px; }
  html[data-espace="console"] #screen > .re .re-vignettes .re-vignette:not(:first-child) { font-size: 12px; }
  html[data-espace="console"] #screen > .re .re-vignettes .re-vignette::after { font-size: 12px; min-width: 18px; height: 18px; line-height: 18px; }

  /* Fiche d'une carte : plein écran, titre et « Fermer » toujours en haut, boutons « Déplacer dans » larges. */
  html[data-espace="console"] .nc.re-fiche .nc-tiroir-d { left: 0; right: 0; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; box-shadow: none; }
  html[data-espace="console"] .nc.re-fiche .nc-ph { position: sticky; top: 0; z-index: 2; gap: 10px; background: var(--c-carte); border-bottom: 1px solid var(--c-ligne); }
  html[data-espace="console"] .nc.re-fiche .nc-ph .nc-titre { min-width: 0; font-size: 17px; overflow-wrap: anywhere; }
  html[data-espace="console"] .nc.re-fiche .nc-ph [data-nc-fermer] { flex: 0 0 auto; min-height: 44px; min-width: 44px; font-size: 14px; }
  html[data-espace="console"] .nc.re-fiche .nc-btn { min-height: 44px; min-width: 44px; font-size: 14px; white-space: normal; text-align: center; justify-content: center; }
  html[data-espace="console"] .nc.re-fiche .re-fiche-deplacer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html[data-espace="console"] .nc.re-fiche :is(.re-fiche-capture figcaption, .re-fiche-qui, .nc-st, .nc-dc, .nc-lab) { font-size: 12.5px; }
  html[data-espace="console"] .nc.re-fiche .re-fiche-ctx-l { flex-wrap: wrap; font-size: 14px; }
  html[data-espace="console"] .nc.re-fiche .re-fiche-ctx dt { flex: 1 1 100%; }
  html[data-espace="console"] .nc.re-fiche .re-fiche-champ :is(input, select, textarea) { font-size: 16px; }

  /* ------------------------------------------------------------ Journal des processus */
  html[data-espace="console"] #screen > .jr .jr-filtres { gap: 8px; }
  html[data-espace="console"] #screen > .jr .jr-filtres select { width: 100%; max-width: 100%; }
  html[data-espace="console"] #screen > .jr .jr-lien { display: inline-flex; align-items: center; min-height: 40px; text-align: left; }
  html[data-espace="console"] #screen > .jr .segment button { min-height: 40px; min-width: 40px; font-size: 14px; }
  /* Activité en direct : la ligne à six colonnes (570 px au moins) s'empile ; la légende des colonnes n'a plus d'objet. */
  html[data-espace="console"] #screen > .jr .jr-entete { display: none; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) { grid-template-columns: auto minmax(0, 1fr) 14px; grid-template-areas: "h qui fl" "ou ou fl" "quoi quoi fl" "res res fl";
    gap: 4px 10px; align-items: start; padding: 10px; font-size: 14px; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > :first-child { grid-area: h; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-qui { grid-area: qui; align-self: center; font-size: 13px; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-ou { grid-area: ou; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-quoi { grid-area: quoi; min-width: 0; overflow-wrap: anywhere; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-res { grid-area: res; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-res:empty { display: none; }
  html[data-espace="console"] #screen > .jr .jr-ligne:not(.compact) > .jr-chevron { grid-area: fl; align-self: center; }
  html[data-espace="console"] #screen > .jr .jr-ligne.compact { font-size: 14px; }
  /* Panneau d'une ligne (tiroir de la coque, contenu .jr-tiroir de cette page) : pas de texte sous 12 px. */
  html[data-espace="console"]:has(#screen > .jr) #drawer .jr-tiroir :is(.st, .jr-t-titre, .jr-t-json) { font-size: 12px; }
  /* Données en retard (Restaurant, Ce qui manque, Données du, Pourquoi, Détails) : un restaurant par bloc, chaque case sous son titre (data-jr-l). */
  html[data-espace="console"] #screen > .jr .jr-probl-cadre { overflow-x: visible; }
  html[data-espace="console"] #screen > .jr .jr-probl :is(tbody, tr, th, td) { display: block; }
  html[data-espace="console"] #screen > .jr .jr-probl thead { display: none; }
  html[data-espace="console"] #screen > .jr .jr-probl tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  html[data-espace="console"] #screen > .jr .jr-probl tbody tr:last-child { border-bottom: 0; }
  html[data-espace="console"] #screen > .jr .jr-probl tbody th { min-width: 0; padding: 0 0 4px; border: 0; font-size: 15px; }
  html[data-espace="console"] #screen > .jr .jr-probl td { min-width: 0; padding: 4px 0; border: 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  html[data-espace="console"] #screen > .jr .jr-probl td[data-jr-l]::before { content: attr(data-jr-l); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  html[data-espace="console"] #screen > .jr .jr-probl .jr-probl-b { width: auto; text-align: left; padding-top: 8px; }
  /* « Voir la fraîcheur de toutes les données » : la grille défile dans son cadre ; une ombre sur le bord droit dit qu'il reste des
     colonnes à voir, et s'efface au bout (le cache, collé à la fin du contenu, la recouvre). */
  html[data-espace="console"] #screen > .jr .jr-grille-cadre {
    background: linear-gradient(to left, var(--surface) 45%, transparent) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(16, 24, 40, .26), transparent) right / 16px 100% no-repeat scroll; }
  /* Processus (Remboursements et contestations, Marketing…) : la grille d'ordinateur (250 px, état, 84 px, boutons) passe sur une
     colonne : le nom et le nombre « à décider » en haut, puis le mode, l'état et les boutons, chacun sur sa ligne. */
  html[data-espace="console"] #screen > .jr .jr-proc-l { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 12px 14px; }
  html[data-espace="console"] #screen > .jr .jr-proc-nom { grid-column: 1; grid-row: 1; }
  html[data-espace="console"] #screen > .jr .jr-proc-n { grid-column: 2; grid-row: 1; }
  html[data-espace="console"] #screen > .jr :is(.jr-proc-mode, .jr-proc-etat, .jr-proc-act) { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  html[data-espace="console"] #screen > .jr .jr-proc-act { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 8px; }
  html[data-espace="console"] #screen > .jr .jr-proc-act .btn { flex: 1 1 140px; min-height: 44px; font-size: 13px; }
  html[data-espace="console"] #screen > .jr .jr-proc-etapes { padding: 0 14px 14px; }
  /* Étapes d'un processus dépliées (« Voir les étapes ▾ ») : une tuile par ligne, de toute la largeur, sans flèche de côté
     (trois tuiles de front coupaient leurs mots : « Récupé / ration »). */
  html[data-espace="console"] #screen > .jr .jr-etapes { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  html[data-espace="console"] #screen > .jr .jr-etapes .jr-fleche { display: none; }
  html[data-espace="console"] #screen > .jr .jr-etape { min-height: 0; }
  /* Connexion à Uber (un bouton par compte : point, nom, état, flèche) : l'état passe sous le nom, sans couper ses mots. */
  html[data-espace="console"] #screen > .jr .jr-compte-l { grid-template-columns: 10px minmax(0, 1fr) 12px; row-gap: 2px; }
  html[data-espace="console"] #screen > .jr .jr-compte-l > .jr-pt { grid-column: 1; grid-row: 1 / span 2; }
  html[data-espace="console"] #screen > .jr .jr-compte-n { grid-column: 2; grid-row: 1; white-space: normal; }
  html[data-espace="console"] #screen > .jr .jr-compte-e { grid-column: 2; grid-row: 2; }
  html[data-espace="console"] #screen > .jr .jr-compte-l > .jr-chevron { grid-column: 3; grid-row: 1 / span 2; }
  html[data-espace="console"] #screen > .jr :is(.jr-carte-k, .jr-n, .jr-jour, .jr-heure-a, .jr-f, .jr-g-s, .jr-g-n, .jr-t-titre, .jr-t-json, .jr-fonction-liste, .jr-stat .l,
    .jr-quoi-s, .jr-proc-n span, .jr-probl-q .muted, .jr-etape .st) { font-size: 12px; }

  /* ------------------------------------------------------------ Connexion aux plateformes */
  html[data-espace="console"] #screen > .cp-racine .cp-tete h1 { font-size: 26px; line-height: 1.2; }

  /* ------------------------------------------------------------ Fenêtres
     À faire d'un restaurant (Vue d'ensemble, 11/11) : une fenêtre (Dialog) posée au milieu du fond assombri, et non la feuille plein
     écran des autres fenêtres (css/mobile-coque.css) : titre et « Fermer » restent en haut, le reste défile. */
  html[data-espace="console"] .modal:has(> .mbox.nc-ve-fen) { padding: 16px; place-items: center; align-items: center; justify-items: center;
    background: rgba(22, 36, 63, .55); }
  /* Fenêtre ouverte : la page derrière ne défile plus, ni au doigt ni à la molette (seule la fenêtre défile). */
  html[data-espace="console"]:has(.modal.open > .mbox:is(.col-feuille, .nc-ve-fen)) { overflow: hidden; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen { width: 100%; max-width: 480px; height: auto; max-height: calc(100vh - 32px); max-height: calc(100svh - 32px);
    padding: 0 16px; border-radius: 16px; box-shadow: var(--shadow-2); }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen > .nc-ve-fen-tete { position: sticky; top: 0; z-index: 3; display: flex; align-items: center;
    gap: 10px; margin: 0 -16px 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line-2, var(--line)); }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-tete h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 17px; line-height: 1.3;
    overflow-wrap: anywhere; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-tete .btn { flex: none; min-width: 44px; min-height: 44px; justify-content: center; }
  /* Collectes d'une plateforme (14/11, retour 39c4738b) : une fenêtre en bas (Bottom sheet) sur le fond assombri, de toute la largeur,
     85 % de la hauteur au plus ; titre et « × » restent en haut, la liste défile ; un toucher sur le fond la ferme. Une ligne par
     restaurant : son nom et son état (Badge de la couleur de la carte), puis la collecte en cours ou en file, la dernière collecte,
     la raison d'un échec. */
  html[data-espace="console"] .modal:has(> .mbox.col-feuille) { padding: 0; place-items: end stretch; align-items: end; justify-items: stretch;
    background: rgba(22, 36, 63, .55); }
  html[data-espace="console"] .modal > .mbox.col-feuille { width: 100%; max-width: 100%; height: auto; max-height: 85vh; max-height: 85svh; margin: 0;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 16px); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(22, 36, 63, .18); }
  html[data-espace="console"] .modal > .mbox.col-feuille > .col-feuille-tete { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
    margin: 0 -16px 8px; padding: 8px 8px 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line-2, var(--line)); }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-feuille-tete h3 { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0;
    font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-feuille-tete h3 .nc-logo { flex: none; width: 20px; height: 20px; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-feuille-x { flex: none; min-width: 44px; min-height: 44px; padding: 0; justify-content: center; font-size: 24px; line-height: 1; }
  html[data-espace="console"] .modal > .mbox.col-feuille :is(.col-feuille-comptes, .col-feuille-vide) { margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-liste { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--c-ligne2);
    font-size: 13px; line-height: 1.4; color: var(--c-encre2); }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-nom { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--c-encre); overflow-wrap: anywhere; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-etat { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--c-zone); color: var(--c-gris); }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-pas .col-fl-etat { background: var(--c-rouge-doux); color: var(--c-rouge-texte); }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-faite .col-fl-etat { background: var(--c-vert-doux, var(--c-zone)); color: var(--c-vert); }
  html[data-espace="console"] .modal > .mbox.col-feuille :is(.col-fl-det, .col-fl-raison) { min-width: 0; overflow-wrap: anywhere; }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-raison { color: var(--c-rouge-texte); }
  html[data-espace="console"] .modal > .mbox.col-feuille .col-fl-suivre { align-self: flex-start; min-height: 44px; margin-top: 4px; justify-content: center; }
  /* À faire d'un restaurant : chaque ligne du tableau, son nombre (le même bouton) à droite ; la part de chaque plateforme écrite sous
     le libellé (l'info-bulle n'a plus d'objet). */
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-tete .nc-ve-lg { width: 32px; height: 32px; font-size: 12px; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-l { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--c-ligne2);
    font-size: 14px; color: var(--c-encre); }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-l:first-child { border-top: 0; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-lib { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-fen-parts { font-size: 12px; font-weight: 500; color: var(--c-gris); }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-tip { display: none; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen button.nc-st { min-width: 40px; min-height: 40px; justify-content: center; font-size: 13px; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen :is(.nc-ve-zero, [data-ve-n]) { font-size: 14px; }
  html[data-espace="console"] .modal > .mbox.nc-ve-fen .nc-ve-nom { display: inline-flex; align-items: center; min-height: 40px; max-width: 60%; text-align: right; font-size: 14px;
    color: var(--c-bleu); }
}

/* Vue d'ensemble, « Robots, par compte » (13/11/2026, KO n°49 de l'aperçu) : sous 640 px, chaque compte est une fiche empilée
   (css/nc-menu-gauche.css). Le nom du compte (puce de plateforme, d'ordinaire sur une seule ligne) passe à la ligne dans sa fiche au
   lieu d'élargir le tableau, qui glissait alors de côté et laissait une bande blanche à droite ; un nom sans espace se coupe où il
   faut. Au-dessus de 640 px, le tableau reste celui d'avant. */
@media (max-width: 640px) {
  html[data-espace="console"] #screen > .nc-ve .nc-ve-robots-tb .nc-pf { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
    text-align: left; border-radius: 12px; }
}

/* Moins de 390 px : deux cartes par rangée (Collectes, mini-cartes de la Vue d'ensemble), comme les vignettes de la page Clients. */
@media (max-width: 389.98px) {
  html[data-espace="console"] #screen > .col-racine .col-grille,
  html[data-espace="console"] #screen > .nc-ve .nc-ve-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-espace="console"] #screen > .col-racine .col-grille > .col-ancre:nth-child(odd) > .cc-menu { left: 0; right: auto; transform: none; }
  html[data-espace="console"] #screen > .col-racine .col-grille > .col-ancre:nth-child(even) > .cc-menu { left: auto; right: 0; transform: none; }
}
