/* Popseed as a conversation (public/js/chat.js): one column, the team and the field at the bottom of the screen.
   The app's look (cream cards, ink lines, hard shadows) on the cards you act on; the talk itself stays light. */
html:has(.cx) .wrap{padding-bottom:0}
/* with the tab bar of a phone: the room under the conversation is the bar's, so the dock (sticky above the bar) ends the
   page instead of sitting on its last message */
html.has-tabs:has(.cx) .wrap{padding-bottom:var(--tabs-h)}
html:has(.cx) .mochi-fab{display:none}
.cx{--cx-w:760px;display:flex;flex-direction:column;min-height:calc(100dvh - var(--cx-above, 90px))}
.cx-col{width:100%;max-width:var(--cx-w);margin:0 auto}
.cx>.cx-col{flex:1}
#cx-top:empty{display:none}
#cx-top .journey-progress{margin:0 0 var(--s4)}
.cx-feed{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s2) 0 var(--s5)}
.cx-t{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-width:0}
.cx-t-me{align-items:stretch}
.cx-in{animation:cx-in .26s ease-out both}
@keyframes cx-in{from{opacity:0;transform:translateY(8px)}}

/* who speaks */
.cx-who{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:var(--s2)}
.cx-mark{width:24px;height:24px;display:block}
.cx-bub{background:var(--cream);border:1.5px solid var(--line);border-radius:4px 16px 16px 16px;padding:11px 16px;max-width:min(88%,620px);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.cx-bub p{margin:0}
/* what the seller and Popseed write keeps its lines (a list, steps, an address) */
.cx-bub p.cx-lines{white-space:pre-line}
.cx-bub.cx-more{margin-left:0}
.cx-bub.me{background:var(--ink);color:var(--cream);border-color:var(--ink);border-radius:16px 4px 16px 16px;max-width:min(82%,520px)}
.cx-me{display:flex;flex-direction:column;align-items:flex-end;gap:4px;width:100%}
/* the link stays small to the eye, its touch area is 44px high (a finger corrects every answer with it) */
.cx-redo{position:relative;border:0;background:none;padding:2px 4px;font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:2px;min-height:28px}
.cx-redo::after{content:"";position:absolute;inset:-8px -6px}
/* the hovers only where there is a pointer that hovers: a finger leaves them on (the card stays lifted, out of line) */
@media (hover:hover){.cx-redo:hover{color:var(--ink)}}
.cx-ag{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--muted);max-width:100%}
.cx-ag b{color:var(--ink);font-weight:700}
.cx-ag>span:not(.cx-bot){min-width:0}
.cx-dots{display:inline-flex;gap:4px;align-items:center}
.cx-dots i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:cx-dot 1.2s infinite}
.cx-dots i:nth-child(2){animation-delay:.15s}.cx-dots i:nth-child(3){animation-delay:.3s}
@keyframes cx-dot{0%,60%,100%{opacity:.25}30%{opacity:1}}
.cx-typing{padding:14px 18px}
.cx-fine{margin:var(--s3) 0 0;font-size:14px;color:var(--muted)}
.cx-ok{color:var(--good)}
.cx-bad{margin:var(--s3) 0 0;color:var(--bad);font-weight:600}
.cx-link{border:0;background:none;padding:6px 0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-weight:600;min-height:36px}

/* blocks: the cards the seller acts on */
.cx-block{width:100%}
.cx-card{background:var(--cream);border:1.5px solid var(--ink);border-radius:16px;box-shadow:3px 3px 0 var(--ink);padding:var(--s4) var(--s4) var(--s4)}
.cx-card h3{margin:0 0 var(--s3);font-size:18px;line-height:1.3}

