/* Camela's space (/camela, maquettes/camela-pratique 7): Camela on the left (her intro on the first visit, then her
   loop), the conversation in the middle, a panel on the right that follows the conversation. Orange for actions,
   violet only for Pro, green for free. */
.page-camela{background:#0a0a0b}
.page-camela .site-foot{position:relative;z-index:1}
.cmx-main{display:block}
.cmx{--o:#ff6a2b;--o2:#ff9a66;--ln:rgba(255,255,255,.08);--ln2:rgba(255,255,255,.14);--s1:#131419;--s2:#1a1b21;--mu:rgba(244,241,236,.62);--mu2:rgba(244,241,236,.42);
  position:relative;display:grid;grid-template-columns:290px minmax(0,1fr) 380px;height:calc(100vh - var(--hh,76px));height:calc(100svh - var(--hh,76px));min-height:560px;overflow:hidden;background:#0a0a0b;color:#f4f1ec;font-family:Manrope,system-ui,sans-serif}
.cmx>*{min-width:0;min-height:0}
.cmx button,.cmx input,.cmx textarea,.cmx select{font-family:inherit;color:inherit}
.cmx button{cursor:pointer}
.cmx a{color:inherit}

/* ── left: Camela ── */
.cmx-left{display:flex;flex-direction:column;border-right:1px solid var(--ln);background:#0d0e12}
.cmx-stage{position:relative;flex:none;height:330px;overflow:hidden;background:#15161a}
.cmx-still,.cmx-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 16%;transform:scale(1.3) translateY(8%)}
.cmx-vid{opacity:0;transition:opacity .45s}
.cmx-vid.show{opacity:1}
.cmx-stage::after{content:"";position:absolute;inset:auto 0 0;height:130px;background:linear-gradient(transparent,#0d0e12);pointer-events:none}
.cmx-who{position:absolute;left:16px;bottom:12px;z-index:2}
.cmx-who h1{margin:0;font-size:21px;letter-spacing:-.02em;line-height:1.2}
.cmx-who small{display:block;color:var(--mu);font-size:12px}
.cmx-who small i,.cmx-mtop small::before{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#4ade80;vertical-align:1px}
.cmx-vbs{position:absolute;top:10px;right:10px;z-index:3;display:flex;gap:6px}
.cmx-vb{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:0;border-radius:99px;background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:12px;font-weight:800}
.cmx-vb svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cmx-vb.is-hot{background:var(--o);color:#fff}
.cmx-vb[hidden],.cmx-cap[hidden]{display:none}
.cmx-cap{position:absolute;left:12px;right:12px;bottom:64px;z-index:3;margin:0;padding:7px 10px;border-radius:10px;background:rgba(0,0,0,.66);font-size:13px;font-weight:700;line-height:1.35;text-align:center}
.cmx-nav{flex:1;min-height:0;overflow:auto;padding:12px 12px 18px}
.cmx-new{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:42px;border:1px solid var(--ln2);border-radius:12px;background:var(--s1);font-weight:800;font-size:13.5px}
.cmx-new svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.cmx-new:hover{border-color:var(--o2)}
.cmx-lh{margin:16px 6px 6px;color:var(--mu2);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.cmx-cat{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:0;border-radius:10px;background:none;text-align:left;font-size:13.5px;font-weight:700;color:rgba(244,241,236,.88)}
.cmx-cat i{flex:none;width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:rgba(255,106,43,.12);color:var(--o2);font-style:normal;font-size:13px}
.cmx-cat:hover,.cmx-cat.on{background:var(--s2)}
.cmx-hi{display:flex;align-items:center;border-radius:9px}
.cmx-hi:hover,.cmx-hi.on{background:var(--s2)}
.cmx-hi .go{flex:1;min-width:0;padding:8px 10px;border:0;background:none;text-align:left}
.cmx-hi .go b{display:block;overflow:hidden;font-size:13px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;color:rgba(244,241,236,.85)}
.cmx-hi .go small{color:var(--mu2);font-size:11px}
.cmx-hi .del{flex:none;width:26px;height:26px;margin-right:4px;border:0;border-radius:7px;background:none;color:var(--mu2);opacity:0}
.cmx-hi:hover .del{opacity:1}.cmx-hi .del:hover{background:rgba(255,255,255,.08);color:#fff}
.cmx-he{margin:4px 8px;color:var(--mu2);font-size:12.5px;line-height:1.5}.cmx-he a{color:var(--o2)}
.cmx-hsub{margin:10px 8px 2px;color:var(--mu2);font-size:11px;font-weight:700}

/* ── middle: the conversation ── */
.cmx-mid{display:flex;flex-direction:column}
.cmx-mtop{display:none}
.cmx-thread{flex:1;min-height:0;overflow:auto;padding:26px clamp(16px,4vw,56px) 10px;scroll-behavior:smooth}
.cmx-msgs{display:flex;flex-direction:column;gap:14px;max-width:760px;margin:0 auto}
.cmx-mu{align-self:flex-end;max-width:85%;padding:10px 15px;border-radius:16px 16px 4px 16px;background:var(--o);color:#fff;font-size:14.5px;font-weight:600;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.cmx-mu img{display:block;max-width:220px;margin-bottom:6px;border-radius:10px}
.cmx-mu .file{display:inline-flex;gap:6px;align-items:center;margin-bottom:6px;padding:4px 10px;border-radius:9px;background:rgba(0,0,0,.2);font-size:12.5px}
.cmx-mc{display:flex;gap:10px;align-items:flex-start;max-width:100%}
.cmx-av{flex:none;width:34px;height:34px;border-radius:50%;background:url(/public/camela/face.webp) center/cover,url(/public/camela/thumb.webp) center/cover,#222;box-shadow:0 0 0 2px rgba(255,138,85,.6)}
.cmx-say{min-width:0;padding:12px 15px;border:1px solid var(--ln);border-radius:4px 16px 16px 16px;background:var(--s2);font-size:14.5px;line-height:1.6;overflow-wrap:anywhere}
.cmx-say p{margin:0}.cmx-say p+p,.cmx-say p+ul,.cmx-say ul+p{margin-top:8px}
.cmx-say ul{margin:6px 0 0;padding-left:20px}
.cmx-say strong,.cmx-say b{color:#fff}
.cmx-say.err{border-color:rgba(255,106,43,.5)}
.cmx-welcome .cmx-say{font-size:16px;padding:16px 18px;background:linear-gradient(140deg,rgba(255,106,43,.12),transparent 60%),var(--s2)}
.cmx-qr{display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 0 44px}
.cmx-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border:1px solid var(--ln2);border-radius:99px;background:var(--s1);font-size:13px;font-weight:700;line-height:1.3;text-align:left}
.cmx-chip:hover,.cmx-chip.on{border-color:var(--o2);background:rgba(255,106,43,.08)}
.cmx-chip:disabled{opacity:.45;cursor:default}.cmx-chip.on:disabled{opacity:1}
.cmx-refs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.cmx-refs a,.cmx-refs button{padding:4px 10px;border:1px solid var(--ln2);border-radius:99px;background:none;font-size:12px;font-weight:700;text-decoration:none}
.cmx-refs a:hover,.cmx-refs button:hover{border-color:var(--o2);color:var(--o2)}
.cmx-det{display:none}
.cmx-dots{display:inline-flex;gap:4px}.cmx-dots i{width:6px;height:6px;border-radius:50%;background:var(--mu);animation:cmxb 1s infinite}.cmx-dots i:nth-child(2){animation-delay:.15s}.cmx-dots i:nth-child(3){animation-delay:.3s}
@keyframes cmxb{50%{opacity:.2}}
.cmx-mv{position:relative;height:210px;border-radius:18px;overflow:hidden;background:#15161a}
.cmx-mv .cmx-still,.cmx-mv .cmx-vid{transform:none;object-position:50% 20%}
.cmx-mv .cmx-cap{bottom:10px}
.cmx-mv .cmx-who{display:none}
.cmx-comp{padding:10px clamp(16px,4vw,56px) 14px}
.cmx-box{max-width:760px;margin:0 auto;border:1px solid var(--ln2);border-radius:18px;background:#101116;box-shadow:0 20px 60px -30px rgba(255,106,43,.35)}
.cmx-box:focus-within{border-color:rgba(255,138,85,.7)}
.cmx-att{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 0}.cmx-att:empty{display:none}
.cmx-att span{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border-radius:9px;background:var(--s2);font-size:12.5px;font-weight:700}
.cmx-att img{width:26px;height:26px;border-radius:6px;object-fit:cover}
.cmx-att button{width:20px;height:20px;border:0;border-radius:6px;background:rgba(255,255,255,.08);font-size:12px;line-height:1}
.cmx-row{display:flex;align-items:flex-end;gap:6px;padding:8px}
.cmx-row textarea{flex:1;min-width:0;min-height:42px;max-height:140px;padding:10px 6px;border:0;outline:0;resize:none;background:none;font-size:15px;line-height:1.45}
.cmx-row textarea::placeholder{color:var(--mu2)}
.cmx-clip{flex:none;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:12px;background:none;color:var(--mu)}
.cmx-clip svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cmx-clip:hover{background:var(--s2);color:#fff}
.cmx-send{flex:none;height:42px;padding:0 18px;border:0;border-radius:12px;background:var(--o);color:#fff;font-weight:800;font-size:14px}
.cmx-send:disabled{opacity:.5}
.cmx-fine{max-width:760px;margin:7px auto 0;color:var(--mu2);font-size:11px;text-align:center}
.cmx-off{max-width:760px;margin:0 auto;padding:12px 14px;border:1px dashed var(--ln2);border-radius:14px;color:var(--mu);font-size:13.5px}
.cmx-off a{color:var(--o2)}

/* ── right: the panel ── */
.cmx-right{overflow:auto;padding:18px;border-left:1px solid var(--ln);background:#0d0e12}
.cmx-right>*+*{margin-top:12px}
.cmx-ph{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cmx-ph h2{margin:0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mu)}
.cmx-px{display:none;height:34px;padding:0 12px;border:1px solid var(--ln2);border-radius:10px;background:none;font-size:12.5px;font-weight:800}
.cmx-card{padding:14px;border:1px solid var(--ln);border-radius:16px;background:var(--s1)}
.cmx-card h3{margin:0 0 8px;font-size:14px}
.cmx-card p{margin:0;color:rgba(244,241,236,.82);font-size:13.5px;line-height:1.55}
.cmx-ql button{display:flex;gap:10px;width:100%;padding:9px 2px;border:0;border-top:1px solid var(--ln);background:none;text-align:left;font-size:13.5px;font-weight:700;color:rgba(244,241,236,.9)}
.cmx-ql button:first-child{border-top:0}
.cmx-ql button span{color:var(--o2)}.cmx-ql button:hover{color:var(--o2)}
.cmx-np{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--ln);text-decoration:none}
.cmx-np:first-of-type{border-top:0}
.cmx-np img,.cmx-np .ph{flex:none;width:46px;height:58px;border-radius:9px;object-fit:cover;background:var(--s2)}
.cmx-np b{display:block;font-size:13.5px;line-height:1.25}
.cmx-np small{display:block;color:var(--mu);font-size:12px}
.cmx-np em{margin-left:auto;font-style:normal;font-size:12.5px;font-weight:800;white-space:nowrap}
.cmx-np em.fr{color:#4ade80}.cmx-np em.ea{color:#c4b5fd}
.cmx-rec{padding:0;overflow:hidden}
.cmx-rec .im{position:relative;display:block;height:220px;background:#15161a center 22%/cover}
.cmx-rec .im span{position:absolute;left:12px;top:12px;padding:4px 10px;border-radius:99px;background:var(--o);color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.cmx-rec .bd{padding:14px}
.cmx-rec .bd b{display:block;font-size:17px;line-height:1.25}
.cmx-rec .bd small{color:var(--mu);font-size:12.5px}
.cmx-rec .why{margin-top:8px;color:rgba(244,241,236,.82);font-size:13px}
.cmx-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.cmx-tags span{padding:4px 9px;border-radius:99px;background:rgba(255,255,255,.05);font-size:12px}
.cmx-acts{display:flex;flex-wrap:wrap;gap:8px}
.cmx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px;border:1px solid var(--ln2);border-radius:11px;background:var(--s2);font-size:13px;font-weight:800;text-decoration:none}
.cmx-btn.o{border-color:transparent;background:var(--o);color:#fff}
.cmx-btn.g{border-color:rgba(74,222,128,.45);color:#bbf7d0;background:rgba(74,222,128,.08)}
.cmx-btn.v{border-color:transparent;background:linear-gradient(135deg,#8b5cf6,#a78bfa);color:#fff}
.cmx-btn:disabled{opacity:.45;cursor:default}
.cmx-pill{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:800}
.cmx-pill.pro{background:rgba(167,139,250,.18);color:#ddd6fe}.cmx-pill.fr{background:rgba(74,222,128,.14);color:#bbf7d0}
.cmx-sh{border:1px solid var(--ln);border-radius:16px;background:var(--s1);overflow:hidden}
.cmx-sh .hd{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--ln);text-decoration:none}
.cmx-sh .hd img{width:46px;height:58px;border-radius:9px;object-fit:cover}
.cmx-sh .hd b{display:block;font-size:14.5px;line-height:1.25}.cmx-sh .hd small{color:var(--mu);font-size:12px}
.cmx-sh dl{display:grid;grid-template-columns:1fr 1fr;margin:0}
.cmx-sh dl div{padding:10px 14px;border-bottom:1px solid var(--ln)}
.cmx-sh dl div:nth-child(odd){border-right:1px solid var(--ln)}
.cmx-sh dt{color:var(--mu2);font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.cmx-sh dd{margin:2px 0 0;font-size:14.5px;font-weight:800;overflow-wrap:anywhere}
.cmx-sh dd.miss{color:var(--mu2);font-weight:600;font-size:12.5px;font-style:italic}
.cmx-sh .nt{margin:0;padding:10px 14px;border-bottom:1px solid var(--ln);color:var(--mu);font-size:12.5px}
.cmx-sh .ft{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px}
.cmx-steps{display:grid;gap:7px;counter-reset:s}
.cmx-steps div{position:relative;padding:10px 12px 10px 44px;border-radius:12px;background:#101116;font-size:13.5px;line-height:1.5}
.cmx-steps div::before{counter-increment:s;content:counter(s);position:absolute;left:12px;top:9px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--o);color:#fff;font-size:11.5px;font-weight:800}
.cmx-right code,.cmx-say code{padding:1px 6px;border-radius:6px;background:#0b0c0f;color:var(--o2);font-size:12px}
.cmx-note{padding:11px 13px;border:1px dashed var(--ln2);border-radius:13px;color:var(--mu);font-size:12.5px;line-height:1.5}
.cmx-note b{color:#fff}
.cmx-files div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--ln);font-size:13px}
.cmx-files div:first-child{border-top:0}.cmx-files b{overflow-wrap:anywhere}.cmx-files code{white-space:nowrap;align-self:flex-start}
.cmx-tot{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px;padding-top:12px;border-top:1px solid var(--ln);font-weight:800}
.cmx-tot em{font-style:normal;font-size:20px}
.cmx-pro{padding:12px 14px;border:1px solid rgba(167,139,250,.45);border-radius:14px;background:linear-gradient(140deg,rgba(167,139,250,.14),transparent 60%);font-size:13px;line-height:1.5}
.cmx-pro a{color:#ddd6fe}
.cmx-kit .wait{color:var(--mu2);font-size:12.5px}
.cmx-sel{width:100%;height:42px;padding:0 10px;border:1px solid var(--ln2);border-radius:11px;background:#101116}
.cmx-bg{display:none}

/* the cart confirmation of the setup */
.cmx-kbtn{height:42px;border:0;border-radius:11px;background:linear-gradient(135deg,#ff6a2b,#e8642d);color:#fff;font:800 13px Manrope,sans-serif;cursor:pointer}
.cmx-kbtn.gh{border:1px solid rgba(255,255,255,.14);background:none;color:#f4f1ec}
.cmx-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:rgba(4,5,7,.7);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.cmx-modal[hidden]{display:none}
.cmx-mbox{width:min(460px,100%);padding:20px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:#121318;color:#f4f1ec;font-family:Manrope,sans-serif}
.cmx-mbox h3{margin:0 0 4px;font-size:18px}.cmx-mbox p{margin:0 0 12px;color:rgba(244,241,236,.62);font-size:13px}
.cmx-mbox .ln{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13.5px}
.cmx-mbox .else{margin-top:12px}.cmx-mbox .else a{color:#ff9a66}
.cmx-mbox .ac{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.cmx-mbox .ac .cmx-kbtn{padding:0 16px}
.cmx-nojs{padding:40px 20px;text-align:center;color:#f4f1ec}

@media(max-width:1200px){.cmx{grid-template-columns:250px minmax(0,1fr) 330px}.cmx-stage{height:270px}}
@media(max-width:900px){
  .cmx{display:block;height:calc(100vh - var(--hh,64px));height:calc(100svh - var(--hh,64px))}
  .cmx-mid{height:100%}
  .cmx-mtop{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid var(--ln)}
  .cmx-mtop .cmx-av{width:40px;height:40px}
  .cmx-mtop b{display:block;font-size:14.5px}.cmx-mtop small{color:var(--mu);font-size:11.5px}
  .cmx-menu{display:grid;place-items:center;margin-left:auto;width:40px;height:40px;border:1px solid var(--ln2);border-radius:12px;background:none}
  .cmx-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .cmx-left{position:fixed;top:0;bottom:0;left:0;z-index:260;width:86%;max-width:330px;transform:translateX(-105%);transition:transform .25s}
  .cmx-left .cmx-stage{display:none}
  .cmx.drawer .cmx-left{transform:none}
  .cmx-right{position:fixed;left:0;right:0;bottom:0;z-index:250;max-height:82vh;border:1px solid var(--ln2);border-radius:22px 22px 0 0;box-shadow:0 -30px 60px rgba(0,0,0,.7);transform:translateY(105%);transition:transform .25s}
  .cmx.sheet .cmx-right{transform:none}
  .cmx.drawer .cmx-bg,.cmx.sheet .cmx-bg{display:block;position:fixed;inset:0;z-index:240;background:rgba(0,0,0,.5)}
  .cmx-px{display:inline-flex;align-items:center}
  .cmx-det{display:inline-flex;margin-top:10px}
  .cmx-thread{padding:14px 14px 8px}
  .cmx-qr{margin-left:0}
  .cmx-comp{padding:8px 12px 12px}
  .cmx-fine{display:none}
}
@media(prefers-reduced-motion:reduce){.cmx-vid,.cmx-left,.cmx-right{transition:none}.cmx-dots i{animation:none}.cmx-thread{scroll-behavior:auto}}
