/* Styles propres à l'espace client */
.boot { min-height:100vh; display:grid; place-items:center; }
.boot img { animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.4; transform:scale(.94); } }

/* Carte de statut WhatsApp dans la barre supérieure */
.wa-pill { display:inline-flex; align-items:center; gap:8px; height:32px; padding:0 12px; border-radius:99px; background:var(--mist); border:1px solid var(--line); font-weight:600; font-size:12.5px; color:var(--ink-2); cursor:pointer; }
.wa-pill i { width:8px; height:8px; border-radius:50%; background:var(--line-strong); }
.wa-pill.on i { background:var(--success); box-shadow:0 0 0 3px color-mix(in srgb,var(--shadow-color) 18%,transparent); }
.wa-pill.wait i { background:var(--warning); }

/* ---------- Onboarding ---------- */
.onboard { background:var(--surface-alt); color:var(--info); border-radius:var(--radius-lg); padding:26px 28px; position:relative; overflow:hidden; margin-bottom:22px; }
.onboard::after { content:''; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:var(--surface-alt); }
.onboard h2 { color:var(--on-contrast); font-size:20px; }
.onboard-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin-top:18px; position:relative; z-index:1; }
.ostep { background:color-mix(in srgb,var(--surface) 7%,transparent); border:1px solid color-mix(in srgb,var(--on-contrast) 10%,transparent); border-radius:12px; padding:14px; display:flex; gap:12px; align-items:flex-start; color:var(--info); text-decoration:none !important; }
.ostep:hover { background:color-mix(in srgb,var(--surface) 11%,transparent); }
.ostep .n { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-weight:800; background:color-mix(in srgb,var(--surface) 12%,transparent); color:var(--on-contrast); flex:none; font-size:13px; }
.ostep.done .n { background:var(--teal); color:var(--navy); }
.ostep b { color:var(--on-contrast); display:block; font-size:13.5px; margin-bottom:2px; }
.ostep span { font-size:12px; }
@media (max-width: 900px) { .onboard-steps { grid-template-columns:1fr; } }

/* ---------- Connexion WhatsApp ---------- */
.qr-card { container-type:inline-size; }
.qr-panel { display:grid; grid-template-columns:260px minmax(0, 1fr); gap:24px; align-items:start; }
.qr-panel > div { min-width:0; }
.qr-box { width:260px; height:260px; border-radius:16px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; position:relative; overflow:hidden; }
.qr-box img.qr { width:236px; height:236px; image-rendering:pixelated; }
.qr-box .qr-logo { position:absolute; width:54px; height:54px; background:var(--surface); border-radius:12px; padding:6px; box-shadow:0 0 0 4px var(--shadow-color); }
.qr-box .placeholder { text-align:center; color:var(--muted); padding:24px; }
.qr-box .placeholder svg { width:48px; height:48px; color:var(--teal); margin-bottom:10px; }
.qr-box.connected { background:var(--teal-50); border-color:var(--teal-100); }
.qr-steps { counter-reset:s; list-style:none; padding:0; margin:12px 0 0; display:flex; flex-direction:column; gap:10px; }
.qr-steps li { counter-increment:s; position:relative; padding-left:36px; min-height:24px; font-size:13.5px; line-height:1.5; overflow-wrap:anywhere; }
.qr-steps li b { font-weight:700; }
.qr-steps li::before { content:counter(s); width:24px; height:24px; border-radius:50%; background:var(--teal-50); color:var(--teal-700); font-weight:700; display:grid; place-items:center; font-size:12px; position:absolute; left:0; top:-1px; }
.pair-code { font-family:ui-monospace, Menlo, monospace; font-size:26px; letter-spacing:.18em; font-weight:700; color:var(--navy); background:var(--mist); padding:10px 16px; border-radius:10px; display:inline-block; }
@container (max-width: 720px) { .qr-panel { grid-template-columns:1fr; } .qr-box { width:100%; max-width:280px; height:auto; aspect-ratio:1; margin:0 auto; } }
@media (max-width: 900px) { .qr-panel { grid-template-columns:1fr; } .qr-box { width:100%; max-width:280px; height:auto; aspect-ratio:1; margin:0 auto; } }

.option { display:flex; gap:16px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line); }
.option:last-child { border-bottom:0; }
.option .ico { width:40px; height:40px; border-radius:10px; background:var(--teal-50); color:var(--teal-700); display:grid; place-items:center; flex:none; }
.option .ico svg { width:20px; height:20px; }
.option h3 { font-size:14px; margin-bottom:2px; }
.option p { font-size:12.5px; color:var(--muted); margin:0; }

