/*
 * Chatimini — direction « Studio » (refonte du dashboard, étape 1 : structure commune)
 * Chargé après back.css : menu latéral violet nuit, typo Outfit, fond clair, boutons en pilule.
 */
:root {
    --st-ink: #21123D;
    --st-ink-2: #2b1a4d;
    --st-muted: #4a3f66;
    --st-bg: #f7f6fc;
    --st-card: #ffffff;
    --st-line: #ece8f6;
    --st-lav: #b69bfb;
    --st-sky: #60ccfd;
    --st-mint: #8df9d9;
    --st-pink: #f7b1fa;
    --st-side-w: 252px;
}

/* ── Base ─────────────────────────────────────────────────────── */
body.st-body { font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--st-bg); color: var(--st-ink); }
.st-main { background: var(--st-bg); min-width: 0; }
[x-cloak] { display: none !important; }

/* Anciennes barres du haut : remplacées par le menu latéral */
.tn-header, .chatimini-nav { display: none !important; }

/* ── Menu latéral ─────────────────────────────────────────────── */
.st-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--st-side-w); z-index: 60;
    background: var(--st-ink); color: #fff; padding: 22px 14px 16px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overflow-x: hidden;
}
.st-glow { position: absolute; left: -130px; bottom: -150px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(182,155,251,.35), transparent); pointer-events: none; }
.st-sidebar > *:not(.st-glow) { position: relative; }
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.st-brand span { font-size: 23px; font-weight: 400; letter-spacing: -.01em; }
.st-brand--side { padding: 0 6px; }

