/* =====================================================================
   Velora — design system (29/10/2026)
   Une seule couche, chargée en dernier (après app.css, themes.css, offer-ui.css) : couleurs, typographie, rayons,
   et le rendu de tous les composants communs (cartes, boutons, champs, onglets, tableaux, chiffres, badges, fenêtres,
   états vides, barre latérale). Sombre par défaut, très sobre : fonds presque noirs, cartes à peine plus claires,
   bordures fines, un seul accent (celui de la marque, ou la palette choisie dans Apparence).
   Principes d'interface inspirés des outils d'agence utilisés toute la journée ; identité Velora (rose → violet).
   ===================================================================== */
/* Couleurs (30/10/2026), le langage des logiciels d'agence de référence : fond presque noir, panneaux à peine plus clairs,
   bordures neutres fines (#262626), texte clair, gris pour le secondaire, un seul accent violet magenta. */
:root:not([data-theme="light"]), :root.studio-ui.studio-ui:not([data-theme="light"]) {
  --bg: #0a0a0a; --bg-2: #0d0d0d; --surface: #0f0f0f; --surface-2: #141414; --surface-3: #1a1a1a;
  --line: #262626; --line-2: #333336;
  --fg: #ededed; --fg-2: #c9c9ce; --muted: #8b8b93; --muted-2: #5f5f66;
  --ok: #22c55e; --warn: #f59e0b; --danger: #ef4444; --info: #3b82f6; --gold: #f2c27b;
  --bg-glow: transparent; --shadow: none; --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] {
  --bg: #fafafa; --bg-2: #f4f4f5; --surface: #ffffff; --surface-2: #f4f4f5; --surface-3: #ececee;
  --line: #e4e4e7; --line-2: #d4d4d8; --fg: #0a0a0a; --fg-2: #3f3f46; --muted: #71717a; --muted-2: #a1a1aa;
  --ok: #16a34a; --warn: #d97706; --danger: #dc2626; --info: #2563eb;
  --bg-glow: transparent; --shadow: none; --shadow-pop: 0 24px 60px -18px rgba(16, 16, 24, .25);
  color-scheme: light;
}
/* l'accent : violet magenta (boutons pleins : --accent-btn) ; une palette choisie dans Apparence garde le sien */
:root:not([data-accent]):not([data-theme="light"]), :root[data-accent="rose"]:not([data-theme="light"]), :root.studio-ui.studio-ui:not([data-theme="light"]) {
  --accent: #80807f; --accent-btn: #585857; --accent-2: #676766; --accent-soft: rgba(88, 88, 87, .16); --accent-ink: #fff; --on-accent: #fff;
  --grad: linear-gradient(var(--accent-btn), var(--accent-btn)); /* (uni : plus de dégradé de marque) */
}
:root:not([data-accent])[data-theme="light"], :root[data-accent="rose"][data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] {
  --accent: #585857; --accent-btn: #585857; --accent-2: #676766; --accent-soft: rgba(88, 88, 87, .08); --accent-ink: #fff; --on-accent: #fff;
  --grad: linear-gradient(var(--accent-btn), var(--accent-btn)); /* (uni : plus de dégradé de marque) */
}
/* violets de sélection (élément actif, pastilles, bulles de l'équipe) : sombre / clair */
:root:not([data-theme="light"]), :root.studio-ui.studio-ui:not([data-theme="light"]) {
  --sel-bg: #151514; --chip-bg: #171716; --chip-fg: #c3c3c2; --chip-fg-2: #dddddc; --tile-bg: #0e0e0d; --tile-fg: #9f9f9e; --bubble-me: #272726; --bubble-me-fg: #ececeb;
}
:root[data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] {
  --sel-bg: #ececeb; --chip-bg: #ececeb; --chip-fg: #595958; --chip-fg-2: #4b4b4a; --tile-bg: #faf5ff; --tile-fg: #585857; --bubble-me: #585857; --bubble-me-fg: #ffffff;
}
:root {
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --r-sm: 8px; --r: 10px; --r-lg: 12px; --radius: 10px;
  --side: 224px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
body, body.epure, .studio-ui body { background: var(--bg) !important; font-family: var(--font-body); font-size: 14px; letter-spacing: -.003em; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.018em; }
.muted { color: var(--muted); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }

/* ---------- barre latérale (navigateur) : compacte, icône + libellé, l'élément actif discret mais net ---------- */
.side { background: var(--bg-2) !important; border-right: 1px solid var(--line) !important; padding: 14px 10px 10px !important; box-shadow: none !important; backdrop-filter: none !important; }
.side .brand { padding: 4px 10px 14px; font-size: 16px; font-weight: 650; }
.nav { gap: 1px !important; }
.nav button { height: 34px; min-height: 34px; padding: 0 10px !important; gap: 10px !important; border-radius: var(--r-sm) !important; font-size: 13.5px !important; font-weight: 500 !important; color: var(--fg-2) !important; background: transparent !important; box-shadow: none !important; transition: background .12s, color .12s; }
.nav button svg { width: 17px !important; height: 17px !important; stroke: var(--muted) !important; stroke-width: 1.7 !important; flex: none; }
.nav button:hover { background: var(--surface-2) !important; color: var(--fg) !important; }
.nav button:hover svg { stroke: var(--fg-2) !important; }
.nav button[aria-current="page"] { background: var(--surface-3) !important; color: var(--fg) !important; font-weight: 600 !important; position: relative; }
.nav button[aria-current="page"] svg { stroke: var(--accent) !important; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .nav-label { margin: 14px 0 4px !important; padding: 0 10px !important; height: 22px; font-size: 10.5px !important; font-weight: 650 !important; letter-spacing: .09em !important; text-transform: uppercase; color: var(--muted-2) !important; }
.nav .nav-label[data-group]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; background: var(--muted-2); flex: none; }
.nav .nav-label[data-group="conversations"]::before { background: var(--accent); } .nav .nav-label[data-group="fans"]::before { background: var(--ok); }
.nav .nav-label[data-group="equipe"]::before { background: var(--info); } .nav .nav-label[data-group="croissance"]::before { background: var(--gold); }
.nav .nav-label[data-group] { justify-content: flex-start !important; } .nav .nav-label[data-group]::after { margin-left: auto; }
.nav .count, .nav .nav-new { font-size: 10.5px !important; font-weight: 650 !important; padding: 1px 7px !important; border-radius: 99px !important; }
.side-foot { border-top: 1px solid var(--line) !important; padding-top: 10px !important; }

/* ---------- en-tête de page ---------- */
.viewbar { padding: 18px 28px !important; border-bottom: 1px solid var(--line) !important; background: var(--bg) !important; backdrop-filter: none !important; animation: none !important; }
.viewbar h1 { font-size: 20px !important; font-weight: 650 !important; letter-spacing: -.022em !important; }
.viewbar p { font-size: 13px !important; color: var(--muted) !important; margin-top: 3px !important; }

/* ---------- cartes ---------- */
.card { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: var(--shadow) !important; backdrop-filter: none !important; }
.card-head h2, .card h2.ct-h, .ct-h { font-size: 14.5px !important; font-weight: 650 !important; letter-spacing: -.01em !important; }
.card-head h2 .i, .card-head h2 svg.hi { width: 16px; height: 16px; stroke: var(--muted) !important; }

/* ---------- boutons ---------- */
.btn-main { height: 36px; padding: 0 14px !important; border-radius: var(--r-sm) !important; font-size: 13.5px !important; font-weight: 600 !important; background: var(--accent) !important; color: var(--on-accent, #fff) !important; box-shadow: none !important; border: 0 !important; transition: filter .12s, transform .12s; }
.btn-main:hover { filter: brightness(1.08); transform: none !important; }
.btn-main.wide { height: 40px; }
.btn-ghost { height: 34px; padding: 0 12px !important; border-radius: var(--r-sm) !important; font-size: 13px !important; font-weight: 600 !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; color: var(--fg) !important; box-shadow: none !important; }
.btn-ghost:hover { background: var(--surface-3) !important; border-color: var(--line-2) !important; }
.btn-main.sm, .btn-ghost.sm { height: 30px; padding: 0 10px !important; font-size: 12.5px !important; }
.linkish { color: var(--fg-2) !important; text-decoration-color: var(--line-2) !important; }
.linkish:hover { color: var(--fg) !important; }

/* ---------- champs ---------- */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="url"], input:not([type]), select, textarea {
  background: var(--surface-2) !important; border: 1px solid var(--line) !important; border-radius: var(--r-sm) !important; color: var(--fg) !important; box-shadow: none !important; font-size: 13.5px;
}
input:focus, select:focus, textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; outline: none !important; }
input::placeholder, textarea::placeholder { color: var(--muted-2) !important; }
label.field, .field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }

/* ---------- onglets segmentés (partout) ---------- */
.ct-tabs, .lb-nav { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; padding: 4px !important; box-shadow: none !important; backdrop-filter: none !important; }
.ct-tabs button, .lb-nav button { height: 30px; border-radius: var(--r-sm) !important; font-size: 13px !important; font-weight: 600 !important; color: var(--muted) !important; background: transparent !important; }
.ct-tabs button:hover, .lb-nav button:hover { color: var(--fg) !important; background: var(--surface-2) !important; }
.ct-tabs button[aria-selected="true"], .ct-tabs button.on, .lb-nav button[aria-selected="true"] { color: var(--fg) !important; background: var(--surface-3) !important; box-shadow: 0 0 0 1px var(--line-2) inset !important; }

/* ---------- tableaux ---------- */
.ct-table { border: 1px solid var(--line) !important; border-radius: var(--r) !important; overflow: hidden; background: var(--surface) !important; }
.ct-row { border-bottom: 1px solid var(--line) !important; transition: background .1s; }
.ct-row:last-child { border-bottom: 0 !important; }
.ct-row.head { background: var(--bg-2) !important; font-size: 11px !important; font-weight: 650 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; }
.ct-row:not(.head):hover { background: color-mix(in srgb, var(--fg) 2.5%, transparent) !important; }

/* ---------- chiffres (cartes de stat) ---------- */
.kpi, .db-kpi { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: none !important; padding: 16px 18px !important; }
.kpi small, .db-kpi-l { font-size: 11px !important; font-weight: 650 !important; letter-spacing: .07em !important; text-transform: uppercase; color: var(--muted) !important; }
.kpi strong, .db-kpi b { font-family: var(--font-display) !important; font-size: 26px !important; font-weight: 650 !important; letter-spacing: -.03em !important; color: var(--fg) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.kpi .an-d.up, .an-d.up { color: var(--ok) !important; } .an-d.down { color: var(--danger) !important; }

/* ---------- badges et étiquettes : discrets ---------- */
.pill, .db-tag, .lb-dt .pill { border-radius: 99px !important; font-size: 11.5px !important; font-weight: 600 !important; background: var(--surface-2) !important; border: 1px solid var(--line) !important; color: var(--fg-2) !important; }
.tag { border-radius: 99px !important; font-weight: 600; }

/* ---------- étiquettes colorées (Fans, fiche du fan, Velora Studio) ---------- */
.vtag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin: 0 4px 0 0; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 650; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); white-space: nowrap; }
.fx-tags button[data-tag] { border-radius: 99px !important; }
.fx-tags button[data-tag][aria-pressed="true"] { color: var(--c) !important; background: color-mix(in srgb, var(--c) 14%, transparent) !important; border-color: color-mix(in srgb, var(--c) 40%, transparent) !important; }
#fx-tagbox { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tg-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.tg-row { display: grid; grid-template-columns: minmax(120px, auto) 1fr auto auto auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.tg-row:last-child { border-bottom: 0; }
.tg-sw { display: inline-flex; gap: 4px; } .tg-sw button { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; opacity: .75; }
.tg-sw button[aria-pressed="true"] { border-color: var(--fg); opacity: 1; } .tg-sw button:hover { opacity: 1; }
.tg-del { color: var(--danger) !important; } .tg-del.armed { background: var(--danger) !important; color: #fff !important; }
.tg-add { display: flex; gap: 8px; margin-bottom: 8px; } .tg-add input { flex: 1; height: 32px; padding: 0 10px; }
@media (max-width: 760px) { .tg-row { grid-template-columns: 1fr auto; } .tg-sw { grid-column: 1 / -1; } }

/* ---------- fiche du fan : préférences, profil (analyse IA) ---------- */

/* ---------- Banking ---------- */
.ls-th.bk, .ls-tr.bk { grid-template-columns: minmax(220px, 1.4fr) 130px 120px 120px 120px 110px; }
.ls-tr.bk .ls-fn svg.sp { width: 70px; height: 22px; margin-left: auto; } .ls-tr.bk svg.sp path.l { fill: none; stroke: #34d399; stroke-width: 1.5; } .ls-tr.bk svg.sp path.a { fill: rgba(52, 211, 153, .12); }
.bk-cur { color: #34d399; }

/* ---------- Posts ---------- */
.ps-g { border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); overflow: hidden; margin-bottom: 10px; }
.ps-gh { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-align: left; }
.ps-gh:hover { color: var(--fg); } .ps-gh i { font-style: normal; transition: transform .2s; font-size: 14px; } .ps-g.open .ps-gh i { transform: rotate(90deg); }
.ps-gh em { font-style: normal; font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--fg-2); letter-spacing: 0; }
.ps-gl { border-top: 1px solid var(--line); }
.ps-r { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px 84px 96px 100px; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background .12s; }
.ps-r:last-child { border-bottom: 0; } .ps-r:hover { background: var(--surface-2); }
.ps-r.mine { grid-template-columns: 52px minmax(0, 1fr) 110px auto; }
.ps-th { width: 52px; height: 52px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); color: var(--muted); } .ps-th svg { width: 20px; height: 20px; }
.ps-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .ps-main b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ps-main small { font-size: 11.5px; color: var(--muted); }
.ps-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ps-c { font-style: normal; font-size: 10.5px; font-weight: 650; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-2); }
.ps-c.paid { color: #f5b941; border-color: rgba(245, 185, 65, .4); background: rgba(245, 185, 65, .08); } .ps-c.pin { color: var(--fg); background: var(--surface-3); }
.ps-c.poll { color: #9d9d9c; border-color: rgba(157, 157, 156, .4); } .ps-c.goal { color: #34d399; border-color: rgba(52, 211, 153, .4); } .ps-c.err { color: #f87171; border-color: rgba(248, 113, 113, .4); }
.ps-st { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; }
.ps-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ps-st.pub { color: #34d399; background: rgba(52, 211, 153, .1); } .ps-st.sched { color: #60a5fa; background: rgba(96, 165, 250, .1); } .ps-st.draft { color: var(--muted); background: var(--surface-3); }
.ps-st.queued { color: #f5b941; background: rgba(245, 185, 65, .1); } .ps-st.failed { color: #f87171; background: rgba(248, 113, 113, .1); } .ps-st.sent { color: #34d399; background: rgba(52, 211, 153, .1); }
.ps-m { display: flex; flex-direction: column; align-items: flex-end; } .ps-m b { font-size: 14px; font-variant-numeric: tabular-nums; } .ps-m small { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .ps-m.money b { color: #34d399; }
.ps-acts2 { display: flex; gap: 6px; justify-content: flex-end; }
.ps-card { width: min(620px, 94vw); display: flex; flex-direction: column; gap: 10px; }
.ps-card textarea { width: 100%; min-height: 120px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 14px; }
.ps-sec { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; } .ps-sec b { font-size: 12.5px; }
.ps-mr { display: grid; grid-template-columns: 1fr 120px 30px; gap: 6px; margin-bottom: 6px; }
.ps-mr input, .ps-mr select, .ps-row input, #ps-at { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; }
.ps-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ps-price input { width: 90px; }
.ps-note { margin: 0; } .ps-err { margin: 0; color: #f87171; font-size: 13px; } .ps-err[hidden] { display: none; }
.ps-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ps-perf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ps-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; }
.ps-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ps-bars i { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.ps-bars small { height: 12px; font-size: 10px; color: var(--muted); }
.ps-top .ps-tr { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ps-top .ps-tr:last-child { border-bottom: 0; } .ps-top .ps-tr em { font-style: normal; color: var(--muted); font-weight: 700; } .ps-top .ps-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
@media (max-width: 900px) { .ps-r, .ps-r.mine { grid-template-columns: 44px 1fr auto; } .ps-r > .ps-m, .ps-r > .ps-acts2 ~ span { display: none; } .ps-perf2 { grid-template-columns: 1fr; } }

/* ---------- Classement ---------- */
.lb2-goal { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); }
.lb2-g { display: flex; flex-direction: column; gap: 4px; } .lb2-g small { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb2-g b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lb2-bar { display: flex; flex-direction: column; gap: 8px; } .lb2-bh { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); } .lb2-bh b { margin-left: auto; } .lb2-bh em { font-style: normal; font-weight: 700; color: var(--accent); }
.lb2-bh input, .lb2-pg input { width: 110px; height: 30px; margin-left: auto; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2); color: var(--fg); font: inherit; }
.lb2-pg input { width: 90px; margin-left: 0; }
.lb2-track { position: relative; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.lb2-track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), var(--accent)); transition: width .4s; }
.lb2-track s { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg-2); border-radius: 2px; opacity: .5; }
.lb2-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .lb2-podium:empty { display: none; }
.lb2-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); text-align: center; }
.lb2-pod.p1 { border-color: rgba(245, 185, 65, .35); background: linear-gradient(180deg, rgba(245, 185, 65, .07), var(--surface) 60%); }
.lb2-pod.me { box-shadow: 0 0 0 1px var(--accent) inset; }
.lb2-medal { position: absolute; top: 10px; left: 12px; font-size: 18px; }
.lb2-pod i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--surface-3); }
.lb2-pod b { font-size: 14px; } .lb2-pod strong { font-size: 20px; font-variant-numeric: tabular-nums; } .lb2-pod small { font-size: 11.5px; color: var(--muted); }
.ls-th.lb2, .ls-tr.lb2 { grid-template-columns: minmax(200px, 1.4fr) 110px minmax(150px, 1fr) 90px 110px 100px; }
.ls-tr.lb2.me { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.lb2-pg { display: flex; flex-direction: column; gap: 4px; } .lb2-pg small { font-size: 11px; }
.lb2-mini { display: block; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .lb2-mini i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 900px) { .lb2-goal { grid-template-columns: 1fr; } .lb2-podium { grid-template-columns: 1fr; } }

/* ---------- Listes ---------- */
.ls-tabs { align-self: flex-start; } .ls-tabs em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.ls-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.ls-side { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); position: sticky; top: 0; }
.ls-h { display: flex; align-items: center; justify-content: space-between; margin: 8px 4px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ls-h:first-child { margin-top: 0; } .ls-h .linkish { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ls-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; border-radius: var(--r-sm, 8px); background: none; color: var(--fg-2); text-align: left; cursor: pointer; transition: background .12s; }
.ls-item:hover { background: var(--surface-2); } .ls-item.on { background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--fg); }
.ls-item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ls-item b { font-size: 13px; font-weight: 600; } .ls-item small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-item em { font-style: normal; font-size: 11.5px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.ls-none { padding: 4px 9px; }
.ls-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface-2); }
.ls-form label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-2); }
.ls-form input, .ls-form select { height: 30px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--fg); font: inherit; font-size: 12.5px; }
.ls-form input[type=number] { width: 70px; } .ls-form input[type=text] { width: 100%; } .ls-form select { max-width: 140px; }
.ls-fa { display: flex; justify-content: flex-end; gap: 6px; }
.ls-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ls-mh { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); }
.ls-mh > div:first-child { flex: 1; min-width: 200px; } .ls-mh h2 { margin: 0; font-size: 16px; }
.ls-mk { display: flex; gap: 18px; } .ls-mk span { display: flex; flex-direction: column; } .ls-mk b { font-size: 17px; font-variant-numeric: tabular-nums; } .ls-mk small { font-size: 11px; color: var(--muted); }
.ls-ma { display: flex; gap: 6px; }
.ls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; } .ls-bar .grow { flex: 1; }
.ls-bar select, .ls-bar input[type=search] { height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.ls-table { border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); overflow: hidden; }
.ls-th, .ls-tr { display: grid; grid-template-columns: minmax(180px, 1.4fr) 100px 70px 120px minmax(120px, 1fr) 120px; gap: 12px; align-items: center; padding: 0 16px; }
.ls-th.tx, .ls-tr.tx { grid-template-columns: 100px minmax(160px, 1fr) 130px 150px 100px; }
.ls-th { height: 34px; font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ls-tr { width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background .12s; }
div.ls-tr { cursor: default; } .ls-tr:last-child { border-bottom: 0; } .ls-tr:hover { background: var(--surface-2); }
.ls-fn { display: flex; align-items: center; gap: 9px; min-width: 0; } .ls-fn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-fn i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--surface-3); }
.ls-rk { flex: none; width: 22px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ls-num { font-weight: 650; font-variant-numeric: tabular-nums; } .ls-tags { display: flex; gap: 3px; overflow: hidden; }
.ls-kind { font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); }
.ls-kind.messages { color: #34d399; background: rgba(52, 211, 153, .12); } .ls-kind.tips { color: #f5b941; background: rgba(245, 185, 65, .12); } .ls-kind.subs { color: #60a5fa; background: rgba(96, 165, 250, .12); }
.ls-badge { font-style: normal; font-size: 10.5px; color: #60a5fa; }
@media (max-width: 980px) { .ls-split { grid-template-columns: 1fr; } .ls-side { position: static; } .ls-th { display: none; } .ls-tr { grid-template-columns: 1fr auto; } .ls-tr > :nth-child(n+3) { display: none; } }

/* ---------- Chat Center ---------- */
.cc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc-bar input[type=search], .cc-bar select { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.cc-bar input[type=search] { flex: 1; min-width: 200px; } .cc-bar input:focus, .cc-bar select:focus { outline: 0; border-color: var(--accent); }
.cc-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-2); cursor: pointer; }
.cc-table { border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); overflow: hidden; }
.cc-head, .cc-row { display: grid; grid-template-columns: 118px 104px 150px 170px minmax(0, 1fr) 104px 70px 34px; gap: 12px; align-items: center; padding: 0 16px; } /* (20/11/2026) + PPV, Réponse, Aperçu */
.cc-head { height: 36px; font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cc-row { min-height: 48px; padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background .12s; }
.cc-row:last-child { border-bottom: 0; } .cc-row:hover { background: var(--surface-2); } .cc-row.risk { box-shadow: inset 3px 0 0 #f87171; }
.cc-t { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cc-o { display: inline-block; font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--fg-2); }
.cc-o.ia { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); } .cc-o.sched { color: #60a5fa; background: rgba(96, 165, 250, .12); } .cc-o.camp { color: #f5b941; background: rgba(245, 185, 65, .12); }
.cc-w { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-w i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--surface-3); }
.cc-f { display: flex; flex-direction: column; min-width: 0; } .cc-f b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cc-f small { color: var(--muted); font-size: 11.5px; }
.cc-m { display: flex; align-items: center; gap: 6px; min-width: 0; } .cc-m > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-2); }
.cc-m em { flex: none; font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 99px; }
.cc-ppv { color: #34d399; background: rgba(52, 211, 153, .12); } .cc-step { color: #9d9d9c; background: rgba(157, 157, 156, .12); } .cc-rk { color: #f87171; background: rgba(248, 113, 113, .12); }
@media (max-width: 900px) { .cc-head { display: none; } .cc-row { grid-template-columns: 1fr auto; } .cc-row > .cc-w, .cc-row > .cc-t { display: none; } .cc-m { grid-column: 1 / -1; } }
/* (20/11/2026) Chat Center : statut du PPV, temps de réponse, aperçu de la conversation (clic droit, appui long, bouton) */
.cc-pst { display: inline-block; font-style: normal; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.cc-pst.paid { color: #34d399; background: rgba(52, 211, 153, .12); } .cc-pst.unpaid { color: #f87171; background: rgba(248, 113, 113, .12); } .cc-pst.pending { color: #f5b941; background: rgba(245, 185, 65, .12); } .cc-pst.free { color: #60a5fa; background: rgba(96, 165, 250, .12); }
.cc-rt { color: var(--fg-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; } .cc-ps i, .cc-rt i { font-style: normal; }
.cc-pv .v-ibtn { width: 28px; height: 28px; } .cc-row[data-cc-prev] { cursor: context-menu; -webkit-touch-callout: none; }
@media (max-width: 900px) { .cc-row > .cc-ps, .cc-row > .cc-rt, .cc-row > .cc-pv { grid-row: auto; } .cc-row { grid-template-columns: 1fr auto auto auto; } .cc-row > .cc-f { grid-column: 1; } .cc-row > span:nth-child(2) { grid-column: 2 / -1; justify-self: end; } }
.cc-pop { position: fixed; z-index: 80; width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 520px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); outline: none; overflow: hidden; }
.cc-pop.sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 75vh; border-radius: 16px 16px 0 0; }
.cc-pop header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); } .cc-pop header b { font-weight: 650; } .cc-pop header small { color: var(--muted); flex: 1; }
.cc-pop-b { overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; } .cc-pop-b footer { position: sticky; bottom: -10px; padding: 8px 0 2px; background: var(--surface); display: flex; justify-content: flex-end; }
.cc-b { max-width: 85%; padding: 7px 10px; border-radius: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; background: var(--surface-3); align-self: flex-start; }
.cc-b.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); } .cc-b.focus { box-shadow: 0 0 0 2px var(--accent); }
.cc-b small { color: var(--muted); font-size: 10.5px; } .cc-b span { white-space: pre-wrap; overflow-wrap: anywhere; }
/* (20/11/2026) Messages : autres chatteurs du fan */
.mt-ctl { position: relative; } .mt-cobtn { white-space: nowrap; } .mt-cochip { font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 99px; background: var(--surface-3); color: var(--fg-2); }
.mt-coline { margin: 0; padding: 6px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); } .mt-coline b { color: var(--fg-2); font-weight: 600; }
.mt-copop { position: fixed; z-index: 80; width: min(290px, calc(100vw - 24px)); padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 8px; }
.mt-copop p { margin: 0; } .mt-colist { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; } .mt-colist label { display: flex; align-items: center; gap: 8px; font-size: 13px; } .mt-colist small { color: var(--muted); margin-left: auto; font-size: 11px; }
.mt-coact { display: flex; justify-content: flex-end; gap: 6px; }
.mt-copop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: 100%; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); } .mt-copop.sheet .mt-colist label { min-height: 40px; }