/* ---------- Boîte de réception ---------- */
.inbox { position:relative; display:grid; grid-template-columns:340px minmax(0, 1fr); height:calc(100vh - 64px - 56px); min-height:520px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.inbox-list { border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
.inbox-list .filters { padding:12px; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:10px; }
.conv-items { overflow-y:auto; flex:1; }
.conv-item { display:flex; gap:12px; padding:12px 14px; border-bottom:1px solid var(--line); cursor:pointer; position:relative; }
.conv-item:hover { background:var(--surface); }
.conv-item.active { background:var(--teal-50); }
.conv-item.active::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--teal); }
.conv-item .meta { flex:1; min-width:0; }
.conv-item .name { font-weight:700; font-size:13.5px; display:flex; justify-content:space-between; gap:8px; }
.conv-item .name time { font-weight:500; font-size:12px; color:var(--muted); flex:none; }
.conv-item .last { font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-item .unread { background:var(--teal); color:var(--navy); font-size:12px; font-weight:800; min-width:18px; height:18px; border-radius:99px; display:grid; place-items:center; padding:0 5px; }
.thread { display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--surface-alt); }
.thread-head { padding:12px 18px; background:var(--surface); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:12px; }
.bubbles { flex:1; overflow-y:auto; padding:20px 22px; display:flex; flex-direction:column; gap:8px; background-image:none; background-size:18px 18px; }
.bubble { max-width:72%; padding:9px 12px 6px; border-radius:12px; font-size:13.5px; line-height:1.45; white-space:pre-wrap; word-wrap:break-word; box-shadow:var(--shadow-sm); }
.bubble .by { font-size:12px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; margin-bottom:2px; display:flex; gap:6px; align-items:center; }
.bubble .by svg { width:12px; height:12px; }
.bubble time { display:block; text-align:right; font-size:12px; opacity:.65; margin-top:2px; }
.bubble.in { background:var(--surface); align-self:flex-start; border-top-left-radius:4px; }
.bubble.bot { background:var(--teal-50); border:1px solid var(--teal-100); align-self:flex-end; border-top-right-radius:4px; }
.bubble.bot .by { color:var(--teal-700); }
.bubble.agent { background:var(--contrast-surface); color:var(--on-contrast); align-self:flex-end; border-top-right-radius:4px; }
.bubble.agent .by { color:var(--accent); }
.day-sep { align-self:center; font-size:12px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--line); padding:3px 10px; border-radius:99px; margin:8px 0; }
.composer { display:flex; flex-direction:column; gap:8px; padding:10px 12px; background:var(--surface); border-top:1px solid var(--line); position:relative; }
.composer-row { display:flex; gap:6px; align-items:flex-end; }
.composer { container-type:inline-size; }
.composer textarea { flex:1; min-width:0; min-height:40px; max-height:140px; height:40px; resize:none; line-height:1.4; padding-top:9px; }
.composer-row > .btn-icon { flex:none; height:40px; width:40px; color:var(--muted); }
.composer-row > .btn-icon:hover { color:var(--teal-700); background:var(--teal-50); }
@media (max-width: 640px) { #sendBtn span { display:none; } }
.handoff-banner { background:var(--warning-bg); color:var(--brown); font-size:12.5px; padding:8px 18px; display:flex; gap:8px; align-items:center; border-bottom:1px solid var(--warning-line); }
.handoff-banner svg { width:16px; height:16px; }
.side-info { border-left:1px solid var(--line); overflow-y:auto; padding:18px; display:none; flex-direction:column; gap:16px; background:var(--surface); }
.inbox.show-side { grid-template-columns:340px minmax(0, 1fr) 300px; }
.inbox.show-side .side-info { display:flex; animation:sideIn .18s ease-out; }
@keyframes sideIn { from { opacity:0; transform:translateX(16px); } to { opacity:1; transform:none; } }
.side-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.side-head h4 { margin:0; }
.side-name { text-align:center; padding:4px 0 6px; }
.side-name .avatar { width:56px; height:56px; font-size:18px; margin:0 auto 8px; }
.side-name b { display:block; font-size:15px; color:var(--navy); overflow-wrap:anywhere; }
.side-name span { font-size:12.5px; }
.who { display:flex; align-items:center; gap:12px; min-width:0; flex:1; border:0; background:transparent; padding:4px 8px 4px 4px; margin-left:-4px; border-radius:10px; cursor:pointer; text-align:left; font:inherit; color:inherit; }
.who:hover { background:var(--teal-50); }
.who:focus-visible { outline:2px solid var(--teal); }
.who .who-txt { min-width:0; }
.who b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.who .muted { display:flex; align-items:center; gap:4px; }
.who .muted svg { width:13px; height:13px; }
.inbox.show-side .who { background:var(--teal-50); }
.side-info dl { margin:0; display:grid; grid-template-columns:auto 1fr; gap:8px 12px; font-size:12.5px; }
.side-info dt { color:var(--muted); }
.side-info dd { margin:0; font-weight:600; text-align:right; }
@media (max-width: 1280px) { .inbox, .inbox.show-side { grid-template-columns:300px minmax(0, 1fr); } .inbox.show-side .side-info { position:absolute; right:0; top:0; bottom:0; width:300px; z-index:6; box-shadow:-12px 0 30px color-mix(in srgb,var(--shadow-color) 12%,transparent); } }
@media (max-width: 800px) { .inbox, .inbox.show-side { grid-template-columns:1fr; height:auto; } .inbox.show-side .side-info { width:100%; } .inbox.has-active .inbox-list { display:none; } .inbox:not(.has-active) .thread { display:none; } .bubbles { min-height:50vh; } }

/* ---------- Agenda ---------- */
.week { display:grid; grid-template-columns:56px repeat(7, minmax(110px, 1fr)); min-width:860px; }
.week .wh { position:sticky; top:0; background:var(--surface); z-index:2; padding:10px 8px; border-bottom:1px solid var(--line); text-align:center; font-size:12px; font-weight:700; color:var(--ink-2); }
.week .wh b { display:block; font-size:18px; color:var(--navy); }
.week .wh.today b { color:var(--on-contrast); background:var(--teal); border-radius:50%; width:32px; height:32px; line-height:32px; margin:2px auto 0; }
.week .hours { position:relative; }
.week .hours { padding-top:0; }
.week .hour { height:72px; font-size:12px; color:var(--muted); text-align:right; padding-right:8px; transform:translateY(-7px); }
.week .col { position:relative; border-left:1px solid var(--line); background-image:none; background-size:100% 72px; }
.appt { position:absolute; left:4px; right:4px; border-radius:8px; padding:4px 7px; font-size:12px; line-height:1.3; overflow:hidden; background:var(--teal-50); border-left:3px solid var(--teal); color:var(--navy); cursor:pointer; box-shadow:var(--shadow-sm); }
.appt:hover { box-shadow:var(--shadow); z-index:3; }
.appt b { display:block; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.appt.src-agent { background:var(--surface-alt); border-left-color:var(--s1); }
.appt.cancelled { opacity:.45; text-decoration:line-through; background:var(--mist); border-left-color:var(--line-strong); }
.appt.completed { background:var(--success-bg); border-left-color:var(--success); }
.slots { display:grid; grid-template-columns:repeat(auto-fill, minmax(78px, 1fr)); gap:8px; }
.slot { height:36px; border-radius:8px; border:1px solid var(--line-strong); background:var(--surface); font-weight:600; cursor:pointer; font-variant-numeric:tabular-nums; }
.slot:hover { border-color:var(--teal); }
.slot.active { background:var(--teal); border-color:var(--teal); color:var(--navy); }
.rule-row { display:grid; grid-template-columns:1.2fr 1fr 1fr 34px; gap:8px; align-items:center; margin-bottom:8px; }

/* ---------- Base de connaissances ---------- */
.add-cards { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.add-card { border:1.5px dashed var(--line-strong); border-radius:14px; background:var(--surface); padding:18px; cursor:pointer; text-align:left; transition:border-color .15s, background .15s; display:flex; flex-direction:column; gap:6px; }
.add-card:hover { border-color:var(--teal); background:var(--surface); }
.add-card .ico { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--teal-50); color:var(--teal-700); margin-bottom:6px; }
.add-card .ico svg { width:20px; height:20px; }
.add-card b { font-size:14px; }
.add-card span { font-size:12.5px; color:var(--muted); }
.add-card .impact { margin-top:6px; font-size:12px; font-weight:700; color:var(--teal-700); }
@media (max-width: 900px) { .add-cards { grid-template-columns:1fr; } }
.src-ico { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:var(--mist); color:var(--navy); flex:none; }
.src-ico svg { width:17px; height:17px; }
.dropzone { border:1.5px dashed var(--line-strong); border-radius:12px; padding:26px; text-align:center; color:var(--muted); cursor:pointer; }
.dropzone.drag { border-color:var(--teal); background:var(--teal-50); }
.dropzone svg { width:30px; height:30px; color:var(--teal); }

/* ---------- Simulateur ---------- */
.sim { border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; height:520px; }
.sim-head { background:var(--contrast-surface); color:var(--on-contrast); padding:12px 16px; display:flex; gap:10px; align-items:center; }
.sim-head img { width:34px; height:34px; background:var(--surface); border-radius:50%; padding:4px; }
.sim .bubbles { background-color:var(--surface-alt); }

/* ---------- Offres ---------- */
.plan-card { border:1px solid var(--line); border-radius:14px; padding:20px; background:var(--surface); display:flex; flex-direction:column; gap:10px; }
.plan-card.current { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--shadow-color) 15%,transparent); }
.plan-card .price { font-size:24px; font-weight:800; color:var(--navy); }
.plan-card ul { margin:0; padding:0; list-style:none; font-size:12.5px; display:flex; flex-direction:column; gap:6px; color:var(--ink-2); }
.plan-card li { display:flex; gap:8px; }
.plan-card li svg { width:15px; height:15px; color:var(--teal-700); flex:none; margin-top:2px; }