/* buttons */
.cx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 18px;border:1.5px solid var(--ink);border-radius:10px;background:var(--accent);color:#fff;font-weight:600;font-size:15px;text-decoration:none;box-shadow:3px 3px 0 var(--ink);transition:transform .12s,box-shadow .12s}
@media (hover:hover){.cx-btn:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--ink)}}
.cx-btn:active{transform:translate(1px,1px);box-shadow:3px 3px 0 var(--ink)}
.cx-btn:disabled{opacity:.55;cursor:default;transform:none;box-shadow:3px 3px 0 var(--ink)}
.cx-btn.alt{background:var(--cream);color:var(--ink)}
.cx-btn.big{width:100%;min-height:52px;font-size:16px;margin-top:var(--s4)}
.cx-btn.small{min-height:44px;font-size:14px}
.cx-btn.busy::before{content:'';width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:spin .9s linear infinite}
.cx-row{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s3)}
.cx-chips{display:flex;flex-wrap:wrap;gap:var(--s2)}
.cx-chip{min-height:44px;padding:8px 16px;border:1.5px solid var(--ink);border-radius:22px;background:var(--cream);font-size:15px;font-weight:600;text-align:left;text-wrap:balance}
@media (hover:hover){.cx-chip:hover{background:var(--lav)}}
.cx-chip.on{background:var(--accent);color:#fff;box-shadow:3px 3px 0 var(--ink)}
.cx-chip:disabled{opacity:.5}

/* the three doors: big cards, the whole card answers. Their picture, title, line and button sit on the same lines from one
   card to the next (subgrid: a title on two lines moves the other cards' lines with it), the button says it is one */
.cx-doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto 1fr auto;column-gap:var(--s3)}
.cx-door{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:8px;justify-items:start;text-align:left;padding:var(--s4);border:1.5px solid var(--ink);border-radius:16px;background:var(--cream);box-shadow:3px 3px 0 var(--ink);cursor:pointer;transition:transform .14s,box-shadow .14s,background .14s}
@media (hover:hover){.cx-door:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink);background:#fff}}
.cx-door:active{transform:translate(1px,1px);box-shadow:2px 2px 0 var(--ink)}
.cx-door:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cx-door b{font-size:18px;line-height:1.25;text-wrap:balance}
.cx-door-l{color:var(--muted);font-size:14px;line-height:1.45}
.cx-door-pic{display:block;line-height:0}
.cx-go{display:inline-flex;align-items:center;gap:6px;margin-top:var(--s2);padding:8px 14px;border:1.5px solid var(--ink);border-radius:99px;background:var(--accent);color:#fff;font-weight:700;font-size:14px;line-height:1.2}
.cx-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .14s}
@media (hover:hover){.cx-door:hover .cx-go svg{transform:translateX(3px)}}

/* products and looks */
.cx-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}
.cx-prod{display:flex;flex-direction:column;background:var(--cream);border:1.5px solid var(--ink);border-radius:16px;overflow:hidden;box-shadow:3px 3px 0 var(--ink)}
.cx-prod.on{outline:3px solid var(--accent);outline-offset:2px}
.cx-pic{position:relative;display:block;aspect-ratio:1;background:var(--lav);overflow:hidden}
.cx-pic img{width:100%;height:100%;object-fit:cover;display:block}
.cx-pic>i{position:absolute;left:8px;top:8px;font-style:normal;font-size:12px;font-weight:700;background:var(--cream);border:1.5px solid var(--ink);border-radius:99px;padding:2px 7px}
.cx-tag{position:absolute;left:8px;bottom:8px;top:auto!important;font-style:normal;font-size:12px;font-weight:700;background:var(--lime);border:1.5px solid var(--ink);border-radius:99px;padding:2px 7px}
.cx-prod>div{display:flex;flex-direction:column;gap:4px;padding:var(--s3);flex:1}
.cx-prod small{color:var(--accent);font-weight:700;font-size:13px;line-height:1.3}
.cx-proof{color:var(--muted)!important;font-weight:500!important}.cx-proof b{color:var(--accent);font-weight:700}.cx-proof a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cx-prod>div>b{font-size:15px;line-height:1.3}
.cx-prod>div>span{font-size:14px;color:var(--muted)}
.cx-prod>div>span b{color:var(--ink)}
.cx-prod .cx-btn{margin-top:auto;width:100%}
/* the buttons of a row of cards on one line, whatever the length of the text above them (at least 12px under it) */
.cx-prod>div>.cx-btn{margin-top:auto}
.cx-prod>div>:nth-last-child(2){margin-bottom:var(--s2)}
.cx-look{position:relative;display:flex;flex-direction:column;gap:2px;text-align:left;padding:0 0 var(--s3);border:1.5px solid var(--ink);border-radius:16px;background:var(--cream);overflow:hidden;box-shadow:3px 3px 0 var(--ink);transition:transform .14s,box-shadow .14s}
@media (hover:hover){.cx-look:not(:disabled):hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}}
.cx-look img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;display:block;border-bottom:1.5px solid var(--ink);margin-bottom:var(--s2)}
.cx-look b,.cx-look>span{padding:0 var(--s3)}
.cx-look>span{font-size:14px;color:var(--muted)}
.cx-look .cx-tag{top:8px!important;bottom:auto}
.cx-look.on{outline:3px solid var(--accent);outline-offset:2px}
.cx-look:disabled{cursor:default}.cx-look:disabled:not(.on){opacity:.5}
.cx-market{display:flex;align-items:center;gap:var(--s2);margin-top:var(--s3);font-size:14px;color:var(--muted)}
.cx .cx-market select{min-height:44px}
.cx-minis{display:flex;gap:var(--s2);overflow-x:auto;padding-bottom:4px}
.cx-mini{flex:none;width:120px;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.3}
.cx-mini img{width:120px;height:120px;object-fit:cover;border-radius:10px;border:1.5px solid var(--line);background:var(--lav)}
.cx-recap{display:flex;align-items:center;gap:var(--s3)}
.cx-recap>img:first-child{width:72px;height:72px;border-radius:10px;object-fit:cover;border:1.5px solid var(--ink);flex:none}
.cx-recap>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cx-recap>div b:first-child{font-size:18px}
.cx-recap>div span{font-size:14px;color:var(--muted)}
.cx-recap-look{width:110px;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:10px;border:1.5px solid var(--ink);flex:none}