/* ---------- Créatrices ---------- */
.crx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.crx-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg, 14px); background: var(--surface); transition: border-color .15s, transform .15s; }
.crx-card:hover { border-color: var(--line-2); }
.crx-card header { display: flex; align-items: center; gap: 11px; } .crx-card header div { flex: 1; min-width: 0; }
.crx-card header b { display: block; font-size: 15px; } .crx-card header small { color: var(--muted); font-size: 12px; }
.crx-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--chip-fg); background: var(--chip-bg); }
.crx-st { flex: none; font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.crx-st.ok { color: #34d399; background: rgba(52, 211, 153, .12); } .crx-st.bad { color: #f87171; background: rgba(248, 113, 113, .12); }
.crx-rev { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; } .crx-rev small { display: block; color: var(--muted); font-size: 11.5px; }
.crx-rev b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-right: 8px; } .crx-rev em { font-style: normal; font-size: 12px; font-weight: 650; }
.crx-rev em.up { color: #34d399; } .crx-rev em.down { color: #f87171; } .crx-rev svg { width: 110px; height: 34px; }
.crx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); overflow: hidden; background: var(--line); }
.crx-stats div { padding: 8px 10px; background: var(--surface-2); } .crx-stats dt { font-size: 10.5px; color: var(--muted); } .crx-stats dd { margin: 0; font-weight: 650; font-size: 14px; }
.crx-team { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--fg-2); }
.crx-avs { display: inline-flex; } .crx-avs i { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; background: var(--surface-3); border: 2px solid var(--surface); }
.crx-avs i:first-child { margin-left: 0; }
.crx-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.crx-empty { grid-column: 1 / -1; padding: 40px; text-align: center; } .crx-empty b { display: block; font-size: 15px; margin-bottom: 6px; }
#crx-q { width: 220px; }
/* ---------- Contenu & médias ---------- */
.lb-mode { align-self: flex-start; }
.lb-media-pane { display: flex; flex-direction: column; gap: 14px; }
.lbm-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lbm-acc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface-2); }
.lbm-acc small { display: block; color: var(--muted); font-size: 12px; }
.lbm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lbm-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface-2); cursor: pointer; color: var(--fg); transition: border-color .15s, background .15s; }
.lbm-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface-3); }
.lbm-th { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.lbm-th img { width: 100%; height: 100%; object-fit: cover; } .lbm-th img:only-child { grid-column: 1 / -1; grid-row: 1 / 3; }
.lbm-th i { grid-column: 1 / -1; grid-row: 1 / 3; display: grid; place-items: center; color: var(--muted); } .lbm-th i svg { width: 28px; height: 28px; }
.lbm-card b { font-size: 13.5px; } .lbm-card small { color: var(--muted); font-size: 12px; }
.lbm-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .lbm-meta em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--surface); color: var(--fg-2); }
.lbm-meta svg { width: 11px; height: 11px; }

/* ---------- fenêtres, tiroirs, notifications ---------- */
.co-modal { background: rgba(5, 5, 8, .62) !important; backdrop-filter: blur(6px); }
.co-card { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-pop) !important; }
.toast { background: var(--surface-3) !important; color: var(--fg) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; box-shadow: var(--shadow-pop) !important; font-size: 13.5px; }

/* ---------- états vides et chargement ---------- */
.empty { padding: 28px 18px !important; border: 1px dashed var(--line-2) !important; border-radius: var(--r) !important; background: transparent !important; color: var(--muted) !important; text-align: center; font-size: 13.5px; }
.sk { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); min-height: 14px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 6%, transparent), transparent); animation: skMove 1.3s infinite; }
@keyframes skMove { to { transform: translateX(100%); } }

/* =====================================================================
   Tableau de bord (29/10/2026) : chiffres clés, évolution des revenus, répartition, performance, activité
   ===================================================================== */