.inbox-list .seg { display:flex; }
.inbox-list .seg button { flex:1; white-space:nowrap; padding:6px 4px; }

.week .hour:first-child { transform:none; }
.appt .small { display:block; font-size:12px; opacity:.8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#backList { display:none; }
@media (max-width: 800px) { #backList { display:inline-flex; } }

/* ---------- Tableau de bord ---------- */
.dash-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.dash-head .eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--teal-700); margin-bottom:4px; }
.dash-head h1 { font-size:22px; }
.dash-head p { margin:4px 0 0; font-size:13px; }
.kpi2 { display:flex; gap:14px; align-items:flex-start; padding:16px 18px; }
.kpi2 .kpi-label { font-size:12px; color:var(--muted); font-weight:600; }
.kpi2 .kpi-value { font-size:24px; font-weight:700; color:var(--navy); line-height:1.2; margin-top:2px; font-variant-numeric:tabular-nums; }
.kpi2 .kpi-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.kpi-ico { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; flex:none; }
.kpi-ico svg { width:19px; height:19px; }
.kpi-ico.blue { background:var(--surface-alt); color:var(--s1); } .kpi-ico.teal { background:var(--teal-50); color:var(--teal-700); }
.kpi-ico.green { background:var(--success-bg); color:var(--success); } .kpi-ico.orange { background:var(--warning-bg); color:var(--warning); } .kpi-ico.grey { background:var(--mist); color:var(--muted); }
.trend { font-weight:700; } .trend.up { color:var(--success); } .trend.down { color:var(--danger); }
.next-list, .conv-list { list-style:none; margin:0; padding:0; }
.next-list li { display:flex; gap:12px; align-items:center; padding:11px 18px; border-bottom:1px solid var(--line); }
.next-list li:last-child { border-bottom:0; }
.next-list .when { width:52px; flex:none; text-align:center; border-radius:8px; background:var(--mist); padding:5px 0; }
.next-list .when b { display:block; font-size:13px; color:var(--navy); font-variant-numeric:tabular-nums; }
.next-list .when span { font-size:12px; color:var(--muted); text-transform:capitalize; }
.next-list .grow b { display:block; font-size:13px; }
.next-list .grow span { font-size:12px; color:var(--muted); }
.conv-list li { display:flex; gap:12px; align-items:center; padding:11px 18px; border-bottom:1px solid var(--line); cursor:pointer; transition:background .15s; }
.conv-list li:hover { background:var(--surface); }
.conv-list li:last-child { border-bottom:0; }
.conv-list b { font-size:13px; }
.conv-list time { font-size:12px; color:var(--muted); }
.conv-list p { margin:1px 0 0; font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:520px; }
.help-card { display:flex; gap:12px; align-items:center; padding:14px 16px; border-radius:12px; background:var(--surface-alt); color:var(--muted); text-decoration:none !important; transition:transform .2s; }
.help-card:hover { transform:translateY(-1px); }
.help-card .ci { width:36px; height:36px; border-radius:10px; background:color-mix(in srgb,var(--surface) 10%,transparent); color:var(--teal); display:grid; place-items:center; flex:none; }
.help-card svg { width:18px; height:18px; }
.help-card b { display:block; color:var(--on-contrast); font-size:13.5px; }
.help-card span span { font-size:12px; }
.onboard { padding:22px 24px; }
.onboard h2 { font-size:17px; }

