/* Verso au téléphone, refonte du 22/11/2026.

   Corentin : « refais complètement le site sur la version téléphone : elle n'est pas jolie du tout et pas
   optimisée […] sur téléphone on n'a pas beaucoup de place : aller au nécessaire ». Maquettes choisies sur
   image : le code « 1 » (pavé de chiffres dans la page, code-acces.css) et l'accueil « A » (le fil du jour).

   Cette feuille est chargée en dernier. Elle ne touche que le téléphone (700 px et moins pour la connexion,
   720 px et moins pour le logiciel, comme mobile.css) et reprend l'écriture de l'Épuré : page papier, traits
   fins, titres à empattements, or de Verso, Aurore en pixels. mobile.css garde le socle (barre du bas, écrans
   plein cadre) ; ici, ce qui a été redessiné. */

/* ---------- La connexion ----------
   De haut en bas : la porte du coffre, « Connexion », deux champs (leur nom est écrit dedans), « Entrer »,
   Google ou Microsoft, et les liens. Plus de phrase d'accueil ni d'explication, plus de bulle d'aide. */
.auth-t-tel { display: none; }
/* Les rubriques d'« À valider » n'existent qu'au téléphone. */
.tel-rub { display: none; }
@media (max-width: 700px) {
  #loginView.auth.show { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh; }
  #loginView .auth-haut { display: none; }
  #loginView .auth-decor { position: relative; flex: none; height: clamp(120px, 26vh, 220px); margin-top: max(12px, env(safe-area-inset-top, 0px)); overflow: hidden; }
  #loginView .auth-panel { position: relative; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 430px; margin: 0 auto;
    padding: 0 22px max(14px, env(safe-area-inset-bottom, 0px)); }
  #loginView .auth-main > .eyebrow, #loginView .auth-intro, #loginForm .divider, #loginView #fournisseursNote { display: none; }
  #loginView .auth-panel h1, #loginView .auth-panel h2.auth-titre { margin: 10px 0 0; font-size: 30px; line-height: 1.1; text-align: center; }
  .auth-t-ordi { display: none; }
  .auth-t-tel { display: inline; }
  #loginView .auth-panel .form { gap: 12px; margin-top: 20px; }
  #loginView .auth-panel .field input { height: 54px; padding: 0 16px; border: 1px solid rgba(18, 21, 26, .3); border-radius: 14px; }
  #loginView .auth-panel .btn { min-height: 54px; font-size: 16.5px; }
  #loginView #loginForm > #googleBtn, #loginView #loginForm > #microsoftBtn { grid-column: 1 / -1; padding: 0 16px; font-size: 16px; }
  #loginView #loginSubmit { margin-top: 6px; }
  /* Le nom du champ est écrit dans le champ, et s'efface dès qu'on y tape (ou que le téléphone le remplit). */
  #loginForm .field { position: relative; display: flex; flex-direction: column; gap: 0; }
  #loginForm .auth-password-head { display: contents; }
  #loginForm .field label { position: absolute; z-index: 1; left: 17px; top: 0; display: flex; align-items: center; height: 54px; font-size: 16px; font-weight: 400; color: #8a8e95; pointer-events: none; }
  #loginForm .field:has(input:not(:placeholder-shown)) label { opacity: 0; }
  #loginForm .field input::placeholder { color: transparent; }
  #loginForm #oubliBtn { order: 3; align-self: flex-end; margin-top: 10px; padding: 4px 0; font-size: 14px; }
  #loginView .auth-panel #inscriptionContact, #loginView .auth-panel #inscriptionAppel { margin-top: 8px; text-align: center; }
  #loginView .auth-legal { margin: auto 0 0; padding-top: 22px; text-align: center; }
  body:has(#loginView.show) .vc-lanceur { display: none; }
  /* « Votre badge » (la photo, après le code) : la même page sans la porte, tout centré, le badge au milieu. */
  #loginView.etape-photo .auth-decor { display: none; }
  #loginView.etape-photo .auth-panel { padding-top: max(28px, env(safe-area-inset-top, 0px)); text-align: center; }
  #loginView.etape-photo .pb-sur { justify-content: center; }
  #loginView.etape-photo .pb-badge { margin-left: auto; margin-right: auto; }
}