.dbx { display: grid; gap: 14px; }
.dbx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dbx-bar .ct-tabs { display: inline-flex; gap: 2px; }
.dbx-bar small { color: var(--muted); font-size: 12.5px; }
.dbx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.dbx-kpis.sub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dbx-k { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; min-width: 0; border-right: 1px solid var(--line); text-align: left; background: none; border-top: 0; border-bottom: 0; border-left: 0; color: inherit; font: inherit; cursor: pointer; transition: background .12s; }
.dbx-k:last-child { border-right: 0; } .dbx-k:hover { background: color-mix(in srgb, var(--fg) 2.5%, transparent); }
.dbx-k small { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dbx-k b { font-family: var(--font-display); font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dbx-k.big b { font-size: 32px; }
.dbx-k span.s { font-size: 12px; color: var(--muted); max-width: calc(100% - 96px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbx-k:not(:has(svg.sp)) span.s { max-width: none; }
.dbx-d { font-size: 11.5px; font-weight: 650; letter-spacing: 0; text-transform: none; } .dbx-d.up { color: var(--ok); } .dbx-d.down { color: var(--danger); } .dbx-d.flat { color: var(--muted); }
.dbx-k svg.sp { position: absolute; right: 16px; bottom: 14px; width: 84px; height: 26px; opacity: .9; }
.dbx-k svg.sp path.l { fill: none; stroke: var(--accent); stroke-width: 1.6; } .dbx-k svg.sp path.a { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
.dbx-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 14px; }
.dbx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.dbx-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dbx-card > header h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.dbx-card > header small, .dbx-card > header .linkish { font-size: 12px; color: var(--muted); }
.dbx-chart { width: 100%; height: 240px; display: block; }
.dbx-chart .g { stroke: var(--line); stroke-dasharray: 3 4; } .dbx-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.dbx-chart .cur { fill: none; stroke: var(--accent); stroke-width: 2; } .dbx-chart .area { fill: url(#dbxGrad); } .dbx-chart .prev { fill: none; stroke: var(--muted-2); stroke-width: 1.4; stroke-dasharray: 4 4; }
.dbx-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); } .dbx-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); } .dbx-legend i.p { background: var(--muted-2); }
.dbx-dist { display: flex; flex-direction: column; gap: 14px; }
.dbx-dist div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.dbx-dist span { font-size: 13px; color: var(--fg-2); } .dbx-dist b { font-size: 14px; font-variant-numeric: tabular-nums; } .dbx-dist em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.dbx-dist i { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .dbx-dist i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--c, var(--accent)); }
.dbx-perf { display: flex; flex-direction: column; }
.dbx-pr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dbx-pr:first-child { border-top: 0; padding-top: 2px; }
.dbx-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--chip-fg); background: var(--chip-bg); }
.dbx-pr .n { min-width: 0; display: flex; flex-direction: column; } .dbx-pr .n b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dbx-pr .n small { font-size: 11.5px; color: var(--muted); }
.dbx-pr .v { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 650; } .dbx-pr .v small { display: block; font-size: 11px; font-weight: 600; }
.dbx-pr svg.sp { width: 64px; height: 22px; } .dbx-pr svg.sp path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.dbx-share { width: 70px; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .dbx-share::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 99px; }
.dbx-feed { display: flex; flex-direction: column; }
.dbx-fi { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dbx-fi:first-child { border-top: 0; padding-top: 2px; }
.dbx-fi > i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); } .dbx-fi > i.tips { background: var(--warn); } .dbx-fi > i.subs { background: var(--info); } .dbx-fi > i.posts { background: var(--ok); }
.dbx-fi span small { display: block; color: var(--muted); font-size: 11.5px; } .dbx-fi b { color: var(--ok); font-variant-numeric: tabular-nums; }
.dbx-none { padding: 18px 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 1180px) { .dbx-kpis, .dbx-kpis.sub { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dbx-k:nth-child(2n) { border-right: 0; } .dbx-k:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .dbx-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dbx-kpis, .dbx-kpis.sub { grid-template-columns: 1fr; } .dbx-k { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Créatrices : courbe des revenus de la carte, champ de recherche */
.crx-rev svg.sp path.l { fill: none; stroke: var(--accent); stroke-width: 1.6; } .crx-rev svg.sp path.a { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
#crx-q { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
#crx-q:focus { outline: 0; border-color: var(--accent); }
.lb-media-pane[hidden], .lb-series-pane[hidden], #view-library .lb-layout[hidden] { display: none !important; }

/* ---------- menu par objet (30/10/2026) : dense comme un logiciel d'agence, un groupe ouvert à la fois ---------- */
.nav button { height: 30px !important; min-height: 30px !important; font-size: 13px !important; gap: 9px !important; }
.nav button svg { width: 16px !important; height: 16px !important; stroke-width: 1.6 !important; }
.nav button[aria-current="page"] { background: color-mix(in srgb, var(--accent) 11%, transparent) !important; color: var(--fg) !important; }
.nav button[aria-current="page"]::before { top: 7px; bottom: 7px; }
.nav .nav-label { margin: 12px 0 2px !important; height: 26px; cursor: pointer; border-radius: var(--r-sm); transition: color .15s, background .15s; user-select: none; }
.nav .nav-label:hover { color: var(--fg) !important; background: var(--surface-2); }
.nav .nav-label[data-group]::after { content: "" !important; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .55; transition: transform .2s; }
.nav .nav-label.closed::after { transform: rotate(-45deg); }
.nav .nav-label[data-group="messagerie"]::before { background: #9d9d9c; } .nav .nav-label[data-group="createurs"]::before { background: #34d399; }
.nav .nav-label[data-group="equipe"]::before { background: #60a5fa; } .nav .nav-label[data-group="ia"]::before { background: var(--accent); }
.nav .nav-label[data-group="croissance"]::before { background: #f5b941; } .nav .nav-label[data-group="admin"]::before { background: var(--muted-2); }
.nav .nav-folded { display: none !important; }
.nav > button:not(.nav-folded) { animation: navIn .18s ease both; }
@keyframes navIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav > button { animation: none !important; } }
#lb2-set { justify-self: start; }
#ps-modal { opacity: 1; } #ps-modal[hidden] { display: none !important; } #ps-modal .co-card { transform: none; }
#ps-add-media { align-self: flex-start; }

/* =====================================================================================================================
   Simplifier · regrouper · raffiner (30/10/2026) : moins de décoration, une hiérarchie nette, un seul accent.
   ===================================================================================================================== */
/* --- barre latérale : titres de section discrets (pas des boutons), icônes fines d'une seule couleur, actif sobre --- */
.side .nav { gap: 0 !important; }
.side .nav button { height: 30px !important; min-height: 30px !important; padding: 0 10px !important; font-size: 13px !important; font-weight: 500 !important; color: var(--fg-2) !important; background: transparent !important; animation: none !important; }
.side .nav button svg { width: 15px !important; height: 15px !important; stroke: var(--muted) !important; stroke-width: 1.6 !important; opacity: .85; }
.side .nav button:hover { background: color-mix(in srgb, var(--fg) 4%, transparent) !important; color: var(--fg) !important; }
.side .nav button[aria-current="page"] { background: color-mix(in srgb, var(--fg) 6.5%, transparent) !important; color: var(--fg) !important; font-weight: 600 !important; }
.side .nav button[aria-current="page"] svg { stroke: var(--fg) !important; opacity: 1; }
.side .nav button[aria-current="page"]::before { left: -6px !important; top: 9px !important; bottom: 9px !important; width: 2px !important; border-radius: 2px !important; background: var(--accent) !important; }
.side .nav .nav-label { display: flex !important; align-items: center; height: auto !important; margin: 18px 0 4px !important; padding: 0 10px !important; background: none !important; border: 0 !important;
  font-size: 10.5px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--muted-2, #5f5f69) !important; cursor: pointer; box-shadow: none !important; }
.side .nav .nav-label:hover { background: none !important; color: var(--muted) !important; }
.side .nav .nav-label[data-group]::before { display: none !important; content: none !important; }
.side .nav .nav-label[data-group]::after { content: "" !important; margin-left: auto; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .15s; }
.side .nav .nav-label::after { opacity: .45 !important; transition: transform .18s, opacity .15s !important; }
.side .nav .nav-label:hover::after { opacity: .9 !important; }
.side .nav .nav-label.closed::after { transform: rotate(-45deg); }
.side .nav .nav-label.fixed { cursor: default; } .side .nav .nav-label.fixed::after { display: none; }
.side .nav .nav-label.closed { color: var(--muted) !important; }
.side .nav .nav-label:not(.closed) + button:not(.nav-folded), .side .nav .nav-label:not(.closed) ~ button:not(.nav-folded) { animation: navOpen .16s ease both !important; }
@keyframes navOpen { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
.side .nav .nav-label { margin: 6px 0 0 !important; height: 28px !important; border-radius: var(--r-sm, 8px) !important; }
.side .nav .nav-label:hover { background: color-mix(in srgb, var(--fg) 3%, transparent) !important; }
.side .nav .nav-label:not(.closed) { margin-bottom: 2px !important; }
.side .nav .count { font-size: 10.5px !important; padding: 0 6px !important; background: var(--surface-3) !important; color: var(--fg-2) !important; }
.side .nav .nav-admin, .side .nav .nav-new { display: none !important; }
/* bas de la barre : Velora Studio, aide, avis, en petit */
.side-links { display: flex; flex-direction: column; gap: 0; padding: 6px 0 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.side-links button { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-sm, 8px); background: none; color: var(--muted); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.side-links button:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.side-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.side-links .rv-side { all: unset; box-sizing: border-box; display: flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-radius: var(--r-sm, 8px); }
.side-links .rv-side:hover { color: var(--fg); } .side-links .rv-side[hidden] { display: none; }
/* --- boutons : à plat, un seul accent, pas d'ombre ni de dégradé, pas d'étincelles décoratives --- */
html body .btn-main, html body.epure .btn-main, html body .btn-primary { background: var(--accent) !important; background-image: none !important; box-shadow: none !important; height: 34px; font-size: 13px !important; }
html body .btn-main:hover { filter: brightness(1.07); }
.btn-main svg:has(use[href="#i-spark"]), .btn-ghost svg:has(use[href="#i-spark"]), .btn-main svg:has(use[href="#i-check"]) { display: none !important; }
.st-saved { font-size: 12px; color: #34d399; } .st-saved.bad { color: #f87171; }
/* en-têtes de carte : le titre, sa petite mention juste à côté, l'action à droite */
.card-head { justify-content: flex-start !important; gap: 10px !important; }
.card-head > :last-child:not(:first-child) { margin-left: auto; }
.card-head > .muted.small, .card-head > span.muted { font-size: 12px; }
.guide-open { font-size: 12px !important; color: var(--muted) !important; }
details.ig-play { padding: 14px 18px !important; } .ig-play-s { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--fg-2); } details.ig-play[open] .ig-play-s { margin-bottom: 10px; }
/* titres de cartes : sans icône (le titre suffit) */
.card-head h2 > svg.i, .card-head h2 > svg.hi, .card > h2 > svg.i { display: none !important; }
/* états vides : du texte, pas de cadre */
.empty { border: 0 !important; background: transparent !important; padding: 24px 12px !important; }
/* cartes : sans ombre */
.card, .dbx-card, .co-card { box-shadow: none !important; }
.card-head > h2 { flex: none !important; margin-right: 0 !important; }

/* ---------- en-tête de page (30/10/2026) : la tuile d'icône de la rubrique, le titre, la ligne d'explication ---------- */
.viewbar > div:first-child { display: grid !important; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.viewbar > div:first-child > :not(.vb-ico) { grid-column: 2; }
.vb-ico { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.vb-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewbar h1 { margin: 0 !important; font-size: 19px !important; }
.viewbar > div:first-child > p { margin: 2px 0 0 !important; font-size: 12.5px !important; }
/* chiffres clés : chiffres à chasse fixe, alignés */
.dbx-k b, .kpi b, .db-kpi b, .ls-mk b, .lb2-g b, .crx-rev b { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace !important; letter-spacing: -.03em !important; font-weight: 650 !important; }
/* ---------- Mots interdits ---------- */
.mi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.mi-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mi-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mi-top input[type=search] { flex: 1; min-width: 180px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.mi-top input[hidden], .mi-stats[hidden] { display: none !important; }
.mi-stats { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface); }
.mi-stats span { display: flex; flex-direction: column; padding: 6px 14px; border-right: 1px solid var(--line); } .mi-stats span:last-child { border-right: 0; }
.mi-stats small { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); } .mi-stats b { font-family: ui-monospace, Consolas, monospace; font-size: 14px; } .mi-stats b.ok { color: #34d399; }
.ls-th.mwt, .ls-tr.mwt { grid-template-columns: minmax(140px, 1fr) 120px minmax(160px, 1.4fr) 120px 90px; }
.mi-w { font-family: ui-monospace, Consolas, monospace; font-weight: 600; } .mi-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); }
.mi-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.mi-new, .mi-csv { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); }
.mi-new[hidden] { display: none; }
.mi-h { margin: 0; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.mi-new label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.mi-new label.cc-chk { flex-direction: row; }
.mi-new input[type=text], .mi-new textarea { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 8px); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; }
.mi-new input[type=text] { font-family: ui-monospace, Consolas, monospace; }
.mi-mode { display: grid !important; grid-template-columns: 1fr 1fr; } .mi-rule { margin: 0; }
.mi-file { align-self: flex-start; cursor: pointer; }
/* ---------- Calendrier ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cal-main { border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-head b { min-width: 150px; text-align: center; font-size: 14px; text-transform: capitalize; } .cal-head .linkish { margin-left: auto; font-size: 12.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.cal-c { min-height: 104px; display: flex; flex-direction: column; gap: 3px; padding: 7px 7px 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: background .12s; overflow: hidden; }
.cal-c:nth-child(7n + 7) { border-right: 0; } .cal-c:hover { background: var(--surface-2); }
.cal-c.out { color: var(--muted-2, #5f5f69); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.cal-c.sel { box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cal-n { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-n em { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent, #fff); text-transform: uppercase; letter-spacing: .04em; }
.cal-e { display: block; font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-e.post { color: #60a5fa; background: rgba(96, 165, 250, .12); } .cal-e.camp { color: #f5b941; background: rgba(245, 185, 65, .12); } .cal-e.shift { color: #9d9d9c; background: rgba(157, 157, 156, .12); }
.cal-more { font-style: normal; font-size: 10.5px; color: var(--muted); padding-left: 4px; }
.cal-chips { display: flex; gap: 6px; }
.cal-chips button { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cal-chips button[aria-pressed="true"][data-calk="post"] { color: #60a5fa; border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .1); }
.cal-chips button[aria-pressed="true"][data-calk="camp"] { color: #f5b941; border-color: rgba(245, 185, 65, .45); background: rgba(245, 185, 65, .1); }
.cal-chips button[aria-pressed="true"][data-calk="shift"] { color: #9d9d9c; border-color: rgba(157, 157, 156, .45); background: rgba(157, 157, 156, .1); }
.cal-day { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r, 12px); background: var(--surface); position: sticky; top: 0; min-height: 300px; }
.cal-dh { margin: 0 0 6px; font-size: 14px; font-weight: 650; text-transform: capitalize; }
.cal-it { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface-2); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.cal-it:hover { border-color: var(--line-2); } .cal-it span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cal-it b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal-it small { font-size: 11.5px; color: var(--muted); }
.cal-dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; } .cal-it.post .cal-dot { background: #60a5fa; } .cal-it.camp .cal-dot { background: #f5b941; } .cal-it.shift .cal-dot { background: #9d9d9c; }
@media (max-width: 1100px) { .mi-layout, .cal-layout { grid-template-columns: 1fr; } .mi-side, .cal-day { position: static; } .cal-c { min-height: 70px; } .cal-e { display: none; } }

/* =====================================================================================================================
   Velora UI system (30/10/2026) : le même langage partout. Mesuré sur la référence : fond #0a0a0a, panneaux #0f0f0f,
   bordures #262626, accent #585857, actif var(--sel-bg) + trait #676766. Composants : barre latérale, en-tête de page, boutons,
   champs, listes déroulantes, onglets (soulignés et segmentés), cartes, chiffres clés, tableaux, pastilles, états vides,
   fenêtres, notifications. Tout est compact : hauteur 32 px, rayon 8, texte 13 px.
   ===================================================================================================================== */
html body { background: var(--bg) !important; color: var(--fg); font-size: 13.5px; }
.app, .main, main.scroll { background: var(--bg) !important; }

/* ---- barre latérale ---- */
.side { width: var(--side) !important; background: var(--bg-2) !important; border-right: 1px solid var(--line) !important; padding: 14px 12px 12px !important; }
.brand-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px 14px 6px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 !important; margin: 0 !important; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.side .brand .logo { width: 30px !important; height: 30px !important; border-radius: 9px !important; font-size: 15px !important; }
.side-collapse { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.side-collapse:hover { background: var(--surface-2); color: var(--fg); } .side-collapse svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.agency-chip { margin: 0 0 6px !important; height: 34px; border: 1px solid var(--line) !important; border-radius: 8px !important; background: var(--surface) !important; font-size: 13px !important; }
.side .nav button { height: 32px !important; min-height: 32px !important; padding: 0 10px !important; gap: 11px !important; border-radius: 8px !important; font-size: 13.5px !important; font-weight: 500 !important; color: var(--fg-2) !important; }
.side .nav button svg { width: 16px !important; height: 16px !important; stroke: var(--muted) !important; stroke-width: 1.6 !important; opacity: 1 !important; }
.side .nav button:hover { background: var(--surface-2) !important; color: var(--fg) !important; }
.side .nav button[aria-current="page"] { background: var(--sel-bg) !important; color: var(--fg) !important; font-weight: 600 !important; box-shadow: inset 2px 0 0 #676766; }
.side .nav button[aria-current="page"] svg { stroke: var(--tile-fg) !important; }
.side .nav button[aria-current="page"]::before { display: none !important; }
.side .nav .nav-label { margin: 14px 0 4px !important; padding: 0 10px !important; height: 24px !important; font-size: 10px !important; font-weight: 650 !important; letter-spacing: .12em !important; color: var(--muted) !important; }
.side .nav .nav-label[data-group]::before { display: block !important; content: "" !important; width: 5px; height: 5px; border-radius: 50%; margin-right: 8px; flex: none; }
.side .nav .nav-label[data-group="messagerie"]::before { background: #80807f; } .side .nav .nav-label[data-group="createurs"]::before { background: #22c55e; }
.side .nav .nav-label[data-group="equipe"]::before { background: #3b82f6; } .side .nav .nav-label[data-group="ia"]::before { background: #888887; }
.side .nav .nav-label[data-group="croissance"]::before { background: #f59e0b; } .side .nav .nav-label[data-group="admin"]::before { background: #71717a; }
.side .nav .nav-label::after { opacity: .55 !important; }
.side-foot { border-top: 1px solid var(--line); padding-top: 10px !important; }
.side-foot .me { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 6px 8px !important; border: 0 !important; border-radius: 8px !important; background: none !important; }
.side-foot .me:hover { background: var(--surface-2) !important; }
.side-foot .me .avatar { width: 30px !important; height: 30px !important; border-radius: 8px !important; font-size: 12.5px !important; }
.side-foot .me-txt strong { font-size: 13px !important; } .side-foot .me-txt small { font-size: 11px !important; color: var(--muted) !important; }
.side-foot .theme-wrap { display: none !important; } /* (le thème est dans Paramètres › Apparence) */
.side-links { border-bottom: 0 !important; padding: 0 0 6px !important; margin-bottom: 4px !important; }
/* barre réduite : les icônes seulement */
body.side-mini { --side: 64px; }
body.side-mini .side .nav button { justify-content: center; padding: 0 !important; font-size: 0 !important; }
body.side-mini .side .nav button svg { margin: 0 !important; } body.side-mini .side .nav button > :not(svg) { display: none !important; }
body.side-mini .side .nav .nav-label { font-size: 0 !important; padding: 0 !important; justify-content: center; } body.side-mini .side .nav .nav-label::after { display: none !important; }
body.side-mini .side .nav .nav-label::before { margin: 0 !important; } body.side-mini .side .nav .nav-folded { display: flex !important; }
body.side-mini .side .brand > span:not(.logo), body.side-mini .agency-chip, body.side-mini .side-links, body.side-mini .me-txt, body.side-mini .side-foot .me > svg { display: none !important; }
body.side-mini .brand-row { flex-direction: column; gap: 8px; padding-left: 0; padding-right: 0; } body.side-mini .side-collapse { margin: 0; transform: rotate(180deg); }
body.side-mini .side { padding-left: 8px !important; padding-right: 8px !important; }

/* ---- en-tête de page : tuile d'icône, titre, pastille, explication ; actions à droite ---- */
.viewbar { min-height: 0 !important; padding: 20px 28px 16px !important; border-bottom: 0 !important; background: transparent !important; gap: 16px !important; }
.vb-ico { width: 40px !important; height: 40px !important; border-radius: 10px !important; background: var(--tile-bg) !important; border: 1px solid rgba(103, 103, 102, .28) !important; }
.vb-ico svg { stroke: var(--tile-fg) !important; width: 18px !important; height: 18px !important; }
.viewbar h1 { font-size: 17px !important; font-weight: 650 !important; letter-spacing: -.01em !important; }
.viewbar > div:first-child > p { font-size: 12px !important; color: var(--muted) !important; }
main.scroll > .wrap, .wrap.wide { padding-top: 4px !important; }

/* ---- boutons : compacts, bordure fine, hover discret ---- */
html body .btn-main, html body.epure .btn-main, html body .btn-primary { height: 32px !important; padding: 0 12px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 600 !important; background: var(--accent-btn, var(--accent)) !important; background-image: none !important; color: var(--on-accent, #fff) !important; border: 1px solid transparent !important; box-shadow: none !important; }
html body .btn-main:hover { filter: brightness(1.12); }
html body .btn-ghost, html body .btn-sec, html body .btn-outline { height: 32px !important; padding: 0 12px !important; border-radius: 8px !important; font-size: 13px !important; font-weight: 550 !important; background: var(--bg) !important; color: var(--fg) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
html body .btn-ghost:hover { background: var(--surface-2) !important; border-color: var(--line-2) !important; }
html body .btn-main.sm, html body .btn-ghost.sm { height: 28px !important; padding: 0 10px !important; font-size: 12.5px !important; }
.linkish { color: var(--fg-2); } .linkish:hover { color: var(--fg); }

/* ---- champs, recherche, listes déroulantes ---- */
.view input[type=text], .view input[type=search], .view input[type=email], .view input[type=number], .view input[type=date], .view input[type=datetime-local], .view input[type=time], .view select, .view textarea, .co-modal input, .co-modal select, .co-modal textarea {
  background: var(--bg) !important; border: 1px solid var(--line) !important; border-radius: 8px !important; color: var(--fg) !important; font-size: 13px !important; box-shadow: none !important; }
.view input[type=text], .view input[type=search], .view input[type=email], .view input[type=number], .view select { min-height: 32px; }
.view input:focus, .view select:focus, .view textarea:focus { border-color: #676766 !important; outline: 0 !important; box-shadow: 0 0 0 3px rgba(103, 103, 102, .15) !important; }
.view input::placeholder, .view textarea::placeholder { color: var(--muted-2) !important; }

/* ---- onglets : soulignés (sous le titre) et segmentés (choix) ---- */
.ct-tabs { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 9px !important; padding: 3px !important; gap: 2px !important; }
.ct-tabs button { height: 28px !important; padding: 0 12px !important; border-radius: 7px !important; font-size: 12.5px !important; font-weight: 550 !important; color: var(--muted) !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.ct-tabs button:hover { color: var(--fg) !important; }
.ct-tabs button[aria-selected="true"], .ct-tabs button.on { background: var(--line) !important; color: var(--fg) !important; }

/* ---- cartes : à plat, bordure fine, en-tête net ---- */
.card, .dbx-card, .crx-card, .ls-table, .cc-table, .ps-g, .cal-main, .cal-day, .mi-new, .mi-csv, .ls-side, .ls-mh, .lb2-goal { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; }
.card { padding: 16px 18px !important; }
.card-head { margin-bottom: 12px !important; } .card-head h2, .card h2.ct-h, .ct-h { font-size: 13.5px !important; font-weight: 650 !important; }

/* ---- chiffres clés : libellé en petites capitales, chiffre net ---- */
.dbx-kpis { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 10px !important; }
.dbx-k { padding: 16px 18px !important; border-right: 1px solid var(--line) !important; }
.dbx-k small { font-size: 10.5px !important; letter-spacing: .1em !important; color: var(--muted) !important; font-weight: 600 !important; }
.dbx-k b { font-size: 24px !important; color: var(--fg) !important; } .dbx-k.big b { font-size: 26px !important; }
.dbx-k span.s { font-size: 11.5px !important; color: var(--muted) !important; }
.dbx-k svg.sp path.l { stroke: #80807f !important; } .dbx-k svg.sp path.a { fill: rgba(128, 128, 127, .12) !important; }

/* ---- rangées de chiffres (.kpis) : une seule bande, comme le tableau de bord ---- */
.kpis { gap: 0 !important; border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden; background: var(--surface) !important; }
.kpis > * { border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 16px 18px !important; }
.kpis > *:last-child { border-right: 0 !important; }
.kpis b, .kpi b { font-size: 22px !important; }
details.fx-rev-d { padding: 0 !important; } details.fx-rev-d > summary { padding: 14px 18px; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--fg-2); list-style: none; }
details.fx-rev-d > summary::before { content: "›"; display: inline-block; margin-right: 8px; color: var(--muted); transition: transform .15s; } details.fx-rev-d[open] > summary::before { transform: rotate(90deg); }
details.fx-rev-d > div { padding: 0 18px 16px; } .fx-rev-d #fx-rev .fx-rev-head h2 { display: none; }
/* ---- tableaux ---- */
.ls-th, .cc-head, .ct-table thead th, table thead th { background: var(--bg-2) !important; color: var(--muted) !important; font-size: 10.5px !important; font-weight: 600 !important; letter-spacing: .09em !important; text-transform: uppercase; border-bottom: 1px solid var(--line) !important; }
.ls-tr, .cc-row, .ct-row { border-bottom: 1px solid var(--line) !important; }
.ls-tr:hover, .cc-row:hover, .ct-row:hover { background: var(--surface-2) !important; }

/* ---- pastilles, étiquettes ---- */
.pill, .tag:not(.vtag), .count, .ls-kind, .cc-o, .ps-c { border-radius: 6px !important; }
.vb-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--chip-bg); color: var(--chip-fg); font-size: 11px; font-weight: 600; vertical-align: middle; margin-left: 8px; }
.vb-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tile-fg); }

/* ---- états vides : cadre pointillé, icône ronde, une phrase, une action ---- */
.empty { border: 1px dashed var(--line) !important; border-radius: 10px !important; background: transparent !important; padding: 36px 20px !important; color: var(--muted) !important; font-size: 12.5px !important; }
.empty b { display: block; margin-bottom: 4px; color: var(--fg); font-size: 14px; font-weight: 650; }
.ls-table .empty, .cc-table .empty, .card .empty { border: 0 !important; }

/* ---- fenêtres, menus, notifications ---- */
.co-modal { background: rgba(0, 0, 0, .66) !important; backdrop-filter: blur(4px); }
.co-card { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; box-shadow: var(--shadow-pop) !important; }
.toast { background: var(--surface-2) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; color: var(--fg) !important; box-shadow: var(--shadow-pop) !important; font-size: 13px !important; }
.theme-pop, .advpop, .rv-nudge { background: var(--surface) !important; border: 1px solid var(--line) !important; }
/* transitions rapides */
.side .nav button, .btn-main, .btn-ghost, .ct-tabs button, .ls-tr, .cc-row, .crx-card { transition: background .12s ease, color .12s ease, border-color .12s ease, filter .12s ease !important; }
.sk { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) !important; background-size: 200% 100% !important; border-radius: 8px !important; animation: skMove 1.2s ease infinite !important; }
@keyframes skMove { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Scripts : gestionnaire de scripts (30/10/2026) ---------- */
.sm-folder { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.sm-folder button { height: 28px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sm-folder button:hover { color: var(--fg); } .sm-folder button[aria-selected="true"] { background: var(--line); color: var(--fg); }
#lb-acc { height: 34px; min-width: 170px; } #lb-acc[hidden] { display: none; }
#view-library .sm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.sm-side { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); position: sticky; top: 0; max-height: calc(100vh - 150px); overflow: hidden; }
.sm-sh { display: flex; align-items: center; justify-content: space-between; padding: 11px 10px 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.sm-plus { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface-2); color: var(--fg); cursor: pointer; }
.sm-plus:hover { border-color: var(--accent-2); } .sm-plus[hidden] { display: none; }
.sm-plus svg, .sm-ab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sm-list { display: flex; flex-direction: column; gap: 1px; padding: 8px; overflow-y: auto; }
.sm-h { margin: 12px 8px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.sm-it { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); text-align: left; font: inherit; cursor: pointer; }
.sm-it:hover { background: var(--surface-2); } .sm-it.on { background: var(--sel-bg); box-shadow: inset 2px 0 0 #676766; color: var(--fg); }
.sm-it > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-it b, .sm-sn b, .sm-sc { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sm-it b { font-size: 13px; }
.sm-it small, .sm-sn small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-it em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-none { padding: 4px 10px; margin: 0; }
.sm-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .sm-bar .grow { flex: 1; } .sm-bar [hidden] { display: none; }
.sm-bar #lb-q { width: 300px; max-width: 100%; } .sm-bar #lb-fan { width: 140px; }
.sm-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sm-st { flex: 1; min-width: 220px; display: flex; flex-wrap: wrap; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.sm-st b { font-size: 14.5px; font-weight: 650; color: var(--fg); margin-right: 12px; } .sm-st span + span::before { content: "·"; margin: 0 7px; color: var(--muted-2); }
.sm-k { display: flex; flex-wrap: wrap; gap: 22px; } .sm-k span { display: flex; flex-direction: column; gap: 2px; }
.sm-k small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sm-k b { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-sa { display: flex; align-items: center; gap: 6px; }
.sm-subtabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.sm-subtabs button { padding: 8px 0; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sm-subtabs button:hover { color: var(--fg); } .sm-subtabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.sm-subtabs em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }
#view-library .lb-grid { display: block; }
.ls-th.sm, .ls-tr.sm { grid-template-columns: minmax(180px, 2fr) minmax(90px, 1fr) 60px 70px 64px 64px 80px 96px; gap: 10px; }
.ls-th.sma, .ls-tr.sma { grid-template-columns: minmax(160px, 1.6fr) minmax(90px, 1fr) 64px 64px 64px 80px 84px; gap: 10px; }
@media (max-width: 1320px) and (min-width: 981px) {
  .ls-th.sm, .ls-tr.sm { grid-template-columns: minmax(160px, 1fr) 56px 64px 56px 56px 72px 96px; } .ls-th.sm > :nth-child(2), .ls-tr.sm > :nth-child(2) { display: none; }
  .ls-th.sma, .ls-tr.sma { grid-template-columns: minmax(160px, 1fr) 64px 60px 60px 76px 80px; } .ls-th.sma > :nth-child(2), .ls-tr.sma > :nth-child(2) { display: none; }
}
.ls-th.ser, .ls-tr.ser { grid-template-columns: minmax(240px, 1fr) 80px 100px 110px; }
.ls-tr.sm, .ls-tr.ser { cursor: pointer; padding-top: 7px; padding-bottom: 7px; } .ls-tr.sm:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.ls-tr.sm.open { background: var(--surface-2); border-bottom-color: transparent !important; }
.sm-sn { display: flex; align-items: center; gap: 10px; min-width: 0; } .sm-sn > span { min-width: 0; display: flex; flex-direction: column; }
.sm-sn > i { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.sm-sn > i svg, .sm-sn > i .i { width: 13px; height: 13px; }
.sm-sc { font-size: 12.5px; color: var(--fg-2); } .sm-sc em, .sm-md em { font-style: normal; color: var(--muted); }
.sm-md { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); } .sm-md > span { display: inline-flex; align-items: center; gap: 3px; }
.sm-md svg, .sm-md .i { width: 13px; height: 13px; }
.sm-pp { color: var(--chip-fg); font-weight: 650; font-variant-numeric: tabular-nums; } .sm-free { font-style: normal; color: var(--muted); font-size: 12px; }
.sm-ra { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity .12s; }
.ls-tr.sm:hover .sm-ra, .ls-tr.sm:focus-within .sm-ra, .ls-tr.sm.open .sm-ra { opacity: 1; } @media (hover: none) { .sm-ra { opacity: 1; } }
.sm-ab { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.sm-ab:hover { background: var(--surface-3); color: var(--fg); } .sm-ab:disabled { opacity: .3; cursor: default; background: none; }
.sm-ab.on { color: #f2c27b; } .sm-ab.on svg { fill: currentColor; } .sm-ab.del:hover { color: var(--danger); }
.sm-ab.armed { width: auto; padding: 0 9px; font-size: 11.5px; font-weight: 650; color: var(--danger); background: rgba(239, 68, 68, .12); }
.sm-det { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 14px 50px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.sm-det .lb-text { margin: 0; white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: var(--fg); }
.sm-note { margin: 0; padding: 8px 12px; border-left: 2px solid var(--line-2); border-radius: 0 6px 6px 0; background: var(--bg-2); font-size: 12.5px; color: var(--fg-2); white-space: pre-wrap; }
.sm-note b { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sm-ea { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.lb-series-pane > .sm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
/* fenêtres : Ajouter une étape, Importer, Série */
.co-card.sm-form { width: min(940px, 100%) !important; max-height: calc(100vh - 32px); padding: 0 !important; display: flex; flex-direction: column; gap: 0; overflow: hidden; border-radius: 12px !important; }
.co-card.sm-imp, .co-card.sm-ser-f { width: min(560px, 100%) !important; }
.sm-fh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sm-fh h2 { margin: 0 !important; font-family: inherit !important; font-size: 16px !important; font-weight: 650; } .sm-fh .co-x { position: static; }
.sm-fb { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 18px; overflow-y: auto; }
.sm-ib { display: flex; flex-direction: column; gap: 14px; padding: 18px; overflow-y: auto; }
.sm-fl, .sm-fr { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sm-form label, .sm-lab { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.sm-form label[hidden], .sm-form .sm-box[hidden], .sm-form small[hidden] { display: none; }
.sm-form .req { font-style: normal; color: var(--accent); }
.sm-tx { border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); overflow: hidden; } .sm-tx:focus-within { border-color: var(--accent-2); }
.sm-tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.sm-tbar button { height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg-2); font: inherit; font-size: 11.5px; font-weight: 500; cursor: pointer; }
.sm-tbar button:hover { color: var(--fg); border-color: var(--line-2); }
.sm-emo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); } .sm-emo[hidden] { display: none; }
.sm-emo button { height: 28px; border: 0; border-radius: 6px; background: none; font-size: 16px; cursor: pointer; } .sm-emo button:hover { background: var(--surface-3); }
.sm-form .sm-tx textarea { display: block; width: 100%; min-height: 150px; padding: 10px 12px; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; resize: vertical; }
.sm-prev { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 400; color: var(--muted); white-space: pre-wrap; }
.sm-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.sm-box > b { font-size: 13px; font-weight: 650; } .sm-box small { font-size: 11.5px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.sm-form .sm-sw { flex-direction: row; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 650; color: var(--fg); cursor: pointer; }
.sm-sw input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 34px !important; height: 20px !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 99px !important; background: var(--line-2) !important; cursor: pointer; transition: background .15s; }
.sm-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sm-sw input:checked { background: var(--accent-btn) !important; } .sm-sw input:checked::after { transform: translateX(14px); }
.sm-price .ct-inl input { width: 110px; }
.sm-ff { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.sm-isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.sm-isteps li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; } .sm-isteps p { margin: 0; }
.sm-form .sm-drop { align-self: stretch; align-items: center; gap: 4px; padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--bg-2); text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.sm-drop span { font-size: 13px; color: var(--fg); } .sm-drop small { font-weight: 400; color: var(--muted); }
.sm-drop:hover, .sm-drop.over { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sm-isum[hidden] { display: none; }
.sm-ser-l { display: flex; flex-direction: column; gap: 4px; }
.sm-ser-r { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-weight: 400; }
.sm-ser-r i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); width: 16px; } .sm-ser-r b { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-ser-r small { font-size: 11px; color: var(--muted); } .sm-lab select[hidden] { display: none; }
@media (max-width: 980px) {
  #view-library .sm-layout, .lb-series-pane > .sm-layout { grid-template-columns: 1fr; } .sm-side { position: static; max-height: 280px; }
  .ls-th.sm, .ls-th.sma, .ls-th.ser { display: none; }
  .ls-tr.sm { grid-template-columns: minmax(0, 1fr) auto auto; } .ls-tr.sm > :nth-child(2), .ls-tr.sm > :nth-child(3), .ls-tr.sm > :nth-child(5), .ls-tr.sm > :nth-child(6), .ls-tr.sm > :nth-child(7) { display: none; }
  .ls-tr.sma, .ls-tr.ser { grid-template-columns: minmax(0, 1fr) auto; } .ls-tr.sma > :nth-child(n+3):not(:last-child), .ls-tr.ser > :nth-child(n+2):not(:last-child) { display: none; }
  .sm-fb { grid-template-columns: 1fr; } .sm-sa { width: 100%; }
}
/* Velora Studio : les fenêtres, l'écran de connexion et le verrou gardaient l'ancien rose : même violet que l'appli */
html .studio .lock, html .studio .web-gate, html .studio .web-gate.wg2, html .studio .co-modal { --accent: #80807f; --accent-btn: #585857; --accent-soft: rgba(88, 88, 87, .16); }
:root[data-theme="light"] .studio .lock, :root[data-theme="light"] .studio .web-gate, :root[data-theme="light"] .studio .web-gate.wg2, :root[data-theme="light"] .studio .co-modal { --accent: #585857; --accent-btn: #585857; --accent-soft: rgba(88, 88, 87, .08); }
.sm-form label > span:first-child, .sm-lab > span:first-child { display: block; }
html body .lock .btn-main, html body .web-gate .btn-main, html body .co-modal .btn-main { background: var(--accent-btn, var(--accent)) !important; }

/* ---------- Refonte 30/10/2026 · Phase 1 : contexte de travail, compte, Assistant ---------- */
/* le contexte (créatrice + espace), en haut du menu */
.ctx { margin: 0 0 12px; }
.ctx-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.ctx-btn:hover, .ctx-btn[aria-expanded="true"] { border-color: var(--line-2); background: var(--surface-2); }
.ctx-av { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--chip-bg); color: var(--chip-fg); font-size: 12.5px; font-weight: 700; }
.ctx-av.all { background: var(--surface-3); color: var(--fg-2); } .ctx-av svg, .ctx-av .i { width: 15px; height: 15px; }
.ctx-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ctx-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-t small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-chev, .me-chev { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctx-pop, .um-pop { position: fixed; z-index: 120; width: 248px; max-height: min(460px, calc(100vh - 80px)); display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden; }
.ctx-pop[hidden], .um-pop[hidden] { display: none; }
.ctx-pop input[type=search] { height: 32px; margin: 2px 2px 6px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg-2); color: var(--fg); font: inherit; font-size: 12.5px; }
.ctx-pop input[hidden] { display: none; }
.ctx-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.ctx-it, .ctx-sp, .ctx-man, .um-pop > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--fg-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ctx-it:hover, .ctx-it:focus-visible, .ctx-sp:hover, .ctx-sp:focus-visible, .ctx-man:hover, .ctx-man:focus-visible, .um-pop > button:hover, .um-pop > button:focus-visible { background: var(--surface-2); color: var(--fg); outline: none; }
.ctx-it.on { color: var(--fg); } .ctx-it .ctx-av { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.ctx-tick { flex: none; width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ctx-none { margin: 0; padding: 10px 8px; font-size: 12.5px; color: var(--muted); }
.ctx-foot:empty { display: none; } .ctx-foot { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.ctx-h { margin: 2px 8px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ctx-man svg, .ctx-man .i, .um-pop > button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; color: var(--muted); }
.ctx-ruled { display: none !important; }
body.side-mini .ctx-btn .ctx-t, body.side-mini .ctx-btn .ctx-chev { display: none; } body.side-mini .ctx-btn { justify-content: center; padding: 6px 0; }
/* le compte, en bas du menu */
.side-foot { position: relative; }
.side-foot .me { gap: 10px; } .side-foot .me[aria-expanded="true"] { background: var(--surface-2) !important; }
.um-pop { width: 232px; }
.um-pop > button[hidden] { display: none; } .um-pop .count { margin-left: auto; }
.um-pop .um-out { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 4px; padding-top: 9px; }
.um-theme { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
/* l'Assistant : ses onglets en haut de chaque page */
.ai-tabs[hidden] { display: none; }
.sm-folder button.locked { color: var(--muted-2); }
.um-theme .theme-modes { background: var(--bg-2); border-color: var(--line); }
.um-theme .theme-modes button { text-transform: none; letter-spacing: 0; } .um-theme .theme-modes button[aria-pressed="true"] { background: var(--line); color: var(--fg); box-shadow: none; }

/* =====================================================================================================================
   Composants communs (refonte 30/10/2026, phase 2) — à utiliser partout ; voir docs/design-system.md
   v-avatar · v-tag · v-ibtn · v-search · v-tabs · v-empty-ico · (sk : squelette, déjà défini plus haut)
   ===================================================================================================================== */
.v-avatar { flex: none; position: relative; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--chip-bg); color: var(--chip-fg); font-size: 12.5px; font-weight: 700; }
.v-avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.v-avatar[class*="st-"]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--muted-2); }
.v-avatar.st-wait::after { background: var(--accent); } .v-avatar.st-open::after { background: var(--info); } .v-avatar.st-new::after { background: var(--ok); } .v-avatar.st-done::after { display: none; }
.v-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--surface-3); color: var(--fg-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.v-tag.sm { height: 17px; padding: 0 6px; font-size: 10.5px; }
.v-tag[data-c="rose"] { background: rgba(146, 146, 145, .14); color: #afafae; } .v-tag[data-c="violet"] { background: var(--chip-bg); color: var(--chip-fg); } .v-tag[data-c="bleu"] { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.v-tag[data-c="cyan"] { background: rgba(34, 211, 238, .13); color: #67e8f9; } .v-tag[data-c="vert"] { background: rgba(52, 211, 153, .13); color: #6ee7b7; } .v-tag[data-c="jaune"] { background: rgba(245, 185, 65, .14); color: #fcd34d; }
.v-tag[data-c="orange"] { background: rgba(251, 146, 60, .14); color: #fdba74; } .v-tag[data-c="rouge"] { background: rgba(248, 113, 113, .14); color: #fca5a5; } .v-tag[data-c="gris"] { background: var(--surface-3); color: var(--fg-2); }
.v-ibtn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.v-ibtn:hover, .v-ibtn[aria-expanded="true"] { color: var(--fg); border-color: var(--line-2); background: var(--surface-2); }
.v-ibtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.v-search svg { position: absolute; left: 10px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
html body .v-search input[type=search] { width: 100%; padding-left: 32px !important; }
.v-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.v-tabs button { flex: 1; padding: 10px 4px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.v-tabs button:hover { color: var(--fg); } .v-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.v-empty-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); }
.v-empty-ico svg, .v-empty-ico .i { width: 18px; height: 18px; }

/* =====================================================================================================================
   Messages (phase 4) : trois colonnes — conversations · fil · fiche du fan
   ===================================================================================================================== */
#view-inbox .viewbar { padding-bottom: 12px !important; }
.msg-sum { font-size: 12.5px; color: var(--muted); margin-right: 4px; }
.ibx { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; margin: 0 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
/* gauche */
.msg-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg-2); }
.msg-lh { display: flex; gap: 6px; padding: 12px 12px 8px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 8px; }
.msg-chips button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.msg-chips button:hover { color: var(--fg); border-color: var(--line-2); }
.msg-chips button[aria-selected="true"] { background: var(--sel-bg); border-color: rgba(103, 103, 102, .5); color: var(--chip-fg-2); }
.msg-chips em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--chip-fg); } .msg-chips em:empty { display: none; }
.msg-filt { display: flex; gap: 6px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
html body .msg-filt select { flex: 1; min-width: 0; height: 30px; min-height: 30px; font-size: 12px !important; }
.msg-filt select[hidden] { display: none; }
.msg-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.msg-row { display: flex; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.msg-row:hover { background: var(--surface-2); } .msg-row.on { background: var(--sel-bg); box-shadow: inset 2px 0 0 #676766; }
.msg-row:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.mr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-top { display: flex; align-items: center; gap: 6px; } .mr-top b { flex: 0 1 auto; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.unread .mr-top b { font-weight: 700; } .msg-row.unread .mr-prev { color: var(--fg-2); }
.mr-prio { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); } .mr-prio.p2 { background: var(--danger); }
.mr-when { margin-left: auto; flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; } .mr-when.mid { color: var(--warn); } .mr-when.late { color: var(--danger); font-weight: 600; }
.mr-prev { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11px; color: var(--muted-2); } .mr-meta:empty { display: none; }
.msg-none { padding: 28px 16px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
/* centre */
.msg-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mt-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mt-back, .mt-fanbtn { display: none; }
.mt-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mt-who b { font-size: 14px; } .mt-who small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-wait { color: var(--accent); font-weight: 600; }
.mt-ctl { display: flex; align-items: center; gap: 6px; } html body .mt-ctl select { height: 30px; min-height: 30px; max-width: 150px; font-size: 12px !important; }
.mt-msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; }
.mt-note { align-self: center; max-width: 520px; margin-bottom: 6px; font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.5; }
.mt-day { display: flex; justify-content: center; margin: 8px 0 4px; } .mt-day span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.mb { max-width: min(560px, 78%); display: flex; flex-direction: column; gap: 3px; }
.mb p { margin: 0; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mb small { font-size: 10.5px; color: var(--muted-2); padding: 0 4px; }
.mb.mb-fan { align-self: flex-start; } .mb.mb-fan p { background: var(--surface-3); border-bottom-left-radius: 4px; }
.mb.mb-me { align-self: flex-end; align-items: flex-end; } .mb.mb-me p { background: var(--bubble-me); color: var(--bubble-me-fg); border-bottom-right-radius: 4px; }
.mb.risk p { box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .6); } .mb.risk small { color: #fca5a5; }
.mt-comp { border-top: 1px solid var(--line); padding: 8px 14px 10px; }
.mc-emo { display: flex; gap: 2px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; } .mc-emo::-webkit-scrollbar { display: none; }
.mc-emo button { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; font-size: 16px; cursor: pointer; } .mc-emo button:hover { background: var(--surface-2); }
.mc-box { position: relative; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); } .mc-box:focus-within { border-color: var(--accent-2); }
html body .mc-box textarea { display: block; width: 100%; min-height: 54px; max-height: 200px; padding: 10px 12px; border: 0 !important; background: transparent !important; box-shadow: none !important; resize: vertical; font-size: 13.5px !important; }
.mc-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--line); } .mc-bar .grow { flex: 1; } .mc-bar .v-ibtn { width: 28px; height: 28px; }
.mc-var { height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--fg-2); font: inherit; font-size: 11.5px; cursor: pointer; } .mc-var:hover { color: var(--fg); }
.mc-lib { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; gap: 6px; max-height: 320px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-pop); }
.mc-lib[hidden] { display: none; }
.mc-list { overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.mc-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.mc-it:hover { background: var(--surface-2); } .mc-it b { font-size: 12.5px; font-weight: 600; } .mc-it small { grid-column: 1; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-it em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 650; color: var(--chip-fg); }
.mc-none { margin: 0; padding: 10px; font-size: 12.5px; color: var(--muted); }
.mc-hint { margin: 6px 2px 0; font-size: 11px; color: var(--muted-2); }
.msg-empty { margin: auto; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; }
.msg-empty b { font-size: 14px; } .msg-empty p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; } .msg-empty.sm { margin-top: 24px; }
.mt-load { display: flex; flex-direction: column; gap: 10px; padding: 16px; } .mt-load .sk { height: 36px; border-radius: 12px; } .mt-load .sk + .sk { width: 60%; align-self: flex-end; }
/* droite : la fiche du fan */
.msg-fan { min-height: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg-2); }
.fp-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.fp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .fp-who b { font-size: 14.5px; } .fp-who small { font-size: 11.5px; color: var(--muted); }
.fp-tabs { padding: 0 8px; }
.fp-body { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 24px; }
.fp-note { padding: 10px 12px; border: 1px solid rgba(245, 158, 11, .3); border-radius: 10px; background: rgba(245, 158, 11, .06); }
.fp-note header { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; margin-bottom: 4px; }
.fp-note p { margin: 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; } .fp-note > small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.fp-addnote { display: flex; gap: 6px; margin-top: 8px; } html body .fp-addnote input { flex: 1; min-width: 0; height: 30px; min-height: 30px; font-size: 12.5px !important; }
.fp-more { margin-top: 6px; font-size: 12px; } .fp-more summary { cursor: pointer; color: var(--muted); } .fp-more p { margin: 6px 0 0; font-size: 12.5px; } .fp-more small { display: block; color: var(--muted); font-size: 11px; }
.fp-sec h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fp-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fp-tagpick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); } .fp-tagpick[hidden] { display: none; }
.fp-tagpick button { height: 22px; padding: 0 9px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.fp-tagpick button[aria-pressed="true"] { border-color: rgba(103, 103, 102, .6); background: var(--chip-bg); color: var(--chip-fg-2); }
.fp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fp-kpis div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.fp-kpis small { display: block; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fp-kpis b { display: block; margin-top: 3px; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fp-kpis div:nth-child(2) b { color: #93c5fd; } .fp-kpis div:nth-child(4) b { color: #fcd34d; }
.fp-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fp-kv:last-child { border-bottom: 0; } .fp-kv span { color: var(--muted); } .fp-kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
html body .fp-kv select { height: 28px; min-height: 28px; max-width: 160px; font-size: 12px !important; }
.fp-psy { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fp-psy div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); } .fp-psy small { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.fp-psy .ok small { color: #6ee7b7; } .fp-psy .no small { color: #fca5a5; } .fp-psy p { margin: 3px 0 0; font-size: 12.5px; white-space: pre-wrap; }
.fp-ai { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; } .fp-ai p { margin: 0; font-size: 12.5px; } .fp-ai p small { display: block; font-size: 10.5px; color: var(--muted); } .fp-src { font-size: 10.5px; color: var(--muted-2); }
.fp-ev, .fp-hist { list-style: none; margin: 0; padding: 0; }
.fp-ev li { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .fp-ev small { font-size: 11px; color: var(--muted); }
.fp-hist li { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; } .fp-hist li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-none, .fp-p { margin: 0; font-size: 12.5px; color: var(--muted); }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .fp-wide { grid-column: 1 / -1; } .fp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-card.fp-form { width: min(760px, 100%) !important; } .fp-form .sm-fh p { margin: 2px 0 0; }
.fp-form label small { font-size: 11px; font-weight: 400; color: var(--muted); }
/* tablette : la fiche s'ouvre en tiroir ; téléphone : une colonne à la fois */
@media (max-width: 1280px) {
  .ibx { grid-template-columns: 300px minmax(0, 1fr); position: relative; }
  .mt-fanbtn { display: grid; }
  .msg-fan { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 92%); z-index: 6; box-shadow: var(--shadow-pop); transform: translateX(105%); transition: transform .18s ease; }
  .ibx.fan-open .msg-fan { transform: none; }
}
@media (max-width: 900px) {
  .ibx { grid-template-columns: 1fr; margin: 0 10px 10px; }
  .msg-thread { display: none; } .ibx.has-sel .msg-list { display: none; } .ibx.has-sel .msg-thread { display: flex; }
  .mt-back { display: grid; } .mt-ctl select[data-ib-set="prio"], .mt-ctl select[data-ib-set="assign"] { display: none; }
  .fp-grid, .fp-2 { grid-template-columns: 1fr; }
}
html body .msg-filt select, html body .mt-ctl select, html body .fp-kv select { padding: 0 24px 0 9px !important; line-height: 28px !important; }
.mt-head { flex-wrap: wrap; row-gap: 8px; } .mt-who { min-width: 140px; } .mt-ctl { margin-left: auto; flex-wrap: wrap; }
.fp-kpis b.txt { font-family: inherit; font-size: 13.5px; }
.fp-grid, .fp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .fp-form input, html body .fp-form textarea { width: 100%; box-sizing: border-box; padding: 0 10px !important; min-height: 34px; }
html body .fp-form textarea { padding: 8px 10px !important; resize: vertical; }
@media (max-width: 900px) { .fp-grid, .fp-2 { grid-template-columns: 1fr; } }

/* =====================================================================================================================
   Fans (phase 5) : tableau dense + fiche à droite (la même que dans Messages, version complète)
   ===================================================================================================================== */
.v-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.v-chips button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.v-chips button:hover { color: var(--fg); border-color: var(--line-2); }
.v-chips button[aria-selected="true"] { background: var(--sel-bg); border-color: rgba(103, 103, 102, .5); color: var(--chip-fg-2); }
.v-chips em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; } .v-chips button[aria-selected="true"] em { color: var(--chip-fg); }
#view-fans .fxv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
#view-fans .fxv.open { grid-template-columns: minmax(0, 1fr) 360px; }
.fxv-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fxv-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fxv-bar { display: flex; gap: 8px; align-items: center; }
.fxv-panel .fx-adv, .fxv-panel .fx-tagbox { margin: 0; }
.fxt-table { border-radius: 10px; }
.ls-th.fxt, .ls-tr.fxt { grid-template-columns: minmax(200px, 1.6fr) minmax(110px, 1fr) 96px 70px 110px 110px 110px; gap: 10px; }
body.solo .ls-th.fxt, body.solo .ls-tr.fxt { grid-template-columns: minmax(200px, 1.6fr) minmax(110px, 1fr) 96px 70px 110px 110px; }
.fxv.open .ls-th.fxt, .fxv.open .ls-tr.fxt { grid-template-columns: minmax(170px, 1.6fr) 90px 60px 100px 100px; }
.fxv.open .fxt-tags, .fxv.open .fxt-seen { display: none; }
.ls-tr.fxt { padding-top: 7px; padding-bottom: 7px; font-size: 13px; } .ls-tr.fxt.on { background: var(--sel-bg) !important; box-shadow: inset 2px 0 0 #676766; }
.ls-tr.fxt .sm-sn small { max-width: 260px; }
.fxt-tags { display: flex; gap: 3px; overflow: hidden; }
.fxt-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; } .fxt-sort:hover, .fxt-sort.on { color: var(--fg); }
.fxt-more { margin: 8px 4px 0; }
.fxv-side { position: sticky; top: 0; max-height: calc(100vh - 130px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.fxv-side[hidden] { display: none; }
.fp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.fp-acts .fp-del { margin-left: auto; color: var(--muted); } .fp-acts .fp-del:hover, .fp-acts .fp-del.armed { color: var(--danger); }
.fp-delnote { margin-top: 6px; padding: 0; color: var(--muted); font-size: 11px; }
.fp-remind { display: flex; flex-direction: column; gap: 6px; } html body .fp-remind input { height: 30px; min-height: 30px; padding: 0 9px !important; font-size: 12.5px !important; }
.fp-remind .btn-ghost { align-self: flex-start; }
.fp-last { margin-bottom: 6px; padding: 8px 10px; border-radius: 9px; background: var(--surface-3); } .fp-last small { font-size: 10.5px; color: var(--muted); } .fp-last p { margin: 2px 0 0; font-size: 12.5px; }
.fp-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fp-msgs li p { margin: 0; padding: 7px 10px; border-radius: 10px; background: var(--bubble-me); color: var(--bubble-me-fg); font-size: 12.5px; white-space: pre-wrap; } .fp-msgs li small { font-size: 10.5px; color: var(--muted-2); }
.fp-sk { display: block; height: 40px; border-radius: 10px; }
@media (max-width: 1180px) {
  #view-fans .fxv.open { grid-template-columns: minmax(0, 1fr); }
  .fxv-side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(380px, 94vw); max-height: none; border-radius: 0; border-width: 0 0 0 1px; box-shadow: var(--shadow-pop); }
  .fxv.open .ls-th.fxt, .fxv.open .ls-tr.fxt { grid-template-columns: minmax(200px, 1.6fr) minmax(110px, 1fr) 96px 70px 110px 110px; }
  .fxv.open .fxt-tags { display: flex; }
}
@media (max-width: 760px) {
  .ls-th.fxt { display: none; } .ls-tr.fxt, .fxv.open .ls-tr.fxt, body.solo .ls-tr.fxt { grid-template-columns: minmax(0, 1fr) auto; }
  .ls-tr.fxt > :nth-child(n+2):not(:nth-child(3)) { display: none; }
}
.sm-sn > .v-avatar { display: grid; flex-direction: row; }
label.fx-csv-l { display: inline-flex; align-items: center; cursor: pointer; }

/* =====================================================================================================================
   Tableau de bord (phase 6) : les blocs secondaires en une rangée compacte (semaine, relances, équipe)
   ===================================================================================================================== */
.db-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.db-more .db-cols { display: contents; }
.db-more .db-card { margin: 0 !important; padding: 14px 16px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--surface) !important; }
.db-more .db-card[style*="display: none"] { display: none !important; }
.db-more .card-head { margin-bottom: 8px !important; }
.db-more .card-head h2 { font-size: 13.5px !important; font-weight: 650 !important; }
.db-more .card-head .linkish { font-size: 12px; }
.db-more .db-row { padding: 6px 0 !important; }
#view-accueil .db { display: flex; flex-direction: column; gap: 14px; }

/* =====================================================================================================================
   Phase 7 : finitions des autres pages
   ===================================================================================================================== */
/* une liste « Créatrice » remplacée par le sélecteur du menu emporte son libellé */
label:has(> select.ctx-ruled) { display: none !important; }
/* « Comment ça marche ? » : un lien discret sous le sous-titre, aligné à gauche */
.viewbar .guide-open { justify-self: start; align-self: start; width: auto; margin: 4px 0 0 !important; padding: 0 !important; text-align: left; text-decoration: none; }
.viewbar .guide-open:hover { color: var(--fg) !important; text-decoration: underline; }
/* encadrés d'explication : neutres (plus de jaune) */
.ai-warn, details.ai-warn { border-color: var(--line) !important; background: var(--surface) !important; }
.ai-warn .i { stroke: var(--muted) !important; }
/* Coach : un titre de section, pas une affiche */
.co-intro h2 { font-family: inherit !important; font-size: 18px !important; font-weight: 650 !important; letter-spacing: -.01em !important; }
#co-onboard > .badge { background: var(--surface-2) !important; color: var(--fg-2) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
#co-onboard > .badge .i { display: none; }

/* Phase 8 : téléphone — le sélecteur de créatrice en haut de l'écran (le menu latéral est caché) */
.m-ctx { display: none; }
@media (max-width: 760px) {
  .m-ctx { display: block; padding: 10px 14px 0; }
  .m-ctx .ctx { margin: 0; }
  .has-agency .viewbar::before { display: none !important; }
  .viewbar { padding: 14px 14px 10px !important; }
  .wrap.wide { padding-left: 12px !important; padding-right: 12px !important; }
}

/* la fiche du fan : résumé IA, marque « IA » (relevé par l'IA dans la messagerie de Studio) */
.fp-aisum h4 small { margin-left: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted-2); margin-right: auto; }
.fp-sum { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg); }
.fp-ia { margin-left: 6px; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; background: var(--chip-bg); color: var(--chip-fg); }
.fp-ia.d { background: rgba(245, 158, 11, .12); color: var(--warn); }
.fp-2 .fp-wide2 { grid-column: 1 / -1; }

/* Membres : « Comptes : Zoé, Emma » puis « Modifier les comptes » (les cases) */
.tm-accs-line { flex-wrap: wrap; } .tm-accs { flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; font-size: 12.5px; }
.tm-accs-names { color: var(--fg); } .tm-accs .linkish { font-size: 12px; }
.tm-accs-line .of-chips { flex-basis: 100%; margin-top: 6px; } .tm-accs-line .of-chips[hidden] { display: none; }
/* (03/11/2026) les nouvelles sections du menu */
.side .nav .nav-label[data-group="contenus"]::before { background: #9f9f9e; } .side .nav .nav-label[data-group="auto"]::before { background: #f97316; }
.side .nav .nav-label[data-group="revenus"]::before { background: #14b8a6; }

/* (01/11/2026) Menu : une pastille de couleur par rubrique, celle de sa catégorie (comme le point devant le titre) */
.side .nav { --g-top: #7b7b7a; --g-messagerie: #80807f; --g-contenus: #9f9f9e; --g-auto: #f97316; --g-createurs: #22c55e; --g-revenus: #14b8a6; --g-equipe: #3b82f6; --g-ia: #888887; --g-croissance: #f59e0b; --g-admin: #71717a; }
.side .nav button[data-grp] { --g: var(--g-top); }
.side .nav button[data-grp="messagerie"] { --g: var(--g-messagerie); } .side .nav button[data-grp="contenus"] { --g: var(--g-contenus); }
.side .nav button[data-grp="auto"] { --g: var(--g-auto); } .side .nav button[data-grp="createurs"] { --g: var(--g-createurs); }
.side .nav button[data-grp="revenus"] { --g: var(--g-revenus); } .side .nav button[data-grp="equipe"] { --g: var(--g-equipe); }
.side .nav button[data-grp="ia"] { --g: var(--g-ia); } .side .nav button[data-grp="croissance"] { --g: var(--g-croissance); }
.side .nav button[data-grp="admin"] { --g: var(--g-admin); }
.side .nav button[data-grp] > svg:first-child { box-sizing: content-box; padding: 5px; border-radius: 8px; color: var(--g); stroke: var(--g) !important; background: color-mix(in srgb, var(--g) 16%, transparent); flex: none; }
.side .nav button[data-grp][aria-current="page"] > svg:first-child { color: #fff; stroke: #fff !important; background: var(--g); }

/* (01/11/2026) Les pastilles partout dans l'appli : en-tête de page (couleur de la catégorie de la rubrique) et menu des
   Paramètres (une couleur par famille de réglages), avec les mêmes couleurs que le menu de gauche */
:root { --g-top: #7b7b7a; --g-messagerie: #80807f; --g-contenus: #9f9f9e; --g-auto: #f97316; --g-createurs: #22c55e; --g-revenus: #14b8a6; --g-equipe: #3b82f6; --g-ia: #888887; --g-croissance: #f59e0b; --g-admin: #71717a; }
.vb-ico[data-grp] { --g: var(--g-top); }
.vb-ico[data-grp="messagerie"] { --g: var(--g-messagerie); } .vb-ico[data-grp="contenus"] { --g: var(--g-contenus); } .vb-ico[data-grp="auto"] { --g: var(--g-auto); }
.vb-ico[data-grp="createurs"] { --g: var(--g-createurs); } .vb-ico[data-grp="revenus"] { --g: var(--g-revenus); } .vb-ico[data-grp="equipe"] { --g: var(--g-equipe); }
.vb-ico[data-grp="ia"] { --g: var(--g-ia); } .vb-ico[data-grp="croissance"] { --g: var(--g-croissance); } .vb-ico[data-grp="admin"] { --g: var(--g-admin); }
.vb-ico[data-grp] { background: color-mix(in srgb, var(--g) 16%, transparent) !important; border-color: color-mix(in srgb, var(--g) 34%, transparent) !important; }
.vb-ico[data-grp] svg { stroke: var(--g) !important; }
.set-tabs [data-set-tab] { --g: var(--g-top); }
.set-tabs [data-set-tab="agence"], .set-tabs [data-set-tab="roles"] { --g: var(--g-equipe); }
.set-tabs [data-set-tab="plateformes"] { --g: var(--g-createurs); } .set-tabs [data-set-tab="messagerie"], .set-tabs [data-set-tab="discord"] { --g: var(--g-messagerie); }
.set-tabs [data-set-tab="auto"] { --g: var(--g-auto); } .set-tabs [data-set-tab="revenus"], .set-tabs [data-set-tab="devise"], .set-tabs [data-set-tab="usage"] { --g: var(--g-revenus); }
.set-tabs [data-set-tab="integrations"] { --g: var(--g-contenus); } .set-tabs [data-set-tab="notifs"] { --g: var(--g-ia); }
.set-tabs [data-set-tab="securite"], .set-tabs [data-set-tab="admin"] { --g: var(--g-admin); } .set-tabs [data-set-tab="offre"], .set-tabs [data-set-tab="avis"] { --g: var(--g-croissance); }
.set-tabs [data-set-tab] > svg { box-sizing: content-box; padding: 5px; border-radius: 8px; color: var(--g); stroke: var(--g) !important; background: color-mix(in srgb, var(--g) 16%, transparent); flex: none; }
.set-tabs [data-set-tab][aria-selected="true"] > svg { color: #fff; stroke: #fff !important; background: var(--g); }

/* (04/11/2026) Logo de la plateforme dans ses pastilles (OnlyFans, Telegram : tracés officiels, Simple Icons CC0) */
.pf-badge.pf-of::before, .pf-badge.pf-tg::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; background: currentColor; }
.pf-badge.pf-of::before { -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M24 4.003h-4.015c-3.45 0-5.3.197-6.748 1.957a7.996 7.996 0 1 0 2.103 9.211c3.182-.231 5.39-2.134 6.085-5.173 0 0-2.399.585-4.43 0 4.018-.777 6.333-3.037 7.005-5.995zM5.61 11.999A2.391 2.391 0 0 1 9.28 9.97a2.966 2.966 0 0 1 2.998-2.528h.008c-.92 1.778-1.407 3.352-1.998 5.263A2.392 2.392 0 0 1 5.61 12Zm2.386-7.996a7.996 7.996 0 1 0 7.996 7.996 7.996 7.996 0 0 0-7.996-7.996Zm0 10.394A2.399 2.399 0 1 1 10.395 12a2.396 2.396 0 0 1-2.399 2.398Z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M24 4.003h-4.015c-3.45 0-5.3.197-6.748 1.957a7.996 7.996 0 1 0 2.103 9.211c3.182-.231 5.39-2.134 6.085-5.173 0 0-2.399.585-4.43 0 4.018-.777 6.333-3.037 7.005-5.995zM5.61 11.999A2.391 2.391 0 0 1 9.28 9.97a2.966 2.966 0 0 1 2.998-2.528h.008c-.92 1.778-1.407 3.352-1.998 5.263A2.392 2.392 0 0 1 5.61 12Zm2.386-7.996a7.996 7.996 0 1 0 7.996 7.996 7.996 7.996 0 0 0-7.996-7.996Zm0 10.394A2.399 2.399 0 1 1 10.395 12a2.396 2.396 0 0 1-2.399 2.398Z'/></svg>") center / contain no-repeat; }
.pf-badge.pf-tg::before { -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/></svg>") center / contain no-repeat; }

/* (04/11/2026) « Choisis le pays du proxy » (public/proxies.js proxyCountryGate) */
.pxc-card { max-width: 460px; }
.pxc-list { display: grid; gap: 6px; margin: 14px 0 10px; }
.pxc-opt { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pxc-opt { position: relative; }
.pxc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pxc-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pxc-opt:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pxc-flag { font: 700 11px/1 var(--font, inherit); padding: 5px 6px; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.12)); color: var(--fg-2, inherit); }
.pxc-opt em { font-style: normal; font-size: 11.5px; color: var(--accent); } .pxc-opt small { color: var(--muted); font-size: 12px; justify-self: end; }
.pxc-opt b { font-weight: 600; }
.pxc-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* (04/11/2026) Liens de suivi : tableau (par lien / par source), fenêtre « Nouveau lien de suivi » */
#view-trafic .tr-filters { margin: 0 0 12px; }
#view-trafic .tr-filters input[type=search] { flex: 1 1 14rem; min-width: 10rem; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
#view-trafic .card-head .seg-mini { margin-left: auto; }
.tr-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tr-kpis span small { display: block; margin-top: 2px; }
.tr-na { display: inline-block; font-size: 11.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.tr-src { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .03em; margin-left: 5px; padding: 1px 5px; border-radius: 5px; color: var(--muted); background: var(--surface-2); vertical-align: 1px; }
.tr-src.of { color: #00aff0; background: color-mix(in srgb, #00aff0 14%, transparent); }
.tr-tag { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-left: 3px; }
#view-trafic .tr-head, #view-trafic .tr-row { grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)) minmax(0, .9fr) minmax(0, 1fr) 4.2rem; }
#view-trafic .tr-row .tr-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#view-trafic .tr-row .tr-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-trafic .tr-row .tr-url code { font-size: 11.5px; padding: 2px 6px; }
.tr-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.tr-cell b { font-size: 14px; }
.tr-cell .up, .tr-srow .up { color: var(--ok, #22c55e); } .tr-cell .down, .tr-srow .down { color: var(--danger, #ef4444); }
.tr-acts { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.tr-table { display: flex; flex-direction: column; gap: 8px; }
.tr-thead, .tr-srow { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 12px; align-items: center; }
.tr-thead { padding: 0 12px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tr-srow { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); font-size: 13px; }
.tr-srow > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-srow .tr-spark, #view-trafic .tr-row .tr-spark { height: 24px; }
@media (max-width: 900px) {
  #view-trafic .tr-head, .tr-thead { display: none; }
  #view-trafic .tr-row, .tr-srow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-trafic .tr-row .tr-main, .tr-srow .tr-name { grid-column: 1 / -1; }
  #view-trafic .tr-acts { grid-row: 1; grid-column: 2; justify-self: end; }
  #view-trafic .tr-row .tr-main { grid-column: 1 / 2; }
  .tr-cell[data-l]::before, .tr-srow > span[data-l]::before { content: attr(data-l); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .tr-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tr-mcard { width: min(100%, 36rem); max-height: calc(100vh - 32px); overflow-y: auto; }
.tr-mform { display: flex; flex-direction: column; gap: 12px; }
.tr-mform .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .tr-mform .grid { grid-template-columns: 1fr; } }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tr-chip { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.tr-chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tr-chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--fg); }
.tr-chip.sm { padding: 3px 9px; font-size: 12px; }
.tr-custom { display: flex; gap: 6px; margin-top: 8px; }
.tr-custom input { flex: 1; }
.tr-tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tr-tagbox > span { display: contents; }
.tr-tagbox input { flex: 1; min-width: 8rem; border: 0 !important; background: transparent !important; padding: 4px !important; box-shadow: none !important; outline: none; }
.tr-cost { display: flex; gap: 6px; }
.tr-cost input { flex: 1; min-width: 0; }
.tr-cost select { width: auto; }
.tr-macts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.tr-macts #tr-msg { margin-right: auto; }
.tr-cell .tr-src, .tr-cell .tr-na { align-self: flex-start; margin-left: 0; }
.tr-mform .grid { align-items: end; }
.tr-mform .field small { font-weight: 400; }
.tr-srow b { font-size: 14px; }
.tr-mform .field > small { display: inline; margin-left: 4px; }

/* (04/11/2026) Thème clair : les couleurs vives des pastilles, montants et statuts (pensées pour le fond sombre)
   passent à la même teinte en plus foncé, lisible sur fond clair. Généré à partir des règles existantes. */
:root[data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] { --muted-2: #85858e; }
:root[data-theme="light"] .bk-cur,
:root[data-theme="light"] .ps-c.goal,
:root[data-theme="light"] .ps-st.pub,
:root[data-theme="light"] .ps-st.sent,
:root[data-theme="light"] .ps-m.money b,
:root[data-theme="light"] .ls-kind.messages,
:root[data-theme="light"] .cc-ppv,
:root[data-theme="light"] .crx-st.ok,
:root[data-theme="light"] .crx-rev em.up,
:root[data-theme="light"] .st-saved,
:root[data-theme="light"] .mi-stats b.ok,
:root[data-theme="light"] .fx2-card header em.up,
:root[data-theme="light"] .fx2-st.st-paid,
:root[data-theme="light"] .fx3-delta.up,
:root[data-theme="light"] .tg-pill.on,
:root[data-theme="light"] .tg-log .ok,
:root[data-theme="light"] .tg-ev.buy,
:root[data-theme="light"] .tg-sim .ok,
:root[data-theme="light"] .hp[data-state="claimed"] .hp-h small { color: #047857 !important; }
:root[data-theme="light"] .ps-c.paid,
:root[data-theme="light"] .ps-st.queued,
:root[data-theme="light"] .ls-kind.tips,
:root[data-theme="light"] .cc-o.camp,
:root[data-theme="light"] .cal-e.camp,
:root[data-theme="light"] .cal-chips button[aria-pressed="true"][data-calk="camp"],
:root[data-theme="light"] .fp-note header,
:root[data-theme="light"] .rl2-warn,
:root[data-theme="light"] .rl2-sens,
:root[data-theme="light"] .rl2-sum li.sens,
:root[data-theme="light"] .fx2-st.st-pending,
:root[data-theme="light"] .fx3-pf dl div.warn dt,
:root[data-theme="light"] .fx3-pf dl div.warn dd,
:root[data-theme="light"] .fx4-pf dl div.warn dt,
:root[data-theme="light"] .fx4-pf dl div.warn dd,
:root[data-theme="light"] .tg-pill.warn,
:root[data-theme="light"] .tg-nowrite,
:root[data-theme="light"] .tg-pf em,
:root[data-theme="light"] .crx-st.warn,
:root[data-theme="light"] .tg-ai-draft .warn,
:root[data-theme="light"] .lb-ssum .gold,
:root[data-theme="light"] .lb-steps li.paid .lb-sn { color: #a16207 !important; }
:root[data-theme="light"] .ps-c.poll,
:root[data-theme="light"] .cc-step,
:root[data-theme="light"] .cal-e.shift,
:root[data-theme="light"] .cal-chips button[aria-pressed="true"][data-calk="shift"],
:root[data-theme="light"] .ig-fmt.f-carrousel,
:root[data-theme="light"] .nav-admin { color: #585857 !important; }
:root[data-theme="light"] .ps-c.err,
:root[data-theme="light"] .ps-st.failed,
:root[data-theme="light"] .ps-err,
:root[data-theme="light"] .cc-rk,
:root[data-theme="light"] .crx-st.bad,
:root[data-theme="light"] .crx-rev em.down,
:root[data-theme="light"] .st-saved.bad,
:root[data-theme="light"] .v-tag[data-c="rouge"],
:root[data-theme="light"] .mb.risk small,
:root[data-theme="light"] .fp-psy .no small,
:root[data-theme="light"] .rl2-tag.off,
:root[data-theme="light"] .fx2-card header em.down,
:root[data-theme="light"] .fx2-st.st-refunded,
:root[data-theme="light"] .fx3-delta.down,
:root[data-theme="light"] .tg-pill.off,
:root[data-theme="light"] .tg-log .ko,
:root[data-theme="light"] .tg-wf .err,
:root[data-theme="light"] .tg-sim .ko { color: #b91c1c !important; }
:root[data-theme="light"] .ps-st.sched,
:root[data-theme="light"] .ls-kind.subs,
:root[data-theme="light"] .ls-badge,
:root[data-theme="light"] .cc-o.sched,
:root[data-theme="light"] .cal-e.post,
:root[data-theme="light"] .cal-chips button[aria-pressed="true"][data-calk="post"],
:root[data-theme="light"] .v-tag[data-c="bleu"],
:root[data-theme="light"] .fp-kpis div:nth-child(2) b,
:root[data-theme="light"] .ig-src.off { color: #1d4ed8 !important; }
:root[data-theme="light"] .pf-badge.pf-of,
:root[data-theme="light"] .ig-fmt.f-preparation { color: #0369a1 !important; }
:root[data-theme="light"] .ai-check summary b.good,
:root[data-theme="light"] .ig-chip.ok,
:root[data-theme="light"] .ig-score.ok,
:root[data-theme="light"] .ig-st.ok,
:root[data-theme="light"] .ig-fmt.f-collab,
:root[data-theme="light"] .ig-fmt.f-live,
:root[data-theme="light"] .pg-reco { color: #15803d !important; }
:root[data-theme="light"] .lb-fav.on,
:root[data-theme="light"] .ig-chip.mid,
:root[data-theme="light"] .ig-score.mid,
:root[data-theme="light"] .ig-ck.past:not(.done) b::after,
:root[data-theme="light"] .ig-fmt.f-story,
:root[data-theme="light"] .ig-risk,
:root[data-theme="light"] .pg-warn,
:root[data-theme="light"] .igi-why .i,
:root[data-theme="light"] .lb-rf,
:root[data-theme="light"] .lb-act.fav.on { color: #b45309 !important; }

/* (04/11/2026) Animations discrètes : contenu d'un onglet qui apparaît, appui sur un bouton,
   ouverture d'un détail. Courtes (≤ 200 ms), sans rebond ; toutes coupées si l'ordinateur demande moins d'animations. */
@keyframes vTabIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.co-pane:not([hidden]), .ls-pane:not([hidden]), .ps-pane:not([hidden]), .lb-series-pane:not([hidden]), .lb-media-pane:not([hidden]),
.fxv-panel:not([hidden]) { animation: vTabIn .18s ease-out both; }
.tr-detail { animation: vTabIn .2s ease-out both; }
.btn-main, .btn-ghost, .icon-btn, .tr-chip, .pxc-opt, .seg-mini button { transition: transform .12s ease, background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-main:active:not(:disabled), .btn-ghost:active:not(:disabled), .icon-btn:active:not(:disabled), .tr-chip:active, .seg-mini button:active { transform: scale(.97); }
.card { transition: border-color .2s, box-shadow .2s; }
@media (prefers-reduced-motion: reduce) {
  .co-pane, .ls-pane, .ps-pane, .lb-series-pane, .lb-media-pane, .fxv-panel, .tr-detail { animation: none !important; }
  .btn-main:active, .btn-ghost:active, .icon-btn:active, .tr-chip:active, .seg-mini button:active { transform: none !important; }
  .co-modal, .co-card { transition: none !important; }
}

/* (04/11/2026) « Choisis le pays du proxy », au style demandé : encadré d'explication, lignes avec bouton radio */
.pxc-modal .pxc-card { max-width: 440px; padding: 26px 24px 22px; gap: 14px; }
.pxc-modal h2 { margin: 0; font-size: 19px; }
.pxc-info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pxc-info b { font-weight: 500; font-size: 14px; } .pxc-info span { font-size: 12.5px; color: color-mix(in srgb, var(--accent) 45%, var(--muted)); }
.pxc-modal .pxc-list { margin: 2px 0 0; gap: 8px; }
.pxc-modal .pxc-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 10px; font-size: 15px; }
.pxc-modal .pxc-opt small { font-size: 12.5px; color: var(--muted); }
.pxc-radio { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.pxc-opt.on .pxc-radio { border-color: var(--accent); }
.pxc-opt.on .pxc-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pxc-modal .pxc-acts { margin-top: 6px; align-items: center; gap: 14px; }
.pxc-cancel { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.pxc-cancel:hover { color: var(--fg); }

/* (04/11/2026) Connexion d'un compte : deux choix (United States / United Kingdom), un clic lance la connexion */
.pxc-modal .pxc-card { max-width: 460px; }
.pxc-lead { margin: -4px 0 2px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pxc-list { display: grid; gap: 10px; }
button.pxc-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, transparent); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; }
button.pxc-opt:hover:not(:disabled) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
button.pxc-opt:active:not(:disabled) { transform: scale(.985); }
button.pxc-opt:disabled { cursor: default; }
button.pxc-opt:disabled:not(.busy):not(.on) { opacity: .5; }
button.pxc-opt.busy, button.pxc-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pxc-opt .pxc-flag { width: 34px; height: 22px; border-radius: 4px; overflow: hidden; padding: 0; background: none; box-shadow: 0 0 0 1px rgba(127, 127, 127, .25); display: block; }
.pxc-opt .pxc-flag svg { width: 100%; height: 100%; display: block; }
.pxc-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pxc-name b { font-size: 15px; font-weight: 600; }
.pxc-name small { font-size: 12.5px; color: var(--accent); }
.pxc-go { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pxc-opt:hover:not(:disabled) .pxc-go, .pxc-opt.on .pxc-go { color: var(--accent); }
.pxc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: pxcSpin .7s linear infinite; }
@keyframes pxcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pxc-spin { animation-duration: 2s; } }
.pxc-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--danger, #ef4444); background: color-mix(in srgb, var(--danger, #ef4444) 10%, transparent); }
.pxc-modal .pxc-acts { justify-content: flex-end; margin-top: 4px; }
.pxc-modal button.pxc-opt, #ow-pxpick button.pxc-opt { display: grid; } .pxc-go { justify-self: end; } button.pxc-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } button.pxc-opt:focus:not(:focus-visible) { outline: none; }

/* (04/11/2026) Téléphone : barre du bas à 5 entrées, menu complet en panneau, clavier qui ne cache pas la saisie */
@media (max-width: 760px) {
  .bottomnav { grid-auto-flow: unset !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; overflow: visible !important; }
  .bottomnav button { min-height: 52px; font-size: 11px !important; }
  .bottomnav button svg { width: 22px; height: 22px; }
  body.side-open .side { display: flex !important; position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(86vw, 320px) !important; max-width: 320px; min-width: 260px; height: 100dvh; overflow-y: auto; box-shadow: 0 0 40px rgba(0, 0, 0, .35); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: sideIn .2s ease-out; }
  body.side-open .side .nav button { min-height: 44px !important; }
  body.side-open #side-collapse { display: none; }
  .side-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .5); }
  body.kb-open .bottomnav { display: none !important; }
  body.kb-open .app { grid-template-rows: minmax(0, 1fr) !important; }
  .app { height: var(--vvh, 100dvh); }
}
@keyframes sideIn { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { body.side-open .side { animation: none; } }

/* (04/11/2026) bandeau « Installe Velora sur ton téléphone » (PWA) */
.pwa-install { position: fixed; left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pwa-install img { border-radius: 9px; flex: none; }
.pwa-install div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pwa-install span { color: var(--muted); font-size: 12px; line-height: 1.4; }
body.kb-open .pwa-install, body.side-open .pwa-install { display: none; }

/* (04/11/2026) Téléphone : idées de l'IA et envois relayés par l'ordinateur, dans la conversation */
.mc-ai { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.mc-ai-go { align-self: flex-start; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mc-ai-list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2px; }
.mc-ai-list:empty { display: none; }
.mc-ai-card { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; text-align: left; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.mc-ai-card b { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.mc-ai-card span { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mc-ai-err { margin: 0; font-size: 13px; color: var(--danger, #ef4444); }
.mb .mb-x { font-size: 12.5px; opacity: .8; }
.mb-q.wait { opacity: .75; } .mb-q.ko small b { color: var(--danger, #ef4444); } .mb-q.ok small b { color: var(--ok, #22c55e); }

/* (04/11/2026) Téléphone et tablette tactile : tout se touche au doigt (36 px au moins, 40 pour les champs), aucune
   légende sous 11,5 px, et des champs en 16 px : sous cette taille, Safari sur iPhone zoome dès qu'on touche un champ. */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1366px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { font-size: 16px !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select { min-height: 40px !important; }
  textarea { min-height: 42px !important; }
  button, [role=button], a.btn-main, a.btn-ghost { min-height: 36px; }
  .btn-main.sm, .btn-ghost.sm { height: auto !important; min-height: 36px; }
  .icon-btn.sm { width: 36px; height: 36px; }
  .linkish, button.tm-x, button.tr-chev { min-width: 36px; display: inline-flex; align-items: center; justify-content: center; }
  :is(.app, .modal, .modal-bg, .co-modal, .fp-modal) :is(small, th, dt, .fp-sec h4, .fp-note header, .cal-wd, .sm-h, .ls-h, .ps-c, .tr-src, .evo-avg em, .cal-n em, .best > b, .set-tabs-sep) { font-size: max(11.5px, .8em) !important; }
  button { min-width: 36px; }
  input[type=range] { min-height: 32px; }
}

/* (04/11/2026) Téléphone : le coffre de la créatrice (recopié par l'ordinateur), médias choisis, prix et aperçus */
.mc-vault { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); max-height: min(52vh, calc(var(--vvh, 100dvh) * .52)); overflow-y: auto; overscroll-behavior: contain; }
.mc-vh { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .mc-vh b { font-size: 14px; }
.mc-vs { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; } .mc-vs.small { font-size: 12px; } .mc-vs.wait { color: var(--fg-2); } .mc-vs.ko { color: var(--danger, #ef4444); }
.mc-vchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.mc-vchip { flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; } .mc-vchip.on { border-color: var(--accent); color: var(--fg); background: color-mix(in srgb, var(--accent) 14%, transparent); } .mc-vchip small { color: var(--muted); }
.mc-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.mc-vt { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--surface-3, rgba(127, 127, 127, .15)); cursor: pointer; display: grid; place-items: center; }
.mc-vt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-vt i { font-style: normal; font-size: 20px; color: var(--muted); } .mc-vt img + i { position: absolute; left: 6px; top: 4px; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.mc-vt em { position: absolute; right: 5px; bottom: 4px; font-style: normal; font-size: 11.5px; color: #fff; background: rgba(0, 0, 0, .55); padding: 0 5px; border-radius: 6px; }
.mc-vck { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font-size: 13px; font-weight: 700; }
.mc-vt.on { border-color: var(--accent); } .mc-vt.on .mc-vck { display: grid; }
.mc-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.mc-pk-list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 2px 0; }
.mc-pk { position: relative; flex: none; width: 76px; display: flex; flex-direction: column; gap: 4px; }
.mc-pk img, .mc-pk > i { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; font-style: normal; background: var(--surface-3, rgba(127, 127, 127, .15)); color: var(--muted); }
.mc-pkx { position: absolute; right: -4px; top: -4px; width: 28px; height: 28px; min-width: 0 !important; min-height: 0 !important; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.mc-pkpv { border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); border-radius: 8px; font: inherit; font-size: 11.5px; padding: 3px 4px; cursor: pointer; } .mc-pkpv.on { border-color: var(--ok, #22c55e); color: var(--ok, #22c55e); }
.mc-price { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); } .mc-price input { width: 110px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; }

/* (05/11/2026) Messagerie sur téléphone et navigateur (#ib-detail.rl) : la même que dans l'appli d'ordinateur
   (bulles violettes, carte d'écriture avec + coffre, scripts, $ prix, ✦ IA et le bouton d'envoi) */
#ib-detail.rl { --rl-me: #676766; --rl-fan: #17171b; }
[data-theme="light"] #ib-detail.rl { --rl-me: #585857; --rl-fan: #f1f1f4; }
#ib-detail.rl .mt-msgs { gap: 8px; padding: 14px 14px 10px; }
#ib-detail.rl .mt-note { font-size: 12.5px; line-height: 1.5; }
#ib-detail.rl .mb { max-width: min(560px, 82%); }
#ib-detail.rl .mb p { padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
#ib-detail.rl .mb.mb-fan p { background: var(--rl-fan); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--fg); }
#ib-detail.rl .mb.mb-me p { background: var(--rl-me); color: #fff; border-bottom-right-radius: 6px; }
#ib-detail.rl .mb p.mb-x { display: inline-flex; align-self: inherit; width: auto; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; opacity: 1; }
#ib-detail.rl .mb.mb-me p.mb-x { background: color-mix(in srgb, var(--rl-me) 22%, transparent); color: var(--fg); border: 1px solid color-mix(in srgb, var(--rl-me) 45%, transparent); }
#ib-detail.rl .mb small { font-size: 11.5px; }
#ib-detail.rl .mt-head { padding: 10px 12px; }
#ib-detail.rl .mt-ctl select[data-ib-set="st"] { border-radius: 999px; padding: 0 30px 0 12px; font-weight: 600; background-color: color-mix(in srgb, var(--warn, #f59e0b) 14%, transparent); border-color: color-mix(in srgb, var(--warn, #f59e0b) 35%, transparent); color: var(--fg); }
#ib-detail.rl .mt-comp.rl-comp { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
#ib-detail.rl .mc-emo { padding-bottom: 8px; }
#ib-detail.rl .mc-emo button { width: 34px; height: 34px; min-width: 0 !important; min-height: 0 !important; font-size: 20px; }
.rl-box.mc-box { border-radius: 16px; background: var(--bg); padding: 2px 6px 6px; transition: border-color .15s, box-shadow .15s; }
.rl-box.mc-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.rl-box textarea#ib-draft { display: block; width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; resize: none; min-height: 44px !important; max-height: 30vh; padding: 10px 6px 6px; color: var(--fg); font: inherit; }
.rl-box .rl-bar.mc-bar { border-top: 0; padding: 0; gap: 2px; }
.rl-box .rl-bar .v-ibtn { width: 40px !important; height: 40px !important; border: 0; background: transparent; border-radius: 11px; color: var(--muted); }
.rl-box .rl-bar .v-ibtn:hover, .rl-box .rl-bar .v-ibtn[aria-expanded="true"] { background: var(--surface-2); color: var(--fg); }
.rl-box .rl-bar .v-ibtn svg { width: 21px; height: 21px; }
.rl-box .rl-bar .rl-ai { color: var(--accent); } .rl-box .rl-bar .rl-ai.busy svg { animation: rlSpin 1s linear infinite; }
.rl-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 13px; background: var(--accent); color: var(--on-accent, #fff); display: grid; place-items: center; cursor: pointer; transition: filter .15s, transform .1s; }
.rl-send:hover { filter: brightness(1.08); } .rl-send:active { transform: scale(.96); } .rl-send:disabled { opacity: .5; }
.rl-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#ib-detail.rl .mc-hint { margin: 6px 4px 0; font-size: 11.5px; color: var(--muted); }
#ib-detail.rl .mc-ai-list:empty { display: none; }
@keyframes rlSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rl-box .rl-bar .rl-ai.busy svg { animation: none; } }

/* (05/11/2026) Fiche du fan : onglet « ✦ IA » (résumé, analyse de la conversation à valider, idées de réponse) */
.fp-ai-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-ana { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.fp-ana label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.fp-ana label b { font-weight: 600; } .fp-ana label small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fp-ana .fp-st { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); } .fp-ana .fp-st.c { color: var(--ok, #22c55e); }
.fp-ana input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* =====================================================================
   (05/11/2026) Velora plus sobre et plus « logiciel » (demande : « plus professionnel, naturel et humain, pas un
   style généré par IA ») : un seul accent, plus calme ; icônes d'une couleur (fini les pastilles de couleur par
   rubrique) ; en-têtes de page sans tuile colorée ; chiffres en Inter ; badges de plateforme discrets.
   ===================================================================== */
:root:not([data-accent]):not([data-theme="light"]), :root[data-accent="rose"]:not([data-theme="light"]), :root.studio-ui.studio-ui:not([data-theme="light"]) {
  --accent: #9d9d9c; --accent-btn: #6d6d6c; --accent-2: #797978; --accent-soft: rgba(121, 121, 120, .14);
  --grad: linear-gradient(var(--accent-btn), var(--accent-btn));
}
:root:not([data-accent])[data-theme="light"], :root[data-accent="rose"][data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] {
  --accent: #595958; --accent-btn: #595958; --accent-2: #6a6a69; --accent-soft: rgba(89, 89, 88, .08);
  --grad: linear-gradient(var(--accent-btn), var(--accent-btn));
}
:root:not([data-theme="light"]), :root.studio-ui.studio-ui:not([data-theme="light"]) { --sel-bg: #181817; --chip-bg: #1c1c1b; --chip-fg: #c5c5c4; --tile-bg: #15121e; --tile-fg: #b0b0af; }
:root[data-theme="light"], :root.studio-ui.studio-ui[data-theme="light"] { --sel-bg: #f1edff; --chip-bg: #f1edff; --chip-fg: #595958; --tile-bg: #f7f5ff; --tile-fg: #595958; }

/* menu de gauche : icônes d'une couleur, groupes sans pastille, la page ouverte en accent */
.nav .nav-label[data-group]::before, .side .nav .nav-label[data-group]::before { display: none !important; }
.nav .nav-label { color: var(--muted) !important; letter-spacing: .06em !important; }
.side .nav button[data-grp] > svg:first-child, .side .nav button > svg:first-child { padding: 0 !important; background: none !important; color: var(--muted) !important; stroke: currentColor !important; width: 18px; height: 18px; }
.side .nav button[data-grp]:hover > svg:first-child { color: var(--fg) !important; }
.side .nav button[aria-current="page"] > svg:first-child, .side .nav button[data-grp][aria-current="page"] > svg:first-child { color: var(--accent) !important; background: none !important; stroke: currentColor !important; }

/* en-tête de page : titre et une ligne de description, sans tuile colorée ni pastille violette */
.vb-ico, .vb-ico[data-grp] { display: none !important; }
.viewbar > div:first-child { grid-template-columns: minmax(0, 1fr) !important; }
.viewbar > div:first-child > :not(.vb-ico) { grid-column: 1 !important; }
.viewbar h1 { font-size: 21px !important; font-weight: 650 !important; letter-spacing: -.02em !important; }
.viewbar > div:first-child > p { font-size: 13.5px !important; color: var(--muted) !important; max-width: 70ch; }
.vb-chip { background: transparent !important; color: var(--muted) !important; border: 1px solid var(--line) !important; font-weight: 550 !important; }
.vb-chip::before { display: none !important; }

/* Paramètres : même règle que le menu */
.set-tabs [data-set-tab] > svg { padding: 0 !important; background: none !important; color: var(--muted) !important; stroke: currentColor !important; width: 18px; height: 18px; }
.set-tabs [data-set-tab][aria-selected="true"] > svg { color: var(--accent) !important; background: none !important; }

/* chiffres : Inter à chiffres alignés (plus de police « machine à écrire ») */
.dbx-k b, .kpi b, .db-kpi b, .ls-mk b, .lb2-g b, .crx-rev b, .mi-stats b, .mi-w { font-family: var(--font-body) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em !important; font-weight: 650 !important; }

/* badges de plateforme : le logo suffit (le nom reste lu par les lecteurs d'écran) */
.pf-badge { font-size: 0 !important; gap: 0 !important; padding: 3px !important; min-width: 0; }
.pf-badge::before { margin: 0 !important; }

/* boutons pleins : couleur unie, sans halo */
.btn-main, .btn-main.sm { box-shadow: none !important; background-image: none !important; }

/* (05/11/2026) Onglets : jamais écrasés (le texte débordait sur l'onglet voisin quand la place manquait, ex. Équipe sur
   téléphone) ; la rangée défile à l'horizontale si besoin */
[role="tablist"], .vtabs, .v-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
[role="tablist"]::-webkit-scrollbar, .vtabs::-webkit-scrollbar, .v-tabs::-webkit-scrollbar { display: none; }
[role="tablist"] > button, [role="tablist"] > a, .vtabs > button, .v-tabs > button { flex: 0 0 auto; white-space: nowrap; }
/* (05/11/2026) Téléphone : un tableau trop large défile dans sa carte au lieu d'écraser ses colonnes */
@media (max-width: 760px) {
  .view table:not(.no-scroll) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .view table:not(.no-scroll) th { white-space: nowrap; }
}
/* (05/11/2026) Chiffres clés sur téléphone : deux par ligne (avant : une colonne qui prenait tout l'écran), libellés plus calmes */
@media (max-width: 640px) {
  .dbx-kpis, .dbx-kpis.sub { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dbx-k { padding: 14px !important; border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .dbx-k:nth-child(2n) { border-right: 0 !important; }
  .dbx-k b { font-size: 21px !important; }
}
.dbx-k small { letter-spacing: .05em !important; }

/* (05/11/2026) les liens-boutons (« Aujourd'hui » du calendrier…) ne rétrécissent jamais sous leur texte */
.linkish { flex-shrink: 0; white-space: nowrap; }

/* (05/11/2026) pastille « aujourd'hui » du calendrier : texte blanc sur l'accent foncé (contraste suffisant) */
.cal-n em { background: var(--accent-btn) !important; color: var(--on-accent, #fff) !important; }

/* (05/11/2026) Notifications dans l'appli : une pile (public/app.js toast), en bas au centre sur ordinateur, en haut sous
   l'encoche sur téléphone (jamais sur la zone d'écriture, le clavier ni la barre du bas) */
.toasts { position: fixed; z-index: 140; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(92vw, 30rem); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toasts .toast { position: static !important; left: auto !important; bottom: auto !important; max-width: none !important; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px !important; opacity: 0; transform: translateY(8px) !important; transition: opacity .2s ease, transform .2s ease; pointer-events: auto; }
.toasts .toast.in { opacity: 1; transform: none !important; }
.toasts .toast .ti { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.toasts .toast.ok .ti { background: var(--ok, #22c55e); } .toasts .toast.bad .ti { background: var(--danger, #ef4444); }
.toasts .toast.bad { background: var(--surface-2) !important; color: var(--fg) !important; border-color: color-mix(in srgb, var(--danger, #ef4444) 55%, var(--line-2)) !important; }
.toasts .toast .tt { flex: 1; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.toasts .toast .tn { flex: none; font-size: 12px; color: var(--muted); } .toasts .toast .tn:empty { display: none; }
.toasts .toast .tx { flex: none; width: 30px; height: 30px; min-width: 0 !important; min-height: 0 !important; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; position: relative; }
.toasts .toast .tx::before { content: "×"; font-size: 18px; line-height: 30px; }
.toasts .toast .tx:hover { background: var(--surface-3, rgba(127, 127, 127, .15)); color: var(--fg); }
@media (max-width: 760px) {
  .toasts { top: calc(env(safe-area-inset-top, 0px) + 10px); bottom: auto; width: calc(100vw - 20px); }
  .toasts .toast { transform: translateY(-8px) !important; }
}
@media (prefers-reduced-motion: reduce) { .toasts .toast { transition: none; } }

/* (05/11/2026) Appli PC : le titre de la page est dans la barre de l'appli ; une règle « display: grid !important » le
   réaffichait en double à droite sur les pages qui ont des boutons dans leur en-tête (ex. Liens de suivi) */
.studio-nav .viewbar > div:first-child:has(> h1) { display: none !important; }

/* (05/11/2026) Téléphone : la fiche du fan par-dessus la conversation, en pleine largeur (à 92 %, le titre avec sa date et
   les lignes « libellé · valeur » étaient coupés à droite) ; les lignes passent à la ligne au lieu d'être coupées */
@media (max-width: 900px) {
  .msg-fan { overflow-y: auto; overflow-x: hidden; }
  .msg-fan .fp-sec h4 { flex-wrap: wrap; row-gap: 4px; }
  .msg-fan .fp-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
  .msg-fan .fp-kv b { min-width: 0; overflow-wrap: anywhere; text-align: right; }
  .msg-fan .fp-tabs { overflow-x: auto; }
}
/* (05/11/2026) Téléphone : textes coupés par leur cadre (contrôle « texte coupé ») — tableaux défilants, actions des posts
   à la ligne, et la case du jour du calendrier (trop petite pour « aujourd'hui » : la case reste mise en avant) */
@media (max-width: 760px) {
  .ct-table { overflow-x: auto !important; }
  .ps-r, .ps-r.mine { grid-template-columns: 44px minmax(0, 1fr) !important; }
  .ps-r > .ps-acts2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .cal-n em { display: none !important; }
}
/* (05/11/2026) les mêmes corrections de textes coupés pour la tablette et le téléphone à l'horizontale */
@media (max-width: 1100px) { .cal-n em { display: none !important; } }
@media (max-width: 900px) {
  .ps-r, .ps-r.mine { grid-template-columns: 44px minmax(0, 1fr) !important; }
  .ps-r > .ps-acts2 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .cal-head { flex-wrap: wrap; row-gap: 6px; }
  .ls-table { overflow-x: auto; }
}

/* =====================================================================
   (05/11/2026) iPhone : ni zoom au toucher d'un champ, ni page qui saute quand le clavier s'ouvre.
   1. Safari zoome sur tout champ dont la police fait moins de 16 px : la règle du 04/11 perdait contre « .view textarea /
      .view select { 13px !important } » (plus précise) ; ici la règle l'emporte partout (html body + :is), zones éditables
      comprises. Le zoom au pincer reste permis (rien dans la balise viewport ne l'interdit).
   2. Le clavier : l'appli est posée sur la zone visible (--vvh, --vvt : public/app.js) et la page ne défile plus (seules
      les zones de l'appli défilent) ; fenêtres et notifications suivent la même zone. Écran de connexion : inchangé.
   ===================================================================== */
@media (max-width: 760px), (pointer: coarse) {
  html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea, [contenteditable=""], [contenteditable="true"]),
  html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea, [contenteditable=""], [contenteditable="true"]):focus { font-size: 16px !important; }
}
@media (pointer: coarse), (max-width: 760px) {
  html:has(#lock[hidden]), html:has(#lock[hidden]) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html:has(#lock[hidden]) .app { position: fixed !important; left: 0; right: 0; top: 0; height: var(--vvh, 100dvh) !important; transform: translate3d(0, var(--vvt, 0px), 0); }
  main.scroll, .mt-msgs, .msg-list, .side, .co-card, .co-modal, .mc-vault { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .co-modal.in { top: var(--vvt, 0px) !important; bottom: auto !important; height: var(--vvh, 100dvh) !important; }
  .toasts { top: calc(var(--vvt, 0px) + env(safe-area-inset-top, 0px) + 10px) !important; }
  body.kb-open .pwa-install { display: none; }
}
@supports not (height: 100dvh) { @media (pointer: coarse) { html:has(#lock[hidden]) .app { height: var(--vvh, 100vh) !important; } } }
/* barres du bas et du haut : les zones de sécurité de l'iPhone (encoche, barre d'accueil) */
@media (max-width: 760px) {
  .bottomnav { padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
  body.kb-open .bottomnav { padding-bottom: 0 !important; }
  body.kb-open #ib-detail.rl .mt-comp.rl-comp { padding-bottom: 8px; }
}
/* (05/11/2026) Fenêtres : centrées tant qu'elles tiennent, sinon elles partent du haut et défilent (centrées « place-items »,
   une fenêtre plus haute que la zone visible — clavier ouvert, petit écran — débordait AU-DESSUS, hors d'atteinte) */
.co-modal { align-items: start !important; justify-items: center; }
.co-modal > * { margin-block: auto; }
/* Clavier ouvert (téléphone) : comme une appli, tout pour la conversation et la saisie — l'en-tête de la page, le choix de
   la créatrice, la rangée d'emojis et la ligne d'aide s'effacent le temps de la saisie, et reviennent à la fermeture */
body.kb-open:not(.side-open) .ctx, body.kb-open .view:not([hidden]) > .viewbar, body.kb-open #ib-detail .mc-emo, body.kb-open #ib-detail .mc-hint, body.kb-open #ib-detail .mt-ctl { display: none !important; }
body.kb-open .ibx { margin: 0 !important; border-radius: 0; border-left: 0; border-right: 0; }
body.kb-open #ib-detail .mt-head { padding-top: 6px; padding-bottom: 6px; }
body.kb-open .app main.scroll, body.kb-open .app > main { padding-top: 0 !important; }
/* (05/11/2026) petits téléphones (360 px) : les onglets du Chatter IA tiennent dans l'écran (marges réduites, sinon défilent) */
@media (max-width: 420px) {
  .viewbar-tools { max-width: 100%; min-width: 0; }
  .sm-folder { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sm-folder button { padding: 0 9px; flex: none; }
}
/* (06/11/2026) Assistant IA de la zone de rédaction : outils sur une ligne (défilent au doigt sur téléphone), propositions
   en cartes au-dessus de la zone d'écriture, arrêt de l'IA et traduction du fan bien distincts ; indicateur « IA active » */
.mc-ai[hidden] { display: none !important; }
.mc-ai { padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mc-ai-tools { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mc-ai-tools > * { flex: none; }
.mc-ai-tools select { height: 30px; max-width: 190px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; }
.mc-ai-tools .btn-main.sm, .mc-ai-tools .btn-ghost.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.mc-ai-tools .mc-ai-x { margin-left: auto; width: 30px; height: 30px; }
.mc-ai-list { flex-wrap: nowrap; }
.mc-ai-list > p { flex: 1 0 100%; }
.mc-ai-note { margin: 0; font-size: 11.5px; color: var(--muted); align-self: center; }
.mc-ai-list .mc-ai-note { flex: 0 0 auto; max-width: 180px; }
.mc-ai-stop { margin: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; line-height: 1.45; }
.mc-ai-tr { flex: 1 0 100%; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.mc-ai-tr b { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.mc-ai-tr p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.rl-ai.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mc-it-row { display: flex; align-items: stretch; gap: 2px; }
.mc-it-row .mc-it { flex: 1; min-width: 0; }
.mc-it-ai { flex: none; width: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.mc-it-ai:hover { background: var(--surface-2); color: var(--accent); }
.mc-it-ai svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mt-ai { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-size: 12px; }
.mt-ai span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); vertical-align: 1px; }
.mt-ai.on span::before { background: var(--ok, #22c55e); }
.mt-ai.ko span::before { background: var(--warn, #f59e0b); }
.mt-ai .linkish { font-size: 12px; min-height: 0; }
.mc-it-mode { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); margin-left: 4px; }
/* =====================================================================
   (06/11/2026) Configuration IA (public/iaconfig.js) : listes sobres, sous-onglets, éditeur de persona (sections à gauche,
   anneau de remplissage), modes réordonnables. Téléphone : sections en onglets horizontaux, lignes empilées.
   ===================================================================== */
.iac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iac-head h2, .iac-sec h2 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.iac-head p { margin: 0; max-width: 680px; }
.iac-q { height: 34px; min-width: 220px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.iac-ro { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
.iac-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.iac-kpi { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.iac-kpi:hover { border-color: var(--line-2); }
.iac-kpi small { font-size: 12px; color: var(--muted); } .iac-kpi b { font-size: 22px; font-weight: 650; } .iac-kpi span { font-size: 12.5px; color: var(--muted); }
.iac-sec { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iac-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.iac-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 1.45; }
.iac-list li b { font-weight: 600; } .iac-list li span { color: var(--muted); }
.iac-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.iac-row, .iac-mdl, .iac-mode-row, .iac-scr { border-bottom: 1px solid var(--line); }
.iac-rows > :last-child, .iac-modes > :last-child { border-bottom: 0; }
.iac-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(200px, 1.3fr) auto; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-left: 0; border-right: 0; border-top: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.iac-row.static { cursor: default; }
.iac-row:not(.static):hover, .iac-row.cur { background: var(--surface-2); }
.iac-who { display: flex; flex-direction: column; min-width: 0; border: 0; background: none; padding: 0; color: var(--fg); font: inherit; text-align: left; }
.iac-who b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .iac-who small { font-size: 12px; color: var(--muted); }
.iac-st { display: flex; align-items: center; gap: 10px; min-width: 0; }
.iac-st > span { display: flex; flex-direction: column; min-width: 0; } .iac-st b { font-size: 13px; font-weight: 600; } .iac-st small { font-size: 12px; color: var(--muted); }
.iac-ring { flex: none; } .iac-ring circle { fill: none; stroke: var(--line); stroke-width: 3; } .iac-ring circle.v { stroke: var(--muted); stroke-linecap: round; }
.iac-ring.s-almost circle.v { stroke: var(--warn, #f59e0b); } .iac-ring.s-ready circle.v { stroke: var(--accent); } .iac-ring.s-complete circle.v { stroke: var(--ok, #22c55e); }
.iac-ring text { fill: var(--fg); font-size: 10px; font-weight: 650; }
.iac-mode { justify-self: end; font-size: 12px; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.iac-mode.m-hybrid, .iac-mode.m-auto { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.iac-edhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iac-edhead b { font-size: 15px; } .iac-edhead .grow { flex: 1; }
.iac-ed { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.iac-ednav { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.iac-ednav button { text-align: left; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.iac-ednav button[aria-current="true"] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.iac-score { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.iac-score > span { display: flex; flex-direction: column; } .iac-score b { font-size: 13px; } .iac-score small { font-size: 11.5px; color: var(--muted); }
.iac-edbody { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.iac-edbody h3 { margin: 4px 0 -6px; font-size: 13px; font-weight: 600; }
.iac-f { display: flex; flex-direction: column; gap: 5px; }
.iac-f > span { font-size: 13px; font-weight: 600; } .iac-f > small { font-size: 12px; color: var(--muted); margin-top: -3px; }
.iac-f input, .iac-f textarea, .iac-f select { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; resize: vertical; }
.iac-tpls { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.iac-tpl, .iac-cap { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; position: relative; }
.iac-tpl.on, .iac-cap.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.iac-tpl b, .iac-cap b { font-size: 13px; font-weight: 600; } .iac-tpl small, .iac-cap small { font-size: 12px; color: var(--muted); }
.iac-tpl span { margin-top: 6px; padding: 7px 9px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; }
.iac-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.iac-cap i { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 15px; color: var(--muted); }
.iac-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); align-self: flex-start; }
.iac-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.iac-seg button[aria-checked="true"] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.iac-exs { display: flex; flex-direction: column; gap: 6px; }
.iac-ex { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.iac-ex p { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; }
.iac-exadd { display: flex; gap: 8px; align-items: flex-end; }
.iac-exadd textarea { flex: 1; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; resize: vertical; }
.iac-modes { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iac-mode-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.iac-mode-row.off .iac-mtxt { opacity: .55; }
.iac-ord { display: flex; flex-direction: column; } .iac-ord .v-ibtn { width: 26px; height: 22px; }
.iac-mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iac-mtxt b { font-size: 13.5px; font-weight: 600; } .iac-mtxt small { font-size: 12.5px; color: var(--muted); }
.iac-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.iac-tags i { font-style: normal; font-size: 11.5px; color: var(--muted); padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iac-tags i.dim { opacity: .6; }
.iac-mform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); }
.iac-mform .iac-f:nth-child(4), .iac-mform .iac-f:nth-child(5) { grid-column: 1 / -1; }
.iac-mbtns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.iac-sw { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.iac-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.iac-sw span[aria-hidden] { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.iac-sw span[aria-hidden]::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .15s; }
.iac-sw input:checked + span { background: var(--accent); } .iac-sw input:checked + span::after { transform: translateX(14px); background: #fff; }
.iac-sw input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.iac-mdl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.iac-mdl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .iac-mdl b { font-size: 13.5px; } .iac-mdl small { font-size: 12.5px; color: var(--muted); }
.iac-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iac-filters select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background-color: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.iac-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.iac-scr-h { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.iac-scr-h .iac-who { flex: 1; cursor: pointer; }
.iac-scr-h select { flex: none; max-width: 210px; height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; }
.iac-prev { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.iac-prev[hidden] { display: none; }
.iac-prev p { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.iac-prev p b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.iac-table { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--surface); }
.iac-tr { display: grid; grid-template-columns: 110px 130px 140px minmax(240px, 1fr) 110px; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; min-width: 760px; }
.iac-tr:last-child { border-bottom: 0; } .iac-tr.th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.iac-tr .iac-dt { color: var(--fg); overflow-wrap: anywhere; } .iac-tr > span:first-child, .iac-tr > span:last-child { color: var(--muted); }
.iac-k { font-style: normal; font-size: 11.5px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.k-handoff .iac-k { border-color: var(--warn, #f59e0b); } .k-error .iac-k { border-color: var(--danger, #ef4444); }
@media (max-width: 900px) {
  .iac-ed { grid-template-columns: minmax(0, 1fr); }
  .iac-ednav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .iac-ednav button { flex: none; }
  .iac-score { display: none; }
  .iac-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .iac-row .iac-st { grid-column: 2 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .iac-kpis { grid-template-columns: minmax(0, 1fr); }
  .iac-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .iac-q { min-width: 0; width: 100%; }
  .iac-caps { grid-template-columns: minmax(0, 1fr); }
  .iac-mform { grid-template-columns: minmax(0, 1fr); }
  .iac-edbody { padding: 14px; }
  .iac-mode-row { flex-wrap: wrap; }
  .iac-mode-row .iac-mtxt { flex-basis: calc(100% - 40px); }
  .iac-scr-h { flex-wrap: wrap; } .iac-scr-h select { max-width: 100%; flex: 1 1 100%; }
  .iac-edhead .btn-main, .iac-edhead .btn-ghost { min-height: 36px; }
}
.iac-sw .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .iac-edhead .grow { flex: 1 0 100%; height: 0; } .iac-edhead [data-iac-cancel] { margin-left: auto; } }
/* =====================================================================
   (06/11/2026) Menu épuré façon OnlyMonster : une entrée par section ; les rubriques de la section en onglets soulignés en
   haut de la page (comme « Setup · Overview »). Le logo de Velora IA garde ses couleurs dans le menu.
   ===================================================================== */
.nav .nav-sub { display: none !important; }
.nav .nav-sec .nav-dot { margin-left: auto; }
.nav [data-sec-btn="ia"] svg, .nav [data-view] svg use[href="#i-vai"] { color: inherit; }
.nav [data-sec-btn="ia"] svg { stroke: none; }
.secbar { flex: none; display: flex; align-items: stretch; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.secbar[hidden] { display: none; }
.secbar::-webkit-scrollbar { display: none; }
.secbar button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .12s; }
.secbar button:hover { color: var(--fg); }
.secbar button[aria-current="page"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
.secbar button.locked { opacity: .6; }
.secbar button .i { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .secbar { padding: 0 8px; }
  .secbar button { height: 44px; padding: 0 10px; font-size: 14px; }
}
/* (06/11/2026) les onglets internes d'Équipe et de Scripts sont dans la barre de section */
#ct-tabs, #lb-mode { display: none !important; }
/* (06/11/2026) Velora IA façon Mimic (OnlyMonster) : logo et titre centrés, créatrices en cartes (remplissage, interrupteur),
   « Activer pour toutes » à droite des onglets, l'encart des conversations de l'IA en bas à gauche. */
#view-iaconfig { position: relative; }
#iac-tabs { align-items: center; }
.iac-all { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding-left: 16px; font-size: 12.5px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.iac-all[hidden] { display: none; }
.iac-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px 10px; }
.iac-logo { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.iac-logo svg { width: 46px; height: 46px; }
.iac-hero h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.iac-hero p { margin: 0; max-width: 520px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.iac-acc { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.iac-acch { display: flex; align-items: center; gap: 8px; }
.iac-acch b { font-size: 14px; font-weight: 600; }
.iac-acch .grow { flex: 1; }
.iac-acch .iac-q { min-width: 0; width: 200px; height: 32px; }
.iac-n { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.iac-cards { display: flex; flex-direction: column; gap: 8px; }
.iac-card { grid-template-columns: auto minmax(110px, 1fr) minmax(190px, 1.3fr) auto; border: 1px solid var(--line) !important; border-radius: 12px; background: var(--surface); }
.iac-card:hover, .iac-card.cur { background: var(--surface-2); }
.iac-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.iac-swc { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.iac-swc small { font-size: 11px; color: var(--muted); }
.iac-live { position: absolute; left: 20px; bottom: 20px; z-index: 5; width: 330px; max-width: calc(100% - 40px); border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 36px rgba(0, 0, 0, .35); overflow: hidden; }
.iac-live[hidden] { display: none; }
.iac-live header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line); }
.iac-live header svg { width: 18px; height: 18px; }
.iac-lv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); }
.iac-lv:last-child { border-bottom: 0; }
.iac-lv .v-ibtn { width: 30px; height: 30px; }
.iac-lst { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 600; white-space: nowrap; }
.iac-lst small { font-size: 11px; font-weight: 400; color: var(--muted); }
.iac-lst.ok { color: var(--ok, #22c55e); } .iac-lst.ko { color: var(--warn, #f59e0b); } .iac-lst.on { color: var(--accent); }
@media (max-width: 900px) { .iac-card .iac-st { grid-column: 2 / -1; grid-row: 2; } .iac-card .iac-swc { grid-row: 1; grid-column: 3; } }
@media (max-width: 760px) {
  .iac-all span:first-child { display: none; }
  .iac-hero { padding-top: 14px; } .iac-hero h2 { font-size: 19px; }
  .iac-acch .iac-q { width: 140px; }
  .iac-live { position: static; width: auto; max-width: none; margin: 0 14px 14px; box-shadow: none; }
}
/* (06/11/2026) une barre de section en haut : le titre de la page (le même que l'onglet ouvert) ne se répète pas */
.view:has(> .secbar:not([hidden])) > .viewbar > div:first-child:has(> h1) { display: none !important; }
.view:has(> .secbar:not([hidden])) > .viewbar:not(:has(> .viewbar-tools > :not([hidden]))) { display: none !important; }
.iac-live { position: static; width: auto; max-width: none; margin-top: 6px; box-shadow: none; }
.iac-swc { width: 96px; } .iac-swc small { white-space: nowrap; }
/* =====================================================================
   (06/11/2026) Mise en page façon OnlyMonster, dans chaque section :
   - une seule rangée d'onglets soulignés (la section) ; les onglets internes d'une page deviennent un sélecteur compact ;
   - les formulaires de création repliés derrière un bouton « + … » (la liste d'abord) ;
   - les longues explications repliées dans « En savoir plus » ;
   - l'avertissement « cette page concerne toutes les créatrices » sur une ligne discrète ;
   - l'invitation à laisser un avis en bas à droite, compacte, sans couvrir la page.
   ===================================================================== */
.view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) {
  align-self: flex-start; display: inline-flex; gap: 2px; width: auto; max-width: calc(100% - 56px); margin: 16px 28px 0; padding: 3px; min-height: 0;
  border: 1px solid var(--line) !important; border-radius: 10px; background: var(--surface) !important; overflow-x: auto;
}
.view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) > button {
  height: 30px !important; padding: 0 14px !important; border: 0 !important; border-radius: 7px !important; margin: 0 !important;
  background: none !important; color: var(--muted) !important; font-size: 13px !important; font-weight: 500 !important; box-shadow: none !important;
}
.view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) > button[aria-selected="true"] { background: var(--line) !important; color: var(--fg) !important; font-weight: 600 !important; }
.view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) > button::after { display: none !important; }
.view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) > :not(button) { margin-left: 12px; }
@media (max-width: 760px) { .view:has(> .secbar:not([hidden])) > :is(.vtabs, .v-tabs) { margin: 12px 12px 0; max-width: calc(100% - 24px); } }
/* formulaires de création repliés */
.card.fold-card > .fold-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.fold-card > .fold-head > :is(h2, h3) { margin: 0 !important; }
.card.fold-card:not(.open) > :not(.fold-head) { display: none !important; }
.card.fold-card:not(.open) { padding-top: 14px !important; padding-bottom: 14px !important; }
.card.fold-card.open > .fold-head { margin-bottom: 14px; }
/* « En savoir plus » */
.note-fold { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.note-fold > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; color: var(--muted); }
.note-fold > summary::-webkit-details-marker { display: none; }
.note-fold > summary::before { content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 700; font-style: normal; }
.note-fold > summary:hover { color: var(--fg); }
.note-fold > p { margin: 8px 0 0 !important; max-width: 820px; line-height: 1.5; }
/* l'avertissement de la créatrice choisie, sur une ligne */
.ctx-agency { padding: 0 !important; border: 0 !important; background: none !important; margin: 0 0 6px !important; font-size: 12.5px !important; color: var(--muted) !important; gap: 8px !important; }
.ctx-agency .i { width: 14px; height: 14px; }
.ctx-agency .linkish { font-size: 12.5px; margin-left: auto; }
/* l'invitation à laisser un avis : en bas à droite, compacte */
.rv-nudge { top: auto !important; bottom: 18px !important; right: 18px !important; width: min(300px, calc(100vw - 32px)) !important; padding: 14px 14px 12px !important; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.rv-nudge p { font-size: 12.5px; margin: 4px 0 10px; }
.rv-nudge-stars { font-size: 13px; }
@media (max-width: 760px) { .rv-nudge { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; } }
/* (06/11/2026) l'IA en direct dans la messagerie : « IA en préparation… » (ligne et conversation), « Envoyé par l'IA » */
.mr-ai { font-style: normal; color: var(--accent); }
.tg-byai { color: var(--accent); font-weight: 600; }
.tg-ai-busy { display: flex; align-items: center; gap: 4px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.tg-ai-busy i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: tgAiDot 1.2s infinite ease-in-out; }
.tg-ai-busy i:nth-child(2) { animation-delay: .15s; } .tg-ai-busy i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes tgAiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .tg-ai-busy i { animation: none; } }
/* =====================================================================
   (06/11/2026) Velora IA au niveau de finition de Mimic (OnlyMonster), à la façon de Velora : halo de couleur discret en
   haut de la page, logo en tuile, lignes sans bordure qui apparaissent l'une après l'autre, anneaux animés (couleur par
   étape : à configurer, presque prête, prête, complète), encart flottant des conversations avec un « Active… » qui
   scintille. Transitions courtes ; rien ne bouge pour qui a demandé moins d'animations.
   ===================================================================== */
#view-iaconfig > main.scroll {
  background:
    radial-gradient(520px 240px at 22% -40px, color-mix(in srgb, #676766 16%, transparent), transparent 72%),
    radial-gradient(520px 240px at 78% -40px, color-mix(in srgb, #757574 13%, transparent), transparent 72%),
    var(--bg);
  background-attachment: local;
}
[data-theme="light"] #view-iaconfig > main.scroll { background: radial-gradient(520px 240px at 22% -40px, rgba(103, 103, 102, .08), transparent 72%), radial-gradient(520px 240px at 78% -40px, rgba(117, 117, 116, .06), transparent 72%), var(--bg); }
.iac-hero { padding-top: 34px; }
.iac-logo { width: 84px; height: 84px; border-radius: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .04); transition: transform .25s ease; }
.iac-logo:hover { transform: translateY(-2px) scale(1.03); }
.iac-logo svg { width: 50px; height: 50px; }
.iac-hero h2 { font-size: 23px; }
.iac-cards { gap: 6px; }
.iac-card { border: 0 !important; border-radius: 10px !important; background: color-mix(in srgb, var(--surface) 88%, var(--bg)) !important; padding: 9px 14px !important; min-height: 52px;
  animation: iacRowIn .38s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 38ms); transition: background .15s ease, transform .15s ease; }
.iac-card:hover { background: var(--surface-2) !important; }
.iac-card:active { transform: scale(.995); }
@keyframes iacRowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.iac-av { background: hsl(var(--h, 260) 45% 32%) !important; color: #fff !important; border: 0 !important; }
.iac-pf { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.iac-pf.pf-telegram { color: #5eb0ef; } .iac-pf.pf-onlyfans { color: #4fb8f0; }
.iac-ring circle.v { animation: iacRing .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 38ms + .1s); }
@keyframes iacRing { from { stroke-dasharray: 0 999; } }
.iac-ring.s-almost circle.v { stroke: #ef4444; } .iac-ring.s-ready circle.v { stroke: #f59e0b; }
.iac-ring0 { flex: none; display: grid; place-items: center; border-radius: 50%; }
.iac-ring0 svg { width: 58%; height: 58%; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.iac-ring0.s-start { border: 1.5px solid var(--line-2); } .iac-ring0.s-start svg { stroke: var(--muted); }
.iac-ring0.s-complete { border: 2.5px solid #22c55e; } .iac-ring0.s-complete svg { stroke: #22c55e; }
.iac-sw span[aria-hidden] { transition: background .2s ease; } .iac-sw span[aria-hidden]::after { transition: transform .22s cubic-bezier(.3, .7, .2, 1.2); }
/* l'encart flottant des conversations de l'IA */
#view-iaconfig { position: relative; }
.iac-live.float { position: fixed; left: calc(var(--side, 224px) + 18px); bottom: 18px; width: 330px; margin: 0; z-index: 30; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); animation: iacLiveIn .35s cubic-bezier(.2, .7, .2, 1) both; }
.studio-nav .iac-live.float { left: 18px; }
@keyframes iacLiveIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.iac-live header .grow { flex: 1; }
.iac-livedot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: iacPulse 2s infinite; }
@keyframes iacPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.iac-lv { animation: iacRowIn .3s ease both; }
.iac-lst.ok small { color: #22c55e; }
.iac-shimmer { font-style: normal; font-weight: 650; background: linear-gradient(90deg, #7b7b7a, #888887, #7b7b7a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: iacShimmer 1.6s linear infinite; }
@keyframes iacShimmer { to { background-position: -200% 0; } }
.iac-acc:has(+ .iac-live.float), .iac-acc { padding-bottom: 8px; }
#view-iaconfig:has(.iac-live.float:not([hidden])) .iac-acc { padding-bottom: 210px; }
@media (max-width: 1100px) { .iac-live.float { position: static; width: auto; box-shadow: none; animation: none; } #view-iaconfig:has(.iac-live.float:not([hidden])) .iac-acc { padding-bottom: 8px; } }
/* transitions entre les pages et les onglets : un fondu court */
.view:not([hidden]) > main.scroll > .wrap, #iac-body > * { animation: vIn .22s ease-out both; }
@keyframes vIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.secbar button { transition: color .15s ease, border-color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .iac-card, .iac-ring circle.v, .iac-live.float, .iac-lv, .iac-shimmer, .iac-livedot, .view:not([hidden]) > main.scroll > .wrap, #iac-body > * { animation: none !important; }
}
/* (06/11/2026) Velora IA : le halo passe devant le fond imposé de l'appli ; l'encart flotte dans la page (en bas à gauche) */
#view-iaconfig > main.scroll { background:
    radial-gradient(560px 260px at 24% -60px, color-mix(in srgb, #676766 18%, transparent), transparent 72%),
    radial-gradient(560px 260px at 76% -60px, color-mix(in srgb, #757574 14%, transparent), transparent 72%),
    var(--bg) !important; background-attachment: local !important; }
.iac-live.float { position: absolute !important; left: 18px !important; bottom: 18px !important; }
.iac-card { grid-template-columns: auto minmax(150px, 1fr) minmax(250px, 1.5fr) 96px !important; }
.iac-card .iac-st small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .iac-live.float { position: static !important; margin: 0 16px 12px !important; } }
@media (max-width: 900px) { .iac-card { grid-template-columns: auto minmax(0, 1fr) 96px !important; } }
/* l'encart des conversations, repliable */
.iac-lvh { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; }
.iac-lvh > svg:first-child { width: 18px; height: 18px; }
.iac-lvh em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.iac-lvh .grow { flex: 1; }
.iac-chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s ease; }
.iac-live.min .iac-chev { transform: rotate(180deg); }
.iac-live.min .iac-lvh { border-bottom: 0; }
.iac-live.min .iac-lv { display: none; }
.iac-live.float.min { width: 260px; }
#view-iaconfig:has(.iac-live.float.min:not([hidden])) .iac-acc { padding-bottom: 70px; }
/* =====================================================================
   (06/11/2026) Panneau « Velora AI » (public/aipanel.js) : sobre, au-dessus de la zone de rédaction. Étapes réelles du
   serveur : ● en cours (petit anneau qui tourne), ✓ faite, ○ à venir ; couleur seulement pour l'issue (envoyé, à valider,
   à reprendre, échec). Pas de halo, pas d'animation permanente hors de l'étape en cours.
   ===================================================================== */
.vai-host { margin: 0 0 8px; }
.vai { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.vai[hidden] { display: none; }
.vai-in { padding: 0 12px 10px; }
.vai-h { display: flex; align-items: center; gap: 8px; height: 38px; font-size: 12.5px; }
.vai-logo svg { width: 18px; height: 18px; display: block; }
.vai-h b { font-weight: 650; }
.vai-st { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vai[data-state="working"] .vai-st { color: var(--fg); }
.vai[data-state="sent"] .vai-st { color: #22c55e; }
.vai[data-state="review"] .vai-st, .vai[data-state="handoff"] .vai-st { color: #f59e0b; }
.vai[data-state="failed"] .vai-st { color: var(--danger, #ef4444); }
.vai-h .grow { flex: 1; }
.vai-fold { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.vai-fold:hover { background: var(--surface-2); color: var(--fg); }
.vai-fold svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.vai.folded .vai-fold svg { transform: rotate(180deg); }
.vai.folded .vai-body { display: none; }
.vai-steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vai-steps li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg); min-height: 18px; }
.vai-steps li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vai-steps li time { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vai-steps li.todo { color: var(--muted); }
.vai-ic { flex: none; position: relative; width: 14px; height: 14px; border-radius: 50%; }
.vai-steps li.done .vai-ic { background: color-mix(in srgb, #22c55e 18%, transparent); }
.vai-steps li.done .vai-ic::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid #22c55e; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.vai-steps li.todo .vai-ic { border: 1.5px solid var(--line-2); }
.vai-steps li.active .vai-ic { border: 1.8px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: vaiSpin .8s linear infinite; }
.vai-steps li.end .vai-ic { background: var(--muted); }
.vai-steps li.end.sent .vai-ic { background: #22c55e; } .vai-steps li.end.sent .vai-ic::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 6.5px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.vai-steps li.end.review .vai-ic, .vai-steps li.end.handoff .vai-ic { background: #f59e0b; }
.vai-steps li.end.failed .vai-ic { background: var(--danger, #ef4444); }
.vai-steps li.end.paused .vai-ic, .vai-steps li.end.skipped .vai-ic { background: var(--line-2); }
@keyframes vaiSpin { to { transform: rotate(360deg); } }
.vai-reply { margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: var(--surface-2); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.vai-reply[hidden] { display: none; }
.vai-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.vai-acts[hidden] { display: none; }
.vai-acts .btn-main.sm, .vai-acts .btn-ghost.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .vai-steps li.active .vai-ic { animation: none; border-color: var(--accent); } }
@media (max-width: 760px) { .vai-steps li time { display: none; } .vai-acts .btn-main.sm, .vai-acts .btn-ghost.sm { height: 34px; } }
/* le panneau « Velora AI » affiché : l'ancien bandeau du Chatter IA (mêmes actions) s'efface */
#tgc-ai:has(+ #tgc-vai .vai:not([hidden])) { display: none; }
/* =====================================================================
   (06/11/2026) Avatar de Velora IA (public/vavatar.js) : « Floraison ». Couleurs en variables (sombre / clair / monochrome),
   animations par état, courtes et douces ; aucune avec « réduire les animations ».
   ===================================================================== */
/* (07/11/2026) l'avatar lui-même est dans public/v2.css */
/* l'avatar à la place du « V » des messages de l'Assistant et du Coach */
.msg.ai:has(> .vav)::before { display: none; }
.msg.ai > .vav { margin-top: 2px; }
.iac-logo .vav { --vs: 62px; } .iac-logo .vav svg { width: 100% !important; height: 100% !important; }
.vai-logo .vav { --vs: 20px; }
.iac-lvh .vav { --vs: 18px; }
.vai-acts[data-as]:not([data-as=""])::after { content: attr(data-as); flex-basis: 100%; order: -1; font-size: 11.5px; color: var(--muted); }
/* (07/11/2026) connexion d'une créatrice : l'attente réelle, la raison d'un échec, « Continuer sans proxy » */
.pxc-msg.pxc-wait { color: var(--muted); background: var(--surface-2); }
.pxc-msg small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.pxc-sec { font-variant-numeric: tabular-nums; opacity: .8; }
.pxc-direct { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pxc-direct p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pxc-direct p b { color: var(--fg); }
/* (08/11/2026) Messages (téléphone, navigateur) : l'état de la copie OnlyFans faite par l'appli de l'ordinateur */
.ib-mnote { margin: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ib-mnote b { display: block; color: var(--fg); font-size: 13px; margin-bottom: 2px; }
.ib-mnote p { margin: 0; }
.ib-mnote.bad { border-color: color-mix(in srgb, #e5484d 45%, var(--line)); background: color-mix(in srgb, #e5484d 8%, var(--surface)); }
.ib-mnote.ok { padding: 6px 10px; font-size: 12px; } .ib-mnote.ok b { display: inline; font-size: 12px; font-weight: 600; color: var(--muted); } .ib-mnote.ok p { display: none; }
.ib-mnote.warn { border-color: color-mix(in srgb, #e5a50a 45%, var(--line)); background: color-mix(in srgb, #e5a50a 8%, var(--surface)); }
.mt-note .linkish { font-size: inherit; }

/* (08/11/2026) audit téléphone : plus rien ne dépasse à droite de l'écran
   - tableau de bord : la grille prend la largeur de l'écran (avant, une ligne de texte l'élargissait de 59 px)
   - Shifts : la barre de semaine passe à la ligne ; Réglages d'équipe : la phrase du bonus et ses champs aussi */
.dbx { grid-template-columns: minmax(0, 1fr); }
.dbx > * { min-width: 0; }
@media (max-width: 760px) {
  .ct-week-bar { flex-wrap: wrap; row-gap: 6px; }
  .ct-week-bar > button { flex: 1 1 auto; }
  .ct-inl { flex-wrap: wrap; white-space: normal; }
  .ct-inl input { max-width: 110px; }
}