/* ---------- Paiement ---------- */
.pay-methods { display:flex; gap:8px; flex-wrap:wrap; }
.pm { font-size:12px; font-weight:700; padding:5px 10px; border-radius:7px; border:1px solid var(--line); }
.pm.mtn { background:var(--surface-hover); color:var(--brown); border-color:var(--warning); }
.pm.orange { background:var(--warning-bg); color:var(--brown); border-color:var(--warning-line); }
.pm.card { background:var(--surface-alt); color:var(--navy); }
.pm.paypal { background:var(--surface-alt); color:var(--ink); border-color:var(--info-line); }
.pm-list { display:grid; gap:8px; }
.pm-opt { display:flex; align-items:center; gap:12px; width:100%; padding:11px 14px; border:1.5px solid var(--line-strong); border-radius:10px; background:var(--surface); cursor:pointer; font:inherit; text-align:left; transition:border-color .15s, box-shadow .15s; }
.pm-opt:hover { border-color:var(--teal); }
.pm-opt.active { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--shadow-color) 16%,transparent); background:var(--surface-alt); }
.pm-opt b { display:block; font-size:13.5px; color:var(--navy); }
.pm-opt small { display:block; font-size:12px; color:var(--muted); margin-top:1px; }
.pm-ico { width:36px; height:36px; border-radius:9px; display:grid; place-items:center; flex:none; background:var(--surface-alt); color:var(--navy); }
.pm-ico svg { width:18px; height:18px; }
.pm-ico.mtn { background:var(--surface-hover); color:var(--brown); } .pm-ico.orange { background:var(--warning-bg); color:var(--brown); } .pm-ico.paypal { background:var(--surface-alt); color:var(--ink); }
.pm-radio { width:18px; height:18px; border-radius:50%; border:2px solid var(--line-strong); flex:none; }
.pm-opt.active .pm-radio { border:6px solid var(--teal); }
.durations { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
.dur { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:12px 14px; border:1.5px solid var(--line-strong); border-radius:10px; background:var(--surface); cursor:pointer; font:inherit; text-align:left; transition:border-color .15s, box-shadow .15s; }
.dur:hover { border-color:var(--teal); }
.dur.active { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--shadow-color) 18%,transparent); background:var(--surface-alt); }
.dur b { font-size:13.5px; } .dur .num { font-size:15px; font-weight:700; color:var(--navy); }
.dur em { font-style:normal; font-size:12px; font-weight:600; color:var(--success); }
.pay-total { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-radius:10px; background:var(--mist); }
.pay-total b { font-size:20px; color:var(--navy); font-variant-numeric:tabular-nums; }
.pay-banner { display:flex; gap:14px; align-items:center; padding:16px 18px; border-radius:12px; margin-bottom:16px; border:1px solid; animation:pageIn .3s ease-out; }
.pay-banner svg { width:22px; height:22px; flex:none; }
.pay-banner b { display:block; font-size:14px; } .pay-banner span { font-size:12.5px; }
.pay-banner.ok { background:var(--success-bg); border-color:var(--success-line); color:var(--success); }
.pay-banner.wait { background:var(--teal-50); border-color:var(--teal-100); color:var(--teal-700); }
.pay-banner.bad { background:var(--danger-bg); border-color:var(--danger-line); color:var(--danger); }
.spinner { width:20px; height:20px; flex:none; border:2.5px solid var(--teal-100); border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; }
.sub-banner { display:flex; align-items:center; gap:12px; padding:10px 26px; font-size:13px; border-bottom:1px solid; }
.sub-banner svg { width:18px; height:18px; flex:none; }
.sub-banner span { flex:1; }
.sub-banner.warn { background:var(--warning-bg); border-color:var(--warning-line); color:var(--brown); }
.sub-banner.bad { background:var(--danger-bg); border-color:var(--danger-line); color:var(--danger); }
.pay-note { display:flex; gap:8px; align-items:flex-start; margin:0; }
.pay-note svg { width:15px; height:15px; flex:none; margin-top:1px; color:var(--teal-700, var(--accent)); }

/* Barre du haut : compacte sur petit écran */
.topbar .crumb { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wa-pill span { white-space:nowrap; }
@media (max-width: 1000px) { .me-name { display:none; } }
@media (max-width: 560px) { .topbar { gap:10px; } .wa-pill { padding:0 10px; } .wa-pill span { display:none; } .topbar .crumb { font-size:14px; } }

/* ===================== Campagnes WhatsApp ===================== */
.live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--teal); margin-right:6px; vertical-align:1px; animation:livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow:0 0 0 0 color-mix(in srgb,var(--shadow-color) 55%,transparent); } 50% { box-shadow:0 0 0 5px transparent; } }
.table tr.clickable { cursor:pointer; transition:background .15s; }
.table tr.clickable:hover { background:var(--surface-alt); }
.ellipsis { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.right { text-align:right; }
.danger-text { color:var(--danger) !important; }
.safe-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:13px; color:var(--ink-2); }
.safe-list li { position:relative; padding-left:24px; line-height:1.45; }
.safe-list li::before { content:''; position:absolute; left:0; top:2px; width:16px; height:16px; border-radius:50%; background:var(--teal-50) var(--theme-icon-1) center / 10px no-repeat; }

.camp-editor { display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:18px; align-items:start; }
.camp-preview .sticky { position:sticky; top:76px; }
@media (max-width: 1100px) { .camp-editor { grid-template-columns:1fr; } .camp-preview { order:-1; } .camp-preview .sticky { position:static; max-width:360px; } }
.toolbar { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:6px; }
.chip { height:26px; padding:0 10px; border-radius:99px; border:1px solid var(--line); background:var(--surface); font:600 12px var(--font); color:var(--ink-2); cursor:pointer; transition:border-color .15s, color .15s, background .15s; }
.chip:hover { border-color:var(--teal); color:var(--teal-700); background:var(--teal-50); }
.counter { font-size:12px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums; }
.counter.over { color:var(--danger); }
textarea.input { resize:vertical; min-height:120px; line-height:1.5; padding-top:10px; }
.img-drop { display:flex; align-items:center; gap:12px; }
.img-drop #imgZone { width:100%; max-width:360px; min-height:96px; border:1.5px dashed var(--line-strong); border-radius:12px; display:flex; align-items:center; justify-content:center; gap:10px; color:var(--muted); font-size:13px; cursor:pointer; overflow:hidden; background:var(--surface); transition:border-color .15s, background .15s; }
.img-drop #imgZone svg { width:22px; height:22px; color:var(--teal-700); }
.img-drop #imgZone img { width:100%; max-height:200px; object-fit:cover; display:block; }
.img-drop #imgZone:hover, .img-drop.over #imgZone { border-color:var(--teal); background:var(--teal-50); }
.aud-count { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--teal-700); background:var(--teal-50); border-radius:99px; padding:4px 12px; }
.aud-count svg { width:15px; height:15px; }
details.adv summary { cursor:pointer; font-weight:600; font-size:13px; color:var(--navy); list-style:none; display:flex; align-items:center; gap:6px; }
details.adv summary::before { content:'›'; font-size:18px; line-height:1; transition:transform .2s; color:var(--teal-700); }
details.adv[open] summary::before { transform:rotate(90deg); }
.camp-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; position:sticky; bottom:12px; box-shadow:var(--shadow); z-index:5; }
.camp-actions .grow { flex:1; }
.camp-big { font-size:22px; color:var(--navy); margin-top:2px; }
.camp-big b { font-size:28px; }
.meter.big { height:10px; }
.funnel { display:flex; flex-direction:column; gap:10px; }
.f-row { display:grid; grid-template-columns:120px minmax(0, 1fr) 64px 48px; gap:12px; align-items:center; font-size:13px; }
.f-label { display:flex; align-items:center; gap:8px; color:var(--ink-2); font-weight:600; }
.f-label svg { width:15px; height:15px; color:var(--teal-700); }
.f-bar { height:10px; border-radius:99px; background:var(--mist); overflow:hidden; }
.f-bar i { display:block; height:100%; border-radius:99px; background:var(--surface-alt); transition:width .8s cubic-bezier(.2, .7, .2, 1); }
.f-row .num { text-align:right; }
.f-pct { font-size:12px; color:var(--muted); text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width: 560px) { .f-row { grid-template-columns:90px minmax(0, 1fr) 48px; } .f-pct { display:none; } }

