/* =====================================================================
   SubScale · visuel enrichi des pages de sections (26/11/2026), chargé APRÈS motion.css.
   Purement visuel : composants communs (public/sections.js : window.SX) et petites retouches des pages existantes.
   Couleurs : l'accent au choix (--acc*, public/motion.css) et les couleurs de catégories --c1 … --c6 (thème sombre
   et clair). Les chiffres en Hanken Grotesk tabulaire. Mouvement seulement sous <html data-motion="full">.
   Spécificité : même astuce que stylepro / motion (:is(#gs,*)) + :not(#sx-z) pour passer devant.
   ===================================================================== */

/* ---------- icône ronde teintée ---------- */
html body .sx-ico { --c: var(--acc); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; vertical-align: middle;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent); }
html body .sx-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body :is(#gs, .app) :is(h2, h3, h4).sx-h:is(#gs,*):not(#sx-z), html body :is(#gs, .app) .sx-head :is(h2, h3):is(#gs,*):not(#sx-z) { display: inline-flex !important; align-items: center !important; gap: 10px !important; }
html body .sx-ico-h { width: 26px; height: 26px; }
html body .sx-ico-h svg { width: 14px; height: 14px; }

/* ---------- avatar à couleur stable (par nom) ---------- */
html body .sx-av { --c: var(--acc); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; vertical-align: middle; margin-right: 9px;
  font: 700 11.5px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
html body .sx-av::before { content: attr(data-l); }
html body .sx-av.sx-none { --c: var(--muted-2); box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; border: 1px dashed var(--line-2); }
html body .sx-who { display: inline-flex; align-items: center; min-width: 0; vertical-align: middle; }
html body :is(#gs, .app) :is(.v-avatar, .tm2-av).sx-avc:is(#gs,*):not(#sx-z) { color: var(--c) !important; background: color-mix(in srgb, var(--c) 16%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent) !important; border-color: transparent !important; }

/* ---------- bande de chiffres en tête de page ---------- */
html body .sx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 14px; }
html body .sx-kpi { --c: var(--acc); position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px 15px; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--mo-out, ease), box-shadow .35s; }
html body .sx-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 72%); opacity: .75; }
html body .sx-kpi-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
html body .sx-kpi-t small { font: 500 12.5px/1.3 Inter, sans-serif; color: var(--muted); min-width: 0; }
html body .sx-kpi .sx-ico { width: 32px; height: 32px; }
html body .sx-kpi .sx-ico svg { width: 16px; height: 16px; }
html body .sx-kpi .sx-v { font: 700 24px/1.1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .sx-kpi-s { font-size: 12px; line-height: 1.35; color: var(--muted-2); }
@media (hover: hover) { html body .sx-kpi:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--pro-sh2, 0 8px 24px -10px rgba(0, 0, 0, .35)); } }
@media (max-width: 760px) {
  html body .sx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html body .sx-kpi { padding: 12px 12px 13px; }
  html body .sx-kpi .sx-v { font-size: 19px; }
  html body .sx-kpi .sx-ico { width: 28px; height: 28px; }
}

/* ---------- barre de données à l'accent ---------- */
html body .sx-bar { display: inline-block; vertical-align: middle; width: 96px; max-width: 100%; height: 6px; margin-left: 10px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--fg) 9%, transparent); }
html body .sx-bar i { display: block; width: var(--v); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--acc)) 55%, var(--acc-2)), var(--c, var(--acc))); transform-origin: left center; }
html body .sx-bar.wide { width: 140px; }
html[data-motion="full"] body .sx-bar i { animation: sxGrow .9s var(--mo-out, ease) backwards; animation-delay: .15s; }
@keyframes sxGrow { from { transform: scaleX(0); } }

/* ---------- carte de chaleur (matrices de %) ---------- */
html body :is(#gs, .app) td.sx-heat:is(#gs,*):not(#sx-z) { position: relative; z-index: 0; font-weight: 600 !important; font-variant-numeric: tabular-nums; color: var(--fg) !important; }
html body td.sx-heat::before { content: ""; position: absolute; inset: 6px 8px; z-index: -1; border-radius: 8px; background: color-mix(in srgb, var(--acc) calc(var(--h, 0) * 46%), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) calc(var(--h, 0) * 40%), transparent); }
html body :is(#gs, .app) td.sx-heat.sx-none:is(#gs,*):not(#sx-z) { color: var(--muted-2) !important; font-weight: 400 !important; }
html body td.sx-heat.sx-none::before { background: transparent; box-shadow: none; }
html body .sx-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
html body .sx-legend i { width: 90px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 6%, transparent), color-mix(in srgb, var(--acc) 46%, transparent)); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 760px) { html body td.sx-heat::before { inset: 2px -4px; } }
/* barre dans la cellule : la longueur suit la valeur (série sur une colonne, ex. les 12 mois) */
html body td.sx-heat.sx-hb::before { inset: 9px auto 9px 8px; width: calc(var(--h, 0) * (100% - 16px)); background: color-mix(in srgb, var(--acc) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent); }
html[data-motion="full"] body td.sx-heat.sx-hb::before { animation: sxGrow .9s var(--mo-out, ease) backwards; transform-origin: left center; }
@media (max-width: 760px) { html body td.sx-heat.sx-hb::before { inset: 3px auto 3px -6px; width: calc(var(--h, 0) * 100%); } }

/* ---------- encart « à retenir » ---------- */
html body :is(#gs, .app) .sx-call:is(#gs,*):not(#sx-z) { display: flex; align-items: center; gap: 12px; margin-block: 0 !important; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: var(--fg);
  background: linear-gradient(90deg, var(--acc-soft), transparent 78%); border: 1px solid var(--acc-line); }