.st-switch { position: relative; }
.st-switch-btn { width: 100%; font: inherit; text-align: left; color: #fff; padding: 11px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.st-switch-btn:hover { background: rgba(255,255,255,.1); }
.st-switch-btn > svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-mint); flex: none; }
.st-switch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-switch-txt b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-switch-txt small { font-size: 12px; color: #c4bade; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-switch-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 20px 40px -18px rgba(10,4,24,.6); max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; }
.st-switch-menu a { color: var(--st-ink); text-decoration: none; font-size: 14.5px; padding: 9px 12px; border-radius: 10px; }
.st-switch-menu a:hover, .st-switch-menu a.is-active { background: #f1eef9; }
.st-switch-menu .st-switch-all { border-top: 1px solid var(--st-line); margin-top: 4px; border-radius: 0 0 10px 10px; color: var(--st-muted); }

.st-nav, .st-group { display: flex; flex-direction: column; gap: 3px; }
.st-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9d92bd; padding: 6px 14px 4px; }
.st-link { width: 100%; box-sizing: border-box; font: inherit; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 0; background: transparent; color: #d6cff0; text-decoration: none; font-size: 15px; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.st-link svg { width: 18px; height: 18px; flex: none; }
.st-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.st-link.is-active { background: #fff; color: var(--st-ink); font-weight: 500; }
.st-link.is-parent { color: #fff; }
.st-caret { margin-left: auto; width: 14px !important; height: 14px !important; transition: transform .2s; }
.st-caret.is-open { transform: rotate(180deg); }
.st-sub { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 4px 44px; }
.st-sublink { font-size: 14.5px; color: #c4bade; text-decoration: none; padding: 7px 12px; border-radius: 10px; }
.st-sublink:hover { color: #fff; background: rgba(255,255,255,.06); }
.st-sublink.is-active { color: var(--st-ink); background: #fff; font-weight: 500; }
.st-link:focus-visible, .st-sublink:focus-visible, .st-switch-btn:focus-visible { outline: 2px solid var(--st-mint); outline-offset: 2px; }

.st-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.st-link--quiet { font-size: 14px; color: #b7acd6; }
.st-user { position: relative; }
.st-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--st-lav); color: var(--st-ink); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.st-user-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 20px 40px -18px rgba(10,4,24,.6); display: flex; flex-direction: column; }
.st-user-menu a, .st-user-menu button { font: inherit; font-size: 14.5px; text-align: left; color: var(--st-ink); text-decoration: none; padding: 9px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; width: 100%; }
.st-user-menu a:hover, .st-user-menu button:hover { background: #f1eef9; }
.st-user-menu form button { color: #b3264f; }
.st-user-mail { font-size: 12.5px; color: var(--st-muted); padding: 6px 12px 8px; border-bottom: 1px solid var(--st-line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }

/* Barre du haut (mobile) */
.st-topbar { display: none; }
.st-overlay { position: fixed; inset: 0; background: rgba(15,6,32,.45); z-index: 55; }

@media (min-width: 1024px) {
    .st-main { margin-left: var(--st-side-w); }
    .st-overlay { display: none !important; }
    /* Pages plein écran (conversations) : plus de barre de 65 px au-dessus */
    .st-main [style*="calc(100vh - 65px)"] { height: 100vh !important; }
}
@media (max-width: 1023.98px) {
    .st-topbar { display: flex; position: sticky; top: 0; z-index: 50; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--st-ink); }
    .st-topbar .st-brand span { font-size: 20px; }
    .st-burger { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
    .st-burger svg { width: 22px; height: 22px; }
    .st-sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.3,.8,.3,1), box-shadow .3s; box-shadow: none; }
    .st-sidebar.is-open { transform: none; box-shadow: 20px 0 50px -20px rgba(10,4,24,.6); }
    .st-main [style*="calc(100vh - 65px)"] { height: calc(100vh - 64px) !important; }
}

/* ── En-têtes de page ─────────────────────────────────────────── */
.st-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 26px 40px 10px; max-width: 1280px; box-sizing: border-box; position: relative; z-index: 5; }
.st-pagehead-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.st-pagehead-title { margin: 0; font-size: 30px; font-weight: 400; letter-spacing: -.015em; color: var(--st-ink); }
.st-pagehead-count { font-size: 14px; color: var(--st-muted); }
.st-pagehead-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .st-pagehead { padding: 18px 16px 6px; } .st-pagehead-title { font-size: 24px; } }

/* Anciens bandeaux de titre : alignés sur le nouvel en-tête */
.subnav-wrapper { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.subnav-wrapper .subnav-row { padding-top: 22px; overflow: visible; }
.subnav-wrapper h1 { color: var(--st-ink) !important; font-size: 30px !important; font-weight: 400 !important; letter-spacing: -.015em; }

/* ── Fond et cartes ───────────────────────────────────────────── */
.chatimini-bg { background: var(--st-bg); }
.glass-card { background: var(--st-card); border: 1px solid var(--st-line); box-shadow: 0 18px 40px -34px rgba(33,18,61,.45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.glass-card-header { background: transparent; border-bottom: 1px solid #f0edf7; }
.glass-card-header h3 { font-weight: 500; color: var(--st-ink); }
.glass-card-icon { background: linear-gradient(135deg, var(--st-lav), var(--st-sky)) !important; }

/* ── Boutons en pilule (comme chatimini.com) ──────────────────── */
.btn-gradient, .btn-outline, .btn-add { border-radius: 999px !important; padding: 9px 18px !important; font-weight: 500 !important; font-family: inherit; line-height: 1.2; }
.btn-gradient { background: var(--st-ink) !important; color: #fff !important; }
.btn-gradient:hover { background: var(--st-ink-2) !important; }
.btn-outline { background: #fff !important; border: 1px solid #d9d2ec !important; color: var(--st-ink) !important; }
.btn-outline:hover { border-color: var(--st-ink) !important; }
.btn-add { background: var(--st-ink) !important; border: 1px solid var(--st-ink) !important; color: #fff !important; }

/* ── Pied de page discret ─────────────────────────────────────── */

/* ── Étape 2 : vue d'ensemble d'un chatbot ───────────────────── */
.ov { max-width: 1280px; box-sizing: border-box; padding: 26px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.ov a { color: var(--st-ink); }
.ov-alert { padding: 12px 16px; border-radius: 14px; font-size: 14.5px; }
.ov-alert a { font-weight: 600; text-decoration: underline; margin-left: 6px; }
.ov-alert--ok { background: #e2fbf2; } .ov-alert--err { background: #fde8ee; color: #8a1d3c; } .ov-alert--warn { background: #fff3df; color: #7a4a00; }
.ov-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.ov-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #ece8f6; }
.ov-seg a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--st-muted) !important; padding: 7px 16px; border-radius: 999px; }
.ov-seg a.is-on { background: #fff; color: var(--st-ink) !important; box-shadow: 0 2px 8px -4px rgba(33,18,61,.3); }
.ov-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-top, .ov-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.ov-grid--bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.ov-hero { border-radius: 26px; padding: 28px 30px; background: linear-gradient(135deg, #cdeefe, #e9e3ff 55%, #f8e6fd); display: flex; align-items: center; gap: 22px; min-width: 0; }
.ov-hero-txt { flex: 1; min-width: 0; }
.ov-eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--st-muted); }
.ov-hero h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; color: var(--st-ink); }
.ov-hero h1 b { font-weight: 600; }
.ov-hero-mascot { width: 128px; height: 128px; flex: none; }
.ov-card { background: #fff; border: 1px solid var(--st-line); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ov-card h2 { margin: 0; font-size: 19px; font-weight: 500; color: var(--st-ink); }
.ov-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ov-card-head a { font-size: 14px; }
.ov-muted { margin: 0; color: var(--st-muted); font-size: 14.5px; line-height: 1.5; }
.ov-todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-size: 15px; transition: transform .15s; }
.ov-todo-item:hover { transform: translateX(2px); }
.ov-todo-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ov-todo-txt { flex: 1; } .ov-todo-txt b { font-weight: 600; }
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ov-kpi { border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.ov-kpi b { font-size: 36px; font-weight: 300; letter-spacing: -.02em; line-height: 1; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.ov-kpi span { font-size: 14px; color: var(--st-muted); }
.ov-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f0edf7; }
.ov-av { width: 38px; height: 38px; border-radius: 50%; background: #efe9ff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.ov-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-row-main b { font-weight: 500; }
.ov-row-main span { font-size: 14px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-row-time { font-size: 13px; color: var(--st-muted); white-space: nowrap; }
.ov-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
.ov-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.ov-bar span { width: 100%; max-width: 46px; border-radius: 8px; background: linear-gradient(180deg, #b69bfb, rgba(182,155,251,.3)); }
.ov-bar span.is-zero { background: #ece8f6; }
.ov-bar small { font-size: 12px; color: var(--st-muted); }
.ov-sub { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.ov-themes { display: flex; flex-direction: column; gap: 10px; }
.ov-theme-line { display: flex; justify-content: space-between; font-size: 14px; }
.ov-track { height: 8px; border-radius: 99px; background: #f1eef9; margin-top: 6px; overflow: hidden; }
.ov-track div { height: 100%; border-radius: 99px; }
.ov-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.ov-facts dt { color: var(--st-muted); } .ov-facts dd { margin: 0; }
.ov-install .glass-card { border-radius: 22px; }
.ov-admin { max-width: 640px; }
@media (max-width: 1100px) { .ov-top, .ov-grid, .ov-grid--bottom { grid-template-columns: 1fr; } .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ov { padding: 18px 16px 32px; } .ov-hero { padding: 22px; } .ov-hero-mascot { width: 84px; height: 84px; } .ov-kpi b { font-size: 28px; } }
.ov-top > *, .ov-grid > *, .ov-kpis > * { min-width: 0; }
.ov-install .chatimini-code { overflow-x: auto; max-width: 100%; box-sizing: border-box; }
.ov-install .chatimini-switcher, .ov-install .chatimini-switcher-content { flex-wrap: wrap; }

/* Vue d'ensemble : centrée et plus large sur grands écrans ; installation et consommation en cartes Studio */
.ov, .st-pagehead { margin-left: auto; margin-right: auto; }
.ov { max-width: 1480px; width: 100%; }
.st-pagehead { max-width: 1480px; width: 100%; }
.ov-seg button { font: inherit; font-size: 14px; font-weight: 500; border: 0; background: transparent; color: var(--st-muted); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.ov-seg button.is-on { background: #fff; color: var(--st-ink); box-shadow: 0 2px 8px -4px rgba(33,18,61,.3); }
.ov-key { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: #f7f6fc; border: 1px solid var(--st-line); min-width: 0; }
.ov-key-label { font-size: 13px; color: var(--st-muted); white-space: nowrap; }
.ov-key code { flex: 1; min-width: 0; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-copy { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid #d9d2ec; background: #fff; color: var(--st-ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.ov-copy:hover { border-color: var(--st-ink); }
.ov-copy.is-done { background: #e2fbf2; border-color: #9fe6cd; }
.ov-install-js, .ov-install-wp { display: flex; flex-direction: column; gap: 12px; }
.ov-muted code { font-size: 13px; background: #f1eef9; padding: 1px 6px; border-radius: 6px; }
.ov-code { position: relative; background: var(--st-ink); border-radius: 16px; padding: 18px 18px 16px; }
.ov-code pre { margin: 0; color: #e8e2fb; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; padding-right: 120px; }
.ov-copy--dark { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.ov-copy--dark:hover { border-color: #fff; }
.ov-copy--dark.is-done { background: #8df9d9; color: var(--st-ink); }
.ov-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }
.ov-steps b { font-weight: 600; }
.ov-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-usage div { display: flex; flex-direction: column; gap: 4px; }
.ov-usage span { font-size: 13px; color: var(--st-muted); }
.ov-usage b { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ov-code pre { padding-right: 0; padding-top: 34px; } .ov-key { flex-wrap: wrap; } .ov-usage { grid-template-columns: 1fr; } }
.ov-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── Étape 3 : conversations (vue messagerie) ────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ib { box-sizing: border-box; padding: 22px 28px 24px; height: 100vh; display: flex; flex-direction: column; gap: 14px; max-width: 1680px; margin: 0 auto; width: 100%; }
.ib-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ib-filters { flex-wrap: wrap; }
.ib-filters a i { font-style: normal; font-size: 12px; opacity: .7; margin-left: 4px; }
.ib-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--st-line); border-radius: 999px; padding: 4px 6px 4px 14px; min-width: 280px; }
.ib-search svg { width: 16px; height: 16px; color: var(--st-muted); flex: none; }
.ib-search input { border: 0 !important; outline: none; box-shadow: none !important; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: transparent; padding: 6px 4px; }
.ib-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; gap: 16px; }
.ib-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; min-height: 0; }
.ib-item { display: flex; gap: 12px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--st-ink); border: 1px solid transparent; }
.ib-item:hover { background: #fff; }
.ib-item.is-on { background: #fff; border-color: var(--st-line); }
.ib-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-item-top { display: flex; justify-content: space-between; gap: 8px; }
.ib-item-top b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item-top time { font-size: 12px; color: var(--st-muted); white-space: nowrap; }
.ib-item-sub { font-size: 13.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ib-tags:empty { display: none; }
.ib-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.ib-tag.is-todo { background: #fdeafe; color: #8a2a8f; }
.ib-tag.is-done { background: #e2fbf2; color: #146c52; }
.ib-tag.is-gap { background: #eaf6ff; color: #1f6aa5; }
.ib-tag.is-test { background: #fff1d6; color: #7a4a00; }
.ib-empty { padding: 20px 12px; }
.ib-thread { background: #fff; border: 1px solid var(--st-line); border-radius: 24px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ib-thread-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #f0edf7; }
.ib-thread-title { display: flex; flex-direction: column; min-width: 0; }
.ib-thread-title b { font-weight: 500; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-thread-title span { font-size: 13px; color: var(--st-muted); }
.ib-back { display: none; font-size: 20px; text-decoration: none; color: var(--st-ink); width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #f1eef9; flex: none; }
.ib-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ib-msg { max-width: 74%; padding: 10px 14px 8px; border-radius: 18px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.ib-msg time { font-size: 11px; opacity: .65; }
.ib-msg--user { align-self: flex-end; background: var(--st-ink); color: #fff; border-bottom-right-radius: 5px; }
.ib-msg--user time { text-align: right; }
.ib-msg--bot { align-self: flex-start; background: #f1eef9; border-bottom-left-radius: 5px; }
.ib-side { background: #fff; border: 1px solid var(--st-line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; min-height: 0; }
.ib-person { display: flex; align-items: center; gap: 12px; }
.ib-person b { display: block; font-weight: 500; font-size: 18px; }
.ib-person span { font-size: 13px; color: var(--st-muted); }
.ib-av-lg { width: 48px; height: 48px; font-size: 15px; }
.ib-status { margin-top: -6px; }
.ib-contact { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ib-contact a { color: var(--st-ink); word-break: break-all; }
.ib-label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--st-muted); margin-bottom: 6px; }
.ib-text { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ib-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.ib-details dt { color: var(--st-muted); } .ib-details dd { margin: 0; }
.ib-actions { display: flex; flex-direction: column; gap: 8px; }
.ib-actions form { margin: 0; }
.ib-btn { width: 100%; justify-content: center; text-align: center; }
.ib-note { margin: 0; font-size: 12.5px; color: var(--st-muted); line-height: 1.5; }
.ib-delete { margin-top: auto; }
.ib-delete button { font: inherit; font-size: 13.5px; color: #b3264f; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.ib-placeholder { grid-column: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--st-muted); background: #fff; border: 1px dashed #ddd6ee; border-radius: 24px; }
@media (max-width: 1280px) { .ib-grid { grid-template-columns: 300px minmax(0, 1fr); } .ib-side { grid-column: 2; } .ib.has-open .ib-grid { grid-template-rows: minmax(0, 1fr) auto; } .ib-list { grid-row: 1 / 3; } .ib-placeholder { grid-column: 2; } }
@media (max-width: 1023.98px) {
    .ib { height: auto; min-height: calc(100vh - 64px); padding: 16px; }
    .ib-grid { grid-template-columns: minmax(0, 1fr); }
    .ib-list { grid-row: auto; overflow: visible; }
    .ib.has-open .ib-list, .ib:not(.has-open) .ib-placeholder { display: none; }
    .ib-thread { max-height: 70vh; }
    .ib-side { grid-column: auto; }
    .ib-back { display: grid; }
    .ib-search { min-width: 0; flex: 1; }
}

/* ── Étape 3 : prospects ─────────────────────────────────────── */
.ld-count { font-style: normal; font-size: 12px; opacity: .7; margin-left: 4px; }
.ld-list { display: flex; flex-direction: column; gap: 10px; }
.ld-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--st-line); border-radius: 20px; padding: 18px 20px; }
.ld-item.is-done { background: #fbfaff; }
.ld-item.is-done .ld-main { opacity: .8; }
.ld-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ld-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-head b { font-weight: 500; font-size: 17px; }
.ld-company { font-size: 14px; color: var(--st-muted); }
.ld-contact { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14.5px; }
.ld-contact a { color: var(--st-ink); }
.ld-need { margin: 0; font-size: 14.5px; color: var(--st-muted); line-height: 1.5; }
.ld-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-chips span { font-size: 13px; background: #f1eef9; border-radius: 999px; padding: 4px 10px; }
.ld-chips i { font-style: normal; color: var(--st-muted); }
.ld-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.ld-side time { font-size: 13px; color: var(--st-muted); }
.ld-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ld-actions form { margin: 0; }
.ld-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; background: #fff; border: 1px dashed #ddd6ee; border-radius: 22px; color: var(--st-muted); text-align: center; }
.ld-empty p { margin: 0; max-width: 46ch; }
@media (max-width: 760px) { .ld-item { flex-wrap: wrap; } .ld-side { width: 100%; align-items: flex-start; } .ld-actions { justify-content: flex-start; } }

/* ── Étape 4 : réglages ──────────────────────────────────────── */
.rg-tabs { display: inline-flex; gap: 2px; flex-wrap: wrap; padding: 4px; background: #fff; border: 1px solid var(--st-line); border-radius: 14px; max-width: 100%; box-sizing: border-box; }
.rg-tabs > button, .rg-tabs > a { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--st-muted); background: none; border: 0; padding: 8px 15px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.rg-tabs > button:hover, .rg-tabs > a:hover { color: var(--st-ink); background: #f5f2fd; }
.rg-tabs > button.is-on, .rg-tabs > a.is-on { color: var(--st-ink); font-weight: 600; background: #ece5ff; box-shadow: inset 0 0 0 1px rgba(182,155,251,.45); }
.rg-tabs > button:focus-visible, .rg-tabs > a:focus-visible { outline: 2px solid var(--st-lav); outline-offset: 1px; }
body.st-body .bg-blob { display: none; }
/* Les onglets de la page Réglages n'ont plus besoin de l'ancien sélecteur */
.chatimini-switcher-content button.active { background: var(--st-ink); color: #fff; }

/* ── Étape 5 : accueil « Mes chatbots » ──────────────────────── */
.hm-head { display: flex; justify-content: space-between; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 8px; }
.hm-section { margin: 0; font-size: 22px; font-weight: 500; color: var(--st-ink); display: flex; align-items: center; gap: 10px; }
.hm-section span { font-size: 13px; font-weight: 600; background: #efe9ff; color: #5b3fc4; border-radius: 999px; padding: 3px 10px; }
.hm-hero { position: relative; overflow: hidden; padding: 30px 34px; }
.hm-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(141,249,217,.55), rgba(141,249,217,0) 70%); pointer-events: none; }
.hm-hero .ov-hero-txt, .hm-hero .ov-hero-mascot { position: relative; z-index: 1; }
.hm-hero h1 { max-width: 22ch; }
.hm-hero-sub { margin: 10px 0 0; font-size: 15.5px; color: var(--st-muted); max-width: 52ch; }
.hm-kpis .ov-kpi b small { font-size: 20px; color: var(--st-muted); margin-left: 2px; }
.hm-title { margin: 0; font-size: clamp(28px, 3.4vw, 42px); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; color: var(--st-ink); max-width: 24ch; }
.hm-title b { font-weight: 600; }
.hm-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hm-actions .ib-search { min-width: 240px; }
.hm-full { font-size: 14px; color: #8a1d3c; background: #fde8ee; padding: 9px 14px; border-radius: 999px; }
.hm-limit { display: flex; flex-direction: column; gap: 6px; max-width: 320px; font-size: 13.5px; color: var(--st-muted); }
.hm-limit .ov-track { margin-top: 0; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.hm-card { position: relative; background: #fff; border: 1px solid var(--st-line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.hm-card:hover { border-color: #cdbdfc; box-shadow: 0 18px 40px -28px rgba(33,18,61,.45); }
.hm-card-link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--st-ink) !important; }
.hm-card-head { display: flex; align-items: center; gap: 12px; }
.hm-logo { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #cdeefe, #efe9ff); display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; }
.hm-logo img { width: 100%; height: 100%; object-fit: cover; }
.hm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-name b { font-weight: 500; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-name small { font-size: 13px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-setup { display: flex; gap: 12px; align-items: center; background: #fbf9ff; border-radius: 16px; padding: 12px 14px; }
.hm-setup img { width: 56px; height: 56px; flex: none; }
.hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hm-stats div { display: flex; flex-direction: column; gap: 2px; }
.hm-stats b { font-size: 28px; font-weight: 300; font-weight: 300; font-variant-numeric: tabular-nums; }
.hm-stats span { font-size: 13px; color: var(--st-muted); }
.hm-period { margin: -6px 0 0; font-size: 12px; color: var(--st-muted); }
.hm-intro { margin: 0; font-size: 14.5px; color: var(--st-muted); line-height: 1.5; }
.hm-next { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; text-decoration: none; font-size: 14.5px; color: var(--st-ink) !important; margin-top: auto; }
.hm-next b { font-weight: 600; }
.hm-banner { padding: 22px 28px; }
.hm-banner-title { margin: 0 0 4px; font-size: 21px; font-weight: 300; color: var(--st-ink); }
.hm-banner-title b { font-weight: 600; }
@media (max-width: 1100px) { .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-actions, .hm-actions .ib-search { width: 100%; } .hm-hero { padding: 22px; } .hm-hero .ov-hero-mascot { width: 84px; height: 84px; } .hm-kpis .ov-kpi b { font-size: 28px; } }

/* ── Analyse et Connaissances ────────────────────────────────── */
/* Cartes : titres simples, sans pastille d'icône */
.glass-card-icon { display: none !important; }
.glass-card-header { padding: 18px 22px 14px; }
.glass-card-header h3 { font-size: 18px; font-weight: 500; }
.chatimini-label { color: var(--st-ink); }

/* ── Consommation ────────────────────────────────────────────── */
.us-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.us-head h2 { margin: 0; font-size: 20px; font-weight: 500; color: var(--st-ink); }
.us-head span { font-size: 14px; color: var(--st-muted); }
.us-delta { align-self: flex-start; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--st-ink); background: rgba(255,255,255,.7); border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.us-chart { height: 170px; }
.us-table-wrap { overflow-x: auto; }
.us-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.us-table th { text-align: left; font-weight: 500; color: var(--st-muted); font-size: 13px; padding: 8px 12px; border-bottom: 1px solid var(--st-line); }
.us-table td { padding: 11px 12px; border-bottom: 1px solid #f3f1f9; }
.us-table td:first-child { font-weight: 500; }
.us-table tfoot td { font-weight: 600; border-bottom: 0; background: #f7f6fc; }
@media (max-width: 1100px) { .us-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .us-kpis { grid-template-columns: 1fr; } }

/* ── Connaissances : pages Questions, Pages web, Documents ──── */
.kn { padding-top: 18px; }
.kn-lang { background: #f1eef9; color: var(--st-muted); }
.kn-btn { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid #e3ddf2; background: #fff; color: var(--st-ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.kn-btn:hover { border-color: var(--st-ink); }
.kn-btn--danger { color: #b3264f; }
.kn-btn--danger:hover { border-color: #b3264f; }
.kn-ext { width: 44px; height: 44px; border-radius: 12px; background: #efe9ff; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; flex: none; }
.kn-ext.is-json { background: #e3f5ff; }
.kn-progress { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #1f6aa5; max-width: 420px; }
.kn-progress .ov-track { margin-top: 0; }
.kn-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 16px 16px; text-align: center; color: var(--st-muted); }
.kn-empty p { margin: 0; max-width: 52ch; }
/* Onglets : une seule ligne qui défile sur petit écran */
@media (max-width: 640px) { .rg-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .rg-tabs::-webkit-scrollbar { display: none; } .rg-tabs > * { flex: none; white-space: nowrap; } }

/* ── Footer ───────────────────────────────────────────────────── */
.st-footer { border-top: 1px solid var(--st-line); margin-top: 24px; }
.st-footer-in { max-width: 1480px; margin: 0 auto; padding: 18px 40px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--st-muted); }
.st-footer-brand { display: flex; align-items: center; gap: 10px; }
.st-footer-brand img { width: 26px; height: 26px; }
.st-footer-brand a { color: var(--st-ink); text-decoration: none; font-weight: 500; }
.st-footer nav { display: flex; gap: 6px; flex-wrap: wrap; }
.st-footer nav a { color: var(--st-muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.st-footer nav a:hover { background: #efe9ff; color: var(--st-ink); }
@media (max-width: 640px) { .st-footer-in { padding: 16px; flex-direction: column; align-items: flex-start; } .st-footer nav { margin-left: -12px; } }

/* ── Composants de formulaire (Réglages, admin…) au style Studio ── */
.chatimini-bg { background: transparent !important; min-height: 0 !important; }
.chatimini-label { font-size: 14.5px; font-weight: 500; color: var(--st-ink); margin-bottom: 8px; }
.chatimini-remark { font-size: 13px; line-height: 1.5; color: var(--st-muted); }
.chatimini-select, .chatimini-textarea, .chatimini-input { border: 1px solid #ddd6ef; border-radius: 12px; padding: 11px 14px; font-size: 15px; line-height: 1.35; background-color: #fff; color: var(--st-ink); }
.chatimini-select:hover, .chatimini-textarea:hover, .chatimini-input:hover { border-color: #c9bdf0; }
.chatimini-select:focus, .chatimini-textarea:focus, .chatimini-input:focus { border-color: #8b6cf0; box-shadow: 0 0 0 4px rgba(139,108,240,.14); }
.chatimini-input::placeholder, .chatimini-textarea::placeholder { color: #a79fc0; }
.card-section { padding: 18px 22px; border-bottom: 1px solid #f0edf7; }
.glass-card { border-radius: 24px; }
.glass-card-header { border-bottom: 0; padding-bottom: 4px; }
.glass-card-header + .p-5, .glass-card-header + .card-section, .glass-card-header + div { padding-top: 12px; }
.glass-card .p-5 { padding: 18px 22px 22px; }

/* Choix (ton, longueur, forme, thème…) */
.tone-btn, .shape-btn, .theme-btn, .lang-badge { border: 1px solid #ddd6ef; border-radius: 14px; background: #fff; color: var(--st-ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.tone-btn { padding: 11px 14px; gap: 2px; }
.tone-btn .label { font-size: 14.5px; font-weight: 500; color: var(--st-ink); }
.tone-btn .desc { font-size: 13px; color: var(--st-muted); line-height: 1.4; }
.tone-btn:hover, .shape-btn:hover, .theme-btn:hover, .lang-badge:hover { border-color: #b69bfb; background: #fbf9ff; }
.tone-btn.active, .shape-btn.active, .lang-badge:has(input:checked) { border-color: #8b6cf0; background: #f4f0ff; box-shadow: inset 0 0 0 1px #8b6cf0; }
.tone-btn.active .label { color: var(--st-ink); }
.shape-btn, .theme-btn { font-size: 14px; font-weight: 500; }
.theme-btn[style*="lightpurple"] { background: #f4f0ff !important; border-color: #8b6cf0 !important; box-shadow: inset 0 0 0 1px #8b6cf0; }
.chatimini-options { gap: 10px; }

/* Interrupteurs */
.toggle-track { width: 44px; height: 26px; border-radius: 999px; }
.toggle-thumb { top: 3px; width: 20px; height: 20px; box-shadow: 0 1px 3px rgba(33,18,61,.25); }
.toggle-track[style*="chatimini-purple"] { background: #8b6cf0 !important; }
.toggle-track[style*="chatimini-gray"] { background: #d9d3ea !important; }
.toggle-track .toggle-thumb[style*="left:17px"] { left: 21px !important; }
input[type="range"] { accent-color: #8b6cf0; }

/* Mobile : le fond reste lavande comme sur ordinateur */
body.st-body main, body.st-body .chatimini-bg { background: transparent !important; }
@media (max-width: 640px) { .ib-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .ib-filters::-webkit-scrollbar { display: none; } .ib-filters > * { flex: none; white-space: nowrap; } }

/* ── Réglages ─────────────────────────────────────────────────── */
.sg { padding-bottom: 110px; }
.sg-errors { margin: 0; padding-left: 18px; }
.sg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.sg-mode { margin-bottom: 8px; }
.sg-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sg-main, .sg-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sg-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sg-card { background: #fff; border: 1px solid var(--st-line); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sg-card h2 { margin: 0; font-size: 18px; font-weight: 500; color: var(--st-ink); letter-spacing: -.005em; }
.sg-sub { margin: -8px 0 2px; font-size: 14px; color: var(--st-muted); line-height: 1.5; }
.sg-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-hint { margin: 0; font-size: 13.5px; color: var(--st-muted); line-height: 1.5; }
.sg-note { margin: 0; font-size: 13.5px; line-height: 1.5; padding: 11px 14px; border-radius: 14px; }
.sg-note--ok { background: #e7fbf3; color: #14513f; }
.sg-note--warn { background: #fff4dc; color: #7a4a00; }
.sg-hidden { margin: 2px 4px; font-size: 13.5px; color: var(--st-muted); }
.sg-hidden button { font: inherit; color: var(--st-ink); font-weight: 500; text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
.sg-modeline { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: #efe9ff; }
.sg-modeline b { display: block; font-weight: 500; font-size: 15px; }
.sg-modeline span { font-size: 13.5px; color: var(--st-muted); }
.sg-modeline .ov-seg { background: rgba(255,255,255,.6); }

/* Pastilles de choix */
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-chip { font: inherit; font-size: 14px; color: var(--st-ink); background: #fff; border: 1px solid #ddd6ef; border-radius: 999px; padding: 8px 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sg-chip:hover { border-color: #b69bfb; }
.sg-chip.is-on { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
.sg-tag { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; background: #fff; border: 1px solid #ddd6ef; border-radius: 999px; padding: 5px 4px 5px 14px; }
.sg-tag button { width: 26px; height: 26px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; color: var(--st-muted); }
.sg-tag button:hover { background: #f3effc; color: var(--st-ink); }
.sg-tag-input { font: inherit; font-size: 14px; width: 130px; border: 1px dashed #c9bdf0; border-radius: 999px; padding: 7px 14px; background: #fff; color: var(--st-ink); outline: none; }
.sg-tag-input--wide { width: 230px; }
.sg-tag-input:focus { border-style: solid; border-color: #8b6cf0; box-shadow: 0 0 0 4px rgba(139,108,240,.14); }
.sg-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--st-muted); }
.sg-suggest > span { margin-right: 4px; }
.sg-suggest button { font: inherit; font-size: 13px; color: #5b3fc4; background: #f4f0ff; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.sg-suggest button:hover { background: #ebe3ff; }

/* Grandes cartes de choix */
.sg-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sg-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-choice { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid #ddd6ef; background: #fff; cursor: pointer; color: var(--st-ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.sg-choice b { font-weight: 500; font-size: 15.5px; }
.sg-choice span { font-size: 13.5px; color: var(--st-muted); line-height: 1.45; }
.sg-choice:hover { border-color: #b69bfb; }
.sg-choice.is-on { border-color: var(--st-ink); background: #f6f3ff; box-shadow: inset 0 0 0 1px var(--st-ink); }

/* Lignes : libellé à gauche, contrôle à droite */
.sg-line { display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #f0edf7; font-size: 14.5px; color: var(--st-ink); }
.sg-line > span, .sg-line > label { flex: 1 1 180px; }
.sg-line small { display: block; font-size: 13px; color: var(--st-muted); margin-top: 2px; }
.sg-line--top { align-items: flex-start; }
.sg-line .ov-seg { flex-wrap: wrap; }
.sg .ov-seg button { white-space: nowrap; }
.sg-count { align-self: flex-start; flex-wrap: wrap; }
.sg-count button { min-width: 44px; }
.sg-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid #f0edf7; }
.sg-toggle > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-toggle b { font-weight: 500; font-size: 14.5px; }
.sg-toggle span { font-size: 13.5px; color: var(--st-muted); line-height: 1.45; }
.sg-toggle--head { padding-top: 0; border-top: 0; }
.sg-toggle--head span { font-size: 14px; }
.sg-switch { flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; padding: 0; background: #d9d3ea; position: relative; cursor: pointer; transition: background .2s; }
.sg-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(33,18,61,.25); transition: transform .25s cubic-bezier(.3,.8,.3,1.2); }
.sg-switch[aria-checked="true"] { background: #8b6cf0; }
.sg-switch[aria-checked="true"] i { transform: translateX(18px); }
.sg-switch:focus-visible, .sg-chip:focus-visible, .sg-choice:focus-visible { outline: 2px solid #8b6cf0; outline-offset: 2px; }
.sg-more { display: flex; flex-direction: column; gap: 14px; }

/* Champs */
.sg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sg-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sg-field--wide { grid-column: 1 / -1; }
.sg-field > label { font-size: 14px; font-weight: 500; color: var(--st-ink); }
.sg-prompt { min-height: 300px; resize: vertical; line-height: 1.55 !important; }
.sg textarea.chatimini-input { resize: vertical; line-height: 1.5; }
.sg-num { display: inline-flex; align-items: center; gap: 10px; flex: none !important; color: var(--st-muted); }
.sg-num .chatimini-input { width: 92px; text-align: center; }
.sg-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-x { width: 34px; height: 34px; flex: none; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--st-muted); }
.sg-x:hover { background: #fde8ee; color: #b3264f; }
.sg-profile, .sg-extra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sg-profile .chatimini-input { flex: 1 1 160px; width: auto; }
.sg-extra .chatimini-input { flex: 1 1 160px; width: auto; }
.sg-extra .chatimini-input + .chatimini-input { flex-grow: 2; }
.sg-code { margin: 0; background: #1d1233; color: #ece8f6; border-radius: 14px; padding: 14px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; max-height: 380px; overflow: auto; }
.sg-details summary { cursor: pointer; font-size: 14px; color: #5b3fc4; }
.sg-trans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.sg-trans div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #f8f6fd; font-size: 13.5px; color: var(--st-muted); }
.sg-trans b { color: var(--st-ink); font-size: 12px; letter-spacing: .08em; }
.sg-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sg-lang { position: relative; cursor: pointer; }
.sg-lang input { position: absolute; opacity: 0; pointer-events: none; }
.sg-lang span { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid #ddd6ef; font-size: 14px; transition: border-color .15s, background .15s; }
.sg-lang b { font-size: 12px; font-weight: 600; letter-spacing: .06em; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #f3effc; flex: none; }
.sg-lang:hover span { border-color: #b69bfb; }
.sg-lang input:checked + span { border-color: var(--st-ink); background: #f6f3ff; box-shadow: inset 0 0 0 1px var(--st-ink); }
.sg-lang input:checked + span b { background: var(--st-ink); color: #fff; }
.sg-lang input:focus-visible + span { outline: 2px solid #8b6cf0; outline-offset: 2px; }

/* Apparence */
.sg-colors { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-color { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid #ddd6ef; border-radius: 16px; cursor: pointer; }
.sg-color:hover { border-color: #b69bfb; }
.sg-color input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sg-color b { display: block; font-weight: 500; font-size: 14px; }
.sg-color small { font-size: 12.5px; color: var(--st-muted); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.sg-swatch { width: 38px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(33,18,61,.12); flex: none; }
.sg-color--mini { padding: 6px 12px 6px 6px; gap: 10px; }
.sg-color--mini .sg-swatch { width: 28px; height: 28px; border-radius: 9px; }
.sg-line--color { cursor: pointer; }
.sg-angles { display: flex; gap: 4px; flex-wrap: wrap; }
.sg-angles button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #ddd6ef; background: #fff; cursor: pointer; font-size: 15px; color: var(--st-ink); }
.sg-angles button.is-on { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
.sg-gradbar { height: 34px; border-radius: 12px; }
.sg-avatar { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sg-avatar-zone { width: 96px; height: 96px; flex: none; border-radius: 50%; border: 1px dashed #c9bdf0; display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; font: inherit; font-size: 12px; color: var(--st-muted); line-height: 1.3; }
.sg-avatar-zone.is-square { border-radius: 22px; }
.sg-avatar-zone img { object-fit: contain; }
.sg-avatar-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sg-avatar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-range { flex: 1 1 200px; max-width: 320px; accent-color: #8b6cf0; }
.sg-line label b { font-weight: 500; color: #5b3fc4; margin-left: 6px; }
.sg-sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sg-sounds button { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid #ddd6ef; background: #fff; cursor: pointer; color: var(--st-ink); }
.sg-sounds button b { font-weight: 500; font-size: 14px; }
.sg-sounds button span { font-size: 12.5px; color: var(--st-muted); line-height: 1.35; }
.sg-sounds button:hover { border-color: #b69bfb; }
.sg-sounds button.is-on { border-color: var(--st-ink); background: #f6f3ff; box-shadow: inset 0 0 0 1px var(--st-ink); }
.sg-sounds + .sg-suggest { margin-top: 12px; }

/* Colonne de droite */
.sg-aside-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.sg-aside-head .ov-eyebrow { margin: 0; font-size: 12px; }
.sg-aside-head button { font: inherit; font-size: 13.5px; color: var(--st-ink); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: 0; }
.sg-phone { border-radius: 26px; padding: 10px; background: linear-gradient(135deg, #cdeefe, #e9e3ff 55%, #f8e6fd); }
.sg-phone > * { background: #fff; }
.sg-phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px 18px 0 0; background: var(--st-ink) !important; color: #fff; }
.sg-phone-head b { font-weight: 500; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-phone-head small { font-size: 12px; opacity: .7; }
.sg-phone-av { width: 32px; height: 32px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.12); flex: none; display: grid; place-items: center; }
.sg-phone-av img { width: 100%; height: 100%; object-fit: cover; }
.sg-thread { height: 380px; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; }
.sg-thread > :first-child { margin-top: auto; }
.sg-turn { display: flex; flex-direction: column; gap: 4px; }
.sg-turn.is-user { align-items: flex-end; }
.sg-turn.is-bot { align-items: flex-start; }
.sg-msg { max-width: 88%; padding: 9px 13px; font-size: 14px; line-height: 1.45; white-space: pre-line; border-radius: 16px; }
.sg-msg.is-bot { background: #f1eef8; color: var(--st-ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.sg-msg.is-user { background: var(--st-ink); color: #fff; border-bottom-right-radius: 6px; }
.sg-step { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--st-muted); padding: 0 4px; }
.sg-step button { font: inherit; font-size: 12px; color: #5b3fc4; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.sg-srcs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 88%; }
.sg-srcs a { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f4f0ff; color: #5b3fc4; text-decoration: none; }
.sg-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.sg-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a79fc0; animation: sgDot 1s infinite ease-in-out; }
.sg-typing i:nth-child(2) { animation-delay: .15s; } .sg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sgDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sg-err { margin: 0; padding: 0 14px 8px; font-size: 13px; color: #a3401b; }
.sg-compose { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid #f0edf7; border-radius: 0 0 18px 18px; }
.sg-compose input { flex: 1; min-width: 0; font: inherit; font-size: 14px; border: 1px solid #ddd6ef; border-radius: 999px; padding: 10px 16px; outline: none; color: var(--st-ink); }
.sg-compose input:focus { border-color: #8b6cf0; box-shadow: 0 0 0 4px rgba(139,108,240,.14); }
.sg-compose button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--st-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sg-compose button:disabled { background: #d9d3ea; cursor: default; }
.sg-aside-note { margin: 2px 4px; font-size: 13px; color: var(--st-muted); line-height: 1.5; }
.sg-tip { background: linear-gradient(135deg, #cdeefe, #e9e3ff 55%, #f8e6fd); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sg-tip img { width: 72px; height: 72px; margin: -6px 0 0 -6px; }
.sg-tip h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--st-ink); }
.sg-tip p { margin: 0 0 6px; font-size: 14px; color: var(--st-muted); line-height: 1.5; }

/* Historique */
.sg-versions { display: flex; flex-direction: column; }
.sg-version { padding: 12px 0; border-top: 1px solid #f0edf7; display: flex; flex-direction: column; gap: 10px; }
.sg-version-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.sg-version-row b { font-weight: 500; font-size: 14.5px; margin-right: 6px; }
.sg-version-meta { display: block; font-size: 13px; color: var(--st-muted); margin-top: 2px; }
.sg-version-actions { display: flex; gap: 6px; }

/* Zone sensible */
.sg-danger { border-color: #f3c9d6; margin-top: 16px; }
.sg-danger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.sg-danger h2 { color: #8a1d3c; }
.sg-danger .sg-sub { margin: 4px 0 0; }
.sg-danger-form { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--st-muted); }
.sg-danger-form b { color: var(--st-ink); }
.sg-danger-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sg-danger-row .chatimini-input { flex: 1 1 220px; width: auto; }
.sg-danger-btn { font: inherit; font-size: 14.5px; font-weight: 500; border: 0; border-radius: 999px; padding: 10px 18px; background: #c0264b; color: #fff; cursor: pointer; }
.sg-danger-btn:disabled { background: #efd5dd; cursor: not-allowed; }

/* Barre d'enregistrement fixe */
.sg-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--st-line); }
.sg-save-in { max-width: 1480px; margin: 0 auto; padding: 14px 40px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--st-muted); }
.sg-save b { color: var(--st-ink); font-weight: 600; }
.sg-save-actions { display: flex; gap: 10px; }
.sg-save.is-dirty { box-shadow: 0 -12px 30px -22px rgba(33,18,61,.5); }
body.sg-widget .sg-save-in { padding-right: 130px; }
body.sg-page:not(.sg-widget) :is(#cbt-widget, #cbt-mascot, #cbt-mascot-launcher) { display: none !important; }
body.sg-widget :is(#cbt-toggle, #cbt-mascot-launcher) { bottom: 96px !important; }
body.sg-widget #cbt-box { bottom: 164px !important; }
.st-body.sg-page .st-footer { padding-bottom: 72px; }
@media (min-width: 1024px) { .sg-save { left: var(--st-side-w); } }
@media (min-width: 1181px) { .sg > .sg-danger { margin-right: 408px; } }
@media (max-width: 1180px) {
    .sg-split { grid-template-columns: minmax(0, 1fr); }
    .sg-aside { position: static; }
    .sg-aside:empty { display: none; }
}
@media (max-width: 760px) {
    .sg-choices, .sg-choices--2, .sg-grid { grid-template-columns: minmax(0, 1fr); }
    .sg-card { padding: 18px; border-radius: 20px; }
    .sg-save-in { padding: 12px 16px; }
    body.sg-widget .sg-save-in { padding-right: 16px; }
    .sg-save-in > span { font-size: 13.5px; }
    .sg-tip { display: none; }
    .sg-thread { height: 320px; }
    .sg-mode { margin-bottom: 10px; }
}
.sg-card > .kn-btn, .sg-card > a.kn-btn { align-self: flex-start; }
@media (max-width: 760px) { .sg-count { flex-wrap: nowrap; max-width: 100%; } .sg-count button { min-width: 0; padding-left: 11px; padding-right: 11px; } }

/* ── Pages admin (utilisateurs, corbeille) ────────────────────── */
.mg-list { padding: 6px 0; gap: 0; }
.mg-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.6fr) 100px; gap: 16px; align-items: center; padding: 14px 22px; border-top: 1px solid #f0edf7; }
.mg-row:first-child { border-top: 0; }
.mg-row--head { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); padding-top: 10px; padding-bottom: 10px; }
.mg-row--trash { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 150px; }
.mg-user { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--st-ink) !important; }
.mg-user > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.mg-user b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-user small { font-size: 13px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.mg-user:hover b { text-decoration: underline; }
.mg-logo { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.mg-cell { font-size: 14.5px; color: var(--st-ink); min-width: 0; }
.mg-cell b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mg-cell small { color: var(--st-muted); font-size: 13px; }
.mg-track { display: block; width: 110px; margin-top: 6px; }
.mg-track span { display: block; height: 100%; border-radius: inherit; }
.mg-rights { display: flex; flex-wrap: wrap; gap: 4px; }
.mg-actions { display: flex; justify-content: flex-end; }
.mg-form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mg-link { font: inherit; color: var(--st-ink); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.sg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-field-err { margin: 0; font-size: 13px; color: #a3264b; }
a.sg-chip { text-decoration: none; }
@media (max-width: 900px) {
    .mg-row--head { display: none; }
    .mg-row, .mg-row--trash { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px 18px; }
    .mg-row .mg-user { grid-column: 1 / -1; }
    .mg-row .mg-cell { grid-column: 1; }
    .mg-row .mg-cell::before { content: attr(data-label) " : "; color: var(--st-muted); font-size: 13px; }
    .mg-row .mg-rights::before { width: 100%; }
    .mg-row .mg-actions { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
}
@media (max-width: 760px) { .sg-grid--3 { grid-template-columns: minmax(0, 1fr); } }

/* ── Connexion, mot de passe ──────────────────────────────────── */
.au-body { margin: 0; min-height: 100vh; background: var(--st-bg); }
.au { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.au-brand { position: relative; overflow: hidden; background: var(--st-ink); color: #fff; padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.au-brand::before { content: ''; position: absolute; width: 620px; height: 620px; left: 50%; top: 52%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(182,155,251,.55), rgba(96,204,253,.18) 45%, rgba(33,18,61,0) 70%); pointer-events: none; }
.au-brand > * { position: relative; }
.au-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none; font-size: 22px; font-weight: 400; }
.au-logo img { width: 36px; height: 36px; }
.au-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.au-mascot { width: 220px; height: 220px; animation: auFloat 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
@keyframes auFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.au-tagline { margin: 0; max-width: 21ch; font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -.015em; }
.au-tagline b { font-weight: 600; background: linear-gradient(90deg, #b69bfb, #60ccfd, #8df9d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-made { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.au-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.au-logo--mobile { display: none; color: var(--st-ink) !important; margin-bottom: 22px; }
.au-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.au-title { margin: 0; font-size: 34px; font-weight: 300; letter-spacing: -.02em; color: var(--st-ink); }
.au-sub { margin: 0 0 12px; font-size: 15.5px; color: var(--st-muted); line-height: 1.5; }
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.au-label-row label { font-size: 14px; font-weight: 500; color: var(--st-ink); }
.au-label-row a, .au-foot a { font-size: 14px; color: #5b3fc4; text-decoration: none; }
.au-label-row a:hover, .au-foot a:hover { text-decoration: underline; }
.au-check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--st-ink); cursor: pointer; }
.au-check input { width: 18px; height: 18px; accent-color: #8b6cf0; }
.au-submit { width: 100%; justify-content: center; padding-top: 13px !important; padding-bottom: 13px !important; font-size: 15.5px !important; }
.au-foot { margin: 8px 0 0; font-size: 14px; color: var(--st-muted); text-align: center; }
.au .chatimini-input { padding: 13px 15px; }
@media (max-width: 900px) {
    .au { grid-template-columns: minmax(0, 1fr); }
    .au-brand { display: none; }
    .au-logo--mobile { display: inline-flex; }
    .au-panel { justify-content: flex-start; padding-top: 48px; }
    .au-title { font-size: 28px; }
}

/* ── Prospects : liste + fiche ────────────────────────────────── */
.pr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.pr-kpi-actions { background: transparent; justify-content: center; align-items: flex-end; gap: 8px; padding-right: 0; }
.pr-link { font-size: 13.5px; color: var(--st-muted); }
.pr-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-list-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pr-list-tools .ov-seg { align-self: flex-start; }
.pr-search { width: 100%; }
.pr-item { font: inherit; text-align: left; display: flex; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--st-ink); width: 100%; }
.pr-item:hover { background: #fff; }
.pr-item.is-on { background: #fff; border-color: var(--st-line); }
.pr-item .ov-av.is-done { opacity: .55; }
.pr-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pr-item-top { display: flex; justify-content: space-between; gap: 8px; }
.pr-item-top b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-item-top time { font-size: 12px; color: var(--st-muted); white-space: nowrap; }
.pr-item-sub { font-size: 13.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-item-tags { display: flex; gap: 4px; margin-top: 2px; }
.pr-none, .pr-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px; color: var(--st-muted); font-size: 14.5px; }
.pr-detail { position: sticky; top: 24px; min-width: 0; }
.pr-card { background: #fff; border: 1px solid var(--st-line); border-radius: 24px; padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.pr-back { display: none; font: inherit; font-size: 14px; color: var(--st-ink); background: none; border: 0; padding: 0; cursor: pointer; align-self: flex-start; }
.pr-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pr-av { width: 56px; height: 56px; font-size: 18px; }
.pr-head-txt { flex: 1; min-width: 200px; }
.pr-head h2 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -.015em; color: var(--st-ink); }
.pr-head p { margin: 2px 0 0; font-size: 14px; color: var(--st-muted); }
.pr-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pr-contact-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #f6f3ff; color: var(--st-ink) !important; text-decoration: none; min-width: 0; transition: background .15s, transform .15s; }
.pr-contact-btn:hover { background: #ece4ff; transform: translateY(-1px); }
.pr-contact-btn svg { width: 22px; height: 22px; flex: none; color: #5b3fc4; }
.pr-contact-btn span { display: flex; flex-direction: column; min-width: 0; font-size: 15.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-contact-btn small { font-size: 12px; font-weight: 400; color: var(--st-muted); letter-spacing: .04em; text-transform: uppercase; }
.pr-block h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }
.pr-need { margin: 0; font-size: 17px; line-height: 1.5; color: var(--st-ink); }
.pr-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pr-facts div { padding: 12px 14px; border-radius: 14px; border: 1px solid #f0edf7; }
.pr-facts dt { font-size: 12.5px; color: var(--st-muted); }
.pr-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--st-ink); }
.pr-context summary { cursor: pointer; font-size: 14px; color: #5b3fc4; }
.pr-context p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--st-muted); white-space: pre-line; }
.pr-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 18px; border-top: 1px solid #f0edf7; }
.pr-more { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.pr-sync { margin: -10px 0 0; font-size: 13px; color: var(--st-muted); }
@media (max-width: 1100px) { .pr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pr-kpi-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; padding: 0; } }
@media (max-width: 960px) {
    .pr-grid { grid-template-columns: minmax(0, 1fr); }
    .pr-detail { display: none; position: static; }
    .pr.is-open .pr-detail { display: block; }
    .pr.is-open .pr-list, .pr.is-open .pr-kpis { display: none; }
    .pr-back { display: inline-block; }
    .pr-card { padding: 20px; }
    .pr-more { margin-left: 0; }
}
@media (max-width: 640px) { .pr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pr-kpis .ov-kpi { padding: 14px; } .pr-kpis .ov-kpi b { font-size: 26px; } .pr-kpis .ov-kpi span { font-size: 12.5px; } }

/* ── Connaissances (structure Studio) ─────────────────────────── */
.kn2-head { display: flex; flex-direction: column; gap: 6px; }
.kn2-intro { margin: 0; font-size: 15px; color: var(--st-muted); max-width: 80ch; line-height: 1.55; }
.kn2-intro b { color: var(--st-ink); font-weight: 500; }
.kn2-intro span { margin-left: 4px; }
.sg-tabs a i { font-style: normal; font-size: 12px; font-weight: 500; background: #f1edfa; border-radius: 999px; padding: 1px 7px; color: var(--st-muted); }
.sg-tabs a.is-on i { background: #fff; color: var(--st-ink); }
.sg-tester { display: flex; flex-direction: column; gap: 10px; }
.kn2-gaps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.kn2-gaps li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0edf7; font-size: 14px; color: var(--st-ink); line-height: 1.4; }
.kn2-gaps li small { display: block; font-size: 12px; color: var(--st-muted); margin-top: 2px; }
.kn2-gaps li .kn-btn { flex: none; }
.kn2-add-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kn2-lang { border-top: 0; padding-top: 0; flex: 0 1 auto; gap: 10px; }
.kn2-lang .chatimini-select { width: auto; }
.kn2-add-actions { display: flex; gap: 8px; margin-left: auto; }
.kn2-list { gap: 0; padding-bottom: 12px; }
.kn2-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding-bottom: 12px; }
.kn2-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kn2-search { min-width: 0; width: 200px; }
.kn2-faq { border-top: 1px solid #f0edf7; padding: 16px 0; }
.kn2-faq.is-off .kn2-faq-main { opacity: .55; }
.kn2-faq-view { display: flex; gap: 16px; align-items: flex-start; }
.kn2-faq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kn2-faq-main b { font-weight: 500; font-size: 15.5px; color: var(--st-ink); }
.kn2-faq-main p { margin: 0; font-size: 14.5px; color: var(--st-muted); line-height: 1.55; white-space: pre-line; }
.kn2-faq-tags { display: flex; gap: 4px; }
.kn2-faq-tags:empty { display: none; }
.kn2-faq-actions { display: flex; gap: 10px; align-items: center; flex: none; }
.kn2-faq-edit { display: flex; flex-direction: column; gap: 12px; }
.kn2-lang-select { width: auto; align-self: flex-start; }
.kn2-edit-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kn2-edit-foot > span { display: flex; gap: 8px; }
.kn2-src-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kn2-src-head > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.kn2-src-head .sg-sub { margin: -8px 0 0; }
.kn2-quota { flex: 0 0 170px; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.kn2-quota b { font-size: 28px; font-weight: 300; color: var(--st-ink); font-variant-numeric: tabular-nums; line-height: 1; }
.kn2-quota b small { font-size: 15px; color: var(--st-muted); }
.kn2-quota .ov-track { margin: 0; }
.kn2-quota .ov-track span { display: block; height: 100%; border-radius: inherit; }
.kn2-quota > small { font-size: 12.5px; color: var(--st-muted); }
.kn2-map { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #e7fbf3; flex-wrap: wrap; }
.kn2-map svg { width: 20px; height: 20px; color: #146c52; flex: none; }
.kn2-map a { flex: 1; min-width: 0; color: #14513f; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn2-map .kn-btn { background: #fff; }
.kn2-ways { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #f0edf7; font-size: 14.5px; }
.kn2-ways .ov-seg { flex-wrap: wrap; }
.kn2-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: #f8f6fd; }
.kn2-form .sg-field--grow { flex: 1 1 240px; }
.kn2-num { flex: 0 0 110px; }
.kn2-form-hint { flex-basis: 100%; }
.kn2-bulkbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #f0edf7; min-height: 52px; }
.kn2-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--st-muted); cursor: pointer; }
.kn2-check input, .kn2-page input[type="checkbox"] { width: 17px; height: 17px; accent-color: #8b6cf0; flex: none; }
.kn2-bulk { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--st-ink); }
.kn2-page, .kn2-doc { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid #f0edf7; }
.kn2-page.is-off { opacity: .55; }
.kn2-page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kn2-page-main b { font-weight: 500; font-size: 15px; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn2-page-main a, .kn2-doc-meta { font-size: 13px; color: var(--st-muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn2-page-main a.kn2-page-url { font-size: 15px; font-weight: 500; color: var(--st-ink); }
.kn2-page-main a:hover { text-decoration: underline; }
.kn2-found { font-size: 14px; font-weight: 400; color: var(--st-muted); }
.kn2-page-main a:hover { text-decoration: underline; }
.kn2-page-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.kn2-page-meta small { font-size: 12.5px; color: var(--st-muted); white-space: nowrap; }
.kn2-page-actions { display: flex; gap: 2px; flex: none; }
.kn-icon { width: 36px; height: 36px; border-radius: 10px; border: 0; background: none; color: var(--st-muted); display: grid; place-items: center; cursor: pointer; }
.kn-icon svg { width: 18px; height: 18px; }
.kn-icon:hover { background: #f3effc; color: var(--st-ink); }
.kn-icon--danger:hover { background: #fde8ee; color: #b3264f; }
.kn2-wipe { display: flex; justify-content: flex-end; padding-top: 14px; border-top: 1px solid #f0edf7; }
.kn2-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px 20px; border-radius: 20px; border: 1.5px dashed #c9bdf0; background: #fbf9ff; cursor: pointer; transition: border-color .15s, background .15s; }
.kn2-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.kn2-drop svg { width: 30px; height: 30px; color: #8b6cf0; }
.kn2-drop b { font-weight: 500; font-size: 15px; color: var(--st-ink); }
.kn2-drop small { font-size: 13px; color: var(--st-muted); }
.kn2-drop:hover, .kn2-drop.is-over { border-color: #8b6cf0; background: #f4f0ff; }
.kn2-drop.is-ready { border-style: solid; border-color: var(--st-ink); background: #f6f3ff; }
.kn2-json summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kn2-json summary::-webkit-details-marker { display: none; }
.kn2-json summary::after { content: '+'; font-size: 22px; color: var(--st-muted); line-height: 1; }
.kn2-json[open] summary::after { content: '−'; }
.kn2-json summary b { display: block; font-weight: 500; font-size: 16px; color: var(--st-ink); }
.kn2-json summary small { font-size: 13.5px; color: var(--st-muted); }
.kn2-json-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.kn2-json-form input[type="file"] { padding: 9px 12px; }
@media (max-width: 760px) {
    .kn2-search { width: 100%; }
    .kn2-tools { width: 100%; }
    .kn2-quota { flex-basis: 100%; text-align: left; }
    .kn2-page, .kn2-doc { flex-wrap: wrap; gap: 8px 12px; }
    .kn2-page-main { flex-basis: calc(100% - 40px); }
    .kn2-page-meta { flex-direction: row; align-items: center; margin-left: 29px; }
    .kn2-page-actions { margin-left: auto; }
    .kn2-doc .kn2-page-main { flex-basis: calc(100% - 60px); }
    .kn2-doc .kn2-page-meta { margin-left: 56px; }
    .kn2-faq-view { flex-direction: column; gap: 10px; }
}
@media (max-width: 760px) { .kn2-map a { flex-basis: calc(100% - 34px); } .kn2-tools .kn2-search { flex: 1 1 100%; width: auto; } }

/* Séparateurs entre les éléments des listes (conversations, prospects) */
.ib-item, .pr-item { position: relative; }
.ib-item + .ib-item::before, .pr-item + .pr-item::before { content: ''; position: absolute; left: 14px; right: 14px; top: -3px; height: 1px; background: #e4def2; pointer-events: none; transition: opacity .15s; }
.ib-item:hover::before, .ib-item:hover + .ib-item::before, .ib-item.is-on::before, .ib-item.is-on + .ib-item::before,
.pr-item:hover::before, .pr-item:hover + .pr-item::before, .pr-item.is-on::before, .pr-item.is-on + .pr-item::before { opacity: 0; }

/* ── Analyse ──────────────────────────────────────────────────── */
.an2-updated { font-size: 13.5px; color: var(--st-muted); }
.an2-hero-sub { margin: 10px 0 0; font-size: 15.5px; color: var(--st-muted); max-width: 52ch; }
.an2-chart { height: 170px; }
.an2-chart .ov-bar small { font-size: 11px; white-space: nowrap; min-height: 14px; }
.an2-ai { align-items: start; }
.an2-more { align-self: flex-start; margin-top: 10px; font-size: 14px; color: #5b3fc4 !important; text-decoration: none; }
.an2-more:hover { text-decoration: underline; }
.an2-auto { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--st-muted); }
.an2-qa { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid #f0edf7; }
.an2-label { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
.an2-q { padding-right: 14px; }
.an2-self { align-self: flex-start; }
.an2-faqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.an2-faq { border: 1px solid var(--st-line); border-radius: 18px; padding: 16px; }
.an2-faq-form { display: flex; flex-direction: column; gap: 12px; }
.an2-faq-form textarea { resize: vertical; }
.an2-faq-actions { display: flex; justify-content: flex-end; gap: 8px; }
.an2-faq-actions .btn-gradient:disabled { opacity: .45; cursor: not-allowed; }
.an2-ai-empty { flex-wrap: wrap; }
.an2-h2 { margin: 0 0 4px; font-size: 22px; font-weight: 400; color: var(--st-ink); }
.an2-recent { gap: 0; }
.an2-recent .ov-card-head { padding-bottom: 12px; }
.an2-recent .ib-pages { padding-top: 14px; border-top: 1px solid #f0edf7; }
.ov-card-head .ld-count, .ov-card-head h2 .ld-count { font-style: normal; font-size: 12px; background: #ece8f6; border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: var(--st-muted); }
@media (max-width: 760px) {
    .an2-faqs { grid-template-columns: minmax(0, 1fr); }
    .an2-recent .ov-card-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .an2-recent .ov-seg { flex-wrap: wrap; }
}
.an2 .ov-card-head { flex-wrap: wrap; gap: 10px 14px; }
.an2 .ov-seg button, .an2 .ov-seg a { white-space: nowrap; }
.an2 .ov-seg .ld-count { font-style: normal; }
.an2 .ov-card-head .ov-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 420px) { .an2 .ov-card-head .ov-seg button, .an2 .ov-card-head .ov-seg a { padding-left: 11px; padding-right: 11px; } }
/* Analyse : courbe en aire qui remplit sa carte */
.an2-chart-card { display: flex; flex-direction: column; }
.an2-area { position: relative; flex: 1; min-height: 190px; margin-left: 30px; }
.an2-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an2-area-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; padding-bottom: 4%; }
.an2-area-grid span { position: relative; height: 0; border-top: 1px dashed #ece8f6; font-size: 11px; color: var(--st-muted); }
.an2-area-grid span::before { content: attr(data-v); }
.an2-area-grid span { text-indent: -30px; line-height: 0; }
.an2-area-hits { position: absolute; inset: 0; display: flex; }
.an2-area-hits span { flex: 1; cursor: default; }
.an2-area-hits span:hover { background: linear-gradient(180deg, rgba(139,108,240,0), rgba(139,108,240,.12)); border-radius: 6px; }
.an2-area-labels { display: flex; margin: 8px 0 0 30px; }
.an2-area-labels span { flex: 1; font-size: 11px; color: var(--st-muted); white-space: nowrap; overflow: visible; }
.an2-area-labels span:last-child { text-align: right; }

/* Bulle d'aide « ? » */
.it { position: relative; display: inline-flex; vertical-align: middle; }
.it-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #ddd6ef; background: #fff; color: var(--st-muted); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.it-btn:hover, .it-btn[aria-expanded="true"] { border-color: #8b6cf0; color: #5b3fc4; }
.it-pop { position: absolute; top: calc(100% + 8px); z-index: 60; width: 300px; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 14px; background: var(--st-ink); color: #ece8f6; font-size: 13.5px; font-weight: 400; line-height: 1.5; text-align: left; letter-spacing: 0; text-transform: none; box-shadow: 0 18px 40px -20px rgba(33,18,61,.6); white-space: normal; }
.it-pop b { color: #fff; font-weight: 600; }
.it-pop--right { right: -6px; }
.it-pop--left { left: -6px; }
.sg-bar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sg-bar-tools .sg-mode { margin-bottom: 0; }
.sg-mode-label { font-size: 13.5px; color: var(--st-muted); }
.sg-history-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--st-ink) !important; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--st-line); background: #fff; margin-right: 6px; }
.sg-history-link svg { width: 16px; height: 16px; color: #5b3fc4; }
.sg-history-link:hover { border-color: #b69bfb; }
.sg-modeline b .it { margin-left: 4px; }
.sg-linkcard { flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: var(--st-ink) !important; transition: border-color .15s; }
.sg-linkcard:hover { border-color: #b69bfb; }
.sg-linkcard > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sg-linkcard b { font-weight: 500; font-size: 16px; }
.sg-linkcard small { font-size: 13.5px; color: var(--st-muted); }
.sg-linkcard-ico { width: 40px; height: 40px; border-radius: 12px; background: #f4f0ff; display: grid; place-items: center; flex: none; }
.sg-linkcard-ico svg { width: 20px; height: 20px; color: #5b3fc4; }

/* Historique des versions */
.pv-head { display: flex; flex-direction: column; gap: 8px; }
.pv-head .ov-muted { max-width: 80ch; margin: 0; }
.pv-back { font-size: 14px; color: #5b3fc4 !important; text-decoration: none; align-self: flex-start; }
.pv-back:hover { text-decoration: underline; }
.pv-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.pv-list { display: flex; flex-direction: column; gap: 4px; }
.pv-item { font: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--st-ink); width: 100%; position: relative; }
.pv-item:hover { background: #fff; }
.pv-item.is-on { background: #fff; border-color: var(--st-line); }
.pv-item + .pv-item::before { content: ''; position: absolute; left: 14px; right: 14px; top: -3px; height: 1px; background: #e4def2; }
.pv-item:hover::before, .pv-item:hover + .pv-item::before, .pv-item.is-on::before, .pv-item.is-on + .pv-item::before { opacity: 0; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d3ea; flex: none; }
.pv-dot.is-current { background: #1f9e78; box-shadow: 0 0 0 4px #e2fbf2; }
.pv-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pv-item-main b { font-weight: 500; font-size: 14.5px; }
.pv-item-main small { font-size: 12.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-detail { position: sticky; top: 24px; min-width: 0; }
.pv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pv-card-head .sg-sub { margin: 4px 0 0; }
.pv-code { max-height: 60vh; }
@media (max-width: 900px) { .pv-grid { grid-template-columns: minmax(0, 1fr); } .pv-detail { position: static; } }
.it-pop b { display: inline; font-size: inherit; }
.sg-modeline .it-pop, .sg-modeline .it-pop b { font-size: 13.5px; color: #ece8f6; }
.sg-modeline .it-pop b { color: #fff; }
@media (max-width: 640px) { .it-pop { position: fixed; left: 16px !important; right: 16px !important; width: auto; max-width: none; top: auto; margin-top: 8px; } }
.sg-linkcard b .ld-count { font-style: normal; font-size: 12px; font-weight: 400; background: #ece8f6; border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: var(--st-muted); }

/* ── Fil d'Ariane ─────────────────────────────────────────────── */
.st-crumbs { max-width: 1480px; margin: 0 auto; padding: 22px 40px 0; box-sizing: border-box; position: relative; z-index: 5; }
.st-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; color: var(--st-muted); }
.st-crumbs li { display: flex; align-items: center; min-width: 0; }
.st-crumbs li + li::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid #b9b0d2; border-top: 1.5px solid #b9b0d2; transform: rotate(45deg); margin: 0 10px 0 6px; flex: none; }
.st-crumbs a { color: var(--st-muted) !important; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.st-crumbs a:hover { color: var(--st-ink) !important; text-decoration: underline; }
.st-crumbs [aria-current] { color: var(--st-ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.st-crumbs + .st-pagehead, .st-crumbs + .ov { padding-top: 10px; }
@media (max-width: 640px) { .st-crumbs { padding: 14px 16px 0; } .st-crumbs a { max-width: 140px; } }

/* ── Loader : la mascotte réfléchit ───────────────────────────── */
.st-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(33,18,61,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: stFade .2s ease; }
.st-loader[hidden] { display: none; }
.st-loader-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 36px 24px; border-radius: 28px; background: linear-gradient(135deg, #fff, #f6f3ff); box-shadow: 0 30px 70px -30px rgba(33,18,61,.6); min-width: 260px; max-width: calc(100vw - 32px); text-align: center; }
.st-loader-stage { position: relative; width: 120px; height: 132px; }
.st-loader-stage img { width: 120px; height: 120px; display: block; animation: stBob 1.4s cubic-bezier(.45,0,.55,1) infinite; }
.st-loader-shadow { position: absolute; left: 50%; bottom: 0; width: 64px; height: 10px; margin-left: -32px; border-radius: 50%; background: rgba(33,18,61,.16); animation: stShadow 1.4s cubic-bezier(.45,0,.55,1) infinite; }
#loader-message { margin: 4px 0 0; font-size: 15.5px; font-weight: 500; color: var(--st-ink); max-width: 30ch; }
.st-loader-dots { display: inline-flex; gap: 5px; }
.st-loader-dots i { width: 7px; height: 7px; border-radius: 50%; background: #b69bfb; animation: sgDot 1s infinite ease-in-out; }
.st-loader-dots i:nth-child(2) { animation-delay: .15s; background: #60ccfd; } .st-loader-dots i:nth-child(3) { animation-delay: .3s; background: #8df9d9; }
@keyframes stBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes stShadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.7); opacity: .5; } }
@keyframes stFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-loader-stage img, .st-loader-shadow, .st-loader-dots i { animation: none; } }

/* Réglages › Apparence : section mascotte en tête */
.mc { background: linear-gradient(135deg, #f1fbff, #f4f0ff 55%, #fdf3fe); border-color: #e4dcfb; }
.mc-in { display: flex; align-items: center; gap: 20px; }
.mc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.mc-txt .sg-sub { margin: -8px 0 0; }
.mc-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-opt { font: inherit; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid #ddd6ef; background: #fff; cursor: pointer; text-align: left; color: var(--st-ink); transition: border-color .15s, box-shadow .15s; }
.mc-opt img { width: 56px; height: 56px; flex: none; }
.mc-opt span:last-child { display: flex; flex-direction: column; gap: 1px; }
.mc-opt b { font-weight: 500; font-size: 15px; }
.mc-opt small { font-size: 12.5px; color: var(--st-muted); }
.mc-opt:hover { border-color: #b69bfb; }
.mc-opt.is-on { border-color: var(--st-ink); box-shadow: inset 0 0 0 1px var(--st-ink); }
.mc-round { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--st-ink); color: #fff; }
@media (max-width: 760px) { .mc-choice { grid-template-columns: minmax(0, 1fr); } }

/* Connaissances › Questions : chaque question en mini-échange */
.fq-addhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.fq-addhead > div { display: flex; flex-direction: column; gap: 14px; }
.fq-ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--st-muted); }
.fq-ideas button { font: inherit; font-size: 13px; color: #5b3fc4; background: #f4f0ff; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.fq-ideas button:hover { background: #ebe3ff; }
.fq-count { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fq-count h2 { margin-right: 4px; }
.fq-pill { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: #f1eef8; color: var(--st-muted); }
.fq-pill.is-on { background: #e2fbf2; color: #146c52; }
.fq-item { border-top: 1px solid #f0edf7; padding: 18px 0; }
.fq-actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
    .fq-view { flex-direction: column; gap: 10px; }
    .fq-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .fq-tags { flex-direction: row; align-items: center; }
    .fq-q-bubble, .fq-a p { max-width: 92%; }
}
/* Conversations en plein écran : on retire la hauteur du fil d'Ariane */
@media (min-width: 1024px) { .st-crumbs + .ib { height: calc(100vh - 42px); padding-top: 10px; } }

/* Courbe en aire réutilisable (Analyse, Vue d'ensemble, Consommation) */
.ac { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ac .an2-area { margin-left: var(--ac-gutter, 30px); }
.ac .an2-area-grid span { text-indent: calc(-1 * var(--ac-gutter, 30px)); white-space: nowrap; }
.ac .an2-area-labels { margin-left: var(--ac-gutter, 30px); }
.us-chart-card .an2-area { min-height: 220px; }
/* Analyse : date de l'analyse et bouton alignés */
.an2-refresh { align-items: center; }
.an2-refresh .an2-updated { line-height: 1; }

/* ── Analyse : parcours en entonnoir ──────────────────────────── */
.an2-funnel-end { font-size: 13.5px; color: #5b3fc4; background: #f4f0ff; padding: 5px 12px; border-radius: 999px; }
.fn { list-style: none; margin: 4px 0 0; padding: 0; display: flex; align-items: stretch; }
.fn-step { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; border-radius: 20px; border: 1px solid var(--st-line); background: #fff; isolation: isolate; }
.fn-fill { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; background: linear-gradient(180deg, rgba(182,155,251,.28), rgba(96,204,253,.22)); border-top: 2px solid rgba(139,108,240,.45); }
.fn-num { width: 24px; height: 24px; border-radius: 50%; background: var(--st-ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-bottom: 6px; }
.fn-label { font-size: 14px; font-weight: 500; color: var(--st-ink); }
.fn-count { font-size: 34px; font-weight: 300; line-height: 1.05; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.fn-pct { align-self: flex-start; font-size: 12.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.8); color: #5b3fc4; }
.fn-desc { font-size: 12.5px; color: var(--st-muted); line-height: 1.4; margin-top: 4px; }
.fn-link { flex: 0 0 56px; display: grid; place-items: center; position: relative; }
.fn-link::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #d9d3ea 0 6px, transparent 6px 10px); }
.fn-link span { position: relative; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: #f1eef8; color: var(--st-muted); white-space: nowrap; }
.fn-link.is-high span { background: #fde8ee; color: #a3264b; }
.fn-tip { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff7e6; color: #6b4300; font-size: 14px; }
.fn-tip b { font-weight: 600; }
@media (max-width: 1100px) {
    .fn { flex-direction: column; }
    .fn-link { flex-basis: 34px; }
    .fn-link::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #d9d3ea 0 6px, transparent 6px 10px); }
    .fn-step { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
    .fn-num { margin: 0; }
    .fn-label { flex: 1; }
    .fn-count { font-size: 26px; }
    .fn-desc { flex-basis: 100%; }
    .fn-fill { top: 0; bottom: 0; height: auto !important; right: auto; width: var(--w, 100%); border-top: 0; }
}

/* ── Analyse : contenu manquant ───────────────────────────────── */
.cm { gap: 16px; }
.cm-head { align-items: flex-start; }
.cm-head .ov-muted { margin: 4px 0 0; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cm-gap { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--st-line); background: #fff; position: relative; overflow: hidden; }
.cm-gap::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--p-ink); opacity: .7; }
.cm-prio { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--p-bg); color: var(--p-ink); }
.cm-prio i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-ink); }
.cm-gap h3 { margin: 2px 0 0; font-size: 16px; font-weight: 500; color: var(--st-ink); }
.cm-gap p { margin: 0; font-size: 14px; color: var(--st-muted); line-height: 1.5; }
.cm-quotes { display: flex; flex-direction: column; gap: 4px; }
.cm-quotes span { align-self: flex-start; max-width: 100%; font-size: 13px; color: var(--st-ink); background: #f6f3ff; padding: 5px 10px; border-radius: 10px 10px 10px 3px; }
.cm-answer { margin-top: auto; padding-top: 6px; align-self: flex-start; font-size: 13.5px; font-weight: 500; color: #5b3fc4 !important; text-decoration: none; }
.cm-answer:hover { text-decoration: underline; }
.cm-empty { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #e7fbf3; color: #14513f; font-size: 14.5px; }
.cm-empty img { width: 64px; height: 64px; flex: none; }
.cm-empty p { margin: 0; }
.cm-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid #f0edf7; }
.cm-foot-ai { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #f1fbff, #f4f0ff 60%, #fdf3fe); }
.cm-foot-ai img { width: 44px; height: 44px; flex: none; }
.cm-foot-ai span { flex: 1 1 260px; font-size: 14.5px; color: var(--st-ink); }
.cm-foot-ai b { font-weight: 600; }
.cm-foot-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.cm-foot-links a { font-size: 14px; color: #5b3fc4 !important; text-decoration: none; }
.cm-foot-links a:hover { text-decoration: underline; }

/* ── Création d'un chatbot : conversation + aperçu qui se construit ── */
.cw { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 32px; align-items: start; }
.cw > *:not(.cw-aside) { grid-column: 1; }
.cw-aside { grid-column: 2; grid-row: 1 / span 60; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.cw-aside .ov-eyebrow { margin: 0; font-size: 12px; }
.cw-widget { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--st-line); box-shadow: 0 24px 50px -36px rgba(33,18,61,.55); }
.cw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; transition: background .3s; }
.cw-head b { font-weight: 500; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-head small { font-size: 12px; opacity: .75; }
.cw-av { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; flex: none; }
.cw-av img { width: 100%; height: 100%; object-fit: contain; }
.cw-body { padding: 16px 14px; min-height: 150px; display: flex; flex-direction: column; gap: 10px; background: #fbfaff; }
.cw-msg { align-self: flex-start; max-width: 90%; padding: 10px 13px; border-radius: 16px 16px 16px 5px; background: #fff; border: 1px solid #ece8f6; font-size: 14px; line-height: 1.45; color: var(--st-ink); }
.cw-sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cw-sugg span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid; background: #fff; }
.cw-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #f0edf7; font-size: 13px; color: #a79fc0; }
.cw-input span { flex: 1; padding: 8px 12px; border: 1px solid #ece8f6; border-radius: 999px; }
.cw-input i { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.cw-steps { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--st-line); border-radius: 20px; }
.cw-steps button { font: inherit; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 12px; text-align: left; color: var(--st-muted); cursor: pointer; }
.cw-steps button:disabled { cursor: default; }
.cw-steps li.is-done button:hover { background: #f6f3ff; }
.cw-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #f1eef8; color: var(--st-muted); }
.cw-steps li.is-done .cw-dot { background: #e2fbf2; color: #146c52; }
.cw-steps li.is-on .cw-dot { background: var(--st-ink); color: #fff; }
.cw-step-txt { display: flex; flex-direction: column; min-width: 0; }
.cw-step-txt b { font-weight: 500; font-size: 14px; }
.cw-steps li.is-done b, .cw-steps li.is-on b { color: var(--st-ink); }
.cw-step-txt small { font-size: 12.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .cw { grid-template-columns: minmax(0, 640px); } .cw-aside { display: none; } }

/* ── Infos communes ───────────────────────────────────────────── */
.pf-hero { gap: 28px; }
.pf-hero h1 { max-width: 18ch; }
.pf-hero-sub { margin: 10px 0 0; font-size: 15.5px; color: var(--st-muted); }
.pf-stats { display: flex; gap: 10px; flex: none; }
.pf-stats div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.7); min-width: 120px; }
.pf-stats b { font-size: 30px; font-weight: 300; line-height: 1; color: var(--st-ink); }
.pf-stats span { font-size: 13px; color: var(--st-muted); }
.pf-form { display: flex; flex-direction: column; gap: 18px; }
.pf-save { position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--st-line); }
.pf-save p { margin: 0; font-size: 14px; color: var(--st-muted); }
@media (max-width: 1100px) { .pf-stats { display: none; } }

/* Création : conversation au style Studio */
.cr-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; }
.cr-top .ov-muted { margin: 6px 0 0; }
.cr-top .ov-muted b { color: var(--st-ink); }
.cr-progress { display: flex; gap: 6px; }
.cr-progress span { width: 34px; height: 6px; border-radius: 999px; background: #e4def2; transition: background .3s; }
.cr-progress span.is-done { background: #b69bfb; }
.cr-progress span.is-on { background: var(--st-ink); }
.cr-form, .cr-step { display: flex; flex-direction: column; gap: 14px; }
.cr-step { max-width: 720px; }
.cr-say { display: flex; align-items: flex-end; gap: 12px; }
.cr-av { width: 60px; height: 60px; aspect-ratio: 1; flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #cdeefe, #efe9ff); display: grid; place-items: center; box-shadow: 0 6px 16px -10px rgba(33,18,61,.5); }
.cr-av img { width: 64%; height: 64%; object-fit: contain; }
.cr-bubble { padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #fff; border: 1px solid var(--st-line); max-width: 560px; }
.cr-bubble b { display: block; font-weight: 600; font-size: 15.5px; color: var(--st-ink); }
.cr-bubble p { margin: 4px 0 0; font-size: 14.5px; color: var(--st-muted); line-height: 1.5; }
.cr-bubble.sg-typing { padding: 16px 18px; }
.cr-input-icon { position: relative; }
.cr-input-icon .chatimini-input { padding-right: 42px; }
.cr-spin { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid #e4def2; border-top-color: #8b6cf0; animation: crSpin .7s linear infinite; }
.cr-ok { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #1f9e78; }
@keyframes crSpin { to { transform: rotate(360deg); } }
.chatimini-input.is-invalid { border-color: #e0577f; box-shadow: 0 0 0 4px rgba(224,87,127,.12); }
.cr-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cr-recap { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cr-recap div { padding: 12px 14px; border-radius: 14px; border: 1px solid #f0edf7; }
.cr-recap dt { font-size: 12.5px; color: var(--st-muted); }
.cr-recap dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--st-ink); display: flex; align-items: center; gap: 8px; }
.cr-recap-swatch { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(33,18,61,.12); }
.cr .sg-avatar-zone { cursor: pointer; }
.cr .sg-avatar-zone img { object-fit: contain; }
.cr .sg-avatar-btns label.kn-btn { cursor: pointer; }
/* Animations appelées par la logique du parcours */
.cr .anim-bubble { animation: crIn .35s ease both; }
.cr .anim-card { animation: crIn .35s ease both; animation-delay: .08s; }
.cr .anim-nav { animation: crIn .35s ease both; animation-delay: .14s; }
.cr .step-exiting { animation: crOut .2s ease both; }
.cr .step-exiting-back { animation: crOutBack .2s ease both; }
.cr .shake-once { animation: crShake .35s ease; }
@keyframes crIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes crOut { to { opacity: 0; transform: translateX(-12px); } }
@keyframes crOutBack { to { opacity: 0; transform: translateX(12px); } }
@keyframes crShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 760px) { .cr-recap { grid-template-columns: minmax(0, 1fr); } .cr-progress span { width: 22px; } }
/* Prospects : le besoin en liste */
.pr-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-needs li { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: #f8f6fd; font-size: 15px; line-height: 1.45; color: var(--st-ink); }
.pr-needs li::before { content: ''; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: #efe9ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b3fc4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ov-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ov-links .sg-linkcard { height: 100%; }

/* Infos communes : FAQ */
.pf-faq { gap: 0; }
.pf-faq .ov-card-head { padding-bottom: 14px; }
.pf-item { border-top: 1px solid #f0edf7; padding: 18px 0; }
.pf-scope { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #efe9ff; color: #5b3fc4; text-align: right; }
.pf-scope.is-all { background: #e2fbf2; color: #146c52; }
.pf-item.is-editing { background: #fbfaff; margin: 0 -24px; padding: 18px 24px; }
.pf-edit { display: flex; flex-direction: column; gap: 12px; }
.pf-edit textarea { resize: vertical; }
.pf-edit-foot { display: flex; justify-content: space-between; gap: 10px; }
.pf-ideas { padding-top: 16px; border-top: 1px solid #f0edf7; }
@media (max-width: 760px) { .pf-item.is-editing { margin: 0 -18px; padding: 18px; } }
.pf-scope { white-space: nowrap; }

/* Import du site après création */
.ob-col { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.ob-loading { align-items: center; text-align: center; gap: 10px; padding: 28px 24px; }
.ob-loading b { font-weight: 500; font-size: 16px; color: var(--st-ink); word-break: break-all; }
.ob-bar { width: 100%; max-width: 360px; height: 8px; border-radius: 999px; background: #ece8f6; overflow: hidden; }
.ob-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b69bfb, #60ccfd); animation: obSlide 1.4s ease-in-out infinite; }
@keyframes obSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.ob-done-head { display: flex; align-items: center; gap: 14px; }
.ob-done-head b { display: block; font-weight: 600; font-size: 17px; color: var(--st-ink); }
.ob-check { width: 48px; height: 48px; border-radius: 50%; background: #e2fbf2; color: #1f9e78; display: grid; place-items: center; flex: none; }
.ob-check svg { width: 24px; height: 24px; }
.ob-done .ov-muted { margin: 0; }

/* Accueil : vue liste */
.hm-view button { display: grid; place-items: center; padding: 7px 10px !important; }
.hm-view svg { width: 17px; height: 17px; }
.hm-list { padding: 6px 0; gap: 0; }
.hm-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 120px 110px 90px 90px minmax(0, 1.6fr); gap: 14px; align-items: center; padding: 12px 22px; border-top: 1px solid #f0edf7; }
.hm-row:first-child { border-top: 0; }
.hm-row--head { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); padding-top: 10px; padding-bottom: 10px; }
.hm-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--st-ink) !important; }
.hm-row-main .hm-logo { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.hm-row-main:hover b { text-decoration: underline; }
.hm-num { font-size: 18px; font-weight: 300; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.hm-row-next { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--st-ink) !important; text-decoration: none; min-width: 0; }
.hm-row-next span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-list-foot { padding: 10px 22px 6px; margin: 0; }
@media (max-width: 1000px) {
    .hm-row--head { display: none; }
    .hm-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 16px 18px; }
    .hm-row-main { grid-column: 1 / -1; }
    .hm-row > [data-label] { display: flex; flex-direction: column; gap: 2px; }
    .hm-row > [data-label]::before { content: attr(data-label); font-size: 12px; color: var(--st-muted); }
    .hm-row > [data-label="Statut"] { grid-column: 1 / -1; flex-direction: row; }
    .hm-row > [data-label="Statut"]::before { display: none; }
    .hm-row-next { grid-column: 1 / -1; }
}

/* Analyse : questions récentes, regroupées par jour */
.rq-day { margin: 14px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); }
.an2-recent .ov-card-head + .rq-day { margin-top: 2px; }
.rq-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 -14px; border-radius: 16px; transition: background .15s; }
.rq-row:hover { background: #faf8fe; }
.rq-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.rq-ico svg { width: 17px; height: 17px; }
.rq-row.is-ok .rq-ico { background: #e2fbf2; color: #1f9e78; }
.rq-row.is-gap .rq-ico { background: #fdeffe; color: #b23cb8; }
.rq-row.is-off .rq-ico { background: #f1eef8; color: #a79fc0; }
.rq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rq-main p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--st-ink); }
.rq-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--st-muted); }
.rq-meta > * + *::before { content: '·'; margin-right: 8px; color: #c9c2dc; }
.rq-row.is-ok .rq-state { color: #146c52; }
.rq-row.is-gap .rq-state { color: #a32fa8; font-weight: 500; }
.rq-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.rq-answer { font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--st-ink); color: #fff !important; text-decoration: none; }
.rq-answer:hover { background: #3a2464; }
@media (max-width: 760px) { .rq-row { flex-wrap: wrap; } .rq-main { flex-basis: calc(100% - 48px); } .rq-actions { margin-left: 48px; } }
.tr-actions { gap: 6px; align-items: center; }

/* ── Pagination commune (x-pager) ─────────────────────────────── */
.pg { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 4px 4px; }
.pg-info { font-size: 13.5px; color: var(--st-muted); }
.pg-btns { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pg-b { min-width: 34px; height: 34px; padding: 0 8px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--st-line); background: #fff; color: var(--st-ink); font-size: 14px; font-weight: 500; text-decoration: none; display: inline-grid; place-items: center; transition: background .15s, border-color .15s; }
a.pg-b:hover { background: #f5f2fd; border-color: #d9cdfb; }
.pg-b.is-on { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
.pg-b.is-off { opacity: .4; }
.pg-b svg { width: 16px; height: 16px; }
.pg-gap { color: var(--st-muted); padding: 0 2px; }
.pg-now { font-size: 13.5px; color: var(--st-muted); padding: 0 8px; }

/* ── Bouton en cours d'envoi (layouts/partials/busy) ─────────────── */
.is-busy { pointer-events: none; cursor: progress; opacity: .85; }
.is-busy::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: crSpin .7s linear infinite; }
.kn-icon.is-busy, .pg-b.is-busy { position: relative; }
.kn-icon.is-busy > svg { opacity: 0; }
.kn-icon.is-busy::after { position: absolute; inset: 0; margin: auto; }
@media (prefers-reduced-motion: reduce) { .is-busy::after { animation-duration: 2s; } }
.kn2-intro + .sg-bar { margin-top: 10px; }

/* Pages web : renommer une page dans la liste */
.kn2-rename { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
.kn2-rename input { padding: 8px 12px; font-size: 15px; }
.kn2-rename small { grid-column: 1; font-size: 12.5px; color: var(--st-muted); padding-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kn2-rename-btns { grid-column: 2; grid-row: 1; display: flex; gap: 6px; }
.kn2-rename-save { padding: 7px 16px; font-size: 13.5px; }
@media (max-width: 640px) { .kn2-rename { grid-template-columns: minmax(0, 1fr); } .kn2-rename-btns { grid-column: 1; grid-row: auto; justify-content: flex-end; } }

/* Documents : texte lu par le bot */
.kn2-doc-wrap { border-top: 1px solid #f0edf7; }
.kn2-doc-wrap .kn2-doc { border-top: 0; }
.kn-icon.is-on { background: #ece5ff; color: var(--st-ink); }
.kn2-text { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #faf8ff; border: 1px solid var(--st-line); }
.kn2-text-load { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--st-muted); }
.kn2-text-head { margin: 0 0 10px; font-size: 13.5px; color: var(--st-muted); }
.kn2-text-head b { color: var(--st-ink); font-weight: 600; }
.kn2-text-body { max-height: 420px; overflow-y: auto; padding-right: 6px; }
.kn2-text-body section + section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e3ddf2; }
.kn2-text-body h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--st-muted); }
.kn2-text-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--st-ink); white-space: pre-line; overflow-wrap: anywhere; }

/* Questions (Connaissances, Infos communes) : bulles du détail de conversation, options sous l'échange */
.fq-view { display: flex; flex-direction: column; gap: 10px; }
.fq-thread { display: flex; flex-direction: column; gap: 10px; }
.fq-thread .ib-msg { max-width: 78%; white-space: pre-line; }
.fq-thread .ib-msg--user { font-weight: 500; }
.fq-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.fq-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--st-muted); }
.fq-bar .fq-actions { display: flex; align-items: center; gap: 4px; }
.fq-act { font: inherit; font-size: 13px; font-weight: 500; color: var(--st-muted); background: none; border: 0; border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fq-act svg { width: 15px; height: 15px; }
.fq-act:hover { background: #f4f0ff; color: var(--st-ink); }
.fq-act--danger:hover { background: #fdeef2; color: #b3264f; }
.fq-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--st-line); font-size: 13px; color: var(--st-muted); }
.fq-item.is-off .fq-thread { opacity: .45; filter: grayscale(.6); }
@media (max-width: 640px) { .fq-thread .ib-msg { max-width: 90%; } .fq-act span { display: none; } }