/* Aperçu type WhatsApp */
.wa-phone { border-radius:26px; border:8px solid var(--line-strong); background:var(--contrast-surface); overflow:hidden; box-shadow:var(--shadow-lg); }
.wa-top { background:var(--accent); color:var(--on-contrast); display:flex; align-items:center; gap:10px; padding:12px 14px; }
.wa-top img { width:32px; height:32px; border-radius:50%; background:var(--surface); padding:4px; }
.wa-top b { display:block; font-size:13.5px; } .wa-top small { font-size:11px; opacity:.8; }
.wa-chat { background:var(--surface-hover); background-image:none; background-size:16px 16px; padding:16px 12px 22px; min-height:300px; }
.wa-msg { background:var(--surface); border-radius:10px; border-top-left-radius:2px; max-width:92%; padding:4px; box-shadow:0 1px 1px color-mix(in srgb,var(--shadow-color) 12%,transparent); animation:pageIn .35s ease both; }
.wa-img { display:block; width:100%; max-height:220px; object-fit:cover; border-radius:7px; }
.wa-text { padding:6px 8px 0; font-size:13.5px; line-height:1.45; color:var(--ink); word-wrap:break-word; }
.wa-link { color:var(--info); text-decoration:underline; word-break:break-all; }
.wa-foot { color:var(--muted); font-size:12px; }
.wa-msg time { display:block; text-align:right; font-size:10.5px; color:var(--muted); padding:2px 8px 2px; }
.bubble.campaign { background:var(--surface-alt); border:1px solid var(--warning-line); align-self:flex-end; border-top-right-radius:4px; }
.bubble.campaign .by { color:var(--brown); }
.safe-list.cols { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px 24px; }
@media (max-width: 1100px) { .safe-list.cols { grid-template-columns:1fr 1fr; } }
@media (max-width: 640px) { .safe-list.cols { grid-template-columns:1fr; } }
.card-head h2 svg { width:17px; height:17px; color:var(--teal-700); vertical-align:-3px; margin-right:4px; }
.badge.live::before { animation:livePulse 1.6s ease-in-out infinite; border-radius:50%; }
.camp-editor > * { min-width:0; }

/* ===================== Médias dans les conversations ===================== */
.bubble .btext { white-space:pre-wrap; }
.bubble .btext a { color:inherit; text-decoration:underline; word-break:break-all; }
.bubble.agent .btext a { color:var(--accent); }
.bubble.has-visual { padding:4px 4px 6px; max-width:min(72%, 340px); }
.bubble.has-visual .btext, .bubble.has-visual .by, .bubble.has-visual time { padding:0 8px; }
.bubble.has-visual .by { padding-top:4px; }
.msg-img { display:block; padding:0; border:0; background:none; cursor:zoom-in; border-radius:9px; overflow:hidden; width:100%; margin-bottom:4px; }
.msg-img img { display:block; width:100%; max-height:320px; object-fit:cover; background:var(--mist); min-height:80px; }
.msg-video { display:block; width:100%; max-height:320px; border-radius:9px; background:var(--contrast-surface); margin-bottom:4px; }
.msg-audio { display:block; width:260px; max-width:100%; height:40px; margin:4px 0; }
.file-card { display:flex; align-items:center; gap:10px; background:color-mix(in srgb,var(--contrast-surface) 6%,transparent); border-radius:9px; padding:8px 8px 8px 10px; margin:2px 0 4px; min-width:220px; max-width:320px; }
.bubble.agent .file-card { background:color-mix(in srgb,var(--surface) 12%,transparent); }
.bubble.agent .file-card .btn { color:var(--on-contrast); }
.file-card b { display:block; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:190px; }
.file-card small { display:block; font-size:12px; opacity:.75; }
.file-card.off { opacity:.75; }
.file-card svg { width:22px; height:22px; flex:none; }
.file-ext { flex:none; width:40px; height:46px; border-radius:6px; background:var(--s1, var(--info)); color:var(--on-contrast); font-size:10px; font-weight:800; letter-spacing:.02em; display:grid; place-items:center; position:relative; }
.file-ext::after { content:''; position:absolute; top:0; right:0; border-width:0 10px 10px 0; border-style:solid; border-color:color-mix(in srgb,var(--on-contrast) 45%,transparent) var(--on-contrast); border-color:color-mix(in srgb,var(--ink) 18%,transparent) transparent; }
.file-ext.pdf { background:var(--danger); }
.thread.drop { outline:2px dashed var(--teal); outline-offset:-8px; background:var(--teal-50); }
.attach-preview { display:flex; align-items:center; gap:10px; padding:8px; border:1px solid var(--line); border-radius:10px; background:var(--surface); animation:pageIn .2s ease both; }
.attach-preview img { width:52px; height:52px; object-fit:cover; border-radius:8px; }
.attach-preview b { display:block; font-size:13px; color:var(--navy); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:420px; }
.attach-preview small { font-size:12px; color:var(--muted); }
.attach-preview .file-ext { width:36px; height:42px; }