/* ---------- Le logiciel au téléphone ---------- */
.tel-accueil { display: none; }
@media (max-width: 720px) {
  html.style-pro.style-epure {
    --t-carte: #fdfcf9; --t-encre: #12151a; --t-doux: #6a6f77; --t-pale: #8a8e95; --t-trait: rgba(18, 21, 26, .13); --t-or: #e5b95b;
    --t-serif: "Verso Epure", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; /* 24/11/2026 : grands titres sans empattements (choix B) */
    --tel-barre: calc(60px + env(safe-area-inset-bottom)); --tel-haut: calc(56px + env(safe-area-inset-top));
  }

  /* La barre du haut : la marque à gauche ; à droite, des ronds au trait fin. */
  html.style-pro.style-epure #appView .topbar { padding: env(safe-area-inset-top) 16px 0 20px; border-radius: 0; background: transparent; }
  html.style-pro.style-epure #appView .topbar .tel-marque { width: 34px; height: 34px; border-radius: 50%; background: var(--t-or); color: var(--t-encre); box-shadow: none; }
  html.style-pro.style-epure #appView .topbar .tel-marque svg { width: 50%; }
  html.style-pro.style-epure #appView .topbar-actions { gap: 8px; }
  html.style-pro.style-epure #appView .topbar :is(.workspace-search, .notif-btn, .memo-btn) {
    width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--t-trait) !important; border-radius: 50% !important;
    background: var(--t-carte) !important; box-shadow: none !important; color: var(--t-encre);
  }
  html.style-pro.style-epure #appView .topbar .user-chip { min-width: 40px; padding: 0; }
  html.style-pro.style-epure #appView .topbar .user-chip .avatar { width: 40px; height: 40px; border-radius: 50%; background: #ebe7dc; color: var(--t-encre); box-shadow: none; font-size: 13px; font-weight: 600; }
  html.style-pro.style-epure #appView .topbar :is(.notif-btn, .memo-btn) .nav-badge:not(.hidden) {
    top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--t-or); color: var(--t-encre);
    font-size: 10.5px; font-weight: 700; line-height: 17px; box-shadow: 0 0 0 2px var(--paper, #f6f4ee);
  }

  /* La barre du bas : à plat, un trait fin au-dessus ; Aurore au milieu, son portrait en pixels dans un rond d'or. */
  html.style-pro.style-epure .tel-barre {
    left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    padding: 9px 10px calc(5px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--t-trait); border-radius: 0;
    background: var(--t-carte); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html.style-pro.style-epure .tel-onglet { gap: 4px; min-height: 44px; padding: 0 2px; border-radius: 10px; color: var(--t-pale); font-size: 10.5px; font-weight: 500; }
  html.style-pro.style-epure .tel-onglet .icon { width: 22px; height: 22px; stroke-width: 1.6; }
  html.style-pro.style-epure .tel-onglet .icon.tel-points { stroke-width: 2.8; stroke-linecap: round; }
  html.style-pro.style-epure .tel-onglet.active { color: var(--t-encre); font-weight: 650; }
  html.style-pro.style-epure .tel-onglet:focus-visible { outline: 2px solid var(--t-encre); outline-offset: -2px; }
  html.style-pro.style-epure .tel-badge {
    top: -5px; left: calc(50% + 5px); box-sizing: border-box; min-width: 17px; height: 17px; padding: 0 5px; border: 0; border-radius: 9px;
    background: var(--t-or); color: var(--t-encre); font-size: 10.5px; font-weight: 700; line-height: 17px; box-shadow: 0 0 0 2px var(--t-carte);
  }
  html.style-pro.style-epure .tel-aurore { align-self: start; margin-top: -31px; padding: 0; }
  html.style-pro.style-epure .tel-aurore > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.style-pro.style-epure .tel-micro { width: 54px; height: 54px; border: 0; background: var(--t-or); box-shadow: 0 0 0 5px var(--t-carte); }
  html.style-pro.style-epure .tel-aurore.active .tel-micro { background: var(--t-or); box-shadow: 0 0 0 5px var(--t-carte), 0 0 0 6.5px var(--t-encre); }
  .tel-aurore-pix { display: block; width: 26px; height: 32.5px; }

  /* L'accueil : le fil du jour. Le reste de la vue d'ensemble (widgets, cartes, bandeau) reste à l'ordinateur. */
  #appView [data-view-panel="overview"] > :not(.tel-accueil) { display: none !important; }
  .tel-accueil { display: block; padding: 0 8px; }
  .ta-date { margin: 18px 0 0; font-size: 14.5px; color: var(--t-doux); }
  .ta-bonjour { margin: 4px 0 0; font-family: var(--t-serif); font-size: 30px; font-weight: 680; letter-spacing: -.02em; line-height: 1.1; color: var(--t-encre); }
  .ta-champ {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; margin: 20px 0 0; padding: 0 7px 0 16px;
    border: 1px solid var(--t-trait); border-radius: 26px; background: var(--t-carte); color: var(--t-pale);
    font: inherit; font-size: 16px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .ta-champ > span:not(.ta-mic) { flex: 1; min-width: 0; }
  .ta-aurore-pix { flex: none; width: 20px; height: 25px; }
  .ta-mic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--t-encre); color: #fff; }
  .ta-mic .icon { width: 19px; height: 19px; stroke-width: 1.7; }
  .ta-fil { margin-top: 14px; }
  .ta-ligne {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0;
    background: none; color: var(--t-encre); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .ta-ligne:last-child { border-bottom: 0; }
  .ta-ligne:active { opacity: .6; }
  .ta-n { flex: none; width: 34px; font-family: var(--t-serif); font-size: 28px; font-weight: 680; line-height: 1; letter-spacing: -.02em; text-align: center; }
  .ta-n.zero { color: #b3b5b9; }
  .ta-n .icon { display: block; width: 22px; height: 22px; margin: 0 auto; color: var(--t-doux); stroke-width: 1.6; }
  .ta-panne .ta-n i { display: block; width: 9px; height: 9px; margin: 0 auto; border-radius: 50%; background: #b5473a; }
  .ta-t { flex: 1; min-width: 0; }
  .ta-t b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
  .ta-t small { display: block; margin-top: 2px; overflow: hidden; font-size: 13.5px; line-height: 1.3; color: var(--t-doux); white-space: nowrap; text-overflow: ellipsis; }
  .ta-panne.ouverte .ta-t small { white-space: normal; }
  .ta-ch { flex: none; width: 18px; height: 18px; fill: none; stroke: #b3b5b9; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Les pages : un titre en haut, les onglets dessous, puis le contenu ----------
     Sur l'accueil, la barre du haut porte la marque, la cloche et les mémos. Ailleurs, elle porte le nom de la
     famille (« Clients », « Messagerie », « Cabinet »…), la loupe et le compte. Les pages de la famille sont des
     onglets soulignés, les mêmes partout ; les bandeaux de l'ordinateur (titre, fil d'Ariane, boutons de module)
     ne sont pas repris : ils disaient deux fois où l'on est. */
  #appView .topbar-heading > div { display: block; min-width: 0; }
  #appView .topbar-heading .pas-nav, #appView .topbar-heading .fil-haut { display: none; }
  #appView .topbar #pageTitle {
    position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: hidden; clip: auto; clip-path: none; white-space: nowrap; text-overflow: ellipsis;
    font-family: var(--t-serif); font-size: 28px; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; color: var(--t-encre);
  }
  body[data-vue="overview"] #appView .topbar #pageTitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body:not([data-vue="overview"]) #appView .topbar .tel-marque { display: none; }
  body:not([data-vue="overview"]) #appView .topbar :is(.notif-btn, .memo-btn) { display: none !important; }

  html.style-pro.style-epure #appView #famOnglets:not([hidden]) {
    display: flex !important; gap: 22px; width: auto; max-width: none; margin: 2px -12px 16px; padding: 0 20px; overflow-x: auto; scrollbar-width: none;
    border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0; background: none; box-shadow: none;
  }
  html.style-pro.style-epure #appView #famOnglets::-webkit-scrollbar { display: none; }
  html.style-pro.style-epure #appView #famOnglets > button {
    position: relative; flex: none; min-height: 40px; margin: 0; padding: 4px 0 11px; border: 0; border-radius: 0; background: none; box-shadow: none;
    color: var(--t-doux); font-size: 15px; font-weight: 500; white-space: nowrap;
  }
  html.style-pro.style-epure #appView #famOnglets > button > svg { display: none; }
  html.style-pro.style-epure #appView #famOnglets > button[aria-selected="true"] { color: var(--t-encre); font-weight: 650; }
  html.style-pro.style-epure #appView #famOnglets > button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--t-encre); }
  html.style-pro.style-epure #appView #famOnglets > button > em { margin-left: 5px; padding: 0; border: 0; background: none; box-shadow: none; color: #9a9da3; font-size: inherit; font-style: normal; font-weight: 500; }
  html.style-pro.style-epure #appView #famOnglets > button > em:empty { display: none; }

  html.style-pro.style-epure #appView .view .va-bandeau:not(.ov-bandeau) {
    min-height: 0; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; background: none !important; box-shadow: none;
  }
  html.style-pro.style-epure #appView .view .va-bandeau:not(.ov-bandeau)::before, html.style-pro.style-epure #appView .view .va-bandeau:not(.ov-bandeau)::after { content: none; }
  html.style-pro.style-epure #appView .view .va-bandeau:not(.ov-bandeau) :is(.va-fil, .va-titre, nav.va-modules) { display: none !important; }
  /* Les pages de Réglages redisaient leur nom sous l'onglet. */
  html.style-pro.style-epure #appView .view header.rg-titre { display: none !important; }
  html.style-pro.style-epure #appView .view .va-sur-bandeau { margin-top: 0 !important; }
  /* La grande carte qui porte le contenu d'une page à l'ordinateur : au téléphone, le contenu est posé sur la page. */
  html.style-pro.style-epure #appView .view > .va-sur-bandeau > .va-carte.va-page { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }

  /* Le rond d'Aurore dépasse moins de la barre : ce qui est posé juste au-dessus (la saisie d'Aurore) reste libre. */
  /* Le rond d'Aurore tient dans la barre, sans dépasser : il ne recouvre plus rien de ce qui est posé juste
     au-dessus (les gestes d'un brouillon, « Répondre » sous un e-mail, la saisie d'Aurore). */
  html.style-pro.style-epure { --tel-barre: calc(62px + env(safe-area-inset-bottom)); }
  html.style-pro.style-epure .tel-barre { align-items: center; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); }
  html.style-pro.style-epure .tel-aurore { align-self: center; margin-top: 0; }
  html.style-pro.style-epure .tel-micro { width: 48px; height: 48px; box-shadow: none; }
  html.style-pro.style-epure .tel-aurore.active .tel-micro { box-shadow: 0 0 0 2px var(--t-carte), 0 0 0 3.5px var(--t-encre); }
  .tel-aurore-pix { width: 23px; height: 28.75px; }

  /* ---------- Aurore : la conversation et rien d'autre ----------
     Une rangée (Historique, Nouvelle, la roue des réglages), le fil qui prend la hauteur, les idées sur une ligne
     qui défile, la saisie juste au-dessus de la barre. Ses réglages et Telegram restent derrière la roue. */
  #appView #contenu:has(.view[data-view-panel="aurore"].active) { padding-bottom: calc(var(--tel-barre) + 14px); }
  #appView [data-view-panel="aurore"] .aurore-page { display: block; }
  #appView [data-view-panel="aurore"] .aurore-gauche { position: relative; }
  #appView [data-view-panel="aurore"] .aurore-tete > div { display: none; }
  #appView [data-view-panel="aurore"] .aurore-tete { min-height: 0; margin: 0 0 10px; padding: 0; }
  #appView [data-view-panel="aurore"] #aurorePage:has(#auroreForm) #auroreCote { display: none; }
  #appView [data-view-panel="aurore"] #aurorePage:has(#auroreForm) .aurore-tete { position: absolute; top: 0; right: 0; z-index: 2; margin: 0; }
  #appView [data-view-panel="aurore"] #aurorePage:has(#auroreForm) #auroreVue {
    display: grid; place-items: center; width: 40px; min-width: 0; height: 40px; min-height: 0; padding: 0; border: 1px solid var(--t-trait); border-radius: 50%;
    background: var(--t-carte); box-shadow: none; color: var(--t-encre); border-radius: 50% !important;
  }
  #appView [data-view-panel="aurore"] #aurorePage:has(#auroreForm) #auroreVue span { display: none; }
  #appView [data-view-panel="aurore"] .aurore-chat {
    display: flex; flex-direction: column; width: auto; height: calc(100dvh - var(--au-reserve, 130px) - var(--tel-barre) - 16px); min-height: 280px; margin: 0;
  }
  #appView [data-view-panel="aurore"] .aurore-barre { flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 4px; padding: 0 48px 0 0; border: 0; background: none; }
  #appView [data-view-panel="aurore"] .aurore-barre-bt {
    flex: none; height: 40px; min-height: 0; margin: 0; padding: 0 14px; border: 1px solid var(--t-trait); border-radius: 20px; background: var(--t-carte); box-shadow: none;
    color: var(--t-encre); font-size: 14px; font-weight: 550; white-space: nowrap;
  }
  #appView [data-view-panel="aurore"] #auroreNouvelle { font-size: 0; }
  #appView [data-view-panel="aurore"] #auroreNouvelle::after { content: "＋ Nouvelle"; font-size: 14px; }
  #appView [data-view-panel="aurore"] .aurore-agrandir, #appView [data-view-panel="aurore"] .aurore-jauge { display: none !important; }
  #appView [data-view-panel="aurore"] .aurore-fil-web { flex: 1 1 0; min-height: 0 !important; max-height: none !important; overflow-y: auto; margin: 0; padding: 10px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  #appView [data-view-panel="aurore"] .aurore-chat > :is(.aurore-vide, .aurore-ecrit, .agent-travail) { flex: none; }
  #appView [data-view-panel="aurore"] .aurore-puces { flex: none; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -12px 10px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
  #appView [data-view-panel="aurore"] .aurore-puces::-webkit-scrollbar { display: none; }
  #appView [data-view-panel="aurore"] .aurore-puce { flex: none; max-width: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--t-trait); border-radius: 18px; background: var(--t-carte); font-size: 14px; white-space: nowrap; }
  #appView [data-view-panel="aurore"] .aurore-saisie-web { flex: none; margin: 0; }

  /* ---------- Clients : la recherche, « Filtrer », « + », Clients / Prospects, « ⋯ », puis la liste ----------
     Les commandes des deux volets de l'ordinateur (clients-page.css), les mêmes boutons : le statut, le tri et les
     filtres s'ouvrent par « Filtrer » ; la base perso, l'import, l'export et les réglages sont dans « ⋯ ». */
  html.style-pro.style-epure #appView [data-view-panel="crm"][data-crm-current="clients"] #crmNav.crm-tete,
  html.style-pro.style-epure #appView [data-view-panel="crm"][data-crm-current="clients"] #crmPortes,
  #appView [data-view-panel="crm"] .cl-layout.mode-table .rep-rapides,
  #appView #crmQuickCreate { display: none !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-dir {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 8px; align-content: start; position: static !important;
    margin: 0 0 6px !important; padding: 0 4px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  }
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-dir > * { grid-column: 1 / -1; order: 5; margin: 0; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-dir > :is(.cl-dir-head, .crm-base-note, .crm-liens, #clientFilter, .crm-dir-outils) { display: none !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .cl-search {
    grid-column: 1; order: 1; display: flex !important; align-items: center; gap: 9px; height: 44px; max-width: none !important; padding: 0 14px !important;
    border: 1px solid var(--t-trait) !important; border-radius: 22px !important; background: var(--t-carte) !important; box-shadow: none !important;
  }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .cl-search .icon { position: static !important; flex: none; width: 17px; height: 17px; color: var(--t-pale); transform: none !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .cl-search input { flex: 1; min-width: 0; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; outline: 0 !important; font-size: 16px !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .cl-search kbd { display: none; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt {
    display: inline-flex; align-items: center; justify-content: center; position: relative; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--t-trait); border-radius: 50%; background: var(--t-carte); color: var(--t-encre); cursor: pointer; list-style: none;
  }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt::-webkit-details-marker { display: none; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt .icon.plein { fill: currentColor; stroke: none; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt.or { border-color: var(--t-encre); background: var(--t-encre); color: #fff; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt .n { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--t-or); color: var(--t-encre); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-bt .n:empty { display: none; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table #vlFiltrer { grid-column: 2; order: 2; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table #vlFiltrer[aria-expanded="true"] { border-color: var(--t-encre); background: var(--t-encre); color: #fff; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table #vlNouveau { grid-column: 3; order: 3; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-rang { display: flex; align-items: center; gap: 8px; order: 4; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-seg { height: 42px; border-radius: 21px; background: #ebe8df; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-seg button { border-radius: 18px; font-size: 14.5px; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-plus .vl-bt { width: 42px !important; height: 42px !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .vl-plus .menu button { min-height: 44px; font-size: 15px; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-dir:has(#crmFiltres:not(.hidden)) > #clientFilter { display: flex !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-dir:has(#crmFiltres:not(.hidden)) > .crm-dir-outils { display: block !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .crm-dir-outils > :not(.rep-trier) { display: none !important; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .rep-trier { display: flex !important; align-items: center; gap: 8px; font-size: 14px; color: var(--t-doux); }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .rep-trier select { flex: 1; min-width: 0; }
  #appView [data-view-panel="crm"] .cl-layout.mode-table .crm-filtres:not(.hidden) { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; padding: 12px !important; border: 1px solid var(--t-trait); border-radius: 14px; background: var(--t-carte) !important; }
  /* La liste, posée sur la page : plus de carte autour. */
  #appView [data-view-panel="crm"] .cl-layout.mode-table > .cl-fiche { margin: 0 !important; padding: 0 4px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }

  /* ---------- À valider (maquette B, 23/11/2026) : cinq rubriques qui se déplient, chacune avec son nombre ----------
     Elles remplacent les pastilles de l'ordinateur ; la liste et la chose ouverte viennent sous la rubrique ouverte. */
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .va-page { display: flex; flex-direction: column; gap: 0; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .av-onglets { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub:not([hidden]) { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0; background: none; color: var(--t-encre); font: inherit; font-size: 16px; font-weight: 620; text-align: left; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub-i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #ebe7dc; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub-i .icon { width: 18px; height: 18px; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub-n { flex: 1 1 auto; min-width: 0; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub-c { flex: none; min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--t-or); font-size: 12.5px; font-style: normal; font-weight: 700; line-height: 24px; text-align: center; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub-ch { flex: none; width: 16px; height: 16px; color: #b3b5b9; transform: rotate(180deg); transition: transform .15s; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[aria-expanded="true"] .tel-rub-ch { transform: rotate(270deg); }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[data-tel-rub="mail"] { order: 10; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="mail"] .br-layout { order: 11; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[data-tel-rub="rdv"] { order: 20; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="rdv"] .br-layout { order: 21; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[data-tel-rub="linkedin"] { order: 30; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="linkedin"] .br-layout { order: 31; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[data-tel-rub="insta"] { order: 40; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="insta"] .br-layout { order: 41; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .tel-rub[data-tel-rub="cr"] { order: 50; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="cr"] .br-layout { order: 51; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] #avVide { order: 60; }
  /* Aucune rubrique ouverte : la page ne montre que les rubriques ; un brouillon ouvert en grand reste visible. */
  html.style-pro.style-epure #appView [data-view-panel="approvals"]:is(:not([data-tel-ouverte]), [data-tel-ouverte=""]):not([data-av-genre="vide"]) .br-layout:not(.br-ouvert) { display: none !important; }
  /* Rien à valider : le mot au milieu de la page (valider.css), sans le retrait ni le trait d'une rubrique. */
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-av-genre="vide"] .br-layout:not(.br-ouvert) { border-bottom: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-av-genre="vide"] .br-layout:not(.br-ouvert) .cl-dir { padding: 0 !important; }
  /* Ce qu'une rubrique ouvre : sans carte ni titre (la rubrique le dit déjà), sous un trait. */
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) { display: block; margin: 0 !important; padding: 4px 0 14px !important; border: 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) .cl-dir { margin: 0 !important; padding: 0 0 0 50px !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe { display: block; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe .cl-row.av-l { display: block; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; background: none; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe .av-l .nom { font-size: 15px; font-weight: 650; white-space: normal; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe .av-l .sub { font-size: 13px; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe .av-l .av-pic { display: none; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) #brListe .av-l.on .nom { text-decoration: underline; text-decoration-color: var(--t-or); text-decoration-thickness: 2px; text-underline-offset: 4px; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) .av-droite { display: block; margin: 0; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"] .br-layout:not(.br-ouvert) :is(#dianeCarte, #avCrCarte, #avRdvCarte, #instagramReponsesCarte) { margin: 0 !important; padding: 6px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  /* Rendez-vous et Instagram : toutes les propositions à la suite, chacune avec ses boutons (pas de liste à toucher d'abord). */
  html.style-pro.style-epure #appView [data-view-panel="approvals"]:is([data-tel-ouverte="rdv"], [data-tel-ouverte="insta"]) .br-layout:not(.br-ouvert) .cl-dir { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="rdv"] .br-layout:not(.br-ouvert) #avRdvCarte, html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="insta"] .br-layout:not(.br-ouvert) #instagramReponsesCarte { display: block !important; }
  html.style-pro.style-epure #appView [data-view-panel="approvals"]:is([data-tel-ouverte="rdv"], [data-tel-ouverte="insta"]) .br-layout:not(.br-ouvert) .br-propositions .approval { display: block !important; margin: 0 0 16px !important; padding: 0 0 0 50px !important; }
  /* LinkedIn et comptes rendus : la liste, puis celui qui est ouvert (le premier à l'arrivée). */
  html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="linkedin"] .br-layout:not(.br-ouvert) #dianeCarte, html.style-pro.style-epure #appView [data-view-panel="approvals"][data-tel-ouverte="cr"] .br-layout:not(.br-ouvert) #avCrCarte { display: block !important; margin-top: 8px !important; padding-top: 14px !important; border-top: 1px dashed var(--t-trait) !important; }

  /* ---------- Le brouillon ouvert (maquette C + les trois gestes de B, 23/11/2026) : sa question, votre réponse ; jeter, modifier, envoyer ---------- */
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brFiche.card { padding: 0 16px 150px; background: var(--paper, #f6f4ee); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .tel-br-tete { margin: 0 -16px 6px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; border-bottom: 0; background: rgba(246, 244, 238, .96); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .tel-br-tete .pos { font-size: 14.5px; font-weight: 600; color: var(--t-doux); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert :is(.tel-br-retour, .tel-br-suivant) { justify-content: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--t-trait); border-radius: 50%; background: var(--t-carte); color: var(--t-encre); font-size: 0; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert :is(.tel-br-retour, .tel-br-suivant) .icon { width: 18px; height: 18px; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .tel-br-suivant:disabled { opacity: .35; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail { gap: 12px; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .fc-head { margin: 0; padding: 0 4px; border: 0; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .fc-head .fc-avatar, html.style-pro.style-epure #appView .br-layout.br-ouvert .fc-head .fc-badge { display: none; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .fc-head h2 { font-family: var(--t-serif) !important; font-size: 22px !important; font-weight: 680 !important; line-height: 1.2; letter-spacing: -.02em; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-bulle { align-self: flex-start; display: block; max-width: 90%; margin: 0; padding: 12px 14px; border: 0; border-radius: 18px 18px 18px 6px; background: #ebe7dc; color: #33373d; font: inherit; font-size: 15px; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-bulle small { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 650; color: var(--t-doux); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-bulle[aria-expanded="false"] span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-reponse { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail:not(.br-edition) .br-lecture { margin-left: 8%; padding: 12px 14px; border: 1px solid var(--t-trait); border-radius: 18px 18px 6px 18px; background: var(--t-carte); box-shadow: inset 3px 0 0 var(--t-or); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-lecture-a { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; color: var(--t-doux); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-lecture-a b { font-weight: 650; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-la-sujet { display: none; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert .br-lecture-texte { padding: 0; border: 0; border-radius: 0; background: none; font-size: 15.5px; line-height: 1.5; }
  /* Les trois gestes, toujours sous le pouce : jeter et modifier en ronds, envoyer en grand. */
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-trait); background: var(--t-carte); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > :is([data-br="supprimer"], [data-br="modifier"], [type="submit"]) { order: 2; flex: none; flex-direction: column; gap: 4px; width: 60px; min-height: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--t-doux); font-size: 11.5px; font-weight: 550; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > [data-br="supprimer"] { order: 1; color: #b5473a; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > :is([data-br="supprimer"], [data-br="modifier"], [type="submit"]) .icon { box-sizing: border-box; width: 48px; height: 48px; padding: 14px; border: 1px solid var(--t-trait); border-radius: 50%; background: var(--paper, #f6f4ee); }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > .btn.primary { order: 3; flex: 1 1 auto; width: auto; height: 48px; min-height: 48px; border-radius: 24px !important; border-color: var(--t-encre) !important; background: var(--t-encre) !important; color: #fff !important; box-shadow: none !important; font-size: 15.5px; font-weight: 620; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > .btn.primary:disabled { opacity: .35; }
  /* « Ouvrir dans Gmail » ne sert que si Verso ne peut pas envoyer d'ici. */
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > a.btn { display: none; }
  html.style-pro.style-epure #appView .br-layout.br-ouvert #brDetail .br-actions > [data-br="envoyer"]:disabled ~ a.btn { order: 4; display: inline-flex; flex: none; width: auto; align-self: center; }

  /* ---------- La fiche d'un client (maquette B, 23/11/2026) : pas d'onglets, une liste dont chaque ligne ouvre sa page ---------- */
  html.style-pro.style-epure #appView #clientDetail .fc-nav > .btn.ghost { justify-content: center; width: 40px; min-width: 40px; height: 40px; padding: 0; border: 1px solid var(--t-trait); border-radius: 50%; background: var(--t-carte); color: var(--t-encre); font-size: 0; }
  html.style-pro.style-epure #appView #clientDetail .fc-nav > .btn.ghost .icon { width: 18px; height: 18px; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete-haut { align-items: flex-start; gap: 4px; padding: 0 4px 6px; text-align: left; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete .fc-avatar { display: none; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete { margin: 0 !important; padding: 4px 4px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete .fc-qui { justify-items: start; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete h2 { justify-content: flex-start; font-family: var(--t-serif) !important; font-size: 27px !important; font-weight: 680 !important; line-height: 1.12; letter-spacing: -.02em; text-align: left; }
  html.style-pro.style-epure #appView #clientDetail .fc-tete :is(.fc-identite, .fc-contact) { justify-content: flex-start; align-items: flex-start; }
  html.style-pro.style-epure #appView #clientDetail .fc-gestes .fc-actions > :is(.btn, a.btn), html.style-pro.style-epure #appView #clientDetail .fc-gestes .fc-actions > details > summary.btn { border: 0 !important; background: none !important; box-shadow: none !important; color: var(--t-encre) !important; }
  /* La liste des pages. */
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-principal { display: none; }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs { display: block; margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; border-top: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs > button { box-shadow: none !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0; padding: 0 2px; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; color: var(--t-encre); font-size: 16px; font-weight: 620; text-align: left; }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs .fc-tab-i { order: -1; display: block; box-sizing: border-box; flex: none; width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #ebe7dc; }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs .fc-tab-ch { order: 3; margin-left: auto; display: block; flex: none; width: 16px; height: 16px; color: #b3b5b9; transform: rotate(180deg); }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs .n + .fc-tab-ch { margin-left: 0; }
  html.style-pro.style-epure #appView #clientDetail.tel-liste .fc-tabs .n { order: 2; margin-left: auto !important; flex: none; min-width: 24px; height: 24px; padding: 0 7px; border: 0; border-radius: 12px; background: var(--t-or); color: var(--t-encre); font-size: 12.5px; font-weight: 700; line-height: 24px; }
  /* Une page ouverte : son nom en titre, l'en-tête du client replié ; le retour ramène à la liste. */
  html.style-pro.style-epure #appView #clientDetail:not(.tel-liste) .fc-tete-haut { display: none; }
  html.style-pro.style-epure #appView #clientDetail:not(.tel-liste) .fc-tabs { display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #clientDetail:not(.tel-liste) .fc-tabs > button:not(.on) { display: none; }
  html.style-pro.style-epure #appView #clientDetail:not(.tel-liste) .fc-tabs > button.on { box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: none !important; display: block; width: 100%; min-height: 0; margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--t-encre); font-family: var(--t-serif); font-size: 27px; font-weight: 680; letter-spacing: -.02em; text-align: left; pointer-events: none; }
  html.style-pro.style-epure #appView #clientDetail:not(.tel-liste) .fc-tabs > button.on .n { display: none; }

  /* ---------- Équipe et RH › Aujourd'hui (maquette C, 23/11/2026) : qui est là en tête, puis les demandes, refuser et valider en ronds ---------- */
  html.style-pro.style-epure #appView #rhRacine .rh-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
  html.style-pro.style-epure #appView #rhRacine .rh-menu .rh-ong { flex: none; min-height: 36px; padding: 0 13px; border: 1px solid var(--t-trait); border-radius: 18px; background: var(--t-carte); font-size: 14px; }
  html.style-pro.style-epure #appView #rhRacine .rh-menu .rh-boutons { flex: 1 1 100%; display: flex; gap: 8px; margin: 4px 0 0; }
  html.style-pro.style-epure #appView #rhRacine .rh-menu .rh-boutons .btn { min-height: 44px; border-radius: 22px !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-menu .rh-boutons .btn.primary { flex: 1 1 auto; justify-content: center; border-color: var(--t-encre) !important; background: var(--t-encre) !important; color: #fff !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-tete { display: none; }
  html.style-pro.style-epure #appView #rhRacine .rh-grille { display: flex; flex-direction: column; gap: 0; }
  html.style-pro.style-epure #appView #rhRacine .rh-cote { order: -1; }
  html.style-pro.style-epure #appView #rhRacine #rhQui { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 0; padding: 14px 0 6px; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine #rhQui > h3, html.style-pro.style-epure #appView #rhRacine .rh-groupe { flex: 0 0 100%; margin: 0; padding: 0; font-family: inherit !important; font-size: 12px !important; font-weight: 650 !important; letter-spacing: .05em; text-transform: uppercase; color: var(--t-pale); }
  html.style-pro.style-epure #appView #rhRacine #rhQui > p, html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui-reglages { display: none; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; min-height: 0; margin: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui .rh-av { width: 48px; height: 48px; border-radius: 50%; font-size: 14px; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui > b { display: none; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui-pr { display: block; max-width: 62px; overflow: hidden; font-size: 12px; font-style: normal; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; color: #3c4046; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui > span:not(.rh-av) { position: absolute; top: 36px; left: 43px; font-size: 0; line-height: 0; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui .rh-voyant { display: block; width: 12px; height: 12px; margin: 0; border-radius: 50%; background: #b3b5b9; box-shadow: 0 0 0 2px var(--paper, #f6f4ee); }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui .rh-voyant.ligne { background: #447a63; }
  html.style-pro.style-epure #appView #rhRacine #rhQui .rh-qui:has(.rh-voyant:not(.ligne)) :is(.rh-av, .rh-qui-pr) { opacity: .45; }
  html.style-pro.style-epure #appView #rhRacine #rhListe { margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine #rhListe .rh-pince { display: none; }
  html.style-pro.style-epure #appView #rhRacine .rh-groupe { margin: 18px 0 2px; }
  html.style-pro.style-epure #appView #rhRacine .rh-groupe b { margin-left: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; }
  html.style-pro.style-epure #appView #rhRacine .rh-lignes { margin: 0; padding: 0; border: 0; background: none; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne { display: flex; align-items: center; gap: 10px; margin: 0; padding: 13px 0; border: 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-type { display: none; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-quoi { flex: 1 1 auto; min-width: 0; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-quoi b { display: block; font-size: 15.5px; font-weight: 620; line-height: 1.3; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-quoi span { display: block; margin-top: 2px; font-size: 13.5px; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes { flex: none; display: flex; align-items: center; gap: 8px; margin: 0; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes .btn { min-height: 36px; border-radius: 18px !important; }
  /* Le premier groupe n'a plus son cadre doré ni ses cartes : des lignes, comme les autres. */
  html.style-pro.style-epure #appView #rhRacine #rhListe > h3.rh-groupe:first-of-type { margin: 18px 0 2px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; color: var(--t-pale) !important; }
  html.style-pro.style-epure #appView #rhRacine #rhListe > h3.rh-groupe:first-of-type + ul.rh-lignes { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; }
  html.style-pro.style-epure #appView #rhRacine #rhListe > h3.rh-groupe:first-of-type + ul .rh-ligne { margin: 0 !important; padding: 13px 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; }
  html.style-pro.style-epure #appView #rhRacine #rhListe > h3.rh-groupe:first-of-type b { background: none !important; color: inherit !important; }
  /* Refuser et valider : deux ronds, la croix puis la coche. */
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes :is(.btn.primary, [data-decision="refuser"], [data-etat="refusee"]) { justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50% !important; font-size: 0; box-shadow: none !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes :is(.btn.primary, [data-decision="refuser"], [data-etat="refusee"])::before { font-size: 17px; line-height: 1; }
  html.style-pro.style-epure #appView #rhRacine #rhListe .rh-ligne .rh-actes .btn.primary { order: 2; border-color: var(--t-encre) !important; background: var(--t-encre) !important; color: #fff !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes .btn.primary::before { content: "✓"; }
  html.style-pro.style-epure #appView #rhRacine #rhListe .rh-ligne .rh-actes .btn:is([data-decision="refuser"], [data-etat="refusee"]) { order: 1; text-decoration: none !important; border: 1px solid var(--t-trait) !important; background: var(--t-carte) !important; color: var(--t-encre) !important; }
  html.style-pro.style-epure #appView #rhRacine .rh-ligne .rh-actes :is([data-decision="refuser"], [data-etat="refusee"])::before { content: "✕"; }

  /* ---------- Comptes rendus (maquette A, 23/11/2026) : la recherche et « + », puis la liste rangée par état ---------- */
  /* À l'ordinateur la page se passe de titre ; au téléphone, le nom de la famille reste en haut comme partout. */
  html.style-pro.style-epure #appView:has(.view[data-view-panel="visios"].active) .topbar-heading { visibility: visible; }
  html.style-pro.style-epure #appView #crLire .cra-haut { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 0; }
  html.style-pro.style-epure #appView #crLire .cra-rech { flex: 1 1 auto; height: 44px; padding: 0 15px; border: 1px solid var(--t-trait) !important; border-radius: 22px !important; background: var(--t-carte) !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #crLire .cra-rech input { font-size: 16px; }
  html.style-pro.style-epure #appView #crLire .cra-nouveau { flex: none; width: 44px; height: 44px; border: 0 !important; border-radius: 50% !important; background: var(--t-encre) !important; color: #fff !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #crLire .cra-etat { display: block; margin: 18px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--t-pale); }
  html.style-pro.style-epure #appView #crLire .cra-it { position: relative; padding: 13px 0 13px 18px; border-bottom: 1px solid var(--t-trait); background: none !important; }
  html.style-pro.style-epure #appView #crLire .cra-it b { font-size: 15.5px; font-weight: 620; }
  html.style-pro.style-epure #appView #crLire .cra-it small { font-size: 13.5px; }
  html.style-pro.style-epure #appView #crLire .cra-it.relire::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--t-or); }
  html.style-pro.style-epure #appView #crLire .cra-it.relire .cra-p { display: none; }

  /* ---------- Pièces à recevoir (maquette A, 23/11/2026) : les demandes en puces, puis les clients avec leur jauge ---------- */
  html.style-pro.style-epure #appView #tironRacine .tr-tete { display: none !important; }
  html.style-pro.style-epure #appView #tironRacine #trCamp { display: flex !important; flex-wrap: nowrap; gap: 8px; margin: 14px -16px 4px !important; padding: 0 16px 2px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow-x: auto; scrollbar-width: none; }
  html.style-pro.style-epure #appView #tironRacine #trCamp::-webkit-scrollbar { display: none; }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong { flex: none; flex-direction: row; align-items: center; height: 36px; min-height: 36px; padding: 0 13px !important; border: 1px solid var(--t-trait) !important; border-radius: 18px !important; background: var(--t-carte) !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong b { font-size: 14px; font-weight: 550; color: var(--t-doux); }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong small { display: none; }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong em { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; color: inherit !important; font-size: 12.5px; font-weight: 500; opacity: .75; }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong[aria-selected="true"] { border-color: var(--t-encre) !important; background: var(--t-encre) !important; }
  html.style-pro.style-epure #appView #tironRacine #trCamp .tr-ong[aria-selected="true"] b { color: #fff; }
  /* « Nouvelle demande » : le rond « + » au-dessus de la barre, comme dans Messages. */
  html.style-pro.style-epure #appView #tironRacine #trCamp > .va-btn { position: fixed; right: 16px; bottom: calc(var(--tel-barre, 64px) + 16px); z-index: 30; width: 52px; min-width: 52px; height: 52px; padding: 0; border: 0 !important; border-radius: 50% !important; background: var(--t-encre) !important; color: #fff !important; box-shadow: 0 6px 18px rgba(18, 21, 26, .22) !important; font-size: 0; }
  html.style-pro.style-epure #appView #tironRacine #trCamp > .va-btn::before { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; }
  /* Un client par ligne : son nom, où il en est, la jauge de ses pièces. */
  html.style-pro.style-epure #appView #tironRacine #trScene { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #tironRacine #trGrille { display: block !important; padding: 0 0 80px !important; background: none !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case { display: block; width: 100%; margin: 0 !important; padding: 14px 0 !important; border: 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--t-encre) !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .pl { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--t-encre) !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .pl b { font-size: 15.5px; font-weight: 620; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .pl span { margin-top: 2px; font-size: 13.5px; font-weight: 450; letter-spacing: 0; text-transform: none; color: var(--t-doux) !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case.e-appeler .pl span { color: #b5473a !important; font-weight: 550; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .tr-pile { flex-direction: row; gap: 3px; min-height: 0; margin-top: 9px; padding: 0; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .tr-pile i { flex: 1 1 0; height: 4px; border: 0 !important; border-radius: 2px; background: #447a63 !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .tr-pile i.m { background: #e0dcd1 !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .tr-pile i.x { background: #e2a194 !important; }
  html.style-pro.style-epure #appView #tironRacine .tr-case .tr-marques { display: none; }

  /* ---------- Réglages (maquette C, 24/11/2026) : « vous, puis le cabinet » ----------
     Plus d'onglets qui défilent : Général devient une liste (le profil en tête, les réglages de la personne, puis
     une ligne par page du cabinet). Une page ouverte de la liste porte son nom en haut et un retour rond. */
  html.style-pro.style-epure body[data-vue="general"] #appView #famOnglets,
  html.style-pro.style-epure #appView:has(#telRegRetour:not([hidden])) #famOnglets { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="general"] > .rg-page { display: none !important; }
  html.style-pro.style-epure #appView .tel-reg { display: block; padding-bottom: 12px; }
  #appView .tel-reg .tr-qui {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 12px 0 16px; border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0;
    background: none; color: var(--t-encre); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  #appView .tel-reg .tr-qui:active { opacity: .6; }
  #appView .tel-reg .tr-pp { display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--t-or); font-size: 18px; font-weight: 650; }
  #appView .tel-reg .tr-pp img { display: block; width: 100%; height: 100%; object-fit: cover; }
  #appView .tel-reg .tr-qui .ta-t b { font-size: 18px; }
  #appView .tel-reg .tr-et { margin: 20px 0 2px; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--t-pale); }
  #appView .tel-reg .ta-ligne:disabled { cursor: default; opacity: 1; }
  #appView .tel-reg .ta-ligne:disabled .ta-t small { white-space: normal; }
  #appView .tel-reg .tr-rouge b { color: #b5473a; }
  #appView .tel-reg .tr-sw { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; background: #d6d2c7; }
  #appView .tel-reg .tr-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
  #appView .tel-reg [aria-checked="true"] .tr-sw { background: var(--t-encre); }
  #appView .tel-reg [aria-checked="true"] .tr-sw::after { left: 23px; }
  #appView .topbar-heading .tel-reg-retour:not([hidden]) {
    display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: var(--t-encre); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  #appView .topbar-heading .tel-reg-retour svg {
    flex: none; box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--t-trait); border-radius: 50%; background: var(--t-carte);
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  }
  #appView .topbar-heading .tel-reg-retour span { overflow: hidden; font-family: var(--t-serif); font-size: 26px; font-weight: 680; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
  #appView .topbar-heading:has(> .tel-reg-retour:not([hidden])) > div { display: none; }

  /* ---------- Messages d'équipe, la conversation ouverte (maquette B, 24/11/2026) ----------
     Le titre, les onglets et la barre du bas restent. Dessous : un retour rond et le nom, les messages en bulles
     (les vôtres à droite, encre), puis une ligne pour écrire : joindre une fiche, le champ, l'envoi. */
  html.style-pro.style-epure #appView #msgFil .msg-fil-tete { display: flex; align-items: center; gap: 12px; min-height: 0; padding: 10px 0 12px; border-bottom: 1px solid var(--t-trait); }
  html.style-pro.style-epure #appView #msgFil .msg-fil-tete > .msg-av { display: none; }
  html.style-pro.style-epure #appView #msgFil .msg-fil-tete b { font-family: inherit; font-size: 17px; font-weight: 650; letter-spacing: 0; line-height: 1.2; }
  html.style-pro.style-epure #appView #msgFil .msg-retour {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0 0 3px; border: 1px solid var(--t-trait) !important; border-radius: 50% !important;
    background: var(--t-carte) !important; box-shadow: none !important; color: var(--t-encre) !important; font-size: 24px; line-height: 1;
  }
  html.style-pro.style-epure #appView #msgFil .msg-corps { padding: 12px 0 8px; }
  html.style-pro.style-epure #appView #msgFil .msg-jour { padding: 0; background: none; font-size: 12.5px; font-weight: 500; color: var(--t-doux); }
  html.style-pro.style-epure #appView #msgFil .msg-qui { margin-top: 6px; font-size: 12px; color: var(--t-pale); }
  html.style-pro.style-epure #appView #msgFil .msg-qui > .msg-av, html.style-pro.style-epure #appView #msgFil .msg-qui.moi > b { display: none; }
  html.style-pro.style-epure #appView #msgFil .msg-qui b { font-size: 12.5px; font-weight: 600; color: var(--t-doux); }
  html.style-pro.style-epure #appView #msgFil .msg-ligne { margin: 0; padding: 0; }
  html.style-pro.style-epure #appView #msgFil .msg-ligne + .msg-ligne { margin-top: 6px; }
  html.style-pro.style-epure #appView #msgFil .msg-bulle {
    max-width: 80%; margin: 0; padding: 10px 14px; border: 1px solid var(--t-trait); border-radius: 20px 20px 20px 6px; background: var(--t-carte); box-shadow: none;
    color: var(--t-encre); font-size: 15.5px; line-height: 1.38;
  }
  html.style-pro.style-epure #appView #msgFil .msg-ligne.moi .msg-bulle { border-color: var(--t-encre); border-radius: 20px 20px 6px 20px; background: var(--t-encre); box-shadow: none; color: #fff; }
  html.style-pro.style-epure #appView #msgFil .msg-bulle.retire { border: 1px dashed var(--t-trait); background: none; color: var(--t-doux); }
  html.style-pro.style-epure #appView #msgFil .msg-fiche { margin-top: 9px; padding: 9px 10px; border-radius: 12px; box-shadow: none; }
  html.style-pro.style-epure #appView #msgFil .msg-ligne.moi .msg-fiche { background: rgba(255, 255, 255, .12); box-shadow: none; color: #fff; }
  html.style-pro.style-epure #appView #msgFil .msg-ligne.moi .msg-fiche small { color: rgba(255, 255, 255, .7); }
  html.style-pro.style-epure #appView #msgFil .msg-ligne.moi .msg-fiche button { color: var(--t-or); }
  html.style-pro.style-epure #appView #msgFil .msg-retirer { min-height: 28px; font-size: 12.5px; color: var(--t-pale); }
  html.style-pro.style-epure #appView #msgFil .msg-ecrire { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 8px 0 10px; }
  html.style-pro.style-epure #appView #msgFil .msg-ecrire-bas { display: contents; }
  html.style-pro.style-epure #appView #msgFil #msgJointe, html.style-pro.style-epure #appView #msgFil .msg-prive { flex: 0 0 100%; order: 0; margin: 0; }
  html.style-pro.style-epure #appView #msgFil .msg-prive:empty, html.style-pro.style-epure #appView #msgFil #msgJointe:empty { display: none; }
  html.style-pro.style-epure #appView #msgFil .msg-ecrire-bas > .btn:not(#msgEnvoyer) {
    order: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--t-trait) !important; border-radius: 50% !important;
    background: var(--t-carte) !important; box-shadow: none !important; color: var(--t-encre) !important; font-size: 0; gap: 0;
  }
  html.style-pro.style-epure #appView #msgFil .msg-ecrire-bas > .btn:not(#msgEnvoyer) svg { width: 20px; height: 20px; margin: 0; }
  /* « + » (joindre un document, arrivé le 24/11) : la même cible de 44 px que ses voisins. */
  html.style-pro.style-epure #appView #msgFil .msg-plus-doc { order: 1; width: 44px; height: 44px; margin: 0 !important; border-color: var(--t-trait); background: var(--t-carte); color: var(--t-encre); }
  html.style-pro.style-epure #appView #msgFil #msgTexte {
    order: 2; flex: 1 1 0; width: auto; min-width: 0; height: 44px; min-height: 44px !important; max-height: 132px; margin: 0; padding: 10px 16px !important; border: 1px solid var(--t-trait); border-radius: 22px;
    background: var(--t-carte); box-shadow: none; font-size: 16px; line-height: 1.4; resize: none; field-sizing: content;
  }
  html.style-pro.style-epure #appView #msgFil #msgTexte:focus { border-color: var(--t-encre); box-shadow: none; }
  html.style-pro.style-epure #appView #msgFil #msgEnvoyer {
    order: 3; display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50% !important;
    background: var(--t-encre) !important; border-color: var(--t-encre) !important; box-shadow: none !important; position: relative; color: #fff !important; font-size: 0; line-height: 0;
  }
  html.style-pro.style-epure #appView #msgFil #msgEnvoyer::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  html.style-pro.style-epure #appView #msgFil #msgEnvoyer[disabled] { background: #c9c6bd !important; border-color: #c9c6bd !important; }

  /* ---------- Cabinet › Agents (maquette A, 24/11/2026) : une ligne par agent ----------
     Le nom et le métier à gauche ; à droite, ce qui attend en chiffre (ou « à votre écoute », « au repos »). */
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card { grid-template-columns: 38px minmax(0, 1fr) auto !important; column-gap: 12px !important; row-gap: 0 !important; align-items: center; min-height: 62px !important; padding: 10px 0 !important; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .agent-portrait { grid-column: 1 !important; grid-row: 1 / span 2 !important; align-self: center !important; justify-self: center; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card h3 { grid-column: 2 !important; grid-row: 1 !important; align-self: end !important; font-size: 16px !important; line-height: 1.25 !important; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .agent-nom { font-size: 16px !important; font-weight: 620 !important; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .agent-fonction { grid-column: 2 !important; grid-row: 2 !important; align-self: start !important; overflow: hidden; font-size: 13.5px !important; line-height: 1.3 !important; white-space: nowrap; text-overflow: ellipsis; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .ag-reel:not([hidden]) { grid-column: 3 !important; grid-row: 1 / span 2 !important; align-self: center !important; justify-self: end; gap: 7px; margin: 0 !important; font-size: 13.5px !important; color: var(--t-doux) !important; white-space: nowrap; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .ag-reel[data-n]:not([hidden]) { font-size: 0 !important; }
  html.style-pro.style-epure #appView#appView [data-view-panel="agents"] #agentsGrid .ag-table .agent-card .ag-reel[data-n]::after { content: attr(data-n); font-family: var(--t-serif); font-size: 22px; font-weight: 680; line-height: 1; letter-spacing: -.02em; color: var(--t-encre); }

  /* ---------- Cabinet › Historique (maquette A, 24/11/2026) : la liste d'abord ----------
     La recherche, les statuts en puces, puis une analyse par ligne (un point pour le statut, l'objet, puis
     « agent · source · date »). Les chiffres des 30 jours s'ouvrent d'un lien, sous la liste. */
  html.style-pro.style-epure #appView [data-view-panel="history"] .va-page { display: flex !important; flex-direction: column; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .va-page > .card:not(#statsPanel), html.style-pro.style-epure #appView [data-view-panel="history"] > .card:not(#statsPanel) { order: 1; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .card:not(#statsPanel) > .card-head { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .tel-hist-chiffres {
    order: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 0; border: 0; border-top: 1px solid var(--t-trait);
    background: none; color: var(--t-encre); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  html.style-pro.style-epure #appView [data-view-panel="history"] .tel-hist-chiffres svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #b3b5b9; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .tel-hist-chiffres[aria-expanded="true"] svg { transform: rotate(90deg); }
  html.style-pro.style-epure #appView [data-view-panel="history"] #statsPanel { order: 3; margin: 0 0 14px !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .tel-hist-chiffres[aria-expanded="false"] ~ #statsPanel, html.style-pro.style-epure #appView [data-view-panel="history"] #statsPanel:has(~ .tel-hist-chiffres[aria-expanded="false"]) { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #statsPanel:is([style*="display:none"], [style*="display: none"]) + .tel-hist-chiffres { display: none; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-bar { display: block !important; margin: 0 !important; padding: 12px 0 4px !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-bar .cl-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--t-trait); border-radius: 22px; background: var(--t-carte); box-shadow: none; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-bar .cl-search svg { position: static; flex: none; width: 18px; height: 18px; margin: 0; transform: none; color: var(--t-pale); }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-bar .cl-search .input { flex: 1; min-width: 0; height: 42px; min-height: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 16px; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyStatuts {
    display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important; gap: 8px; width: auto; max-width: none; margin: 12px -16px 0; padding: 0 16px; overflow-x: auto; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyStatuts::-webkit-scrollbar { display: none; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyStatuts > button {
    flex: none; min-height: 36px; padding: 0 14px !important; border: 1px solid var(--t-trait) !important; border-radius: 18px !important; background: none !important; box-shadow: none !important;
    color: var(--t-doux) !important; font-size: 14px !important; font-weight: 550 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap;
  }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyStatuts > button.on { border-color: var(--t-encre) !important; background: var(--t-encre) !important; color: #fff !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #refreshHistory { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .table-wrap { margin: 0 !important; padding: 0 !important; overflow: visible !important; border: 0 !important; background: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .table, html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody { display: block !important; width: 100% !important; min-width: 0 !important; border: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .table thead { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr {
    position: relative; display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 0; min-height: 62px; margin: 0 !important; padding: 12px 28px 12px 21px !important;
    border: 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 13px !important; line-height: 1.3 !important; color: var(--t-doux) !important; text-align: left !important; white-space: nowrap; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td::before { content: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td.hist-objet {
    order: 1; flex: 0 0 100%; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none !important; margin-bottom: 3px !important;
    font-size: 15.5px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--t-encre) !important; white-space: normal;
  }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(1) { order: 2; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(1) strong { font-weight: 400; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(3) { order: 3; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(4) { order: 4; font-family: inherit !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:is(:nth-child(3), :nth-child(4))::before { content: "\00a0·\00a0" !important; display: inline !important; position: static !important; width: auto !important; font: inherit !important; color: inherit !important; text-transform: none !important; letter-spacing: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) { position: absolute; left: 0; top: 50%; margin-top: -5px !important; line-height: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) .pill { display: block; width: 9px; height: 9px; min-width: 0; padding: 0 !important; overflow: hidden; border: 0 !important; border-radius: 50% !important; background: #c4c1b8 !important; box-shadow: none !important; font-size: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) .pill::before { content: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) .pill.awaiting_approval { background: var(--t-or) !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) .pill.completed { background: #447a63 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td:nth-child(5) .pill.failed { background: #b5473a !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td.hist-ouvrir { position: absolute; right: 0; top: 50%; margin-top: -9px !important; line-height: 0 !important; color: #b3b5b9 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] #historyBody > tr > td.hist-ouvrir svg { width: 18px; height: 18px; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-suite { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0 !important; border: 0 !important; }
  html.style-pro.style-epure #appView [data-view-panel="history"] .hist-suite.hidden { display: none; }

  /* ---------- Les écrans restants (24/11/2026, en autonomie : « fais-les tous d'un coup, je valide après ») ----------
     Connecteurs : une ligne par service (logo, nom, état, bouton) au lieu de tuiles deux par deux. */
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-grid { display: block !important; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 64px; margin: 0 !important; padding: 10px 0 !important;
    border: 0 !important; border-bottom: 1px solid var(--t-trait) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important;
  }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) > * { grid-column: 1 / -1; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) > .cnx-top { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 1px; margin: 0; padding: 0; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) .cnx-logo { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) .cnx-id { grid-column: 2; min-width: 0; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) .cnx-id h3 { margin: 0; overflow: hidden; font-size: 16px; font-weight: 620; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) :is(.cnx-chez, .cnx-status, .cnx-fermer) { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) .cnx-state { grid-column: 2; position: static; justify-self: start; margin: 0; padding: 0; font-size: 13px; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) > :is(.btn, .cnx-actions) { grid-column: 2; grid-row: 1; margin: 0; padding-top: 0; }
  html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) > .btn, html.style-pro.style-epure #appView [data-view-panel="connecteurs"] .cnx-card:not([aria-expanded="true"]) > .cnx-actions .btn { width: auto; min-width: 0; min-height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; }
  /* Entreprise : un champ par ligne (à deux par ligne, « Cabinet Dupont & A… » était coupé). */
  html.style-pro.style-epure #appView [data-view-panel="entreprise"] .two-cols { grid-template-columns: minmax(0, 1fr) !important; }
  /* Les tableaux empilés (listes de diffusion, campagnes, apporteurs…) : le nom, puis les chiffres avec leur
     colonne écrite devant, et les gestes à droite sur la même ligne. */
  html.style-pro.style-epure #appView .bc-table.empile tbody > tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 0 !important; }
  html.style-pro.style-epure #appView .bc-table.empile tbody > tr > td:first-child { flex: 0 0 100%; }
  html.style-pro.style-epure #appView .bc-table.empile tbody > tr > td.num { flex: none; width: auto !important; font-size: 13.5px; font-weight: 600; text-align: left !important; }
  html.style-pro.style-epure #appView .bc-table.empile tbody > tr > td.num[data-l]::before { content: attr(data-l) "\00a0"; font-weight: 400; color: var(--t-doux); }
  html.style-pro.style-epure #appView .bc-table.empile tbody > tr > td.actions { flex: none; margin-left: auto; }

  /* Fiche client › Conformité : « Mettre à jour » tenait dans une colonne de 36 px, écrit sur trois lignes. */
  html.style-pro.style-epure #appView #clientDetail .pat-conf-liste > li > .btn { grid-column: 2 / -1; justify-self: start; width: auto; white-space: nowrap; }

  /* ---------- E-mails (maquette A, 22/11/2026) : la recherche et « Écrire », « Tous / à répondre », les mails à la suite ---------- */
  html.style-pro.style-epure #appView #emPage:not(.tel-lecture) { position: relative; display: flex; flex-direction: column; }
  html.style-pro.style-epure #appView #emPage:not(.tel-lecture) :is(.em-grille, .em-liste) { display: contents; }
  html.style-pro.style-epure #appView #emPage .em-tete { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 0; margin: 0; padding: 0; }
  html.style-pro.style-epure #appView #emPage .em-tete > :is(.em-titre, .em-boite, .em-esp, #emDirect, #emReprise) { display: none !important; }
  html.style-pro.style-epure #appView #emPage .em-tete .em-choix { order: 3; flex: 1 1 100%; max-width: none; height: 40px; margin-top: 10px; }
  html.style-pro.style-epure #appView #emPage .em-cherche { order: 1; position: relative; display: block; margin: 14px 54px 0 0; padding: 0; border: 0; background: none; }
  html.style-pro.style-epure #appView #emPage .em-cherche [data-em="replier"] { display: none !important; }
  html.style-pro.style-epure #appView #emPage .em-cherche::before { content: ""; position: absolute; left: 16px; top: 14px; width: 12px; height: 12px; border: 1.6px solid var(--t-pale); border-radius: 50%; box-shadow: none; pointer-events: none; }
  html.style-pro.style-epure #appView #emPage .em-cherche::after { content: ""; position: absolute; left: 28px; top: 27px; width: 6px; height: 1.6px; background: var(--t-pale); transform: rotate(45deg); transform-origin: left center; pointer-events: none; }
  html.style-pro.style-epure #appView #emPage #emQ { width: 100%; height: 44px; margin: 0; padding: 0 16px 0 42px !important; border: 1px solid var(--t-trait) !important; border-radius: 22px !important; background: var(--t-carte) !important; background-image: none !important; font-size: 16px; box-shadow: none; }
  html.style-pro.style-epure #appView #emPage .em-tete [data-em="ecrire"] { position: absolute; top: 14px; right: 0; width: 44px; min-width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; border: 0; border-radius: 50% !important; background: var(--t-encre); color: #fff; font-size: 0; }
  html.style-pro.style-epure #appView #emPage .em-tete [data-em="ecrire"] .icon { width: 19px; height: 19px; margin: 0; }
  /* « Tous » et « N à répondre » : deux puces. « Préparer avec Aurore » se montre quand on ne regarde que les mails à répondre. */
  html.style-pro.style-epure #appView #emPage .em-pastille-aur:not([hidden]) { order: 2; display: flex !important; flex-wrap: wrap; gap: 8px; width: 100%; margin: 12px 0 0 !important; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14.5px; font-weight: 550; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage :is(.em-pa-tous, .em-pa-t) { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid var(--t-trait); border-radius: 19px; background: var(--t-carte); color: var(--t-doux); font: inherit; }
  html.style-pro.style-epure #appView #emPage span.em-pa-t { border: 0; background: none; padding-left: 2px; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage :is(.em-pa-tous, button.em-pa-t)[aria-pressed="true"] { border-color: var(--t-encre); background: var(--t-encre); color: #fff; }
  html.style-pro.style-epure #appView #emPage .em-pa-t b { min-width: 19px; padding: 0 5px; border-radius: 10px; background: var(--t-or); color: var(--t-encre); font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; }
  html.style-pro.style-epure #appView #emPage .em-pa-go { display: none; min-height: 38px; padding: 0 15px; border-radius: 19px; background: var(--t-encre); font-size: 14px; }
  html.style-pro.style-epure #appView #emPage .em-pa-t[aria-pressed="true"] ~ .em-pa-go, html.style-pro.style-epure #appView #emPage .em-pa-go:disabled { display: inline-flex; align-items: center; }
  /* Un mail : qui, l'heure, l'objet. Le point doré = à répondre ; en gras = pas encore lu. */
  html.style-pro.style-epure #appView #emPage .em-lignes { order: 3; max-height: none; margin: 8px 0 0; padding: 0; border: 0; background: none; overflow: visible; }
  html.style-pro.style-epure #appView #emPage .em-l { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 2px 11px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #emPage .em-l.non-lu { box-shadow: none !important; }
  html.style-pro.style-epure #appView #emPage .em-l::before { content: ""; grid-column: 1; grid-row: 1; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
  html.style-pro.style-epure #appView #emPage .em-l.a-rep::before { background: var(--t-or); }
  html.style-pro.style-epure #appView #emPage .em-l .em-av { display: none; }
  html.style-pro.style-epure #appView #emPage .em-l b { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 500 !important; color: #4a4e55 !important; }
  html.style-pro.style-epure #appView #emPage .em-l.non-lu b { font-weight: 680 !important; color: var(--t-encre) !important; }
  html.style-pro.style-epure #appView #emPage .em-l b::before { display: none; }
  html.style-pro.style-epure #appView #emPage .em-l .h { grid-column: 3; grid-row: 1; align-self: center; font-size: 13px; font-weight: 400; color: var(--t-pale); }
  html.style-pro.style-epure #appView #emPage .em-l .s { grid-column: 2 / -1; grid-row: 2; font-size: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.style-pro.style-epure #appView #emPage .em-l .s em { font-size: 14.5px; font-style: normal; font-weight: 400; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage .em-l.non-lu .s em { color: #2c3036; }
  html.style-pro.style-epure #appView #emPage .em-l :is(.em-cote, .tags .em-pastille:not(.pret)) { display: none; }
  html.style-pro.style-epure #appView #emPage .em-l .tags { grid-column: 2 / -1; grid-row: 3; }
  html.style-pro.style-epure #appView #emPage .em-l .tags:not(:has(.pret)) { display: none; }

  /* Le mail ouvert prend tout l'écran : retour et « ⋯ » en haut, répondre en bas, au-dessus de la barre. */
  html.style-pro.style-epure body[data-vue="emails"]:has(#emPage.tel-lecture) #appView :is(.topbar, #famOnglets) { display: none !important; }
  html.style-pro.style-epure #appView #emPage.tel-lecture .em-tete { display: none !important; }
  html.style-pro.style-epure #appView #emPage.tel-lecture .em-grille { display: block; min-height: 0; margin: 0; padding: 0; border: 0; background: none; }
  html.style-pro.style-epure #appView #emPage #emLecture { position: relative; min-height: 0; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 0 96px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView #emPage #emLecture :is(.em-retour, .em-plus) { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--t-trait) !important; border-radius: 50% !important; background: var(--t-carte) !important; color: var(--t-encre); line-height: 1; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-retour { font-size: 0; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-retour::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); }
  html.style-pro.style-epure #appView #emPage #emLecture .em-plus { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 0; font-size: 20px; font-weight: 400; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-objet { margin: 18px 0 0; font-family: var(--t-serif); font-size: 25px; font-weight: 680; line-height: 1.18; letter-spacing: -.02em; }
  /* Écrire un e-mail (maquette A, 24/11/2026) : comme Mail sur iPhone. Les champs en lignes, le texte sans cadre,
     les pièces jointes en ronds ; pour un nouveau message, le titre et l'envoi (rond, flèche) sont en haut. */
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo { position: static; margin: 14px 0 0; padding: 0; border: 0 !important; border-radius: 0; background: none; box-shadow: none !important; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .barre { padding: 0 0 6px; font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-champ { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--t-trait); border-radius: 0; background: none; box-shadow: none; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-champ label { flex: none; width: 46px; font-size: 14.5px; font-weight: 400; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-champ input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: none; box-shadow: none; outline: 0; font-size: 16px; color: var(--t-encre); }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-champ > span:empty { display: none; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-champ .btn { min-height: 44px; padding: 0 2px 0 10px; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--t-doux) !important; font-size: 14.5px; font-weight: 400; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo textarea { display: block; width: 100%; min-height: 200px; margin: 0; padding: 14px 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; font-size: 16px; line-height: 1.45; color: var(--t-encre); resize: none; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--t-trait); background: none; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied .em-pjv { flex: 0 0 100%; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > :is([data-em="joindre-verso"], label[for="emFichier"]) {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--t-trait) !important; border-radius: 50% !important;
    background: var(--t-carte) !important; box-shadow: none !important; color: var(--t-encre) !important; font-size: 0; gap: 0; order: 1;
  }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > [data-em="joindre-verso"] .em-v { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 700; line-height: 1; color: inherit; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > label[for="emFichier"] svg { width: 20px; height: 20px; margin: 0; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > span[style] { order: 2; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > [data-em="annuler"] { order: 3; min-height: 44px; padding: 0 10px; border: 0 !important; background: none !important; box-shadow: none !important; color: var(--t-doux) !important; font-size: 15px; font-weight: 400; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > [type="submit"] { order: 4; min-height: 46px; padding: 0 20px; border-radius: 23px !important; background: var(--t-encre) !important; border-color: var(--t-encre) !important; box-shadow: none !important; color: #fff !important; font-size: 15.5px; font-weight: 600; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > [type="submit"][disabled] { background: #c9c6bd !important; border-color: #c9c6bd !important; }
  html.style-pro.style-epure #appView #emPage #emLecture #emCompo .em-pied > [data-em="pret-suivant"] { order: 5; flex: 0 0 100%; justify-content: center; min-height: 44px; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 52px; right: 52px; height: 40px; margin: 0; overflow: hidden; font-family: inherit; font-size: 17px; font-weight: 650; letter-spacing: 0; line-height: 40px; text-align: center; white-space: nowrap; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo { margin-top: 12px; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo .barre, html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo [data-em="annuler"] { display: none; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo textarea { min-height: calc(100vh - 400px); min-height: calc(100dvh - 400px); }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo .em-pied > [type="submit"] {
    position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 0; display: block; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50% !important; font-size: 0; line-height: 0;
  }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo .em-pied > [type="submit"] .icon { display: none; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-nouveau + #emCompo .em-pied > [type="submit"]::before { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }

  html.style-pro.style-epure #appView #emPage #emLecture .em-de { align-items: center; margin: 0; padding: 16px 0 18px; border-bottom: 1px solid var(--t-trait); }
  html.style-pro.style-epure #appView #emPage #emLecture .em-de b { font-size: 15.5px; font-weight: 650; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-de small { display: block; margin-top: 1px; font-size: 13px; color: var(--t-doux); }
  html.style-pro.style-epure #appView #emPage #emLecture .em-de :is(.em-adr, .em-pastille) { display: none; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-corps { margin: 0; padding: 18px 0 6px; font-size: 16px; line-height: 1.5; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions { margin: 0; padding: 0; border: 0; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions:has([data-em="aurore"]) { position: fixed; left: 0; right: 0; bottom: var(--tel-barre); z-index: 30; display: flex; flex-wrap: nowrap; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--t-trait); background: var(--paper, #f6f4ee); }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions [data-em="aurore"] { flex: 1 1 auto; min-width: 0; height: 50px; justify-content: center; border: 0; border-radius: 25px !important; background: var(--t-encre); color: #fff; font-size: 15.5px; font-weight: 620; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions [data-em="repondre"] { flex: none; width: 50px; height: 50px; padding: 0; gap: 0; justify-content: center; border: 1px solid var(--t-trait); border-radius: 50% !important; background: var(--t-carte); font-size: 0; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions [data-em="repondre"] .icon { width: 20px; height: 20px; margin: 0; }
  html.style-pro.style-epure #appView #emPage #emLecture .em-actions :is([data-em="transferer"], [data-em="ranger"]) { display: none; }
  html.style-pro.style-epure #appView #emPage #emLecture.em-plus-ouvert .em-actions :is([data-em="transferer"], [data-em="ranger"]) { position: fixed; right: 16px; z-index: 40; display: flex; justify-content: flex-start; gap: 11px; width: 236px; height: 52px !important; min-height: 52px; padding: 0 16px; border: 1px solid var(--t-trait); background: var(--t-carte); box-shadow: 0 14px 32px -14px rgba(18, 21, 26, .4); font-size: 15.5px; font-weight: 550; }
  html.style-pro.style-epure #appView #emPage #emLecture.em-plus-ouvert .em-actions [data-em="transferer"] { top: calc(58px + env(safe-area-inset-top)); border-radius: 14px 14px 0 0 !important; }
  html.style-pro.style-epure #appView #emPage #emLecture.em-plus-ouvert .em-actions [data-em="ranger"] { top: calc(109px + env(safe-area-inset-top)); border-radius: 0 0 14px 14px !important; }

  /* ---------- Agenda (maquette C, 22/11/2026) : le mois et les flèches, la bande de la semaine, la journée heure par heure ---------- */
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 12px; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] :is(.cal-nav, .cal-actions) { display: contents; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-modes { display: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calLabel { order: 1; flex: 1 1 0; min-width: 0; overflow: hidden; font-size: 17px; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calAujourdhui { order: 2; height: 36px; min-height: 36px; padding: 0 13px; border: 1px solid var(--t-trait) !important; border-radius: 18px !important; background: var(--t-carte) !important; font-size: 13.5px; font-weight: 550; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calPrev { order: 3; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calNext { order: 4; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-plus-wrap { order: 5; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] :is(#calPrev, #calNext, #calPlusBtn) { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--t-trait) !important; border-radius: 50% !important; background: var(--t-carte) !important; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calTabs:not(:empty) { order: 6; flex: 1 1 100%; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] #calAttenteBtn:not([hidden]) { order: 7; flex: 1 1 100%; justify-content: flex-start; height: 42px; margin: 4px 0 0; padding: 0 14px; border: 0 !important; border-radius: 13px !important; background: #fbf1d6 !important; box-shadow: none !important; color: var(--t-encre); font-size: 14.5px; font-weight: 600; }
  /* La bande : le jour affiché en plein, aujourd'hui cerclé d'or, un point sous les jours qui ont un rendez-vous. */
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bande:not([hidden]) { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--t-trait); }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 0; border: 0; background: none; color: var(--t-pale); font: inherit; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj span { font-size: 11.5px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--t-encre); font-size: 16px; font-weight: 550; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj.auj b { box-shadow: inset 0 0 0 1.5px var(--t-or); }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj.on b { background: var(--t-encre); color: #fff; box-shadow: none; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj i { width: 5px; height: 5px; border-radius: 50%; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-bj.pris i { background: var(--t-or); }
  /* La journée : sans cadre ni en-tête (le jour est dans la bande), elle défile dans la place qui reste. */
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour .cal-head-row { display: none; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour .cal-allday-row { padding: 8px 0; border-bottom: 1px solid var(--t-trait); }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-scroll { overflow-y: auto; overscroll-behavior: contain; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour .cal-daycol.today { background: none !important; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-hour::before { font-size: 12px; color: var(--t-pale); }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour button.cal-evt { padding: 6px 11px; border-radius: 10px; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour .cal-evt > span { font-size: 12.5px; line-height: 16px; }
  html.style-pro.style-epure #appView [data-view-panel="calendrier"] .cal-grid.jour .cal-evt b.cal-evt-t { font-size: 14.5px; line-height: 18px; }

  /* Le rendez-vous ouvert : « Fermer » reste à droite du titre, même sur deux lignes. */
  html.style-pro.style-epure #calEvtModal #calEvtTitre { flex: 1 1 0; min-width: 0; }
  html.style-pro.style-epure #calEvtModal :has(> #calEvtTitre) { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
  html.style-pro.style-epure #calEvtModal #calEvtFermer { flex: none; }

  /* Le rond « créer » (un rendez-vous, un message, un numéro, une note) : le même partout, encre et blanc. */
  html.style-pro.style-epure #appView :is(#calAjouterBtn, #msgNouveau, #nlNouveauBtn, #meNouvelle) {
    right: 16px; bottom: calc(var(--tel-barre) + 16px); width: 52px; height: 52px; border: 0 !important; background: var(--t-encre) !important; color: #fff !important; box-shadow: 0 8px 20px -8px rgba(18, 21, 26, .55) !important;
  }
  html.style-pro.style-epure #appView :is(#calAjouterBtn, #msgNouveau, #nlNouveauBtn, #meNouvelle) .icon { width: 22px; height: 22px; color: #fff; stroke: #fff; }
  html.style-pro.style-epure #appView :is(#calAjouterBtn, #meNouvelle)::before { font-size: 30px; font-weight: 400; color: #fff; }
  #appView [data-view-panel="calendrier"] .va-bandeau .va-modules { display: none !important; }

  /* ---------- « Plus » : une liste, pas des cartes ---------- */
  html.style-pro.style-epure .tel-plus:not([hidden]) { padding: calc(10px + env(safe-area-inset-top)) 20px 28px; background: var(--paper, #f6f4ee); }
  html.style-pro.style-epure .tel-plus h2 { margin: 6px 0 14px; font-family: var(--t-serif); font-size: 28px; font-weight: 680; letter-spacing: -.02em; }
  html.style-pro.style-epure .tel-plus-recherche { min-height: 46px; padding: 0 16px; border: 1px solid var(--t-trait); border-radius: 23px; background: var(--t-carte); box-shadow: none; color: var(--t-pale); font-size: 16px; }
  html.style-pro.style-epure .tel-plus-groupe { margin: 22px 0 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--t-pale); }
  html.style-pro.style-epure .tel-plus-liste { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  html.style-pro.style-epure .tel-plus-entree { min-height: 54px; padding: 8px 0; border-radius: 0; font-size: 16px; font-weight: 550; }
  html.style-pro.style-epure .tel-plus-entree + .tel-plus-entree { border-top: 1px solid var(--t-trait); }
  html.style-pro.style-epure .tel-plus-ic { width: 26px; height: 26px; border-radius: 0; background: none; color: var(--t-encre); }
  html.style-pro.style-epure .tel-plus-ic .icon { width: 21px; height: 21px; stroke-width: 1.6; }
  html.style-pro.style-epure .tel-plus-entree.active .tel-plus-ic { background: none; color: var(--t-encre); }
  html.style-pro.style-epure .tel-plus-entree.active { font-weight: 700; }
  html.style-pro.style-epure .tel-plus-entree small { font-weight: 400; color: var(--t-doux); }
  html.style-pro.style-epure .tel-plus-fin .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--t-or); box-shadow: none; color: var(--t-encre); font-size: 12px; font-weight: 700; line-height: 22px; }
}