/* the sign-in, inside the conversation: one narrow card, centred like a sign-in page (Alex: « il faut que tu me le mettes mieux ») */
.cx-authcard{max-width:440px;text-align:center;padding:var(--s5) var(--s4)}
.cx-auth-t{margin:0;font-family:var(--title);font-size:26px;line-height:1.1;text-transform:uppercase}
.cx-auth-l{margin:6px 0 var(--s4);font-size:15px;color:var(--muted)}
.cx-auth{display:grid;gap:0;max-width:360px;margin:0 auto}
.cx-auth form{display:grid;gap:var(--s2);max-width:none}
.cx-auth #gbtn{min-height:44px;max-width:none}
.cx-auth .auth-or{max-width:none}
.cx-auth .small{font-size:13px}
.cx .own-form{border:0;box-shadow:none;background:none;padding:0}
.cx .own-form .own-step:first-child{padding-top:0}

/* the build */
.cx-bar{height:10px;border-radius:99px;background:var(--lav);border:1.5px solid var(--ink);overflow:hidden;margin-bottom:var(--s3)}
.cx-bar i{display:block;height:100%;background:var(--accent);transition:width .6s ease}
.cx-job{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cx-job li{display:flex;align-items:center;gap:var(--s3);padding:8px 12px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:15px}
.cx-job li>span:not(.cx-bot){flex:1;min-width:0}
.cx-job li em{font-style:normal;font-size:13px;color:var(--muted);white-space:nowrap}
.cx-job li.done em{color:var(--good);font-weight:600}
.cx-job li.run{border-color:var(--accent);box-shadow:0 0 0 2px #7452dc22}
.cx-job li.run em{color:var(--accent);font-weight:600}
.cx-job li.todo{opacity:.55}

/* the store */
.cx-store{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--s5);align-items:start}
.cx-phone{width:232px;height:440px;border:8px solid var(--ink);border-radius:30px;overflow:hidden;background:#fff}
.cx-shot{position:relative;width:100%;height:100%;overflow:hidden}
.cx-shot iframe{position:absolute;left:0;top:0;border:0;transform-origin:0 0;pointer-events:none}
.cx-store-acts{display:flex;flex-direction:column;gap:var(--s2);align-items:flex-start}
.cx-store-acts>b{font-size:20px}
.cx-store-acts .cx-fine{margin:0 0 var(--s2)}
.cx-store-acts .wz-logos{margin-top:var(--s3)}
.cx-url{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1.5px solid var(--ink);border-radius:10px;background:#fff;font-weight:700;text-decoration:none;overflow-wrap:anywhere;margin-bottom:var(--s3)}
.cx-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#3fbf6f;box-shadow:0 0 0 4px #3fbf6f33}
.cx-acts{display:grid;gap:var(--s2);width:min(100%,620px)}
.cx-acts .act{background:var(--cream);border:1.5px solid var(--ink);border-radius:10px;padding:var(--s3);display:grid;gap:4px}
/* a card that costs more than the balance: what is missing, plainly, above the button that gets credits */
.act .act-short{color:var(--bad);font-weight:600}
/* the cards to act on, in the look of the conversation (the dashboard's assistant keeps its small ones): text that reads,
   buttons for a thumb, a check once done, the video itself before it is approved */
.cx-acts .act{border-radius:16px;padding:var(--s4);gap:6px;margin-top:0;font-size:15px;line-height:1.45}
.cx-acts .act>b{font-size:17px;line-height:1.3}
.cx-acts .act small{font-size:13px}
.cx-acts .act.card-ask{background:#fff;box-shadow:3px 3px 0 var(--ink)}
.cx-acts .act .row{flex-wrap:wrap;gap:var(--s2);margin-top:var(--s2)}
.cx-acts .act .row .btn{min-height:46px;padding:10px 18px;font-size:15px;border-radius:10px;box-shadow:3px 3px 0 var(--ink)}
.cx-acts .act.done{border-color:var(--good)}
.cx-acts .act.done>b{display:flex;align-items:center;gap:8px}
.cx-acts .act.done>b::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.cx-acts .act .act-video{display:block;width:min(100%,240px);height:auto;aspect-ratio:9/16;object-fit:cover;border:1px solid var(--line);border-radius:10px;background:var(--lav);margin:4px 0}

/* selling: the agents and the plans */
.cx-sellers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3) var(--s4)}
.cx-sellers li{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.4}
.cx-sellers li span{min-width:0}
.cx-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2)}
.cx-plan{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:var(--s3);border:1.5px solid var(--ink);border-radius:10px;background:#fff}
.cx-plan.on{background:var(--lav);box-shadow:3px 3px 0 var(--accent);border-color:var(--accent)}
.cx-plan em{font-style:normal;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--accent)}
.cx-plan b{font-size:16px}
.cx-plan .cx-price{font-family:var(--title);font-size:30px;line-height:1.1;margin-top:4px}
.cx-plan span:not(.cx-price){font-size:13px;color:var(--muted)}
.cx .offer-banner{margin-bottom:var(--s3)}
.cx .code-box{margin-top:var(--s3)}
.cx-field{display:grid;gap:6px;font-size:14px;color:var(--muted);margin:var(--s3) 0 0}
.cx-form{display:grid;gap:var(--s2)}
.cx-form p{margin:0}