.emoji-pop { position:absolute; bottom:calc(100% + 6px); left:12px; width:320px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-lg); padding:8px; z-index:30; animation:pageIn .18s ease both; }
.emoji-tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); padding-bottom:6px; margin-bottom:4px; }
.emoji-tabs button { flex:1; height:32px; border:0; background:none; border-radius:8px; font-size:18px; cursor:pointer; opacity:.6; }
.emoji-tabs button.active, .emoji-tabs button:hover { background:var(--teal-50); opacity:1; }
.emoji-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:4px 4px 2px; }
.emoji-grid { display:grid; grid-template-columns:repeat(8, 1fr); gap:2px; max-height:200px; overflow-y:auto; }
.emoji-grid button { height:34px; border:0; background:none; border-radius:8px; font-size:21px; cursor:pointer; transition:transform .1s, background .1s; }
.emoji-grid button:hover { background:var(--mist); transform:scale(1.15); }
@media (max-width: 480px) { .emoji-pop { width:calc(100vw - 40px); left:8px; } }

.lightbox { position:fixed; inset:0; background:color-mix(in srgb,var(--contrast-surface) 88%,transparent); z-index:200; display:grid; place-items:center; padding:40px 20px; animation:pageIn .2s ease both; cursor:zoom-out; }
.lightbox img { max-width:100%; max-height:calc(100vh - 100px); border-radius:8px; box-shadow:0 20px 60px color-mix(in srgb,var(--shadow-color) 50%,transparent); cursor:default; }
.lightbox .lb-actions { position:fixed; top:14px; right:14px; display:flex; gap:8px; }
.lightbox .lb-actions .btn { background:color-mix(in srgb,var(--surface) 12%,transparent); color:var(--on-contrast); border-color:color-mix(in srgb,var(--on-contrast) 20%,transparent); }
.bubble.agent .file-card .btn, .bubble.campaign .file-card .btn { background:color-mix(in srgb,var(--surface) 16%,transparent); border-color:transparent; color:inherit; }
.bubble.agent .file-card .btn:hover { background:color-mix(in srgb,var(--surface) 28%,transparent); }
.bubble.in .file-card .btn, .bubble.bot .file-card .btn { background:var(--surface); }