html body .sx-call b { color: var(--acc-text); font-weight: 700; }
html body :is(#gs, .app) .card > .sx-call:is(#gs,*):not(#sx-z) { margin-inline: 16px !important; }

/* ---------- pastilles ---------- */
html body .sx-chip { --c: var(--acc); display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  font: 600 11.5px/1.3 Inter, sans-serif; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
html body .sx-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
html body .sx-chip.flat::before { display: none; }
html body .sx-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html body .sx-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.35; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
html body .sx-meta > span b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { html body .sx-meta > span { white-space: normal; } }

/* ---------- tableaux : chiffres alignés à droite, survol, 1re colonne mise en avant ---------- */
@media (min-width: 761px) {
  html body :is(#gs, .app) .view :is(th, td).sx-num:is(#gs,*):not(#sx-z) { text-align: right !important; }
  html body :is(#gs, .app) .view td.sx-num .sx-bar { margin-left: 10px; }
}
html body :is(#gs, .app) .view :is(th, td).sx-num:is(#gs,*):not(#sx-z) { font-variant-numeric: tabular-nums; }
@media (min-width: 761px) { html body :is(#gs, .app) .view td.sx-num:is(#gs,*):not(#sx-z) { white-space: nowrap; } }
@media (hover: hover) { html body :is(#gs, .app) .view .ls-table tbody tr:not(.off):hover > td:is(#gs,*):not(#sx-z) { background: color-mix(in srgb, var(--fg) 3.5%, transparent) !important; } }
html body :is(#gs, .app) .view .ls-table tbody td:first-child:is(#gs,*):not(#sx-z) { color: var(--fg); font-weight: 600; }
html body :is(#gs, .app) .view tr.sx-best > td:first-child:is(#gs,*):not(#sx-z) { box-shadow: inset 3px 0 0 var(--acc) !important; }
html body .sx-best-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; color: var(--acc-text); background: var(--acc-soft); vertical-align: -3px; }
html body .sx-best-i svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
html body .sx-price { display: inline-flex; align-items: center; gap: 8px; }
html body .sx-price::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--acc)); flex: none; }

/* ---------- en-tête de carte : icône + titre + meta ---------- */
html body :is(#gs, .app) .sx-head:is(#gs,*):not(#sx-z) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
html body .sx-head > .sx-ico { width: 32px; height: 32px; }
html body .sx-head > .sx-ico svg { width: 16px; height: 16px; }
html body .sx-head .sx-meta { margin-left: auto; justify-content: flex-end; }
@media (max-width: 760px) { html body .sx-head .sx-meta { margin-left: 0; justify-content: flex-start; width: 100%; } }
html body .sx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
html body :is(#gs, .app) .sx-note:is(#gs,*):not(#sx-z) { display: flex; gap: 10px; align-items: flex-start; }
html body .sx-note > .sx-ico { width: 22px; height: 22px; margin-top: 1px; --c: var(--muted-2); }
html body .sx-note > .sx-ico svg { width: 12px; height: 12px; }

/* ---------- Revenus (public/finance.js) ---------- */
html body :is(#gs, .app) #view-banking .fx4-big:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, var(--acc-text), var(--acc-text-2)) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent; }
html body :is(#gs, .app) #view-banking .fx4-total .fx3-k:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; gap: 10px; }
html body :is(#gs, .app) #view-banking .fx3-delta:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font: 600 11.5px/1.3 Inter, sans-serif; font-style: normal; white-space: nowrap; }
html body :is(#gs, .app) #view-banking .fx3-delta.up:is(#gs,*):not(#sx-z) { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 14%, transparent); }
html body :is(#gs, .app) #view-banking .fx3-delta.down:is(#gs,*):not(#sx-z) { color: var(--danger) !important; background: color-mix(in srgb, var(--danger) 14%, transparent); }
html body :is(#gs, .app) #view-banking .fx4-wd i:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, var(--acc-2)), var(--acc)) 0 0 / var(--w) 100% no-repeat, color-mix(in srgb, var(--fg) 9%, transparent) !important; border-radius: 6px !important; }
html[data-motion="full"] body #view-banking .fx4-wd i { animation: sxWd .9s var(--mo-out, ease) backwards; animation-delay: .2s; }
@keyframes sxWd { from { background-size: 0 100%, auto; } }
html body :is(#gs, .app) #view-banking .fx4-pf > header:is(#gs,*):not(#sx-z) { display: flex; align-items: center; gap: 10px; }
html body :is(#gs, .app) #view-banking .fx2-st.st-paid:is(#gs,*):not(#sx-z) { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 14%, transparent) !important; }
html body .sx-share { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
html body .sx-share .sx-bar { margin-left: 0; width: 72px; }
@media (max-width: 760px) { html body .sx-share .sx-bar { display: none; } }

/* ---------- SubScale IA (public/iaconfig.js) ---------- */
html body :is(#gs, .app) :is(.vai-tile, .iac-kpi):is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; }
html body :is(.vai-tile, .iac-kpi) > .sx-ico { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; }
html body :is(.vai-tile, .iac-kpi) > .sx-ico svg { width: 16px; height: 16px; }
html body :is(.vai-tile, .iac-kpi)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 72%); opacity: .75; }
html body :is(#gs, .app) .vai-panel > header:is(#gs,*):not(#sx-z) { display: flex; align-items: center; gap: 10px; }
html body .vai-feed li > .sx-ico, html body .sx-tl li > .sx-ico { width: 26px; height: 26px; }
html body .vai-feed li > .sx-ico svg, html body .sx-tl li > .sx-ico svg { width: 13px; height: 13px; }
/* la frise de l'activité : un trait vertical relie les icônes */
html body :is(#gs, .app) .vai-feed.sx-tl:is(#gs,*):not(#sx-z) { position: relative; }
html body .vai-feed.sx-tl > li { position: relative; }
html body .vai-feed.sx-tl > li:not(:last-child) > .sx-ico::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--line-2); }
html body .vai-feed.sx-tl > li > .sx-ico { position: relative; }
/* persona : l'anneau de score en dégradé d'accent, la persona prête ou complète avec un halo */
html body :is(#gs, .app) .iac-ring circle + circle:is(#gs,*):not(#sx-z) { stroke: var(--acc) !important; }
html body :is(#gs, .app) .iac-ring0.s-complete:is(#gs,*):not(#sx-z) { color: var(--acc-ink) !important; background: linear-gradient(135deg, var(--acc), var(--acc-2)) !important; border-color: transparent !important; box-shadow: 0 0 0 3px var(--acc-soft) !important; }
html body :is(#gs, .app) .iac-tpl.on:is(#gs,*):not(#sx-z), html body :is(#gs, .app) .iac-tpl[aria-checked="true"]:is(#gs,*):not(#sx-z) { border-color: transparent !important; box-shadow: 0 0 0 1px var(--acc), 0 0 0 4px var(--acc-soft) !important; }

/* ---------- Équipe › Rôles et accès (public/roles.js) ---------- */
html body :is(#gs, .app) .rl3-role:is(#gs,*):not(#sx-z) { position: relative; }
html body .rl3-role > .sx-ico { margin-bottom: 8px; width: 32px; height: 32px; }
html body .rl3-role > .sx-ico svg { width: 16px; height: 16px; }
html body :is(#gs, .app) .rl3-role[aria-checked="true"]:is(#gs,*):not(#sx-z) { border-color: transparent !important; box-shadow: 0 0 0 1px var(--acc), 0 0 0 4px var(--acc-soft) !important; }
html body :is(#gs, .app) .rl3-role > em:is(#gs,*):not(#sx-z) { display: inline-flex; align-self: flex-start; margin-top: 8px; padding: 2px 9px; border-radius: 999px; font: 600 11.5px/1.3 Inter, sans-serif; font-style: normal !important; color: var(--acc-text) !important; background: var(--acc-soft); width: max-content; justify-self: start; }
html body :is(#gs, .app) .rl3-dom:is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; display: inline-flex !important; align-items: center; gap: 7px; }
html body .rl3-dom > .sx-dom-i { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--c, var(--acc)); }
html body .rl3-dom > .sx-dom-i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .rl3-dom::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--acc-2), var(--acc)); }
html body :is(#gs, .app) .rl2-group h4:is(#gs,*):not(#sx-z) { display: flex !important; align-items: center; gap: 8px; }
html body .rl2-group h4 > .sx-ico { width: 22px; height: 22px; }
html body .rl2-group h4 > .sx-ico svg { width: 12px; height: 12px; }
html body :is(#gs, .app) .rl2-sw:checked:is(#gs,*):not(#sx-z), html body :is(#gs, .app) .rl2-chip input:is(#gs,*):not(#sx-z) { accent-color: var(--acc-fill); }
html body :is(#gs, .app) .rl2-item[aria-selected="true"]:is(#gs,*):not(#sx-z) { box-shadow: inset 3px 0 0 var(--acc) !important; }
html body .sx-role { margin-left: 6px; }

/* ---------- toutes les pages : titres de carte avec icône (public/sections.js) ---------- */
html body :is(#gs, .app) .view h2.ct-h.sx-h:is(#gs,*):not(#sx-z) { gap: 10px !important; }

/* ---------- SubScale IA : frise, types d'activité, tuiles ---------- */
html body :is(#gs, .app) .vai-feed.sx-tl li:is(#gs,*):not(#sx-z) { grid-template-columns: auto auto minmax(0, 1fr) auto auto !important; }
html body .k-assist, html body .k-accepted, html body .k-resume { --kc: var(--c1); }
html body .k-reply, html body .k-script { --kc: var(--c4); }
html body .k-sent { --kc: var(--c6); }
html body .k-handoff { --kc: var(--c3); }
html body .k-error, html body .k-kill { --kc: var(--c5); }
html body .k-pause, html body .k-config { --kc: var(--c2); }
html body :is(#gs, .app) :is(.vai-feed, .iac-tr) .iac-k:is(#gs,*):not(#sx-z) { color: var(--kc, var(--muted)) !important; background: color-mix(in srgb, var(--kc, var(--muted)) 12%, transparent) !important; border-color: color-mix(in srgb, var(--kc, var(--muted)) 32%, transparent) !important; font-weight: 600; }
html body :is(#gs, .app) :is(.vai-tile, .iac-kpi):has(> .sx-ico) > small:is(#gs,*):not(#sx-z) { padding-right: 42px; }
html body :is(#gs, .app) :is(.iac-head, .aia-h) h2.sx-h:is(#gs,*):not(#sx-z) { display: inline-flex !important; align-items: center; gap: 10px; }

/* ---------- Équipe › Membres : tuiles de chiffres avec icône ---------- */
html body :is(#gs, .app) .v-kpi.sx-vkpi:is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; }
html body .v-kpi.sx-vkpi > .sx-ico { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; }
html body .v-kpi.sx-vkpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 72%); opacity: .75; }
html body :is(#gs, .app) .rl-roles > div:is(#gs,*):not(#sx-z) { position: relative; }
html body .rl-roles > div > .sx-ico { margin-bottom: 8px; width: 32px; height: 32px; }
html body :is(#gs, .app) .tm2-table td.num:is(#gs,*):not(#sx-z) { color: var(--fg-2) !important; font-variant-numeric: tabular-nums; }

/* ---------- Cerveau : cartes des créatrices (avatar, trait de couleur), listes ---------- */
html body :is(#gs, .app) .cv-kpi.sx-cvk:is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; }
html body .cv-kpi.sx-cvk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 72%); opacity: .8; }
html body :is(#gs, .app) .cv-kpi.sx-cvk > small:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; }
html body .cv-kpi.sx-cvk > small .sx-av { width: 22px; height: 22px; font-size: 10.5px; margin-right: 8px; }
html body :is(#gs, .app) #view-cerveau .cv-ul li:is(#gs,*):not(#sx-z) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
html body #view-cerveau .cv-ul li .sx-av { width: 22px; height: 22px; font-size: 10.5px; margin-right: 4px; }
html body #view-cerveau .cv-ul li .sx-bar { width: 80px; margin-left: 6px; }

/* ---------- toutes les pages : l'icône des titres de carte (« card-head ») en rond teinté ---------- */
html body :is(#gs, .app) .view:not(#view-compte):not(#view-coach) .card-head h2 > svg:is(.hi, .i):is(#gs,*):not(#sx-z) { display: inline-block !important; flex: none; box-sizing: border-box; width: 28px !important; height: 28px !important; padding: 6.5px; border-radius: 50%;
  stroke: var(--c, var(--acc)) !important; color: var(--c, var(--acc)); fill: none; background: color-mix(in srgb, var(--c, var(--acc)) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--acc)) 28%, transparent); }
html body .view .card:nth-of-type(6n+1) .card-head { --c: var(--c1); }
html body .view .card:nth-of-type(6n+2) .card-head { --c: var(--c4); }
html body .view .card:nth-of-type(6n+3) .card-head { --c: var(--c2); }
html body .view .card:nth-of-type(6n+4) .card-head { --c: var(--c3); }
html body .view .card:nth-of-type(6n+5) .card-head { --c: var(--c6); }
html body .view .card:nth-of-type(6n) .card-head { --c: var(--c5); }
html body :is(#gs, .app) .view:not(#view-compte):not(#view-coach) .card-head h2:has(> svg:is(.hi, .i)):is(#gs,*):not(#sx-z) { display: flex !important; align-items: center !important; gap: 10px !important; }

/* ---------- Croissance : barres du recrutement et des objectifs à l'accent, tuiles de chiffres avec un trait de couleur ---------- */
html body :is(#gs, .app) .gr-funnel i:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, var(--acc-2)), var(--acc)) 0 0 / var(--w) 100% no-repeat, color-mix(in srgb, var(--fg) 9%, transparent) !important; border-radius: 6px !important; }
html body :is(#gs, .app) .gr-prog i:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, var(--acc-2)), var(--acc)) !important; }
html body :is(#gs, .app) .gr-kpi:is(#gs,*):not(#sx-z) { position: relative; }
html body .gr-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--kc, var(--acc)), transparent 72%); opacity: .75; }
html body .gr-kpi:nth-child(6n+1) { --kc: var(--c1); } html body .gr-kpi:nth-child(6n+2) { --kc: var(--c4); } html body .gr-kpi:nth-child(6n+3) { --kc: var(--c2); }
html body .gr-kpi:nth-child(6n+4) { --kc: var(--c3); } html body .gr-kpi:nth-child(6n+5) { --kc: var(--c6); } html body .gr-kpi:nth-child(6n) { --kc: var(--c5); }
html body :is(#gs, .app) .gr-sec-h > h2.sx-h:is(#gs,*):not(#sx-z) { display: inline-flex !important; align-items: center; gap: 10px; }
html[data-motion="full"] body :is(.gr-funnel i, .gr-prog i) { animation: sxWd .9s var(--mo-out, ease) backwards; animation-delay: .15s; }

/* ---------- thème clair : texte en couleur de catégorie assombri (contraste AA ≥ 4,5:1 sur fond teinté) ---------- */
:root[data-theme="light"] body :is(.sx-chip, .sx-av, .sx-dom-i):not(#sx-z) { color: color-mix(in srgb, var(--c) 72%, #000); }
:root[data-theme="light"] body :is(#gs, .app) :is(.v-avatar, .tm2-av).sx-avc:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c) 72%, #000) !important; }
:root[data-theme="light"] body :is(#gs, .app) :is(.vai-feed, .iac-tr) .iac-k:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--kc, var(--muted)) 72%, #000) !important; }

/* ---------- partie 2 : les tuiles de chiffres des pages (icône d'après l'intitulé, trait de couleur) ---------- */
html body :is(#gs, .app) .sx-tile:is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; }
html body .sx-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 72%); opacity: .75; pointer-events: none; }
html body .sx-tile > .sx-tico { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; }
html body .sx-tile > .sx-tico svg { width: 15px; height: 15px; }
html body :is(#gs, .app) .sx-tile > small:is(#gs,*):not(#sx-z) { padding-right: 40px; }
@media (max-width: 760px) { html body .sx-tile > .sx-tico { top: 10px; right: 10px; width: 26px; height: 26px; } html body .sx-tile > .sx-tico svg { width: 13px; height: 13px; } }

/* ---------- partie 2 : les barres des pages à la couleur d'accent (avant : à l'encre) ---------- */
html body :is(#gs, .app) :is(.lb2-track i, .lb2-mini i, .cp-bar i, .tg-prog i, .tm2-meter i, .db-bar i, .vv-bar > i):is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, var(--acc-2)), var(--acc)) !important; }
html body :is(#gs, .app) .an-share:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, var(--acc) var(--w), color-mix(in srgb, var(--fg) 9%, transparent) var(--w)) !important; }
html body :is(#gs, .app) .view:not(#view-accueil) .dbx-share:not(#sx-z)::after { background: var(--acc) !important; }
html[data-motion="full"] body :is(.lb2-mini i, .cp-bar i, .tg-prog i, .tm2-meter i) { animation: sxGrow .9s var(--mo-out, ease) backwards; animation-delay: .15s; }

/* ---------- téléphone : les intitulés des tuiles gardent toute la largeur (l'icône n'y est pas, le trait de couleur reste) ---------- */
@media (max-width: 760px) {
  html body .sx-tile > .sx-tico, html body :is(.vai-tile, .iac-kpi) > .sx-ico { display: none; }
  html body :is(#gs, .app) :is(.sx-tile, .vai-tile, .iac-kpi) > small:is(#gs,*):not(#sx-z) { padding-right: 0; }
}

/* =====================================================================
   Partie 3 (27/11/2026) : traitement sur mesure, page par page. Purement visuel : aucun texte ajouté dans les blocs lus
   par l'appli (les bandes de chiffres sont posées à côté, .sx-strip), avatars et icônes aria-hidden.
   ===================================================================== */
html body .sx-strip { display: block; }
html body .sx-strip > .sx-kpis { margin: 0 0 14px; }
html body .sx-who2 { display: flex !important; align-items: center; gap: 10px; min-width: 0; }
html body .sx-who2 > .sx-av { margin-right: 0; }
html body .sx-wn { display: flex; flex-direction: column; min-width: 0; }
html body .sx-wn > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .sx-av.sx-sq { border-radius: 8px; }
/* avatars des pages déjà rendus par l'appli (classement, bulletins, podium) : la couleur stable du nom */
html body :is(#gs, .app) :is(.rq-av, .ls-fn > i, .lb2-pod > i, .ls-av).sx-avc:is(#gs,*):not(#sx-z) { color: var(--c) !important; background: color-mix(in srgb, var(--c) 16%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent) !important; border-color: transparent !important; }
:root[data-theme="light"] body :is(#gs, .app) :is(.rq-av, .ls-fn > i, .lb2-pod > i, .ls-av).sx-avc:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c) 72%, #000) !important; }

/* ---------- Supervision ---------- */
html body :is(#gs, .app) #view-supervision .sup-worker:is(#gs,*):not(#sx-z) { position: relative; padding: 12px 16px !important; border-radius: 12px !important; border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--line)) !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 10%, transparent), transparent 70%), var(--surface) !important; align-items: center; }
html body :is(#gs, .app) #view-supervision .sup-worker.late:is(#gs,*):not(#sx-z) { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)) !important; background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 11%, transparent), transparent 70%), var(--surface) !important; }
html body #view-supervision .sup-worker > i { position: relative; flex: none; }
html[data-motion="full"] body #view-supervision .sup-worker > i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: sxPing 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes sxPing { 75%, 100% { transform: scale(2.6); opacity: 0; } }
html body :is(#gs, .app) #view-supervision .sup-kpis:is(#gs,*):not(#sx-z) { overflow: hidden; }
html body :is(#gs, .app) #view-supervision .sup-k:is(#gs,*):not(#sx-z) { position: relative; }
html body #view-supervision .sup-k::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--kc, var(--line-2)), transparent 75%); }
html body #view-supervision .sup-k.active { --kc: var(--ok); } html body #view-supervision .sup-k.waiting { --kc: var(--warn); } html body #view-supervision .sup-k.scheduled { --kc: var(--c4); }
html body #view-supervision .sup-k.running { --kc: var(--acc); } html body #view-supervision .sup-k:is(.intervention, .failed) { --kc: var(--danger); } html body #view-supervision .sup-k.zero { --kc: var(--line-2); }
html body :is(#gs, .app) #view-supervision .sup-k b:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif) !important; font-variant-numeric: tabular-nums; font-size: 22px !important; }
html body :is(#gs, .app) #view-supervision .sup-cr:is(#gs,*):not(#sx-z) { position: relative; padding-left: 16px !important; }
html body #view-supervision .sup-cr::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--c, var(--acc)); opacity: .85; }
html body #view-supervision .sup-cr:first-child::before { top: 0; }
html body #view-supervision .sup-cr-id .sx-av { width: 28px; height: 28px; margin-right: 2px; }
html body :is(#gs, .app) #view-supervision .sup-job:is(#gs,*):not(#sx-z) { position: relative; padding-left: 14px !important; }
html body #view-supervision .sup-job::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--warn); }
html body #view-supervision .sup-job.failed::before { background: var(--danger); } html body #view-supervision .sup-job.approval::before { background: var(--c4); }
html body #view-supervision .sup-job:first-child::before { top: 0; }

/* ---------- Automatisations : règles en cartes, Quand / Alors en pastilles ---------- */
html body :is(#gs, .app) #au-rules:is(#gs,*):not(#sx-z) { display: grid; gap: 10px; }
html body :is(#gs, .app) #au-rules .au-rule:is(#gs,*):not(#sx-z) { padding: 14px 16px !important; border: 1px solid var(--line) !important; border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .3s, transform .3s var(--mo-out, ease); }
@media (hover: hover) { html body :is(#gs, .app) #au-rules .au-rule:hover:is(#gs,*):not(#sx-z) { border-color: var(--line-2) !important; box-shadow: var(--pro-sh2, 0 8px 24px -12px rgba(0, 0, 0, .35)); } }
html body :is(#gs, .app) #au-rules .au-rule:not(.off):is(#gs,*):not(#sx-z) { box-shadow: inset 3px 0 0 var(--acc); }
html body :is(#gs, .app) #au-rules .au-rule.off:is(#gs,*):not(#sx-z) { opacity: .62; }
html body :is(#gs, .app) #au-rules .au-main > b:is(#gs,*):not(#sx-z) { display: flex !important; align-items: center; gap: 10px; }
html body .sx-au-i { width: 30px; height: 30px; }
html body .sx-au-i svg { width: 15px; height: 15px; }
html body :is(#gs, .app) #au-rules .au-flow:is(#gs,*):not(#sx-z) { margin-top: 8px !important; padding-left: 40px; display: grid; gap: 5px; }
html body :is(#gs, .app) #au-rules .au-flow em:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; min-width: 52px; justify-content: center; margin-right: 8px; padding: 1px 8px; border-radius: 999px;
  font: 700 11px/1.5 Inter, sans-serif; font-style: normal; text-transform: none; letter-spacing: 0; color: var(--c4) !important; background: color-mix(in srgb, var(--c4) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c4) 28%, transparent); }
html body :is(#gs, .app) #au-rules .au-flow > span + span em:is(#gs,*):not(#sx-z) { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 28%, transparent); }
:root[data-theme="light"] body :is(#gs, .app) #au-rules .au-flow em:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c4) 72%, #000) !important; }
:root[data-theme="light"] body :is(#gs, .app) #au-rules .au-flow > span + span em:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c1) 72%, #000) !important; }
html body :is(#gs, .app) #au-rules .au-last b:is(#gs,*):not(#sx-z) { color: var(--acc-text) !important; font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif); }
html body :is(#gs, .app) #au-rules .au-last small.muted:is(#gs,*):not(#sx-z) { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
html body :is(#gs, .app) .au-sw input:checked + i:is(#gs,*):not(#sx-z) { background: var(--acc-fill, var(--acc)) !important; border-color: var(--acc-fill, var(--acc)) !important; }
html body :is(#gs, .app) .au-sw input:checked + i:is(#gs,*):not(#sx-z)::after { background: var(--acc-ink, #fff) !important; }
@media (max-width: 760px) { html body :is(#gs, .app) #au-rules .au-flow:is(#gs,*):not(#sx-z) { padding-left: 0; } }

/* ---------- Messages groupés : icône de campagne, statuts en pastilles ---------- */
html body .sx-cpn { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; }
html body .sx-cpn > small { flex-basis: 100%; padding-left: 38px; }
html body .sx-cp-i { width: 28px; height: 28px; }
html body :is(#gs, .app) .cp-st.scheduled:is(#gs,*):not(#sx-z) { color: var(--c4) !important; background: color-mix(in srgb, var(--c4) 14%, transparent) !important; }
html body :is(#gs, .app) .cp-st.running:is(#gs,*):not(#sx-z) { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 14%, transparent) !important; }
html body :is(#gs, .app) .cp-st.paused:is(#gs,*):not(#sx-z) { color: var(--warn) !important; background: color-mix(in srgb, var(--warn) 14%, transparent) !important; }
html body :is(#gs, .app) .cp-st.done:is(#gs,*):not(#sx-z) { color: var(--muted) !important; background: var(--surface-2) !important; }
@media (max-width: 760px) { html body .sx-cpn > small { padding-left: 0; } }

/* ---------- Liens de suivi : source en pastille, barre des clics ---------- */
html body .sx-src { --c: var(--acc); display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; font-weight: 600; line-height: 1.6; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
html body .sx-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
:root[data-theme="light"] body .sx-src { color: color-mix(in srgb, var(--c) 72%, #000); }
html body :is(#gs, .app) #view-trafic .tr-cell > .sx-bar:is(#gs,*):not(#sx-z) { display: block; width: min(110px, 90%); height: 4px; margin: 5px 0 3px; }

/* ---------- Réglages d'équipe : paliers avec médaille, membres avec avatar ---------- */
html body #st-tiers { counter-reset: sxtier; }
html body #st-tiers .st-tier { counter-increment: sxtier; }
/* la médaille est posée DANS le champ du nom (position absolue : elle ne prend aucune place dans la grille de public/ops.css,
   le champ reste un enfant direct de la ligne comme avant ; Safari / WebKit plaçait sinon le champ Bonus dans la colonne étroite) */
html body .app #st-tiers .st-tier { position: relative; }
html body .app #st-tiers .st-tier > .sx-medal { position: absolute; left: 7px; top: 4px; z-index: 1; pointer-events: none; }
html body :is(#gs, .app) #st-tiers .st-tier > input[data-k="name"]:is(#gs,*):not(#sx-z) { padding-left: 44px !important; }
@media (max-width: 760px) { html body .app #st-tiers .st-tier > .sx-medal { top: 8px; } }
html body .sx-medal { --t: var(--acc); position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--t) 45%, #fff), var(--t) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 70%, #000), 0 3px 8px -3px color-mix(in srgb, var(--t) 70%, transparent); }
html body .sx-medal::before { content: counter(sxtier); font: 800 11.5px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); color: rgba(20, 18, 12, .82); }
html body .sx-tier { --t: var(--acc); display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-weight: 600; font-size: 12.5px; line-height: 1.5; white-space: nowrap;
  color: color-mix(in srgb, var(--t) 78%, var(--fg)); background: color-mix(in srgb, var(--t) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 34%, transparent); }
html body .sx-tier::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--t) 45%, #fff), var(--t) 75%); }
:root[data-theme="light"] body .sx-tier { color: color-mix(in srgb, var(--t) 60%, #000); }

/* ---------- Paie ---------- */
html body :is(#gs, .app) .ct-row.py .sx-bar:is(#gs,*):not(#sx-z) { display: block; width: min(120px, 92%); height: 4px; margin: 7px 0 4px; }
html body :is(#gs, .app) .ct-row.py.tot:is(#gs,*):not(#sx-z) { background: linear-gradient(90deg, var(--acc-soft), transparent 80%) !important; }
html body :is(#gs, .app) .ct-row.py.tot b:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif); font-size: 15px; }
html body :is(#gs, .app) .ct-paid input:is(#gs,*):not(#sx-z) { accent-color: var(--acc-fill, var(--acc)); }

/* ---------- Classement : rangs « 01 », barres des ventes, podium sans emoji ---------- */
html body #lb2-list { counter-reset: sxrk; }
html body #lb2-list .ls-tr.lb2 { counter-increment: sxrk; }
html body :is(#gs, .app) #lb2-list .ls-rk:is(#gs,*):not(#sx-z) { font-size: 0 !important; min-width: 24px; font-style: normal; }
html body #lb2-list .ls-rk::before { content: counter(sxrk, decimal-leading-zero); font: 600 13px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); color: var(--muted-2); font-variant-numeric: tabular-nums; }
html body #lb2-list .ls-tr.lb2:nth-child(2) .ls-rk::before { color: var(--acc-text); font-weight: 800; }
html body :is(#gs, .app) #lb2-list .ls-fn > i:is(#gs,*):not(#sx-z) { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
html body :is(#gs, .app) .sx-lbs:is(#gs,*):not(#sx-z) { display: flex !important; flex-direction: column; align-items: flex-end; gap: 6px; }
html body .sx-lbs > .sx-bar { margin-left: 0; width: min(100px, 100%); height: 4px; }
html body :is(#gs, .app) .lb2-g b:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif) !important; font-size: 30px !important; background: linear-gradient(90deg, var(--acc-text), var(--acc-text-2, var(--acc-text))); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; }
html body :is(#gs, .app) .lb2-medal:is(#gs,*):not(#sx-z) { font-size: 0 !important; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; --t: #D8A532;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--t) 45%, #fff), var(--t) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 70%, #000); }
html body .lb2-pod.p2 .lb2-medal { --t: #9AA6B2; } html body .lb2-pod.p3 .lb2-medal { --t: #C0834F; }
html body .lb2-pod .lb2-medal::before { font: 800 11px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); color: rgba(20, 18, 12, .82); }
html body .lb2-pod.p1 .lb2-medal::before { content: "1"; } html body .lb2-pod.p2 .lb2-medal::before { content: "2"; } html body .lb2-pod.p3 .lb2-medal::before { content: "3"; }
html body :is(#gs, .app) .lb2-pod.p1:is(#gs,*):not(#sx-z) { border-color: var(--acc-line) !important; background: linear-gradient(180deg, var(--acc-soft), var(--surface) 65%) !important; }

/* ---------- Stats de l'équipe : rangs « 01 », avatars, type de vente en pastille ---------- */
html body .ct-table:has(> .ct-row.bd) { counter-reset: sxbd; }
html body .ct-row.bd:not(.head) { counter-increment: sxbd; }
html body :is(#gs, .app) .ct-row.bd .ct-who em:is(#gs,*):not(#sx-z) { font-size: 0 !important; }
html body .ct-row.bd .ct-who em::before { content: counter(sxbd, decimal-leading-zero); font: 700 11.5px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif); font-variant-numeric: tabular-nums; }
html body .ct-who > .sx-av { margin-right: 0; width: 28px; height: 28px; }
html body .sx-kind { --c: var(--muted); display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
html body .sx-kind.k-messages { --c: var(--c2); } html body .sx-kind.k-subs { --c: var(--c4); } html body .sx-kind.k-tips { --c: var(--c3); } html body .sx-kind.k-posts { --c: var(--c6); } html body .sx-kind.k-streams { --c: var(--c5); }
:root[data-theme="light"] body .sx-kind { color: color-mix(in srgb, var(--c) 72%, #000); }
html body :is(#gs, .app) .ct-amt:is(#gs,*):not(#sx-z) { color: var(--c1) !important; font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif); }
:root[data-theme="light"] body :is(#gs, .app) .ct-amt:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c1) 72%, #000) !important; }

/* ---------- Bulletins : petits chiffres avec icône, à revoir en rouge ---------- */
html body :is(#gs, .app) .bl-s.sx-bls:is(#gs,*):not(#sx-z) { position: relative; overflow: hidden; }
html body .bl-s.sx-bls::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 75%); opacity: .7; }
html body .bl-s > .sx-bl-i { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; }
html body .bl-s > .sx-bl-i svg { width: 11px; height: 11px; }
html body :is(#gs, .app) .bl-s.sx-bls > small:is(#gs,*):not(#sx-z) { padding-right: 26px; }
html body :is(#gs, .app) .bl-s.sx-risk:is(#gs,*):not(#sx-z) { background: color-mix(in srgb, var(--danger) 8%, var(--surface-2, transparent)) !important; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)) !important; }
html body :is(#gs, .app) .bl-s.sx-risk b:is(#gs,*):not(#sx-z) { color: var(--danger) !important; }
html body :is(#gs, .app) .bl-card .rq-av:is(#gs,*):not(#sx-z) { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex: none; }
html body :is(#gs, .app) .bl-sales:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif) !important; }

/* ---------- Conso Admin : fournisseurs avec monogramme, clé en pastille ---------- */
html body .at-t .sx-who { display: inline-flex; align-items: center; gap: 2px; }
html body .at-t .sx-who .sx-av { width: 26px; height: 26px; }
html body :is(#gs, .app) .at :is(.at-ok, .at-ko):is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
html body .at :is(.at-ok, .at-ko)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html body :is(#gs, .app) .at .at-ok:is(#gs,*):not(#sx-z) { color: var(--c1) !important; background: color-mix(in srgb, var(--c1) 13%, transparent); }
html body :is(#gs, .app) .at .at-ko:is(#gs,*):not(#sx-z) { color: var(--danger) !important; background: color-mix(in srgb, var(--danger) 13%, transparent); }
:root[data-theme="light"] body :is(#gs, .app) .at .at-ok:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c1) 72%, #000) !important; }

/* ---------- Listes : en-tête en petites tuiles, listes avec compteur, barre des dépenses ---------- */
html body :is(#gs, .app) .ls-mk:is(#gs,*):not(#sx-z) { display: flex; gap: 10px; flex-wrap: wrap; }
html body :is(#gs, .app) .ls-mk > .sx-mk:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
html body .ls-mk > .sx-mk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--acc)), transparent 75%); opacity: .75; }
html body .ls-mk > .sx-mk > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
html body :is(#gs, .app) .ls-mk > .sx-mk b:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif); font-size: 16px; font-variant-numeric: tabular-nums; }
html body :is(#gs, .app) .ls-item em:is(#gs,*):not(#sx-z) { font-style: normal; min-width: 26px; text-align: center; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
html body :is(#gs, .app) .ls-item.on:is(#gs,*):not(#sx-z) { box-shadow: inset 3px 0 0 var(--acc) !important; }
html body :is(#gs, .app) .ls-item.on em:is(#gs,*):not(#sx-z) { color: var(--acc-ink, #fff) !important; background: var(--acc-fill, var(--acc)); border-color: transparent; }
html body :is(#gs, .app) .ls-tr .ls-fn > i:is(#gs,*):not(#sx-z) { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-style: normal; font-weight: 700; font-size: 11.5px; }

/* ---------- Fans : barre des dépenses sous le montant ---------- */
html body :is(#gs, .app) .fxt-table .sx-lbs:is(#gs,*):not(#sx-z), html body :is(#gs, .app) #ls-main .sx-lbs:is(#gs,*):not(#sx-z), html body :is(#gs, .app) #ls-top .sx-lbs:is(#gs,*):not(#sx-z) { display: flex !important; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; }
@media (max-width: 760px) { html body :is(#gs, .app) :is(.fxt-table, #ls-main, #ls-top) .sx-lbs:is(#gs,*):not(#sx-z) { align-items: flex-start; } }

/* ---------- Chat Center : délai de réponse en couleur, expéditeur avec avatar de couleur ---------- */
html body :is(#gs, .app) .cc-rt.sx-rt:is(#gs,*):not(#sx-z) { font-weight: 600; font-variant-numeric: tabular-nums; }
html body .cc-rt.sx-rt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
html body :is(#gs, .app) .cc-rt.rt-f:is(#gs,*):not(#sx-z) { color: var(--c1) !important; }
html body :is(#gs, .app) .cc-rt.rt-m:is(#gs,*):not(#sx-z) { color: var(--warn) !important; }
html body :is(#gs, .app) .cc-rt.rt-s:is(#gs,*):not(#sx-z) { color: var(--danger) !important; }
:root[data-theme="light"] body :is(#gs, .app) .cc-rt.rt-f:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c1) 72%, #000) !important; }
html body :is(#gs, .app) .cc-w > i.sx-avc:is(#gs,*):not(#sx-z) { color: var(--c) !important; background: color-mix(in srgb, var(--c) 16%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent) !important; }
:root[data-theme="light"] body :is(#gs, .app) .cc-w > i.sx-avc:is(#gs,*):not(#sx-z) { color: color-mix(in srgb, var(--c) 72%, #000) !important; }

/* ---------- Pipeline : avatar du prospect, pastille de couleur par étape ---------- */
html body :is(#gs, .app) .gr-card-t:is(#gs,*):not(#sx-z) { display: flex !important; align-items: center; gap: 8px; }
html body .gr-card-t > .sx-av { margin-right: 0; width: 26px; height: 26px; }
html body :is(#gs, .app) .gr-col > header b:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; gap: 8px; }
html body .gr-col > header b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kc, var(--muted-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc, var(--muted-2)) 20%, transparent); }
html body .gr-col:nth-child(6n+1) { --kc: var(--c4); } html body .gr-col:nth-child(6n+2) { --kc: var(--c6); } html body .gr-col:nth-child(6n+3) { --kc: var(--c2); }
html body .gr-col:nth-child(6n+4) { --kc: var(--c3); } html body .gr-col:nth-child(6n+5) { --kc: var(--c1); } html body .gr-col:nth-child(6n) { --kc: var(--c5); }
html body :is(#gs, .app) .gr-col > header > span:is(#gs,*):not(#sx-z) { font-variant-numeric: tabular-nums; }

/* ---------- Scripts et séries : étapes numérotées à la couleur, prix en pastille ---------- */
html body :is(#gs, .app) #view-library .sm-sn > i:is(#gs,*):not(#sx-z) { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-style: normal; font: 700 11.5px/1 var(--font-display, "Hanken Grotesk", Inter, sans-serif);
  color: var(--acc-text) !important; background: var(--acc-soft) !important; box-shadow: inset 0 0 0 1px var(--acc-line) !important; border: 0 !important; }
html body :is(#gs, .app) .sm-pp:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-weight: 700; color: var(--acc-text) !important; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); font-variant-numeric: tabular-nums; }
html body :is(#gs, .app) .sm-free:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted) !important; background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Posts : pastilles (épinglé, payant, sondage) ---------- */
html body :is(#gs, .app) .ps-c.paid:is(#gs,*):not(#sx-z) { color: var(--acc-text) !important; background: var(--acc-soft) !important; }
html body :is(#gs, .app) .ps-c.pin:is(#gs,*):not(#sx-z) { color: var(--c3) !important; background: color-mix(in srgb, var(--c3) 14%, transparent) !important; }
html body :is(#gs, .app) .ps-c:is(.poll, .quiz):is(#gs,*):not(#sx-z) { color: var(--c2) !important; background: color-mix(in srgb, var(--c2) 14%, transparent) !important; }

/* ---------- Calendrier : aujourd'hui à l'accent, week-ends teintés, éléments par type ---------- */
html body :is(#gs, .app) #cal-grid .cal-c.today:is(#gs,*):not(#sx-z) { border-color: var(--acc) !important; box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 3px var(--acc-soft) !important; background: linear-gradient(180deg, var(--acc-soft), transparent 70%) !important; }
html body :is(#gs, .app) #cal-grid .cal-c.today .cal-n em:is(#gs,*):not(#sx-z) { color: var(--acc-ink, #fff) !important; background: var(--acc-fill, var(--acc)) !important; border-color: transparent !important; }
html body :is(#gs, .app) #cal-grid .cal-c.sel:not(.today):is(#gs,*):not(#sx-z) { border-color: var(--acc-line) !important; box-shadow: inset 0 0 0 1px var(--acc-line) !important; }
html body :is(#gs, .app) #cal-grid .cal-c:is(:nth-child(7n+6), :nth-child(7n)):not(.out):not(.today):is(#gs,*):not(#sx-z) { background: color-mix(in srgb, var(--fg) 2.5%, var(--surface)) !important; }
html body :is(#gs, .app) #cal-grid .cal-c.out:is(#gs,*):not(#sx-z) { opacity: .5; }
html body :is(#gs, .app) #cal-grid .cal-e:is(#gs,*):not(#sx-z) { border-left: 2px solid var(--ec, var(--acc)) !important; background: color-mix(in srgb, var(--ec, var(--acc)) 12%, transparent) !important; color: var(--fg) !important; }
html body #cal-grid .cal-e.post { --ec: var(--c4); } html body #cal-grid .cal-e.camp { --ec: var(--c3); } html body #cal-grid .cal-e.shift { --ec: var(--c6); }
html body :is(#gs, .app) #cal-grid .cal-n:is(#gs,*):not(#sx-z) { font-family: var(--font-display, "Hanken Grotesk", Inter, sans-serif); font-variant-numeric: tabular-nums; }

/* ---------- Prospection, Instagram, Annonces : pastilles sélectionnées à l'accent ---------- */
html body :is(#gs, .app) :is(#view-prospect, #view-insta) :is(button, label)[aria-pressed="true"]:is(#gs,*):not(#sx-z), html body :is(#gs, .app) :is(#view-prospect, #view-insta) :is(.chip, .tp-chip, .dp-chip).on:is(#gs,*):not(#sx-z) { border-color: var(--acc-line) !important; background: var(--acc-soft) !important; color: var(--acc-text) !important; }

/* ---------- Paramètres : sans icônes (choix du style pro) ; les petites notes d'en-tête de section en pastille ---------- */
html body :is(#gs, .app) #view-compte .card-head > .muted.small:is(#gs,*):not(#sx-z) { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.4; white-space: nowrap; }
@media (max-width: 760px) { html body :is(#gs, .app) #view-compte .card-head > .muted.small:is(#gs,*):not(#sx-z) { white-space: normal; } }

/* (27/11/2026) Chiffres « .num » lisibles partout : themes.css (ancien thème) force .num a la couleur du texte pose sur l accent
   (sombre en sombre, clair en clair), ce qui rendait invisibles les montants de « Derniers achats » du tableau de bord et
   d autres chiffres en .num. Ici ils reprennent la couleur de leur ligne ; les regles plus precises (Createrices, Membres...) gardent la main. */
html body :is(#gs, .app) :is(td, th, b, span, strong, small, div, em).num:is(#gs,*):not(#sx-z) { color: inherit !important; }
html body :is(#gs, .app) .dbx5-tbl td b.num:is(#gs,*):not(#sx-z) { color: var(--fg) !important; }

/* ======================================================================================================================
   (27/11/2026) Audit de la DA, page par page (tests/_da-pages-shot.mjs, docs/audit/da-pages.md) : les écarts trouvés
   ====================================================================================================================== */
/* Conso Admin et Annonces : pleine largeur comme les autres pages (plus de colonne étroite décalée), boutons lisibles
   (le bouton de Conso Admin était blanc sur blanc en sombre : contraste 1,18), barres aux couleurs d'état du thème */
html body :is(#gs, .app) :is(#view-claude, #view-annonces) .claude-wrap:is(#gs,*):not(#sx-z) { max-width: none !important; margin: 0 !important; padding: 0 28px 40px !important; } /* aligné sur l'en-tête (28 px) */
@media (max-width: 760px) { html body :is(#gs, .app) :is(#view-claude, #view-annonces) .claude-wrap:is(#gs,*):not(#sx-z) { padding: 0 14px 32px !important; } }
html body :is(#gs, .app) :is(#view-claude, #view-annonces) .cl:is(#gs,*):not(#sx-z) { gap: 14px !important; }
html body :is(#gs, .app) .cl button:is(#gs,*):not(#sx-z) { background: var(--accent-btn) !important; color: var(--accent-ink) !important; border-radius: 9px !important; }
html body :is(#gs, .app) .cl-card:is(#gs,*):not(#sx-z) { border-radius: 12px !important; border-color: var(--line) !important; background: var(--surface) !important; }
html body :is(#gs, .app) .cl-card > :is(h2, h3):is(#gs,*):not(#sx-z) { font: 600 15px/1.3 "Hanken Grotesk", Inter, system-ui, sans-serif !important; letter-spacing: -.005em; margin-bottom: 12px !important; }
html body :is(#gs, .app) :is(#view-claude, #view-annonces) .at-head h2:is(#gs,*):not(#sx-z) { font: 600 16px/1.3 "Hanken Grotesk", Inter, system-ui, sans-serif !important; }
html body :is(#gs, .app) #view-annonces .an-form:is(#gs,*):not(#sx-z) { max-width: 880px; } /* un formulaire reste lisible, même en pleine largeur */
html body :is(#gs, .app) .cl-bar i:is(#gs,*):not(#sx-z) { background: var(--acc) !important; }
html body :is(#gs, .app) .cl-bar i.warn:is(#gs,*):not(#sx-z) { background: var(--warn) !important; }
html body :is(#gs, .app) .cl-bar i.full:is(#gs,*):not(#sx-z) { background: var(--danger) !important; }

/* plus de CAPITALES : groupes du choix de créatrice (Messages), onglets et note interne de la fiche du fan */
html body :is(#gs, .app) .ibp-grp h3:is(#gs,*):not(#sx-z), html body :is(#gs, .app) .fp-tabs button:is(#gs,*):not(#sx-z),
html body :is(#gs, .app, .modal, .fp-modal) .fp-note header:is(#gs,*):not(#sx-z) { text-transform: none !important; letter-spacing: 0 !important; }
html body :is(#gs, .app) .ibp-grp h3:is(#gs,*):not(#sx-z) { font: 600 13px/1.2 Inter, system-ui, sans-serif !important; color: var(--fg-2) !important; }
html body :is(#gs, .app, .modal, .fp-modal) .fp-note header:is(#gs,*):not(#sx-z) { font: 600 12.5px/1.2 Inter, system-ui, sans-serif !important; color: var(--warn) !important; }

/* Cerveau, gros fans qui décrochent : une ligne nette par fan (le texte ne se casse plus en morceaux) */
html body :is(#gs, .app) #view-cerveau .cv-ul:is(#gs,*):not(#sx-z) { padding: 0 !important; margin: 4px 0 0 !important; list-style: none !important; gap: 0 !important; }
html body :is(#gs, .app) #view-cerveau .cv-ul li:is(#gs,*):not(#sx-z) { display: block !important; padding: 8px 0 !important; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; }
html body :is(#gs, .app) #view-cerveau .cv-ul li:first-child:is(#gs,*):not(#sx-z) { border-top: 0; }
html body :is(#gs, .app) #view-cerveau .cv-ul li > b:is(#gs,*):not(#sx-z) { color: var(--fg); }
html body #view-cerveau .cv-ul li .sx-av { display: inline-grid !important; vertical-align: middle; margin: -2px 8px 0 0 !important; }

/* chiffres des tableaux : un montant ne se coupe plus en deux lignes (« 9 212,39 / $ ») sur ordinateur */
@media (min-width: 761px) { html body :is(#gs, .app) .view table :is(td, th).sx-num:is(#gs,*):not(#sx-z) { white-space: nowrap; } }
/* Statistiques › Créatrices (grille ct-row) : les montants restent sur une ligne, la grille défile si la carte est étroite */
html body :is(#gs, .app) .ct-table:has(> .ct-row.an-cr):is(#gs,*):not(#sx-z) { overflow-x: auto; }
html body :is(#gs, .app) .ct-row.an-cr > :not(:first-child) :is(b, strong):is(#gs,*):not(#sx-z) { white-space: nowrap; }

/* Médias : le choix de la créatrice en cartes (avatar de couleur, nom, flèche « ouvrir » à droite) */
html body :is(#gs, .app) #view-library .vv-accs:is(#gs,*):not(#sx-z) { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; gap: 10px !important; margin-top: 6px; }
html body :is(#gs, .app) #view-library .vv-acc:is(#gs,*):not(#sx-z) { min-height: 64px !important; padding: 12px 14px !important; border-radius: 12px !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; font-size: 14px; transition: border-color .2s, transform .25s cubic-bezier(.3,1.4,.5,1); }
html body :is(#gs, .app) #view-library .vv-acc:hover:is(#gs,*):not(#sx-z) { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)) !important; }
html body :is(#gs, .app) #view-library .vv-acc::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-top: 1.6px solid var(--muted); transform: rotate(45deg); }
html body :is(#gs, .app) #view-library .vv-acc .crx-av:is(#gs,*):not(#sx-z) { width: 34px !important; height: 34px !important; border-radius: 50% !important; display: grid; place-items: center; font: 700 13px/1 "Hanken Grotesk", Inter, sans-serif; background: color-mix(in srgb, var(--c, var(--acc)) 18%, transparent) !important; color: var(--c, var(--acc)) !important; }
html[data-motion="full"] body :is(#gs, .app) #view-library .vv-acc:hover:is(#gs,*):not(#sx-z) { transform: translateY(-1px); }

/* Instagram : « Ce que SubScale fait pour son Instagram » en carte avec icône, étapes numérotées à la couleur d'accent */
html body :is(#gs, .app) details.ig-play > summary.sx-h:is(#gs,*):not(#sx-z) { display: flex !important; align-items: center; gap: 10px; font: 600 14px/1.3 "Hanken Grotesk", Inter, sans-serif !important; color: var(--fg) !important; list-style: none; }
html body :is(#gs, .app) details.ig-play > summary::-webkit-details-marker { display: none; }
html body :is(#gs, .app) details.ig-play > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
html body :is(#gs, .app) details.ig-play[open] > summary::after { transform: rotate(-135deg); }
html body :is(#gs, .app) .ig-steps:is(#gs,*):not(#sx-z) { counter-reset: igs; list-style: none !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px !important; }
html body :is(#gs, .app) .ig-steps > li:is(#gs,*):not(#sx-z) { counter-increment: igs; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
html body :is(#gs, .app) .ig-steps > li::before { content: counter(igs, decimal-leading-zero); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 "Hanken Grotesk", Inter, sans-serif; color: var(--acc-text, var(--acc)); background: var(--acc-soft, color-mix(in srgb, var(--acc) 16%, transparent)); }
html body :is(#gs, .app) .ig-steps > li > b:is(#gs,*):not(#sx-z) { display: block; color: var(--fg); margin-bottom: 3px; }

/* Telegram, ajouter une créatrice : étapes numérotées comme ailleurs (numéro « 01 » à la couleur d'accent, en tête de carte) */
html body :is(#gs, .app) .tg-steps-how > div:is(#gs,*):not(#sx-z) { position: relative; padding: 46px 14px 14px !important; border-radius: 12px !important; }
html body :is(#gs, .app) .tg-steps-how > div::before { content: counter(s, decimal-leading-zero) !important; position: absolute; left: 14px; top: 13px; width: 26px !important; height: 26px !important; margin: 0 !important; font: 700 11px/1 "Hanken Grotesk", Inter, sans-serif !important; color: var(--acc-text, var(--acc)) !important; background: var(--acc-soft, color-mix(in srgb, var(--acc) 16%, transparent)) !important; }

/* thème clair : pastilles et libellés colorés trop pâles (contraste mesuré sous 4,5:1) foncés */
html[data-theme="light"] body :is(#gs, .app) :is(#view-banking, #view-accueil, .view) .fx2-st.st-paid:is(#gs,*):not(#sx-z) { color: #11704a !important; }
html[data-theme="light"] body :is(#gs, .app) .rq-k.k-silent:is(#gs,*):not(#sx-z) { color: #8a5a00 !important; background: rgba(245, 185, 65, .18) !important; }
html[data-theme="light"] body :is(#gs, .app) .iac-pf:is(.pf-onlyfans, .pf-telegram):is(#gs,*):not(#sx-z) { color: #0b5f96 !important; }
html[data-theme="light"] body :is(#gs, .app) .rl3-role > em:is(#gs,*):not(#sx-z) { color: var(--fg-2) !important; }
html[data-theme="light"] body :is(#gs, .app) .rl2-l > i.rl2-sens:is(#gs,*):not(#sx-z) { color: #8a3b12 !important; }

/* états vides repris par l'enrichisseur (sx-empty) : même dessin que les autres, un peu plus serré dans une carte */
html body :is(#gs, .app) .view .sx-empty:is(#gs,*):not(#sx-z) { padding: 30px 16px 22px !important; max-width: 520px; margin: 0 auto !important; }