/* the field, always at the bottom, like ChatGPT: a file joined above the words, then the clip, the words, the microphone
   and the arrow on one line (chat.js frame) */
.cx-dock{position:sticky;bottom:0;z-index:30;padding:var(--s4) 0 calc(var(--s3) + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 72%,#f1eafa00)}
.cx-say{display:flex;flex-direction:column;gap:6px;padding:8px;border:1.5px solid var(--ink);border-radius:24px;background:#fff;box-shadow:3px 3px 0 var(--ink);transition:box-shadow .14s}
.cx-say:focus-within{box-shadow:3px 3px 0 var(--accent)}
.cx-say-row{display:flex;align-items:flex-end;gap:4px}
.cx-say textarea{flex:1;min-width:0;min-height:44px;max-height:168px;padding:11px 8px;border:0;background:none;font:inherit;font-size:16px;line-height:22px;resize:none;outline:none;overflow-y:auto}
.cx-say textarea::placeholder{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-ic{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--ink);display:grid;place-items:center;cursor:pointer}
@media (hover:hover){.cx-ic:hover{background:var(--lav)}}
.cx-ic svg,.cx-send svg,.cx-att svg,.cx-file-doc svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cx-attach{display:none}
.cx-can-attach .cx-attach{display:grid}
.cx-send{flex:none;width:44px;height:44px;border:1.5px solid var(--ink);border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;cursor:pointer}
.cx-send svg{stroke-width:2.4}
.cx-send.busy svg{display:none}
.cx-send.busy::before{content:'';width:16px;height:16px;border-radius:50%;border:2px solid #fff;border-top-color:transparent;animation:spin .9s linear infinite}
.cx-hint{margin:6px 0 0;padding:0 var(--s3);min-height:0;font-size:13px;color:var(--muted)}
.cx-hint:empty{display:none}
/* a file joined: its picture (or a page) and its name, with the cross that removes it */
.cx-file{display:flex;align-items:center;gap:10px;align-self:flex-start;max-width:100%;padding:6px 6px 6px 6px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.cx-file[hidden]{display:none}
.cx-file img,.cx-file-doc{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none;border:1px solid var(--line)}
.cx-file-doc{display:grid;place-items:center;background:var(--lav)}
.cx-file>span:not(.cx-file-doc){font-size:14px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-att{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;opacity:.9}
.cx-att svg{width:16px;height:16px}
.cx-att+p{margin-top:4px!important}
.cx-att-img{display:block;width:min(220px,100%);max-height:220px;object-fit:cover;border-radius:10px;margin:2px 0 6px}
/* recording: a red dot, the time, the voice moving, and the cross that cancels; the arrow becomes « stop and write » */
.cx-recording textarea,.cx-recording .cx-attach,.cx-recording .cx-mic{display:none!important}
.cx-rec{flex:1;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px 0 12px}
.cx-rec[hidden]{display:none}
.cx-rec-dot{width:10px;height:10px;border-radius:50%;background:#e5484d;animation:cx-dot 1.2s infinite}
.cx-rec-t{font-variant-numeric:tabular-nums;font-weight:600;font-size:15px;min-width:36px}
.cx-wave{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;height:28px}
.cx-wave i{display:block;width:4px;height:24px;border-radius:2px;background:var(--accent);transform:scaleY(.2);transition:transform .08s linear}

/* the bots: breathing, blinking, and moving when they work */
.cx-bot{display:inline-block;flex:none;width:var(--sz);height:var(--sz);line-height:0}
.cx-bot svg{width:100%;height:100%;overflow:visible}
.cx-eyes{transform-box:fill-box;transform-origin:center;animation:cx-blink 4.6s infinite}
.cx-bot.work svg{animation:cx-bob .8s ease-in-out infinite}
.cx-bot.work .cx-eyes{animation:cx-scan 1.6s ease-in-out infinite}
@keyframes cx-blink{0%,94%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
@keyframes cx-bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(-4deg)}}
@keyframes cx-scan{0%,100%{transform:translateX(-1.4px)}50%{transform:translateX(1.4px)}}

/* a phone: one column, products as rows, the team as a row of faces */
@media (max-width:699px){
  .cx{min-height:calc(100dvh - var(--cx-above, calc(60px + var(--tabs-h, 0px))))}
  .cx-doors,.cx-grid3,.cx-sellers{grid-template-columns:minmax(0,1fr)}
  /* a door on a phone: a row, the picture on the left, the arrow on the right */
  .cx-doors{grid-template-rows:none;row-gap:var(--s2)}
  .cx-door{grid-row:auto;grid-template-rows:none;grid-template-columns:40px minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;padding:var(--s3)}
  .cx-door-pic{grid-row:1/span 2}
  .cx-door b{grid-column:2;font-size:17px}
  .cx-door-l{grid-column:2;grid-row:2;font-size:14px}
  .cx-go{grid-column:3;grid-row:1/span 2;margin:0;padding:0;width:36px;height:36px;justify-content:center;font-size:0;gap:0}
  .cx-go svg{width:18px;height:18px}
  .cx-prod{flex-direction:row}
  .cx-prod .cx-pic{width:112px;flex:none;aspect-ratio:auto;min-height:132px}
  /* the whole page in a small 16/10 frame on the left: never cut to the height of the card */
  .cx-look{display:grid;grid-template-columns:128px minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:var(--s3);row-gap:2px;padding:var(--s2)}
  .cx-look img{grid-row:1/-1;align-self:center;width:128px;height:auto;aspect-ratio:16/10;margin:0;border:1.5px solid var(--ink);border-radius:10px}
  .cx-look b{grid-column:2;grid-row:2;padding:0 var(--s3) 0 0}
  .cx-look>span{grid-column:2;grid-row:3;padding:0 var(--s3) 0 0}
  .cx-plans{grid-template-columns:minmax(0,1fr)}
  /* a plan on one line: its name and its price, then what comes with it and « par mois » under the price */
  .cx-plan{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t t" "n p" "c m" "g g";column-gap:var(--s3);row-gap:2px;align-items:baseline}
  .cx-plan em,.cx-plan .cx-now{grid-area:t}
  .cx-plan b{grid-area:n}
  .cx-plan .cx-price{grid-area:p;font-size:26px;margin:0;justify-self:end}
  .cx-plan .cx-pm{grid-area:m;justify-self:end;text-align:right}
  .cx-plan .cx-cr{grid-area:c}
  .cx-plan .cx-tap{grid-area:g}
  .cx-store{grid-template-columns:minmax(0,1fr);justify-items:center}
  .cx-store-acts{width:100%}
  .cx-bub{max-width:92%}
  html.has-tabs .cx-dock{bottom:var(--tabs-h)}
  .cx-recap-look{display:none}
}
@media (prefers-reduced-motion:reduce){
  .cx-in,.cx-eyes,.cx-bot.work svg,.cx-bot.work .cx-eyes,.cx-dots i,.cx-rec-dot{animation:none!important}
  .cx-door,.cx-btn,.cx-look,.cx-bar i{transition:none}
}
/* the done-for-you offer: the phone number asked in the conversation (chat.js callbackCard) */
.cx-cb{display:grid;gap:var(--s3);max-width:460px}
.cx-cb p{margin:0}
.cx-cb label{display:grid;gap:var(--s1)}
.cx-cb label span{font-size:14px;font-weight:600}
.cx-cb .input{min-height:44px;font-size:16px}
.cx-cb .err:empty{display:none}
.cx-cb .cx-btn{justify-self:start;min-height:44px}

/* the bar over the conversation (Alex, 03/12/2026: « un bouton pour aller au tableau de bord à tout moment… des nouvelles
   discussions »): the conversations, a new one, the dashboard; its list opens under it */
.cx-nav{position:relative;margin:0 0 var(--s3)}
.cx-nav:empty{display:none}
.cx-nav-in{display:flex;flex-wrap:wrap;gap:8px}
.cx-nav-b{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1.5px solid var(--ink);border-radius:99px;background:var(--cream);color:var(--ink);font-size:14px;font-weight:600}
@media (hover:hover){.cx-nav-b:hover{background:var(--lav)}}
.cx-nav-b svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cx-nav-b[aria-expanded="true"]{background:var(--lav)}
.cx-nav-dash{margin-left:auto;background:var(--ink);color:#fff}
@media (hover:hover){.cx-nav-dash:hover{background:var(--accent)}}
.cx-convos:not([hidden]){position:absolute;z-index:20;top:calc(100% + 8px);left:0;width:min(360px,100%);max-height:min(420px,60vh);overflow:auto;display:grid;gap:4px;padding:8px;background:var(--cream);border:1.5px solid var(--ink);border-radius:16px;box-shadow:3px 3px 0 var(--ink)}
.cx-convos .cx-fine{margin:8px}
.cx-convo{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:none;color:var(--ink);text-align:left;font-size:14px}
.cx-convo.on{background:var(--lav)}
@media (hover:hover){.cx-convo:hover{background:var(--lav)}}
.cx-convo b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cx-convo span{flex:none;font-size:13px;color:var(--muted)}
.cx-convo-new{justify-content:flex-start;color:var(--accent)}
.cx-convo-new svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;flex:none}
/* between two moments of a conversation, the day and the hour */
.cx-when{margin:var(--s3) 0;text-align:center;font-size:13px;color:var(--muted)}
/* the dashboard's way into the conversation */
.cx-dash-card{display:grid;gap:var(--s3);margin:0 0 var(--s4)}
.cx-dash-h{display:flex;gap:12px;align-items:flex-start}
.cx-dash-h b{display:block;font-size:17px}
.cx-dash-h span{display:block;color:var(--muted);font-size:14px}
.cx-dash-acts{display:flex;flex-wrap:wrap;gap:8px}
.cx-dash-list{display:grid;gap:4px}
/* the last conversations of the dashboard look like what they are: rows to open */
.cx-dash-list .cx-convo{background:var(--lav)}
.cx-dash-list .cx-convo span::after{content:"›";margin-left:8px;font-size:18px;line-height:1;color:var(--ink)}
@media (max-width:520px){.cx-dash-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cx-dash-acts .btn{white-space:normal;text-align:center}}
.cx-dash-list:empty{display:none}
@media (max-width:520px){.cx-nav-b span{font-size:13px}.cx-nav-b{padding:8px 12px}.cx-nav-dash{margin-left:0}}

/* the packs of credits, a card of the conversation: one tap pays (Alex, 03/12/2026: « je sélectionne et je paie direct ») */
.cx-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--s2)}
.cx-pack{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:44px;padding:var(--s3);border:1.5px solid var(--ink);border-radius:10px;background:#fff;text-align:left;color:var(--ink)}
@media (hover:hover){.cx-pack:hover,.cx-plan[data-cx="buyplan"]:hover{background:var(--lav)}}
.cx-pack.best{border-color:var(--accent);box-shadow:3px 3px 0 var(--accent)}
.cx-pack b{font-family:var(--title);font-size:30px;line-height:1.1}
.cx-pack span{font-size:13px;color:var(--muted)}
.cx-pack .cx-price{font-size:16px;font-weight:600;color:var(--ink);margin-top:4px}
.cx-pack.busy,.cx-plan.busy{opacity:.6}
/* what a tap does, at the foot of each option, and why one is marked */
.cx-pack .cx-tap span,.cx-plan .cx-tap span{color:inherit;font-size:inherit}
.cx-pack .cx-tap,.cx-plan span.cx-tap{margin-top:auto;padding-top:var(--s2);font-size:14px;font-weight:700;color:var(--accent)}
.cx-pack,.cx-plan{position:relative}
.cx-badge.now{background:var(--ink)}
.cx-badge{position:absolute;top:-11px;left:10px;padding:2px 8px;border-radius:99px;background:var(--accent);color:#fff;font-style:normal;font-size:12px;font-weight:700;line-height:16px;white-space:nowrap}
.cx-plans:has(.cx-badge),.cx-packs:has(.cx-badge){padding-top:6px;row-gap:var(--s4)}
@media (max-width:699px){
  /* a pack on one line too: how many credits, the price, what a tap does */
  .cx-packs{grid-template-columns:minmax(0,1fr)}
  .cx-pack{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"b w p" "g g g";column-gap:var(--s2);align-items:baseline}
  .cx-pack b{grid-area:b}
  .cx-pack .cx-w{grid-area:w}
  .cx-pack .cx-price{grid-area:p;margin:0;justify-self:end}
  .cx-pack .cx-tap{grid-area:g}
  /* the buttons of a card to act on: each as wide as its line once they wrap */
  .cx-acts .act .row .btn{flex:1 1 auto}
}
/* the tab of a payment, back from Stripe: it says so, then closes */
.cx-paid{max-width:420px;margin:15vh auto 0;padding:0 var(--s4);text-align:center;display:grid;justify-items:center;gap:var(--s3)}
.cx-paid h1{margin:0}
.cx-paid p{margin:0;color:var(--muted)}

/* the agents at work on a message, as the server says it (Alex, 03/12/2026: « qu'on voie les agents travailler ») */
.cx-work{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cx-work li{display:flex;align-items:center;gap:8px;font-size:15px}
.cx-work li.ok{color:var(--muted)}
.cx-work li.ok::after{content:"✓";margin-left:auto;color:var(--good);font-weight:700}
/* a card that opens on its buttons: no space above them */
.cx-card>.cx-row:first-child,.cx-bare>.cx-row:first-child{margin-top:0}
/* the web address in the conversation: a name searched, taken with the holder's details, or one of the seller's own
   connected with its DNS records (Alex, 04/12/2026: « acheter son nom de domaine directement dans le chat ») */
.cx-dom-f{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:stretch}
.cx-dom-f .input[name="q"],.cx-dom-f .input[name="d"]{flex:1 1 220px;min-width:0}
.cx-dom-f select.input{flex:0 1 190px;min-width:0}
.cx-dom-f .cx-btn{flex:0 0 auto}
.cx-doms{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2)}
.cx-doms li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"n b" "p b";align-items:center;column-gap:var(--s3);row-gap:2px;padding:var(--s3);border:1.5px solid var(--ink);border-radius:10px;background:#fff}
.cx-doms li b{grid-area:n;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.cx-doms li span{grid-area:p;font-size:14px;color:var(--muted)}
.cx-doms li .cx-btn{grid-area:b}
.cx-doms li.off{background:transparent;border-style:dashed;color:var(--muted)}
.cx-doms li.on{border-color:var(--accent);box-shadow:3px 3px 0 var(--accent)}
.cx-holder{display:grid;gap:var(--s3)}
.cx-holder label:not([hidden]){display:grid;gap:4px;font-size:14px;font-weight:600}
.cx-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--s3)}
.cx-two.cx-tel{grid-template-columns:96px minmax(0,1fr)}
.cx-holder .cx-btn{width:100%;margin-top:var(--s1)}
.cx-holder .cx-bad{margin:0}.cx-holder .cx-bad:empty{display:none}
.cx-dns{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2)}
.cx-dns li{display:grid;gap:6px;padding:var(--s3);border:1.5px solid var(--ink);border-radius:10px;background:#fff}
.cx-dns-t{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}
.cx-dns-v{display:flex;align-items:center;gap:var(--s2)}
.cx-dns code,.cx-dns-v code{font-size:14px;overflow-wrap:anywhere}
.cx-dns-v code{flex:1;min-width:0;background:var(--lav);border-radius:6px;padding:8px 10px}
.cx-chip.small{flex:none;padding:6px 14px;font-size:14px}
.cx-state{font-style:normal;font-size:12px;font-weight:700;border:1.5px solid var(--ink);border-radius:99px;padding:2px 8px}
.cx-state.good{background:var(--lime)}.cx-state.warn{background:var(--peach)}
.cx-said{margin:var(--s1) 0 0;padding-left:18px;font-size:14px;color:var(--muted)}
.cx-confirm{margin-top:var(--s3);padding:var(--s3);border:1.5px dashed var(--bad);border-radius:10px}
.cx-confirm p{margin:0;font-weight:600}
@media (max-width:520px){.cx-dom-f .cx-btn,.cx-dom-f select.input{flex:1 1 100%}.cx-two{grid-template-columns:minmax(0,1fr)}.cx-two.cx-tel{grid-template-columns:96px minmax(0,1fr)}}
/* the subscriber's own plan, on the card of the plans: marked, not bought again */
.cx-plan.now{cursor:default;background:var(--lav)}
.cx-plan span.cx-now{font-size:12px;font-weight:700;color:var(--accent);text-transform:none}

/* a small phone (iPhone SE, 13 mini): the doors and the sign-up card fit above the field at the bottom */
@media (max-width:699px) and (max-height:700px){
  .cx-door{padding:10px var(--s3)}
  .cx-authcard{padding:var(--s4)}
  .cx-auth-t{font-size:22px}
  .cx-auth-l{margin-bottom:var(--s3)}
}
/* the payment that waits, on a phone: one button a line, « Annuler » under them */
@media (max-width:520px){
  .cx-paywait .cx-row>.cx-btn{flex:1 1 100%}
  .cx-paywait .cx-row>.cx-redo{margin:0 auto}
}
/* a phone on its side (380px high): the reading place is not eaten by the bars */
@media (max-height:500px) and (min-width:700px){
  .cx-dock{padding-top:var(--s2)}
}