/* ===================== Voix, enregistreur, transferts ===================== */
.rec-dot { width:10px; height:10px; border-radius:50%; background:var(--danger); flex:none; animation:recBlink 1s ease-in-out infinite; }
@keyframes recBlink { 50% { opacity:.25; } }
.attach-preview.recording { border-color:var(--danger-line); background:var(--surface-alt); }
.rec-live { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--danger-line); background:var(--surface-alt); border-radius:10px; }
.rec-done { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rec-done audio { height:38px; max-width:100%; }
.transcript { display:flex; gap:6px; align-items:flex-start; font-size:12.5px; line-height:1.45; background:color-mix(in srgb,var(--contrast-surface) 5%,transparent); border-radius:8px; padding:6px 8px; margin:2px 0 4px; font-style:italic; }
.bubble.agent .transcript { background:color-mix(in srgb,var(--surface) 12%,transparent); }
.transcript svg { width:13px; height:13px; flex:none; margin-top:2px; opacity:.7; }
.clip-pop { width:300px; }
.clip-list { display:flex; flex-direction:column; max-height:240px; overflow-y:auto; }
.clip-list button { display:flex; align-items:center; gap:8px; border:0; background:none; padding:9px 8px; border-radius:8px; cursor:pointer; font:600 13px var(--font); color:var(--ink); text-align:left; }
.clip-list button:hover { background:var(--teal-50); }
.clip-list button svg { width:15px; height:15px; color:var(--teal-700); }
.clip-list small { color:var(--muted); font-weight:500; }
.clip-new { display:grid; grid-template-columns:1.2fr 1fr 1fr 1.6fr auto; gap:12px; align-items:start; }
.clip-new .hidden { display:none; }
@media (max-width: 1100px) { .clip-new { grid-template-columns:1fr 1fr; } }
@media (max-width: 640px) { .clip-new { grid-template-columns:1fr; } }
.clip-audio { height:34px; width:220px; }
.toggle-row { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
.toggle-row small { display:block; font-size:12.5px; color:var(--muted); margin-top:2px; line-height:1.45; }
.rule-list { display:flex; flex-direction:column; }
.rule-item { display:flex; gap:14px; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); transition:opacity .2s; }
.rule-item:last-child { border-bottom:0; }
.rule-item.off { opacity:.55; }
.rule-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.chip-tag { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; padding:3px 9px; border-radius:99px; background:var(--mist); color:var(--ink-2); }
.chip-tag svg { width:12px; height:12px; }
.chip-tag.teal { background:var(--teal-50); color:var(--teal-700); } .chip-tag.warn { background:var(--warning-bg); color:var(--warning); }
.group-list { list-style:none; margin:0; padding:0; }
.group-list li { display:flex; gap:12px; align-items:center; padding:12px 18px; border-bottom:1px solid var(--line); }
.group-list li:last-child { border-bottom:0; }
.g-ico { width:34px; height:34px; border-radius:50%; background:var(--surface-alt); color:var(--success); display:grid; place-items:center; flex:none; }
.g-ico svg { width:17px; height:17px; }
.preset { display:flex; align-items:center; gap:10px; text-align:left; width:100%; border:1px dashed var(--line-strong); background:var(--surface); border-radius:10px; padding:10px 12px; cursor:pointer; font:inherit; color:var(--ink); transition:border-color .15s, background .15s; }
.preset:hover { border-color:var(--teal); background:var(--teal-50); }
.preset b { display:block; font-size:13px; } .preset small { display:block; font-size:12px; color:var(--muted); }
.preset svg { width:16px; height:16px; color:var(--teal-700); flex:none; }
.check-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:6px 14px; }
.pick-list { display:flex; flex-direction:column; gap:6px; max-height:280px; overflow-y:auto; margin:6px 0 14px; }
.pick { display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.pick:has(input:checked) { border-color:var(--teal); background:var(--teal-50); }
.pick b { display:block; font-size:13.5px; } .pick small { font-size:12px; color:var(--muted); }
.pick.known { opacity:.7; }
.inline-ico { width:14px; height:14px; vertical-align:-2px; margin-right:4px; color:var(--teal-700); }

/* Zone de saisie étroite : le texte passe au-dessus des boutons (jamais de colonne écrasée) */
@container (max-width: 720px) {
  .composer-row { flex-wrap:wrap; }
  .composer-row > textarea { order:-1; flex:1 1 100%; }
  .composer-row > #sendBtn { margin-left:auto; }
}

/* Bandeau d'état de l'assistant dans une conversation */
.bot-bar { display:flex; align-items:center; gap:10px; padding:9px 18px; font-size:13px; border-bottom:1px solid var(--line); line-height:1.4; }
.bot-bar > svg { width:17px; height:17px; flex:none; }
.bot-bar.info { background:var(--surface-alt); color:var(--ink); }
.bot-bar.warn { background:var(--surface-alt); color:var(--brown); }
.bot-bar.bad { background:var(--surface-alt); color:var(--danger); }
.bot-bar .btn { flex:none; }
.bot-countdown-number { display:inline-block; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bot-bar.counting > svg { animation:bot-clock-pulse 1.5s ease-in-out infinite; }
@keyframes bot-clock-pulse { 50% { opacity:.45; } }
@media (prefers-reduced-motion:reduce) { .bot-bar.counting > svg { animation:none; } }
@media (max-width: 800px) { .thread-head { gap:8px; padding:10px 12px; } .thread-head label > .muted { display:none; } .thread-head #closeConv { padding:0 10px; } }
.repair-box { display:flex; gap:12px; align-items:center; margin-top:16px; padding:12px 14px; border:1px dashed var(--line-strong); border-radius:var(--radius-sm); background:var(--mist, var(--surface-alt)); }
.repair-box > svg { width:22px; height:22px; color:var(--teal-700); flex:none; }
.repair-box b { display:block; font-size:13px; color:var(--navy); }
.repair-box span { display:block; font-size:12.5px; color:var(--muted); }

/* Durées et fidélité */
.dur .dur-tag { font-size:12px; font-weight:700; color:var(--success); background:var(--surface-alt); padding:1px 6px; border-radius:99px; margin-left:4px; }
.dur small { font-size:12px; }
.loyal-line { display:flex; gap:8px; align-items:center; font-size:13px; color:var(--success); background:var(--surface-alt); border:1px solid var(--success-line); padding:8px 12px; border-radius:10px; }
.loyal-line svg { width:16px; height:16px; flex:none; }
.loyal-card { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; }
.loyal-card h3 { font-size:15px; margin:0; }
.loyal-card .loyal-ico { width:40px; height:40px; border-radius:11px; background:var(--teal-50); color:var(--teal-700); display:grid; place-items:center; flex:none; }
.loyal-card .loyal-ico svg { width:20px; height:20px; }
.loyal-track { position:relative; height:8px; border-radius:99px; background:color-mix(in srgb,var(--contrast-surface) 8%,transparent); margin:4px 8px 0 0; }
.loyal-track > i { position:absolute; left:0; top:0; bottom:0; border-radius:99px; background:var(--surface-alt); }
.loyal-track > span { position:absolute; top:12px; transform:translateX(-100%); font-size:12px; font-weight:700; color:var(--muted); white-space:nowrap; }
.loyal-track > span.on { color:var(--teal-700); }

/* Récapitulatif du paiement */
.recap { border:1.5px solid var(--line-strong); border-radius:12px; overflow:hidden; }
.recap-big { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 12px; padding:14px 16px; background:var(--contrast-surface); color:var(--on-contrast); }
.recap-big span { font-size:13px; color:var(--muted); font-weight:600; }
.recap-big b { font-size:26px; font-weight:800; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
.recap-big small { width:100%; text-align:right; color:var(--muted); font-size:12px; }
.recap-lines { padding:10px 16px 12px; display:grid; gap:6px; font-size:13px; background:var(--surface); }
.recap-lines > div { display:flex; justify-content:space-between; gap:10px; }
.recap-lines span { color:var(--muted); }
.recap-lines s { color:var(--danger); font-weight:700; text-decoration-thickness:2px; font-variant-numeric:tabular-nums; }
.recap-lines .cut b { color:var(--success); font-variant-numeric:tabular-nums; }
.recap-lines .new { border-top:1px dashed var(--line-strong); padding-top:6px; }
.recap-lines .new b { color:var(--navy); font-weight:800; font-size:14px; }
.recap-lines .pmo b { color:var(--text, var(--ink)); }

/* ===================== Site internet (widget, clés, bac à sable) ===================== */
.wstat .card-body { padding:14px 16px; }
.wstat b { font-size:18px; color:var(--navy); display:block; margin-top:2px; }
.tab svg { width:15px; height:15px; vertical-align:-3px; margin-right:4px; }
.seg.wrap { flex-wrap:wrap; }
.color-in { display:flex; gap:8px; align-items:center; }
.color-in input[type=color] { width:44px; height:40px; padding:2px; border:1px solid var(--line); border-radius:10px; background:var(--surface); cursor:pointer; flex:none; }
.color-in .input { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; text-transform:uppercase; }
.mode-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
@media (max-width: 720px) { .mode-grid { grid-template-columns:1fr; } }
.mode-card { border:1.5px solid var(--line); border-radius:12px; padding:12px; cursor:pointer; display:flex; flex-direction:column; gap:4px; transition:border-color .15s, background .15s; }
.mode-card input { position:absolute; opacity:0; pointer-events:none; }
.mode-card svg { width:20px; height:20px; color:var(--teal-700); }
.mode-card b { font-size:14px; color:var(--navy); }
.mode-card span { font-size:12px; color:var(--muted); line-height:1.4; }
.mode-card.on { border-color:var(--teal); background:var(--teal-50); }
.mode-card:focus-within { box-shadow:0 0 0 3px color-mix(in srgb,var(--shadow-color) 30%,transparent); }
.menu-row { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr) auto; gap:8px; align-items:center; }
@media (max-width: 720px) { .menu-row { grid-template-columns:1fr auto; } .menu-row [data-k=message] { grid-column:1; } }
.sticky-card { position:sticky; top:16px; }
.wp-stage { position:relative; height:470px; border-radius:14px; background:var(--surface-alt); overflow:hidden; border:1px solid var(--line); }
.wp-stage.inline { height:auto; padding:12px; }
.wp-panel { position:absolute; bottom:76px; width:calc(100% - 28px); max-width:300px; background:var(--surface); border-radius:14px; box-shadow:0 14px 40px color-mix(in srgb,var(--shadow-color) 20%,transparent); overflow:hidden; display:flex; flex-direction:column; font-size:12.5px; }
.wp-stage.inline .wp-panel { position:static; max-width:none; width:100%; box-shadow:none; border:1px solid var(--line); }
.wp-head { background:var(--p); color:var(--on); padding:10px 12px; display:flex; gap:10px; align-items:center; }
.wp-head b { display:block; font-size:13px; } .wp-head small { font-size:11px; opacity:.85; }
.wp-av { width:30px; height:30px; border-radius:50%; background:color-mix(in srgb,var(--surface) 22%,transparent); display:grid; place-items:center; font-weight:700; }
.wp-body { background:var(--surface-alt); padding:10px; display:flex; flex-direction:column; gap:6px; }
.wp-m { max-width:85%; padding:7px 10px; border-radius:12px; line-height:1.4; }
.wp-m.bot { background:var(--surface); color:var(--t); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.wp-m.me { background:var(--p); color:var(--on); align-self:flex-end; border-bottom-right-radius:4px; }
.wp-chips { display:flex; flex-wrap:wrap; gap:5px; }
.wp-chips span { border:1px solid var(--p); color:var(--t); background:var(--surface); border-radius:99px; padding:4px 9px; font-size:11.5px; }
.wp-fb { display:flex; gap:6px; }
.wp-fb span { display:inline-flex; gap:4px; align-items:center; padding:5px 9px; border-radius:8px; font-weight:600; font-size:11.5px; }
.wp-fb svg { width:13px; height:13px; }
.wp-fb .call { background:var(--p); color:var(--on); } .wp-fb .wa { background:var(--success); color:var(--on-contrast); }
.wp-foot { display:flex; justify-content:space-between; align-items:center; padding:8px 10px; border-top:1px solid var(--line); color:var(--muted); }
.wp-foot i { width:28px; height:28px; border-radius:8px; background:var(--p); color:var(--on); display:grid; place-items:center; }
.wp-foot svg { width:14px; height:14px; }
.wp-brand { text-align:center; font-size:10.5px; color:var(--muted); padding:5px; }
.wp-launch { position:absolute; bottom:14px; height:48px; min-width:48px; padding:0 14px; border-radius:99px; background:var(--p); color:var(--on); display:flex; align-items:center; justify-content:center; gap:6px; font-weight:600; box-shadow:0 8px 22px color-mix(in srgb,var(--shadow-color) 25%,transparent); }
.wp-launch svg { width:22px; height:22px; }
.code-box { position:relative; background:var(--contrast-surface); border-radius:12px; overflow:hidden; }
.code-box pre { margin:0; padding:44px 16px 16px; max-height:460px; overflow:auto; color:var(--contrast-muted); font:12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space:pre; }
.code-copy { position:absolute; top:8px; right:8px; background:color-mix(in srgb,var(--surface) 10%,transparent); color:var(--on-contrast); }
.code-copy:hover { background:color-mix(in srgb,var(--surface) 20%,transparent); }
.key-grid { display:grid; gap:12px; }
.key-line { display:flex; align-items:center; gap:6px; background:var(--mist); border:1px solid var(--line); border-radius:10px; padding:6px 6px 6px 12px; min-height:40px; }
.key-line code { flex:1; min-width:0; overflow-x:auto; white-space:nowrap; font-size:12.5px; color:var(--navy); }
.key-line.fresh { background:var(--surface-alt); border-color:var(--warning); }
.textarea.mono { font:12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sb-widget { height:560px; }
.sb-widget .empty svg { width:22px; height:22px; display:block; margin:0 auto 8px; }
.chan-web { display:inline-flex; vertical-align:-2px; margin-right:5px; color:var(--teal-700); }
.chan-web svg { width:14px; height:14px; }

/* Recharge de réponses */
.topup-card { display:flex; gap:16px; align-items:center; padding:18px 20px; flex-wrap:wrap; }
.topup-card.hot { border-color:var(--warning); background:var(--surface-alt); }
.topup-card h3 { font-size:15px; }
.topup-ico { width:44px; height:44px; border-radius:12px; background:var(--teal-50); color:var(--teal-700); display:grid; place-items:center; flex:none; }
.topup-ico svg { width:22px; height:22px; }

/* Mot de passe oublié */
.label-row { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.label-row > label { font-size:12.5px; font-weight:600; color:var(--ink-2); }
.label-row a { font-size:12.5px; }
.label-row a { font-weight:600; }
.otp-input { font-size:24px; font-weight:700; letter-spacing:.5em; text-align:center; padding-left:.5em; }
.auth-card a svg { width:14px; height:14px; vertical-align:-2px; }
.auth-card a[href="#/login"] svg { transform:rotate(180deg); }
.auth-card .auth-home { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-bottom:20px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; color:var(--ink); background:var(--surface); font-size:13px; font-weight:600; text-decoration:none; }
.auth-card .auth-home svg { width:16px; height:16px; flex:none; transform:rotate(180deg); }
.auth-card .auth-home:hover { background:var(--surface-alt); border-color:var(--accent); }
.auth-card .auth-home:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.meter.warn > i { background:var(--warning, var(--warning)); }

/* Message cité (« en réponse à ») et pièces jointes lues par l'assistant */
.bubble .quoted{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.4;padding:5px 8px;margin:0 0 6px;border-left:3px solid var(--teal,#19bfc0);border-radius:6px;background:color-mix(in srgb,var(--contrast-surface) 6%,transparent);opacity:.9;max-width:100%}
.bubble .quoted.q-in{border-left-color:var(--muted,#8a9bb0)}.bubble .quoted span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.bubble .quoted svg{width:12px;height:12px;flex:none;margin-top:2px;opacity:.7}
.transcript.read-att{font-style:normal;white-space:pre-wrap;max-height:9.5em;overflow:auto}.transcript.read-att b{font-weight:600}

#representativeFields[hidden] { display:none; }
