/* =====================================================================
   SubScale · direction « style pro » (26/11/2026) — finition inspirée d'Infloww, identité SubScale.
   Chargée en DERNIER (après graphite.css), même astuce de spécificité :is(#gs,*). Purement visuel : aucun id, aucune classe,
   aucune fonction ne change. Maquette validée : Bureau\SubScale design\style-pro (DESIGN.md, rendu/*.png).
   - Sombre par défaut (encre chaude #111110), Clair « papier » (#F7F6F3) au choix dans Paramètres > Apparence.
   - Ordinateur : menu sur le papier, la page dans une « feuille » (bord fin, rayon 14).
   - Titres en Hanken Grotesk, interface en Inter, logo en Plus Jakarta Sans.
   - Signature « Croissance » (dégradé vert + grain) seulement sur la marque : connexion, avatar de l'espace.
   ===================================================================== */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- jetons · Sombre (par défaut) ---------- */
:root:root:root:not([data-theme="light"]), :root:root:root.studio-ui.studio-ui:not([data-theme="light"]) {
  --bg: #111110 !important; --bg-2: #161615 !important; --surface: #191918 !important; --surface-2: #222220 !important; --surface-3: #2C2B28 !important;
  --line: #2A2926 !important; --line-2: #3A3935 !important;
  --fg: #EDECE8 !important; --fg-2: #D3D1CB !important; --muted: #ADAAA2 !important; --muted-2: #8C8981 !important;
  --ok: #6FCB98 !important; --danger: #F08A78 !important; --warn: #E0AE62 !important;
  --accent: #EDECE8 !important; --accent-btn: #EDECE8 !important; --accent-2: #ADAAA2 !important; --accent-soft: rgba(237, 236, 232, .08) !important;
  --accent-ink: #141413 !important; --on-accent: #141413 !important; --grad: linear-gradient(#EDECE8, #EDECE8) !important; --lilac: #ADAAA2 !important;
  --sel-bg: #1E1E1C !important; --chip-bg: #222220 !important; --chip-fg: #D3D1CB !important; --chip-fg-2: #EDECE8 !important; --tile-bg: #1C1C1B !important; --tile-fg: #EDECE8 !important;
  --bubble-me: #EDECE8 !important; --bubble-me-fg: #141413 !important;
  --gs-row: #20201E !important; --gs-line-soft: #242321 !important; --gs-input: #1C1C1B !important; --gs-pop: #1E1E1C !important;
  --gs-ok-bg: rgba(111, 203, 152, .12) !important; --gs-ok-line: rgba(111, 203, 152, .3) !important;
  --gs-ko-bg: rgba(240, 138, 120, .12) !important; --gs-ko-line: rgba(240, 138, 120, .3) !important;
  --gs-wait-bg: #262624 !important; --gs-wait-line: #3A3935 !important;
  --pro-acc: #6FCB98; --pro-seg-on: #2E2D2A; --pro-sh1: none; --pro-sh2: 0 8px 24px -8px rgba(0, 0, 0, .5); --pro-sh3: 0 24px 48px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* ---------- jetons · Clair (papier) ---------- */
:root:root:root[data-theme="light"], :root:root:root.studio-ui.studio-ui[data-theme="light"] {
  --bg: #F7F6F3 !important; --bg-2: #F2F1ED !important; --surface: #FFFFFF !important; --surface-2: #F2F1ED !important; --surface-3: #E3E2DE !important;
  --line: #E8E6E1 !important; --line-2: #D9D6CF !important;
  --fg: #141413 !important; --fg-2: #2F2E2B !important; --muted: #55534D !important; --muted-2: #6D6A63 !important;
  --ok: #136447 !important; --danger: #A1301F !important; --warn: #8A5A12 !important;
  --accent: #141413 !important; --accent-btn: #141413 !important; --accent-2: #2F2E2B !important; --accent-soft: rgba(20, 20, 19, .06) !important;
  --accent-ink: #F7F6F3 !important; --on-accent: #F7F6F3 !important; --grad: linear-gradient(#141413, #141413) !important; --lilac: #2F2E2B !important;
  --sel-bg: #FFFFFF !important; --chip-bg: #F2F1ED !important; --chip-fg: #2F2E2B !important; --chip-fg-2: #141413 !important; --tile-bg: #F7F6F3 !important; --tile-fg: #141413 !important;
  --bubble-me: #141413 !important; --bubble-me-fg: #F7F6F3 !important;
  --gs-row: #F7F6F3 !important; --gs-line-soft: #EFEDE8 !important; --gs-input: #FFFFFF !important; --gs-pop: #FFFFFF !important;
  --gs-ok-bg: #E8F2EC !important; --gs-ok-line: rgba(19, 100, 71, .22) !important;
  --gs-ko-bg: #F8E9E6 !important; --gs-ko-line: rgba(161, 48, 31, .22) !important;
  --gs-wait-bg: #EFEEEA !important; --gs-wait-line: #D9D6CF !important;
  --pro-acc: #136447; --pro-seg-on: #FFFFFF; --pro-sh1: 0 1px 2px rgba(20, 20, 19, .05); --pro-sh2: 0 1px 2px rgba(20, 20, 19, .05), 0 8px 24px -8px rgba(20, 20, 19, .12); --pro-sh3: 0 2px 4px rgba(20, 20, 19, .06), 0 24px 48px -12px rgba(20, 20, 19, .22);
  color-scheme: light;
}
/* mesures et signature, communes aux deux thèmes */
:root:root:root, :root:root:root[data-theme] {
  --font-display: "Hanken Grotesk", "Inter", "Segoe UI", system-ui, sans-serif !important;
  --r-sm: 8px !important; --r: 9px !important; --r-md: 10px !important; --r-lg: 12px !important; --radius: 12px !important;
  --card-r: 12px !important; --card-p: 16px !important; --d4-r: 12px !important;
  --side: 240px;
  --pro-sig: radial-gradient(70% 60% at 96% 100%, #B9DE78 0%, rgba(185, 222, 120, 0) 70%), radial-gradient(90% 80% at 10% 0%, #0B3A2B 0%, rgba(11, 58, 43, 0) 60%), linear-gradient(140deg, #0B3A2B 0%, #155C43 45%, #2F8A5C 80%, #6FB063 100%);
  --pro-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* le logo garde sa police (Plus Jakarta Sans), les titres passent en Hanken Grotesk */
html body .brand .wm:is(#gs,*) { font-family: "Plus Jakarta Sans", "Inter", sans-serif !important; }
html body:is(#gs,*) { font-feature-settings: "cv05", "cv08"; }

/* ---------- coque (ordinateur) : le menu sur le papier, la page dans une feuille ---------- */
@media (min-width: 761px) {
  html body .app:is(#gs,*) { background: var(--bg) !important; }
  html body .app > .main:is(#gs,*) {
    margin: 8px 8px 8px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--pro-sh1);
    /* dans la feuille, le « fond » devient la surface : cartes et listes posées sur du blanc (clair) / #191918 (sombre) */
    --bg: var(--surface) !important; --bg-2: var(--surface-2) !important; background: var(--surface) !important;
  }
  html body .app > .main :is(.view, main.scroll):is(#gs,*) { background: var(--surface) !important; }
}

/* ---------- barre latérale ---------- */
html body :is(#gs, .app) .side:is(#gs,*) { background: var(--bg) !important; border-right: 0 !important; }
@media (max-width: 760px) { html body :is(#gs, .app) .side:is(#gs,*) { background: var(--surface) !important; } }
html body :is(#gs, .app) .side .nav svg:is(#gs,*) { stroke-width: 1.6 !important; }
html body :is(#gs, .app) .side .nav > [data-view]:is(#gs,*), html body :is(#gs, .app) .side .nav-sec:is(#gs,*) { border-radius: 8px !important; border: 1px solid transparent !important; color: var(--muted) !important; font: 500 13.5px/1.2 Inter, sans-serif !important; }
@media (min-width: 761px) {
  html body :is(#gs, .app) .side .nav > [data-view]:not(.nav-sub):is(#gs,*), html body :is(#gs, .app) .side .nav-sec:is(#gs,*) { min-height: 32px !important; height: 32px; }
  html body :is(#gs, .app) .side .nav-sub:is(#gs,*) { min-height: 28px !important; height: 28px; }
}
html body :is(#gs, .app) .side .nav :is(button, a) svg:is(#gs,*) { color: var(--muted-2) !important; }
html body :is(#gs, .app) .side .nav :is(button, a):hover:is(#gs,*) { background: color-mix(in srgb, var(--fg) 5%, transparent) !important; color: var(--fg) !important; }
/* entrée active : une pastille « feuille » (surface + bord fin + ombre légère) */
html body :is(#gs, .app) .side .nav > [data-view]:not(.nav-sub):is([aria-current="page"], .active, .on):is(#gs,*) { background: var(--sel-bg) !important; border-color: var(--line) !important; box-shadow: var(--pro-sh1) !important; color: var(--fg) !important; }
html body :is(#gs, .app) .side .nav > [data-view]:not(.nav-sub):is([aria-current="page"], .active, .on) svg:is(#gs,*) { color: var(--fg) !important; }
html body :is(#gs, .app) .side .nav > [data-view]:not(.nav-sub)[aria-current="page"]:is(#gs,*)::before { display: none !important; }
html body :is(#gs, .app) .side .nav-sec[aria-expanded="true"]:not([aria-current="page"]):is(#gs,*) { color: var(--fg) !important; background: transparent !important; }
/* rubriques d'une section : sans fond, un filet de 2 px à gauche pour l'active */
html body :is(#gs, .app) .side .nav-sub:is(#gs,*) { font-size: 13px !important; color: var(--muted) !important; border-radius: 7px !important; }
html body :is(#gs, .app) .side .nav-sub:is([aria-current="page"], .active, .on):is(#gs,*) { background: transparent !important; color: var(--fg) !important; font-weight: 600 !important; box-shadow: inset 2px 0 0 var(--fg) !important; border-radius: 0 7px 7px 0 !important; }
/* ordinateur : rubriques sans icône, sur un filet vertical (comme la maquette) ; au téléphone, le tiroir garde ses icônes */
@media (min-width: 761px) {
  html body:not(.side-mini) :is(#gs, .app) .side .nav > .nav-sub:is(#gs,*) { margin-left: 18px !important; width: calc(100% - 18px) !important; padding-left: 12px !important; border: 0 !important; border-left: 1px solid var(--line-2) !important; border-radius: 0 7px 7px 0 !important; }
  html body:not(.side-mini) :is(#gs, .app) .side .nav > .nav-sub > svg:is(#gs,*) { display: none !important; }
  html body:not(.side-mini) :is(#gs, .app) .side .nav > .nav-sub:is([aria-current="page"], .active, .on):is(#gs,*) { border-left-color: var(--fg) !important; box-shadow: -1px 0 0 var(--fg) !important; }
  html body:not(.side-mini) :is(#gs, .app) .side .nav > .nav-sub:is(#gs,*)::before { display: none !important; }
}
/* chiffres en carte (.kpis) : libellé en phrase, chiffre en Hanken */
html body :is(#gs, .app) :is(.kpis > .kpi, .dbx-kpis > .dbx-k) > small:is(#gs,*) { font: 500 12.5px/1.3 Inter, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; }
html body :is(#gs, .app) :is(.kpis > .kpi > strong, .dbx-kpis > .dbx-k > b):is(#gs,*) { font: 600 26px/1.1 var(--font-display) !important; letter-spacing: -.025em !important; }
html body :is(#gs, .app) .kpis:is(#gs,*) { border-radius: 12px !important; }
/* titres de groupe : « Agence », « Administration », en phrase, gris */
html body :is(#gs, .app) .side .nav-label.nav-grp:is(#gs,*) { margin: 16px 0 4px !important; padding: 0 10px !important; font: 500 12px/16px Inter, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted-2) !important; }
/* compteurs : non lus en pastille d'encre */
html body :is(#gs, .app) .side .nav [data-view="inbox"] .count:is(#gs,*) { background: var(--fg) !important; color: var(--surface) !important; }
/* la créatrice / l'espace : carte avec l'avatar à la signature « Croissance » */
html body :is(#gs, .app) .ctx-btn:is(#gs,*) { border: 1px solid var(--line) !important; background: var(--surface) !important; border-radius: 11px !important; box-shadow: var(--pro-sh1) !important; padding: 7px 8px !important; }
html body :is(#gs, .app) .ctx-btn:hover:is(#gs,*) { border-color: var(--line-2) !important; background: var(--surface) !important; }
html body :is(#gs, .app) .ctx-av:is(#gs,*) { position: relative; overflow: hidden; width: 30px !important; height: 30px !important; min-width: 30px; border-radius: 8px !important; background: var(--pro-sig) !important; color: #fff !important; font: 700 13px/1 "Hanken Grotesk", Inter, sans-serif !important; isolation: isolate; }
html body :is(#gs, .app) .ctx-av:is(#gs,*)::after { content: ""; position: absolute; inset: 0; background: var(--pro-grain); opacity: .35; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
html body :is(#gs, .app) .ctx-av svg:is(#gs,*) { color: #fff !important; stroke: #fff !important; }
html body :is(#gs, .app) .ctx-t b:is(#gs,*) { font: 600 13px/1.2 Inter, sans-serif !important; letter-spacing: -.01em; color: var(--fg) !important; }
/* (26/11/2026) partie 2 : « Toutes les créatrices » entier dans la carte (240 px) */
@media (min-width: 761px) { html body :is(#gs, .app) .side .ctx-btn:is(#gs,*) { gap: 8px !important; padding: 7px 6px 7px 7px !important; } html body :is(#gs, .app) .side .ctx-chev:is(#gs,*) { margin-left: 0 !important; width: 14px; } }
html body :is(#gs, .app) .ctx-t small:is(#gs,*) { font-size: 12px !important; color: var(--muted-2) !important; }
/* recherche (Ctrl K) : une ligne discrète, la touche à droite */
html body :is(#gs, .app) .side .kbar:is(#gs,*) { border: 1px solid transparent !important; background: transparent !important; border-radius: 9px !important; color: var(--muted-2) !important; margin: 10px 0 8px !important; }
html body :is(#gs, .app) .side .kbar:hover:is(#gs,*) { background: color-mix(in srgb, var(--fg) 5%, transparent) !important; color: var(--fg-2) !important; }
html body :is(#gs, .app) .kbar kbd:is(#gs,*) { border-radius: 5px !important; background: var(--surface) !important; border-color: var(--line-2) !important; color: var(--muted-2) !important; font-size: 11px !important; }
/* le compte, en bas */
html body :is(#gs, .app) .side-foot:is(#gs,*) { border-top: 1px solid var(--line) !important; }
html body :is(#gs, .app) .side-foot .me:is(#gs,*) { border-radius: 9px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body :is(#gs, .app) .side-foot .me:hover:is(#gs,*) { background: color-mix(in srgb, var(--fg) 5%, transparent) !important; }
html body :is(#gs, .app) .side .brand-row:is(#gs,*) { border-bottom: 0 !important; }
/* menu resserré comme la maquette : logo, carte, recherche, menu, puis le compte en bas */
@media (min-width: 761px) {
  html body :is(#gs, .app) .side:is(#gs,*) { gap: 0 !important; padding: 12px 12px 8px 14px !important; }
  html body :is(#gs, .app) .side .brand-row:is(#gs,*) { margin: 0 0 12px !important; padding-bottom: 0 !important; }
  html body :is(#gs, .app) .side .ctx:is(#gs,*) { margin: 0 !important; }
  html body :is(#gs, .app) .side .nav:is(#gs,*) { gap: 1px !important; }
  html body :is(#gs, .app) .side .side-foot:is(#gs,*) { margin-top: auto !important; padding-top: 8px !important; }
}

/* ---------- en-tête de page : titre Hanken 27 px, sous-titre gris ---------- */
html body :is(#gs, .app) :is(.viewbar, .vb) h1:is(#gs,*) { font: 600 27px/1.15 var(--font-display) !important; letter-spacing: -.02em !important; color: var(--fg) !important; }
html body :is(#gs, .app) :is(.viewbar, .vb) > div:first-child > p:is(#gs,*), html body :is(#gs, .app) :is(.viewbar, .vb) > div:first-child > .muted:is(#gs,*) { font-size: 13.5px !important; color: var(--muted) !important; margin-top: 4px !important; }
html body :is(#gs, .app) .vb-crumb:is(#gs,*) { font-size: 13px !important; color: var(--muted-2) !important; margin-bottom: 10px !important; }
html body :is(#gs, .app) .vb-crumb b:is(#gs,*) { color: var(--fg) !important; font-weight: 600 !important; }
html body :is(#gs, .app) :is(.vb-chip, .viewbar .chip):is(#gs,*) { border-radius: 999px !important; height: 22px; padding: 0 8px !important; font: 500 12px/22px Inter, sans-serif !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; }
@media (min-width: 761px) { html body :is(#gs, .app) .main > .view > .viewbar:is(#gs,*) { padding-top: 24px !important; padding-left: 28px !important; padding-right: 28px !important; } }
html body :is(#gs, .app) :is(.card-head, .dbx-card > header) :is(h2, h3):is(#gs,*), html body :is(#gs, .app) .card > :is(h2, h3):first-child:is(#gs,*) { font: 600 14px/1.3 Inter, sans-serif !important; letter-spacing: -.01em !important; color: var(--fg) !important; text-transform: none !important; }

/* ---------- cartes : rayon 12, bord fin, plates dans la feuille ---------- */
html body :is(#gs, .app) :is(.card, .dbx-card, .dbx4-card, .cl-card, .bl-card, .rq-list, .gr-panel, .rl2-main, .fo-path, .vai-panel, .fxv-panel, .ibp-card, .dbx5-strip, .rq-kpi, .v-kpis, .gr-kpis, .rl2-group, .fo-resume, .vai-tiles):is(#gs,*) { border-radius: 12px !important; }
html body :is(#gs, .app) :is(.card, .dbx-card, .cl-card, .bl-card, .rq-list, .gr-panel, .rl2-main, .fo-path, .vai-panel, .fxv-panel, .ibp-card):is(#gs,*) { border-color: var(--line) !important; }

/* ---------- boutons : 32 px, rayon 9 ; secondaire = surface + bord + ombre légère ; primaire = encre ---------- */
html body :is(#gs, .app) :is(.btn-ghost, .ghost, .btn-secondary, .ui-btn:not(.primary)):is(#gs,*) { border-radius: 9px !important; border: 1px solid var(--line-2) !important; background: var(--surface) !important; color: var(--fg) !important; box-shadow: var(--pro-sh1) !important; }
html body :is(#gs, .app) :is(.btn-ghost, .ghost, .btn-secondary, .ui-btn:not(.primary)):hover:is(#gs,*) { background: var(--surface-2) !important; border-color: var(--line-2) !important; }
html body :is(#gs, .app) :is(.btn-primary, .btn.primary, button.primary, .ui-btn.primary, .primary-btn):is(#gs,*) { border-radius: 9px !important; background: var(--fg) !important; border-color: var(--fg) !important; color: var(--surface) !important; }
html body :is(#gs, .app) :is(.btn-primary, .btn.primary, button.primary, .ui-btn.primary, .primary-btn) svg:is(#gs,*) { color: currentColor !important; }

/* ---------- champs : rayon 10, bord appuyé, focus encre + halo ---------- */
html body :is(#gs, .app) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea):is(#gs,*) { border-radius: 9px !important; }
html body :is(#gs, .app) :is(input, select, textarea):focus:is(#gs,*) { border-color: var(--fg) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }

/* ---------- segments : fond en creux, l'actif en surface ---------- */
html body :is(#gs, .app) :is(.v-tabs, .fx3-seg, .fp-tabs, .theme-modes):is(#gs,*) { border: 1px solid var(--line) !important; background: var(--surface-2) !important; border-radius: 9px !important; padding: 2px !important; gap: 2px; box-shadow: none !important; }
html body :is(#gs, .app) :is(.v-tabs, .fx3-seg, .fp-tabs, .theme-modes) > :is(button, a):is(#gs,*) { border-radius: 7px !important; font: 500 12.5px/1 Inter, sans-serif !important; color: var(--muted) !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
html body :is(#gs, .app) :is(.v-tabs, .fx3-seg, .fp-tabs, .theme-modes) > :is(button, a):is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"], .on):is(#gs,*) { background: var(--pro-seg-on) !important; color: var(--fg) !important; box-shadow: 0 1px 2px rgba(20, 20, 19, .08), 0 0 0 1px var(--line) !important; }
:root[data-theme]:not([data-theme="light"]) body :is(#gs, .app) :is(.v-tabs, .fx3-seg, .fp-tabs, .theme-modes) > :is(button, a):is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"], .on):is(#gs,*),
:root:not([data-theme]) body :is(#gs, .app) :is(.v-tabs, .fx3-seg, .fp-tabs, .theme-modes) > :is(button, a):is([aria-selected="true"], [aria-checked="true"], [aria-pressed="true"], .on):is(#gs,*) { box-shadow: none !important; }

/* ---------- pastilles : arrondies (999), fond en creux ; statuts avec un point ---------- */
html body :is(#gs, .app) :is(.rq-k, .rl2-chip, .rl3-dom, .chip, .tag, .pill, .ui-badge, .badge, .v-pill, .dbx4-chip, .cc-o):is(#gs,*) { border-radius: 999px !important; }
html body :is(#gs, .app) .cc-pst:is(#gs,*) { border-radius: 6px !important; gap: 6px; border: 0 !important; height: 22px; padding: 0 8px 0 7px !important; font: 500 12px/1 Inter, sans-serif !important; }
html body :is(#gs, .app) .cc-pst:is(#gs,*)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
html body :is(#gs, .app) .cc-pst.pending:is(#gs,*) { background: var(--gs-wait-bg) !important; color: var(--muted) !important; }
html body :is(#gs, .app) .cc-pst.pending:is(#gs,*)::before { background: transparent; border: 1.5px solid currentColor; width: 4px; height: 4px; }
html body :is(#gs, .app) .dbx5-on:is(#gs,*) { border-radius: 999px !important; border: 0 !important; height: 22px; padding: 0 9px !important; font-size: 12px !important; }

/* ---------- tableaux : en-têtes en phrase 12 px gris, lignes 46 px ---------- */
html body :is(#gs, .app) :is(.view table thead th, .view table th, .cc-head, .ls-th, .dbx5-tbl th):is(#gs,*) { font: 500 12px/1.2 Inter, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted-2) !important; }
@media (min-width: 761px) { html body :is(#gs, .app) :is(.view table td, .dbx5-tbl td):is(#gs,*) { height: 46px; } html body :is(#gs, .app) .cc-row:is(#gs,*) { min-height: 46px; } }
html body :is(#gs, .app) :is(.view table td, .dbx5-tbl td):is(#gs,*) { border-bottom-color: var(--line) !important; }

/* ---------- tableau de bord : la bande de chiffres (Hanken 26), courbe à l'encre ---------- */
html body :is(#gs, .app) .dbx5-strip:is(#gs,*) { border-radius: 12px !important; border-color: var(--line) !important; }
html body :is(#gs, .app) .dbx5-k > small:is(#gs,*) { color: var(--muted) !important; font-size: 12.5px !important; }
html body :is(#gs, .app) .dbx5-k > b:is(#gs,*), html body :is(#gs, .app) .dbx5-k.big > b.m4-nofit:is(#gs,*) { font: 600 26px/1.1 var(--font-display) !important; letter-spacing: -.025em !important; }
html body :is(#gs, .app) .dbx5-dl .dbx4-delta:is(#gs,*) { font-weight: 600 !important; }
html body :is(#gs, .app) .dbx5-k .dbx4-spark .l:is(#gs,*) { stroke: var(--fg) !important; stroke-width: 1.4 !important; opacity: .85; }
html body :is(#gs, .app) .dbx5-k .dbx4-spark .a:is(#gs,*) { fill: transparent !important; }
html body :is(#gs, .app) #dbx .vch-area:is(#gs,*) { fill: color-mix(in srgb, var(--fg) 7%, transparent) !important; }
html body :is(#gs, .app) #dbx .dbx4-bar:is(#gs,*) { height: 6px !important; border-radius: 3px !important; opacity: 1; }
html body :is(#gs, .app) #dbx .dbx4-av:is(#gs,*) { width: 28px !important; height: 28px !important; line-height: 28px !important; }
html body :is(#gs, .app) #dbx .dbx4-rv b:is(#gs,*) { font: 600 14px/1.3 var(--font-display) !important; }
html body :is(#gs, .app) :is(.kpis > .kpi > strong, .kpi b, .dbx-k b):is(#gs,*) { font-family: var(--font-display) !important; letter-spacing: -.02em; }
html body :is(#gs, .app) #dbx .dbx4-acts:is(#gs,*) { border-radius: 12px !important; }

/* ---------- Messages : 316 | conversation | 340, dans la feuille ---------- */
@media (min-width: 1101px) { html body :is(#gs, .app) #view-inbox .ibx:is(#gs,*) { grid-template-columns: 316px minmax(0, 1fr) 340px !important; } }
@media (min-width: 761px) {
  html body :is(#gs, .app) #view-inbox .ibx:is(#gs,*) { margin: 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; background: var(--surface) !important; }
  html body :is(#gs, .app) #view-inbox .ibx > :is(.msg-list, .msg-fan, .msg-thread, .msg-main):is(#gs,*) { background: var(--surface) !important; }
  html body :is(#gs, .app) #view-inbox .msg-row:is(#gs,*) { margin: 0 6px !important; border-radius: 10px !important; border-bottom: 0 !important; }
  html body :is(#gs, .app) #view-inbox .msg-row:is(.on, .active, [aria-current="true"], [aria-selected="true"]):is(#gs,*) { background: var(--surface-2) !important; box-shadow: none !important; }
}
html body :is(#gs, .app) #view-inbox .mr-top b:is(#gs,*) { font-size: 13.5px !important; }
html body :is(#gs, .app) #view-inbox .mr-when.late:is(#gs,*) { color: var(--danger) !important; }
/* bulles : rayon 16, coin d'origine 6 ; envoyées à l'encre, reçues en creux bordé */
html body :is(#gs, .app) #view-inbox .mb.mb-me p:not(.mb-x):is(#gs,*), html body :is(#gs, .app) #ib-detail.rl .mb.mb-me p:not(.mb-x):is(#gs,*) { border-radius: 16px 16px 6px 16px !important; padding: 9px 13px !important; line-height: 1.45 !important; }
html body :is(#gs, .app) #view-inbox .mb.mb-fan p:not(.mb-x):is(#gs,*), html body :is(#gs, .app) #ib-detail.rl .mb.mb-fan p:not(.mb-x):is(#gs,*) { border-radius: 16px 16px 16px 6px !important; padding: 9px 13px !important; line-height: 1.45 !important; }
html body :is(#gs, .app) :is(.bubble, .msg-bub, .ib-bub):is(#gs,*) { border-radius: 16px !important; }
/* composeur : carte arrondie 14 */
html body :is(#gs, .app) #view-inbox :is(.composer, .ib-composer, form.cbox):is(#gs,*), html body :is(#gs, .app) form.composer.cbox:is(#gs,*) { border-radius: 14px !important; box-shadow: var(--pro-sh1) !important; }
html body :is(#gs, .app) #view-inbox :is(.composer, .ib-composer, form.cbox) :is(.chip, .v-chip, button.tok):is(#gs,*) { border-radius: 999px !important; height: 28px; background: var(--surface) !important; border-color: var(--line-2) !important; color: var(--fg) !important; }
/* fiche du fan : chiffres en Hanken, blocs arrondis */
html body :is(#gs, .app) .fp-tiles:is(#gs,*) { border-radius: 11px !important; }
html body :is(#gs, .app) .fp-tiles b:is(#gs,*) { font: 600 16px/1.3 var(--font-display) !important; letter-spacing: -.015em !important; }
html body :is(#gs, .app) :is(.fp-sec, .fp-box, .fp-note, .fp-idea, .fp-sum):is(#gs,*) { border-radius: 10px !important; }
html body :is(#gs, .app) :is(.fp-sec, .fp-box):is(#gs,*) > :is(h4, h5, .fp-h):first-child { font: 600 12.5px/1.3 Inter, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--fg) !important; }

/* ---------- menus, fenêtres, notifications : rayon 12, ombre flottante ---------- */
html body :is(.ctx-pop, .um-pop, .crx-menu-pop, .ib-menu, .menu-pop, .pop, .dropdown-menu, .au-tpl):is(#gs,*) { border-radius: 12px !important; border-color: var(--line) !important; box-shadow: var(--pro-sh3) !important; }
:root:not([data-theme="light"]) body :is(.ctx-pop, .um-pop, .crx-menu-pop, .ib-menu, .menu-pop, .pop, .dropdown-menu, .au-tpl):is(#gs,*) { border-color: var(--line-2) !important; }
html body :is(.co-modal, .modal, dialog, .sheet, .co-card):is(#gs,*) { border-radius: 14px !important; }
@media (min-width: 761px) { html body :is(.co-card, dialog):is(#gs,*) { border-color: var(--line) !important; box-shadow: var(--pro-sh3) !important; } }
html body :is(.toast, .toasts > *):is(#gs,*) { border-radius: 10px !important; box-shadow: var(--pro-sh2) !important; }
html body .kp:is(#gs,*) { border-radius: 14px !important; box-shadow: var(--pro-sh3) !important; }
html body .kp-it:is(#gs,*) { border-radius: 8px !important; }
html body .kp-g:is(#gs,*) { letter-spacing: 0 !important; text-transform: none !important; font-size: 12px !important; }

/* ---------- Paramètres > Apparence : Sombre, Clair, Comme le système ---------- */
html body .appearance.three:is(#gs,*) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 720px; }
html body .theme-card[data-theme-prev="dark"] .pal-prev:is(#gs,*) { --pv-bg: #111110; --pv-side: #111110; --pv-card: #191918; --pv-line: #2A2926; --pv-accent: #EDECE8; }
html body .theme-card[data-theme-prev="light"] .pal-prev:is(#gs,*) { --pv-bg: #F7F6F3; --pv-side: #F7F6F3; --pv-card: #FFFFFF; --pv-line: #E8E6E1; --pv-accent: #141413; }
html body .theme-card[data-theme-prev="system"] .pal-prev:is(#gs,*) { --pv-bg: #F7F6F3; --pv-side: #111110; --pv-card: #FFFFFF; --pv-line: #D9D6CF; --pv-accent: #141413; background: linear-gradient(110deg, #111110 0 50%, #F7F6F3 50% 100%) !important; }
html body :is(#gs, .app) :is(.pal, .theme-card):is(#gs,*) { border-radius: 12px !important; }
html body :is(#gs, .app) .theme-card[aria-pressed="true"]:is(#gs,*) { border-color: var(--fg) !important; box-shadow: 0 0 0 1px var(--fg) !important; }
@media (max-width: 760px) { html body .appearance.three:is(#gs,*) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- connexion / inscription : panneau à la signature « Croissance » (dégradé + grain) ---------- */
html body :is(.lock, .web-gate.wg2).lock:is(#gs,*) { background: var(--bg) !important; background-image: none !important; }
@media (min-width: 900px) {
  html body .lock:is(#gs,*) { padding: 10px !important; gap: 10px !important; }
  html body .lock-pitch:is(#gs,*) { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px !important; background: var(--pro-sig) !important; color: #fff !important; }
  html body .lock-pitch:is(#gs,*)::after { content: ""; position: absolute; inset: 0; background: var(--pro-grain); opacity: .32; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
  html body .lock-pitch :is(h2, .lp-plan h2, .lp-price strong, .brand .wm):is(#gs,*) { color: #fff !important; }
  html body .lock-pitch :is(.lp-lead, .lp-list li, .lp-foot, .lp-k, .lp-plan p, .lp-price span, .lp-steps li, .lp-change):is(#gs,*) { color: rgba(255, 255, 255, .82) !important; }
  html body .lock-pitch :is(.lp-list li svg, .lp-foot svg):is(#gs,*) { color: #E7F3C4 !important; stroke: #E7F3C4 !important; }
  html body .lock-pitch .brand .logo:is(#gs,*) { filter: brightness(0) invert(1); }
  html body .lock-pitch .lp-steps li span:is(#gs,*) { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border-color: rgba(255, 255, 255, .3) !important; }
}
html body .lock-pitch h2:is(#gs,*) { font: 600 clamp(30px, 3.4vw, 42px)/1.08 var(--font-display) !important; letter-spacing: -.03em !important; }
html body .lock-card:is(#gs,*) { border-radius: 16px !important; box-shadow: var(--pro-sh2) !important; }
html body .lock-card h3:is(#gs,*) { font: 600 24px/1.2 var(--font-display) !important; }
html body .lock-card :is(input[type=email], input[type=password], input[type=text]):is(#gs,*) { height: 40px !important; border-radius: 10px !important; }
html body .lock-card .btn-main:is(#gs,*), html body .web-gate .wg2-btn.primary:is(#gs,*), html body .web-gate .wg2-btn.ghost:is(#gs,*) { border-radius: 10px !important; }
html body .lock-card .auth-seg:is(#gs,*) { background: var(--surface-2) !important; border-radius: 10px !important; }
html body .lock-card .auth-seg > button:is(#gs,*) { border-radius: 8px !important; }
html body .lock-card .auth-seg > button[aria-checked="true"]:is(#gs,*) { background: var(--pro-seg-on) !important; box-shadow: 0 1px 2px rgba(20, 20, 19, .08), 0 0 0 1px var(--line) !important; }
html body :is(.lock, .web-gate.wg2).web-gate.wg2:is(#gs,*) { background-image: none !important; }
html body .web-gate :is(.wg-help, .wg-steps li, .wg-acc):is(#gs,*) { border-radius: 12px !important; }

/* ---------- téléphone : papier, cartes blanches, barre du bas en surface ---------- */
@media (max-width: 760px) {
  html body :is(.bottomnav, .mob-nav, .m-tabbar):is(#gs,*) { background: color-mix(in srgb, var(--surface) 94%, transparent) !important; }
  html body :is(#gs, .app) :is(.viewbar, .vb) h1:is(#gs,*) { font-size: 24px !important; }
}

/* ---------- page « Ouvre SubScale » (#web-gate.wg2, toujours sombre) : la palette sombre chaude ---------- */
html body #web-gate.wg2:is(#gs,*), :root[data-theme="light"] body #web-gate.wg2:is(#gs,*) {
  --bg: #111110 !important; --surface: #191918 !important; --surface-2: #222220 !important; --line: #2A2926 !important; --line-2: #3A3935 !important;
  --fg: #EDECE8 !important; --fg-2: #ADAAA2 !important; --muted: #8C8981 !important;
  --accent: #EDECE8 !important; --accent-btn: #EDECE8 !important; --on-accent: #141413 !important; --accent-ink: #141413 !important;
  background: #111110 !important;
}
/* Chat Center : la bande prend toute la largeur quel que soit le nombre de chiffres (plus de case vide à droite) */
@media (min-width: 761px) { html body :is(#gs, .app) #cc-kpis.dbx-kpis:is(#gs,*) { grid-template-columns: none !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; } }

/* =====================================================================
   PARTIE 2 (26/11/2026) — toutes les autres pages, mêmes composants et mêmes mesures que la maquette.
   Toujours purement visuel : aucun id, aucune classe, aucune fonction ne change.
   ===================================================================== */

/* ---------- intitulés en phrase : plus de CAPITALES espacées (en-têtes de tableaux en grille, étiquettes, rubriques) ---------- */
html body :is(#gs, .app) :is(.set-tabs-sep, .rl2-group h4, .ct-row.head > *, .vai-tr.th > *, .au-thead > *, .ls-th > *, .cl-kpi small, .cal-wd, .au-flow em, .sm-k small, .tag-new, .mi-stats small, .vai-tile small, tr.grp td, .bl-ex h4, .rl2-h, .sm-h, .ls-h, .lb2-g small, .fo-rt small, .cal-n em, .mi-h, .as-rsec small, .at-t th, .cv-head, .cv-ul small):is(#gs,*) { text-transform: none !important; letter-spacing: 0 !important; }
html body :is(#gs, .app) :is(.ct-row.head > *, .vai-tr.th > *, .au-thead > *, .ls-th > *, .at-t th, .cal-wd):is(#gs,*) { font: 500 12px/1.3 Inter, sans-serif !important; color: var(--muted-2) !important; }
html body :is(#gs, .app) :is(.set-tabs-sep, .sm-h, .ls-h, .mi-h, .rl2-h, .as-rsec small, .bl-ex h4, .rl2-group h4):is(#gs,*) { font: 500 12px/1.3 Inter, sans-serif !important; color: var(--muted-2) !important; }
html body :is(#gs, .app) :is(.cl-kpi small, .vai-tile small, .mi-stats small, .sm-k small, .lb2-g small, .fo-rt small):is(#gs,*) { font: 500 12.5px/1.3 Inter, sans-serif !important; color: var(--muted) !important; }
html body :is(#gs, .app) .au-flow em:is(#gs,*) { font: 600 12px/1.4 Inter, sans-serif !important; color: var(--muted) !important; font-style: normal !important; }
html body :is(#gs, .app) :is(.tag-new, .cal-n em):is(#gs,*) { font-size: 11.5px !important; font-weight: 500 !important; }
/* la feuille des catégories des Paramètres au téléphone est posée hors de .app (public/mobile.js) */
html body .set-tabs .set-tabs-sep:is(#gs,*) { text-transform: none !important; letter-spacing: 0 !important; font: 500 12px/1.3 Inter, sans-serif !important; color: var(--muted-2) !important; }
/* tableaux devenus cartes au téléphone (public/mobile.js) : l'intitulé de chaque valeur, en phrase */
html body :is(#gs, .app) .view .m-cards [data-l]:is(#gs,*)::before, html body :is(#gs, .app) .tr-cell[data-l]:is(#gs,*)::before, html body :is(#gs, .app) .tr-srow > span[data-l]:is(#gs,*)::before { font: 500 12px/1.3 Inter, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted-2) !important; }

/* ---------- chiffres : Hanken Grotesk tabulaire partout (plus de police à chasse fixe) ---------- */
html body :is(#gs, .app) :is(.dbx-k b, .kpi b, .db-kpi b, .ls-mk b, .lb2-g b, .crx-rev b, .mi-stats b, .sm-k b, .fp-kpis b, .tk-kpis b, .tk-num, .cl-kpi b, .vai-tile b, .rq-kpi b, .cv-kpi b, .bl-sales, .lb2-pod strong, .cl-hero b):is(#gs,*) { font-family: var(--font-display) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em !important; }
html body :is(#gs, .app) :is(.view td, .ls-tr > span, .ct-row > span):is(#gs,*) { font-variant-numeric: tabular-nums; }

/* ---------- onglets de page (vtabs, Cerveau, Alertes) : texte gris, l'actif à l'encre souligné de 2 px ---------- */
html body :is(#gs, .app) .vtabs:is(#gs,*) { gap: 22px !important; border-bottom: 1px solid var(--line) !important; }
html body :is(#gs, .app) :is(#view-cerveau, #view-alertes) .al-tabs:is(#gs,*) { gap: 22px !important; padding: 0 !important; border-bottom: 1px solid var(--line) !important; margin-bottom: 16px !important; min-height: 0 !important; }
html body :is(#gs, .app) :is(.vtabs, .al-tabs) > button:is(#gs,*) { padding: 11px 0 !important; font: 500 13.5px/1.2 Inter, sans-serif !important; color: var(--muted) !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body :is(#gs, .app) :is(.vtabs, .al-tabs) > button:hover:is(#gs,*) { color: var(--fg) !important; background: transparent !important; }
html body :is(#gs, .app) :is(.vtabs, .al-tabs) > button[aria-selected="true"]:is(#gs,*) { color: var(--fg) !important; font-weight: 600 !important; box-shadow: inset 0 -2px 0 var(--fg) !important; }
html body :is(#gs, .app) .vtabs > button:is(#gs,*)::after { display: none !important; }
html body :is(#gs, .app) :is(.vtabs, .al-tabs) > button em:is(#gs,*) { font-size: 12px !important; color: var(--muted-2) !important; }

/* ---------- en-têtes particuliers au niveau des autres pages : SubScale IA, Coach ---------- */
html body :is(#gs, .app) :is(.vai-ttl h1, #view-coach .co-head h1):is(#gs,*) { font: 600 27px/1.15 var(--font-display) !important; letter-spacing: -.02em !important; color: var(--fg) !important; }
html body :is(#gs, .app) #view-coach .co-head p:is(#gs,*) { font-size: 13.5px !important; }
@media (max-width: 760px) { html body :is(#gs, .app) :is(.vai-ttl h1, #view-coach .co-head h1):is(#gs,*) { font-size: 24px !important; } }

/* ---------- interrupteurs : piste à l'encre quand activé, bouton en surface ; 22 px de haut même dans une cible de 44 ---------- */
html body :is(#gs, .app) :is(.au-sw, .at-sw) i:is(#gs,*) { top: 50% !important; bottom: auto !important; height: 22px !important; margin-top: -11px; background: var(--surface-3) !important; border: 1px solid var(--line-2) !important; border-radius: 999px !important; }
html body :is(#gs, .app) .at-sw i:is(#gs,*) { height: 18px !important; margin-top: -9px; }
html body :is(#gs, .app) :is(.au-sw, .at-sw) i:is(#gs,*)::after { background: var(--muted) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
html body :is(#gs, .app) :is(.au-sw, .at-sw) input:checked + i:is(#gs,*) { background: var(--fg) !important; border-color: var(--fg) !important; }
html body :is(#gs, .app) :is(.au-sw, .at-sw) input:checked + i:is(#gs,*)::after { background: var(--surface) !important; }

/* ---------- Paramètres (maquette « Paramètres ») : catégories à gauche sur le papier, réglages en sections à filets ---------- */
@media (min-width: 761px) {
  html body :is(#gs, .app) .set-stack:is(#gs,*) { grid-template-columns: 268px minmax(0, 1fr) !important; gap: 40px !important; max-width: 1180px; }
  html body :is(#gs, .app) .set-tabs:is(#gs,*) { padding: 0 !important; gap: 2px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; backdrop-filter: none !important; }
  html body :is(#gs, .app) .set-tabs > button:is(#gs,*) { align-items: flex-start !important; gap: 12px !important; padding: 10px 12px !important; border-radius: 10px !important; border: 0 !important; color: var(--fg) !important; background: transparent !important; box-shadow: none !important; }
  html body :is(#gs, .app) .set-tabs > button:hover:is(#gs,*) { background: color-mix(in srgb, var(--fg) 4%, transparent) !important; }
  html body :is(#gs, .app) .set-tabs > button[aria-selected="true"]:is(#gs,*) { background: var(--surface-2) !important; }
  html body :is(#gs, .app) .set-tabs > button .i:is(#gs,*) { width: 17px !important; height: 17px !important; margin-top: 1px; color: var(--muted-2) !important; stroke: var(--muted-2) !important; }
  html body :is(#gs, .app) .set-tabs > button[aria-selected="true"] .i:is(#gs,*) { color: var(--fg) !important; stroke: var(--fg) !important; }
  html body :is(#gs, .app) .set-tabs > button > span:is(#gs,*) { font: 500 14px/1.3 Inter, sans-serif !important; color: var(--fg) !important; gap: 2px; }
  html body :is(#gs, .app) .set-tabs > button small:is(#gs,*) { font: 400 12.5px/1.35 Inter, sans-serif !important; color: var(--muted) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  html body :is(#gs, .app) .set-tabs .set-tabs-sep:is(#gs,*) { margin: 14px 12px 4px !important; }
  /* le contenu : en-tête de catégorie puis sections séparées par un filet (plus de cartes dans la carte) */
  html body :is(#gs, .app) .set-body:is(#gs,*) { gap: 0 !important; }
  html body :is(#gs, .app) .set-head:is(#gs,*) { margin-bottom: 8px !important; }
  html body :is(#gs, .app) .set-head h2:is(#gs,*) { font: 600 22px/1.2 var(--font-display) !important; letter-spacing: -.02em !important; color: var(--fg) !important; }
  html body :is(#gs, .app) .set-head p:is(#gs,*) { font-size: 13.5px !important; color: var(--muted) !important; margin-top: 4px !important; }
  html body :is(#gs, .app) .set-body > .card[data-set]:is(#gs,*), html body :is(#gs, .app) .set-body > [data-set] > .card:is(#gs,*) { background: transparent !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px 0 26px !important; margin: 0 !important; }
  html body :is(#gs, .app) .set-body > .card[data-set] > .card-head:is(#gs,*), html body :is(#gs, .app) .set-body > [data-set] > .card > .card-head:is(#gs,*) { padding: 0 !important; margin-bottom: 12px !important; border: 0 !important; background: transparent !important; }
  html body :is(#gs, .app) .set-body > .card[data-set] > .card-head :is(h2, h3):is(#gs,*), html body :is(#gs, .app) .set-body > .card[data-set] > :is(h2, h3):first-child:is(#gs,*), html body :is(#gs, .app) .set-body > [data-set] > .card > .card-head :is(h2, h3):is(#gs,*), html body :is(#gs, .app) .set-body > [data-set] > .card > :is(h2, h3):first-child:is(#gs,*) { font: 600 18px/1.25 var(--font-display) !important; letter-spacing: -.015em !important; }
  html body :is(#gs, .app) .set-body .card-head h2 > svg.hi:is(#gs,*) { display: none !important; }
}

/* ---------- Classement (maquette « Classement et paie ») : grand objectif, barres à l'encre, rangs ---------- */
html body :is(#gs, .app) .lb2-goal:is(#gs,*) { padding: 20px 24px !important; border-radius: 12px !important; background: var(--surface) !important; }
html body :is(#gs, .app) .lb2-g b:is(#gs,*) { font-size: 34px !important; font-weight: 600 !important; letter-spacing: -.03em !important; line-height: 1.1 !important; }
html body :is(#gs, .app) :is(.lb2-track i, .lb2-mini i):is(#gs,*) { background: var(--fg) !important; }
html body :is(#gs, .app) .lb2-track:is(#gs,*) { height: 8px !important; background: var(--surface-3) !important; }
html body :is(#gs, .app) :is(.lb2-pod, .lb2-pod.p1):is(#gs,*) { background: var(--surface) !important; border-color: var(--line) !important; border-radius: 12px !important; }
html body :is(#gs, .app) .lb2-pod.me:is(#gs,*) { box-shadow: 0 0 0 1px var(--fg) inset !important; }
html body :is(#gs, .app) .ls-tr.lb2 .ls-rk:is(#gs,*) { font: 500 14px/1 var(--font-display) !important; font-style: normal !important; color: var(--muted) !important; font-variant-numeric: tabular-nums; min-width: 22px; }
html body :is(#gs, .app) .ls-tr.lb2.me:is(#gs,*) { background: var(--surface-2) !important; }

/* ---------- menu réduit (64 px) : seulement les icônes, centrées ---------- */
@media (min-width: 761px) {
  html body.side-mini :is(#gs, .app) .side:is(#gs,*) { padding: 12px 8px 8px !important; }
  html body.side-mini :is(#gs, .app) .side .nav :is(button, a):is(#gs,*) { font-size: 0 !important; justify-content: center !important; padding: 0 !important; gap: 0 !important; margin-left: 0 !important; width: 100% !important; border-left: 0 !important; }
  html body.side-mini :is(#gs, .app) .side .nav :is(button, a) > :not(svg):is(#gs,*) { display: none !important; }
  html body.side-mini :is(#gs, .app) .side .nav :is(button, a) > svg:is(#gs,*) { margin: 0 !important; width: 18px !important; height: 18px !important; }
  html body.side-mini :is(#gs, .app) .side .nav .nav-label.nav-grp:is(#gs,*) { font-size: 0 !important; height: 1px; margin: 10px 8px !important; padding: 0 !important; background: var(--line) !important; }
  html body.side-mini :is(#gs, .app) .side .nav .nav-label.nav-grp:is(#gs,*)::before { display: none !important; }
  html body.side-mini :is(#gs, .app) .side .kbar:is(#gs,*) { justify-content: center !important; padding: 0 !important; }
  html body.side-mini :is(#gs, .app) .side .kbar > :not(svg):is(#gs,*) { display: none !important; }
  html body.side-mini :is(#gs, .app) .ctx-btn:is(#gs,*) { padding: 5px !important; justify-content: center !important; }
}

/* ---------- recherches et barres d'outils : le champ prend la place disponible ---------- */
/* champs « nus » (dans une boîte qui porte déjà le bord : recherche des Membres, montants avec unité) */
html body :is(#gs, .app) input.ui-bare:is(#gs,*), html body :is(#gs, .app) input.ui-bare:focus:is(#gs,*) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html body :is(#gs, .app) .tm2-search:is(#gs,*) { background: var(--gs-input) !important; border-color: var(--line-2) !important; }
html body :is(#gs, .app) .tm2-search:focus-within:is(#gs,*) { border-color: var(--fg) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
html body :is(#gs, .app) .tm2-search input.ui-bare:is(#gs,*) { height: 100% !important; }
html body :is(#gs, .app) .ux-in:is(#gs,*) { background: var(--gs-input) !important; border-color: var(--line-2) !important; border-radius: 9px !important; }
html body :is(#gs, .app) .ux-in:focus-within:is(#gs,*) { border-color: var(--fg) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
html body :is(#gs, .app) .v-search > input:is(#gs,*) { width: 100% !important; flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
  html body :is(#gs, .app) .sm-bar:is(#gs,*) { flex-wrap: wrap !important; }
  html body :is(#gs, .app) .sm-bar > #lb-q:is(#gs,*) { flex: 1 1 100% !important; width: 100% !important; }
  html body :is(#gs, .app) .sm-bar > #lb-fan:is(#gs,*) { flex: 1 1 140px !important; }
  html body :is(#gs, .app) .set-inline:is(#gs,*) { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; width: 100%; }
  html body :is(#gs, .app) .set-inline > input:is(#gs,*) { flex: 1 1 100% !important; width: 100% !important; }
  /* Journal : le titre sur sa ligne, puis la recherche et les filtres */
  html body :is(#gs, .app) .ct-rev-bar:is(#gs,*) { flex-wrap: wrap !important; }
  html body :is(#gs, .app) .ct-rev-bar > .ct-h:is(#gs,*) { flex: 1 1 100% !important; }
  html body :is(#gs, .app) .ct-rev-bar > input[type=search]:is(#gs,*) { flex: 1 1 100% !important; width: 100% !important; }
  /* onglets de page au bord de l'écran : la marge du téléphone */
  html body :is(#gs, .app) :is(#view-cerveau, #view-alertes) .al-tabs:is(#gs,*) { padding: 0 16px !important; gap: 20px !important; }
}

/* ---------- Conso Admin au téléphone : chaque fournisseur en carte, la clé et « Enregistrer » sur toute la largeur ---------- */
@media (max-width: 760px) {
  html body :is(#gs, .app) .at .at-t:is(#gs,*) { white-space: normal !important; overflow: visible !important; }
  /* tableaux devenus cartes : une cellule grandit avec son contenu (une hauteur fixe de 40 px laissait le bouton passer sous la ligne suivante) */
  html body :is(#gs, .app) .view .m-cards > tbody > tr > td:is(#gs,*), html body :is(#gs, .app) .view .m-cards > tr > td:is(#gs,*) { height: auto !important; }
  html body :is(#gs, .app) .at .at-t td:first-child:is(#gs,*) { width: auto !important; }
  html body :is(#gs, .app) .at .at-t.m-cards td:has(> form.at-key):is(#gs,*) { grid-column: 1 / -1 !important; }
  html body :is(#gs, .app) .at .at-key:is(#gs,*) { display: flex !important; flex-wrap: wrap; gap: 8px; width: 100%; }
  html body :is(#gs, .app) .at .at-key input:is(#gs,*) { flex: 1 1 160px !important; width: auto !important; min-width: 0; }
  html body :is(#gs, .app) .at .at-key .at-b:is(#gs,*) { flex: none; height: 44px; }
  html body :is(#gs, .app) .at code.at-eff:is(#gs,*) { max-width: 100% !important; }
}
