/* The site's assistant (spec 054): the bubble, the conversation window, the tyre cards.
   Tokens from cart.css. Under the cart's drawer (z-index 1000): adding a tyre opens it above. */
/* The robot (spec 080): white on the AI blue, its antenna lit, its eyes blinking and following
   the pointer (--pm-look, set by the script) */
.pm-bot { display: block; width: 100%; height: 100%; overflow: visible; }
.pm-bot__head, .pm-bot__ear { fill: #fff; }
.pm-bot__ear { opacity: .85; }
.pm-bot__stem { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.pm-bot__led { fill: #fbbc05; animation: pm-bot-led 2.4s ease-in-out infinite; }
.pm-bot__visor { fill: #0d1b3e; }
.pm-bot__eyes { transform: var(--pm-look, none); transition: transform .15s ease-out; }
.pm-bot__eye { fill: #7cf3ff; transform-box: fill-box; transform-origin: center; animation: pm-bot-blink 4.6s infinite; }
.pm-bot__mouth { fill: none; stroke: #0d1b3e; stroke-width: 1.6; stroke-linecap: round; }
@keyframes pm-bot-led { 0%, 100% { fill: #fbbc05; filter: none; } 50% { fill: #ffe082; filter: drop-shadow(0 0 2.5px #fbbc05); } }
@keyframes pm-bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }

/* The launcher: the robot in a blue ring, and « Ask the AI » */
.pm-ai-launcher { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900; display: inline-flex; align-items: center; gap: .7rem;
  padding: .4rem 1.2rem .4rem .4rem; border: 0; border-radius: 999px; color: var(--pmc-ink); cursor: pointer; isolation: isolate;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: -.005em;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #1a73e8, #0b2545) border-box;
  border: 2px solid transparent; box-shadow: 0 10px 30px rgba(11, 37, 69, .2), 0 2px 6px rgba(17, 19, 24, .08);
  transition: transform .2s ease, box-shadow .2s ease; }
.pm-ai-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(26, 115, 232, .32), 0 2px 6px rgba(17, 19, 24, .08); }
.pm-ai-launcher__bot { width: 2.9rem; height: 2.9rem; flex: none; padding: .2rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6ea8ff, #1a73e8 55%, #174ea6); box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .18); }
.pm-ai-launcher:hover .pm-bot { animation: pm-bot-hello .7s ease-in-out; }
@keyframes pm-bot-hello { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(7deg); } }
/* The animated robot (spec 080): the drawing fills half its frame, enlarged to fill the round one */
.pm-ai-launcher__bot.is-live, .pm-ai__avatar.is-live { padding: 0; overflow: hidden; }
.pm-bot-live { display: block; width: 100%; height: 100%; }
.pm-bot-live svg { transform: scale(1.75) translateY(-2%); }
/* Analemma whole, a small 3D figure (owner, 2026-11-14: « en entier miniaturisé avec aspect 3D »):
   no disc, she stands, rising above the launcher; a thin light edge and a cast shadow lift her off
   the navy, an oval shadow on the ground under her shoes */
.pm-ai-launcher__bot:has(.pm-portrait), .pm-ai__avatar:has(.pm-portrait) { position: relative; width: auto; padding: 0;
  border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.pm-ai-launcher__bot:has(.pm-portrait)::after, .pm-ai__avatar:has(.pm-portrait)::after { content: ""; position: absolute; z-index: -1;
  left: 8%; right: 8%; bottom: -.12rem; height: .4rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.pm-portrait { display: block; width: auto; height: 100%;
  filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .85)) drop-shadow(2px 5px 4px rgba(0, 0, 0, .35)); }
.pm-ai-launcher__face .pm-ai-launcher__bot:has(.pm-portrait) { height: 5rem; margin: -2.4rem 0 -.15rem; }
.pm-ai-launcher:has(.pm-portrait) { gap: 1.15rem; }
.pm-ai-launcher__face:has(.pm-portrait) .pm-handset { right: -.8rem; bottom: .5rem; }
.pm-ai-launcher:hover .pm-portrait { animation: pm-bot-hello .7s ease-in-out; transform-origin: 50% 100%; }
/* In the navy header, a soft light behind her: the dark suit would melt into the band */
.pm-ai__avatar:has(.pm-portrait) { height: 5.4rem; isolation: isolate; }
.pm-ai__avatar:has(.pm-portrait)::before { content: ""; position: absolute; z-index: -1; left: -85%; right: -85%; top: -6%; bottom: 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(170, 202, 255, .85), rgba(110, 168, 255, .35) 55%, rgba(110, 168, 255, 0)); }
.pm-ai-open .pm-ai-launcher { opacity: 0; pointer-events: none; }
/* The filters open over the whole phone screen: the robot would cover their « Show the tyres » (spec 105) */
html.pm-filters-shown .pm-ai-launcher { display: none; }
/* ONE WAY IN (spec 126, 2026-11-14): the robot holds its handset, green as a phone's call key, at
   its corner, edged in white so it reads on the blue; it rings once under the pointer */
.pm-ai-launcher__face { position: relative; flex: none; display: block; }
/* (Out of the flex row now, the robot's disc is a block of its own, or its size is lost) */
.pm-ai-launcher__face .pm-ai-launcher__bot { display: block; box-sizing: border-box; }
.pm-ai-launcher__face .pm-handset { position: absolute; right: -.35rem; bottom: -.3rem; width: 1.35rem; height: 1.35rem; padding: .24rem;
  box-sizing: border-box; border-radius: 50%; fill: #fff; background: radial-gradient(circle at 30% 25%, #4cd97b, #1e8e3e 60%, #146c2e);
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(11, 37, 69, .3); transform-origin: 50% 50%; }
.pm-ai-launcher:hover .pm-handset, .pm-ai-launcher:focus-visible .pm-handset { animation: pm-handset-ring .45s ease-in-out 2; }
@keyframes pm-handset-ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(14deg); } }
/* A conversation going on, on a phone (spec 126, 2026-11-14): a blue mark at the face's top
   corner, edged in white, beating softly, until the window opens */
.pm-ai-launcher.is-ongoing .pm-ai-launcher__face::before { content: ""; position: absolute; z-index: 2; top: 0; right: -.25rem;
  width: .8rem; height: .8rem; border-radius: 50%; background: #1a73e8; box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(11, 37, 69, .35);
  animation: pm-ongoing 1.8s ease-out infinite; }
@keyframes pm-ongoing { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(26, 115, 232, .55); }
  100% { box-shadow: 0 0 0 2px #fff, 0 0 0 10px rgba(26, 115, 232, 0); } }
@media (prefers-reduced-motion: reduce) { .pm-ai-launcher.is-ongoing .pm-ai-launcher__face::before { animation: none; } }

/* « Talk to the AI », a green pill under the name, in the band (owner, 2026-11-14): the one key
   with a word, the one way to talk to the AI without writing. Touched, the band becomes the call.
   On the keys' line, first, as tall as they are; only as wide as its words, its handset at the left */
.pm-ai__call { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 2.3rem;
  padding: 0 .9rem 0 2.3rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 650;
  white-space: nowrap;
  color: #fff; background: #1e8e3e; box-shadow: 0 3px 10px rgba(30, 142, 62, .4); transition: background .15s; }
.pm-ai__call .pm-handset { position: absolute; left: .25rem; top: 50%; margin-top: -.9rem; width: 1.8rem; height: 1.8rem; padding: .36rem;
  box-sizing: border-box; border-radius: 50%; fill: #fff; background: rgba(255, 255, 255, .2); }
.pm-ai__call:hover { background: #188038; }
.pm-ai__call:hover .pm-handset { animation: pm-handset-ring .45s ease-in-out 2; }
.pm-ai__call:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }

.pm-ai { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 950; color: var(--pmc-ink); }
.pm-ai__panel { width: min(26rem, calc(100vw - 2.4rem)); height: min(40rem, calc(100vh - 2.4rem)); display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--pmc-line); border-radius: 20px; box-shadow: 0 24px 60px rgba(17, 19, 24, .22);
  overflow: hidden; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.pm-ai.is-open .pm-ai__panel { transform: none; opacity: 1; }

/* THE HEADER IN THE CALL'S NIGHT BLUE (owner, 2026-11-14, spec 126): the same band, the same
   layout as the call screen, so the call is the band changing state, not another object. The robot
   in a disc the speaker's size; the name and its AI tag; round translucent keys */
/* Two lines beside the robot (owner, 2026-11-14: « aligner les boutons fermer, supprimer la
   discussion et appeler l'IA », then « avec le coin supérieur droit »): the three keys on one
   line, one height, in the top right corner. Then « le prénom de l'IA au dessous du bonhomme »:
   the robot and its name one block at the left, both starting on one left edge, the keys level
   with the robot */
.pm-ai__head { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar tools" "title ."; align-items: center; justify-items: start; gap: .3rem .75rem;
  padding: .75rem .9rem .7rem 1rem; color: #fff;
  background: radial-gradient(ellipse 60% 140% at 8% 0%, rgba(26, 115, 232, .45), rgba(26, 115, 232, 0) 70%),
              linear-gradient(160deg, #13315c, #0b2545 72%); }
.pm-ai__avatar { grid-area: avatar; width: 3rem; height: 3rem; flex: none; padding: .22rem; border-radius: 50%; box-sizing: border-box;
  background: radial-gradient(circle at 30% 25%, #6ea8ff, #1a73e8 55%, #174ea6); box-shadow: 0 0 0 2px rgba(138, 180, 248, .5); }
/* (The window's own font, as the call screen's name: the theme gives its headings another) */
.pm-ai__title { grid-area: title; display: flex; align-items: center; gap: .35rem; min-width: 0; margin: 0; color: #fff; font-family: inherit;
  font-size: .92rem; white-space: nowrap; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
/* At the top right, level with the figure's head (owner, 2026-11-15: centred on the full figure,
   they sat low in the middle of the header) */
.pm-ai__tools { grid-area: tools; justify-self: stretch; align-self: start; display: flex; align-items: center;
  justify-content: flex-end; gap: .4rem; }
.pm-ai__tool { width: 2.3rem; height: 2.3rem; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.pm-ai__tool[hidden] { display: none; }
.pm-ai__tool:hover { background: rgba(255, 255, 255, .22); }
.pm-ai__tool:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.pm-ai__tool .pm-icon { width: 1.15rem; height: 1.15rem; }

.pm-ai__list { flex: 1; overflow-y: auto; padding: 1rem .9rem .5rem; display: flex; flex-direction: column; gap: .7rem;
  background: var(--pmc-soft); scroll-behavior: smooth; }
.pm-ai__msg { display: flex; flex-direction: column; gap: .5rem; max-width: 88%; }
.pm-ai__msg--user { align-self: flex-end; align-items: flex-end; }
.pm-ai__msg--assistant { align-self: flex-start; }
.pm-ai__bubble { position: relative; padding: .7rem .9rem; border-radius: 16px; font-size: .93rem; line-height: 1.5;
  overflow-wrap: anywhere; }
.pm-ai__msg--user .pm-ai__bubble { background: var(--pmc-blue); color: #fff; border-bottom-right-radius: 5px; }
.pm-ai__msg--assistant .pm-ai__bubble { background: #fff; border: 1px solid var(--pmc-line); border-bottom-left-radius: 5px; padding-right: 2.2rem; }
.pm-ai__bubble p { margin: 0 0 .45rem; }
.pm-ai__bubble p:last-child, .pm-ai__bubble ul:last-child { margin-bottom: 0; }
.pm-ai__bubble ul { margin: .2rem 0 .45rem; padding-left: 1.1rem; }
.pm-ai__speak { position: absolute; top: .45rem; right: .4rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--pmc-muted); cursor: pointer; }
.pm-ai__speak:hover { background: var(--pmc-soft); color: var(--pmc-blue); }

.pm-ai__typing { display: inline-flex; gap: .3rem; padding: .9rem 1rem !important; }
.pm-ai__typing i { width: .45rem; height: .45rem; border-radius: 50%; background: #4285f4; animation: pm-ai-dot 1s infinite ease-in-out; }
.pm-ai__typing i:nth-child(2) { background: #1a73e8; animation-delay: .15s; }
.pm-ai__typing i:nth-child(3) { background: #0b2545; animation-delay: .3s; }
@keyframes pm-ai-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.pm-ai__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pm-ai__chip { padding: .45rem .75rem; border: 1px solid var(--pmc-line); border-radius: 999px; background: #fff; color: var(--pmc-ink);
  font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.pm-ai__chip:hover { border-color: var(--pmc-blue); color: var(--pmc-blue); }

.pm-ai__cards { display: grid; gap: .5rem; width: 100%; }
.pm-ai__card { display: grid; grid-template-columns: 4.2rem 1fr; gap: .7rem; padding: .6rem; background: #fff;
  border: 1px solid var(--pmc-line); border-radius: 14px; }
.pm-ai__card-photo { width: 4.2rem; height: 4.2rem; border-radius: 10px; background: var(--pmc-soft); overflow: hidden; }
.pm-ai__card-photo img { width: 100%; height: 100%; object-fit: contain; }
.pm-ai__card-body { min-width: 0; font-size: .86rem; }
.pm-ai__card-body small { display: block; color: var(--pmc-muted); font-size: .75rem; margin-top: .1rem; }
.pm-ai__card-price { margin: .3rem 0; font-weight: 700; font-size: .98rem; }
.pm-ai__card-price small { display: inline; font-weight: 500; }
.pm-ai__card-buy { display: flex; gap: .4rem; align-items: center; }
.pm-ai__card-buy select { padding: .35rem .4rem; border: 1px solid #d5d9e2; border-radius: 8px; font: inherit; }
.pm-ai__card-buy .pm-btn { padding: .45rem .8rem; font-size: .8rem; }

/* What a search of the assistant became: shown on the page, or a link to it (spec 080) */
.pm-ai__found { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .45rem .8rem; border-radius: 999px;
  background: rgba(26, 115, 232, .08); color: var(--pmc-blue); font-size: .82rem; font-weight: 600; text-decoration: none; }
.pm-ai__found .pm-icon { width: 1rem; height: 1rem; }
.pm-ai__found--link:hover { background: rgba(26, 115, 232, .14); }
/* What the AI put in the cart (spec 106): green as a thing done, the way to the cart beside it */
.pm-ai__found--cart { display: flex; flex-wrap: wrap; border-radius: 14px; background: #e6f4ea; color: #137333; }
.pm-ai__found--cart span { flex: 1; min-width: 10rem; }
.pm-ai__cart-open { border: 0; border-radius: 999px; padding: .35rem .8rem; background: #137333; color: #fff;
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pm-ai__cart-open:hover { background: #0d5a28; }
/* On a wide screen the results step aside from the window instead of passing under it; the
   search field stays where it is */
@media (min-width: 1180px) {
  html.pm-ai-open .pm-search--active > :not(.pm-search__form) { margin-right: max(0px, calc(26rem + 2.4rem - (100vw - 100%) / 2)); }
}

/* The message to the garage, drafted by the AI (spec 083): offered under a reply, then a card the
   client reads, changes and sends */
.pm-ai__draft-ask { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid #0b2545; background: #0b2545; color: #fff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s; }
.pm-ai__draft-ask:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 37, 69, .25); }
.pm-ai__draft-ask .pm-icon { width: 1rem; height: 1rem; }
.pm-ai__msg--wide { max-width: 100%; width: 100%; }
.pm-ai__draft { display: grid; gap: .6rem; padding: .9rem; background: #fff; border: 1px solid var(--pmc-line); border-top: 3px solid var(--pmc-blue);
  border-radius: 14px; box-shadow: 0 6px 18px rgba(11, 37, 69, .08); }
.pm-ai__draft-title { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 700; color: #0b2545; }
.pm-ai__draft-title .pm-icon { width: 1.05rem; height: 1.05rem; color: var(--pmc-blue); }
.pm-ai__draft label { display: grid; gap: .25rem; font-size: .76rem; font-weight: 600; color: #3c4043; }
.pm-ai__draft input, .pm-ai__draft textarea { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #d5dce6; border-radius: 10px;
  font: inherit; font-size: .88rem; font-weight: 400; background: #fbfcfe; }
.pm-ai__draft textarea { resize: vertical; line-height: 1.45; }
.pm-ai__draft input:focus, .pm-ai__draft textarea:focus { outline: none; border-color: var(--pmc-blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .14); background: #fff; }
.pm-ai__draft-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pm-ai__draft .pm-ai__draft-consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .78rem; }
.pm-ai__draft-consent input { width: auto; margin-top: .15rem; accent-color: var(--pmc-blue); }
.pm-ai__draft-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pm-ai__draft-actions .pm-btn { padding: .6rem 1rem; font-size: .86rem; }
.pm-ai__draft-status { margin: 0; font-size: .8rem; color: #c5221f; min-height: 1rem; }
.pm-ai__found--sent { background: #e6f4ea; color: #137333; }

.pm-ai__status { margin: 0; padding: 0 .9rem; min-height: 1.3rem; font-size: .76rem; color: var(--pmc-blue); background: var(--pmc-soft); }
.pm-ai__form { display: flex; align-items: flex-end; gap: .45rem; padding: .7rem .8rem .4rem; border-top: 1px solid var(--pmc-line); }
.pm-ai__form textarea { flex: 1; resize: none; max-height: 140px; padding: .65rem .85rem; border: 1px solid #d5d9e2; border-radius: 18px;
  font: inherit; font-size: .93rem; line-height: 1.4; }
.pm-ai__form textarea:focus { outline: none; border-color: var(--pmc-blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .14); }
.pm-ai__mic, .pm-ai__send { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; }
.pm-ai__mic { background: var(--pmc-soft); color: var(--pmc-ink); }
.pm-ai__mic.is-on { background: #e5383b; color: #fff; animation: pm-ai-pulse 1.4s infinite; }
.pm-ai__send { background: var(--pmc-blue); color: #fff; }
.pm-ai__mic .pm-icon, .pm-ai__send .pm-icon { width: 1.2rem; height: 1.2rem; }
@keyframes pm-ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, .45); } 100% { box-shadow: 0 0 0 12px rgba(229, 56, 59, 0); } }
/* The AI warning at the window's foot, then its link (owner, 2026-11-14): there in a call too */
.pm-ai__note { margin: 0; padding: 0 .9rem .7rem; font-size: .7rem; line-height: 1.4; color: var(--pmc-muted); }
.pm-ai__note a { color: inherit; font-weight: 600; white-space: nowrap; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .pm-ai-launcher__label { display: none; }
  /* On a phone the prices stand at the right of the list: the robot takes the left corner, over
     the photos (spec 105) */
  .pm-ai-launcher { padding: .25rem; right: auto; left: 1rem; bottom: 1rem; }
  /* Hands-free: the speaker is the assistant; the robot would cover what it says (spec 105) */
  html.pm-handsfree .pm-ai-launcher { display: none; }
  .pm-ai-launcher__bot { width: 3.3rem; height: 3.3rem; }
  /* Analemma whole stands free in the corner, no white round under her */
  .pm-ai-launcher:has(.pm-portrait) { padding: 0; border: 0; background: none; box-shadow: none; }
  .pm-ai-launcher:has(.pm-portrait):hover { box-shadow: none; }
  .pm-ai-launcher__face .pm-ai-launcher__bot:has(.pm-portrait) { height: 6rem; margin: 0; }
  .pm-ai { inset: 0; }
  .pm-ai__panel { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-ai__panel, .pm-ai-launcher { transition: none; }
  .pm-ai-launcher, .pm-bot *, .pm-ai-launcher:hover .pm-bot, .pm-ai-launcher .pm-handset { animation: none !important; }
  .pm-ai__call, .pm-ai__call .pm-handset { transition: none; animation: none !important; }
  .pm-ai__typing i, .pm-ai__mic.is-on { animation: none; }
}

/* ── Hands-free: the call, in the window (spec 084; spec 126, 2026-11-14) ─────────────────
   A phone's call screen at the top of the window, in the site's night blue: the speaker that
   follows the voice, who and what is going on, the call's length, mute, hang up, fold. The
   conversation under it, in full: nothing is cut short. Folded, the screen alone, at the bottom */
.pm-ai.is-calling .pm-ai__head, .pm-ai.is-calling .pm-ai__call { display: none; }
.pm-ai__callscreen { --lvl: 0; flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  padding: 1rem .9rem 1rem 1rem; color: #fff;
  background: radial-gradient(ellipse 60% 140% at 8% 0%, rgba(26, 115, 232, .45), rgba(26, 115, 232, 0) 70%),
              linear-gradient(160deg, #13315c, #0b2545 72%); }

/* The speaker: a disc whose cap swells with the voice; a ring of light while it listens */
@keyframes pm-orb-beat { from { transform: scale(.97); } to { transform: scale(1.06); } }
@keyframes pm-orb-breathe { 50% { transform: scale(1.05); opacity: .7; } }
.pm-cs__speaker { position: relative; width: 3.4rem; height: 3.4rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, #12417f 0 55%, #0b2545 56%); box-shadow: 0 0 0 2px rgba(138, 180, 248, .5); transition: box-shadow .08s linear; }
.pm-cs__cap { position: absolute; inset: 27%; border-radius: 50%; pointer-events: none; transform: scale(calc(1 + var(--lvl) * .55));
  transition: transform .08s linear; background: radial-gradient(circle at 35% 30%, #8ab4f8, #1a73e8 55%, #0b2545); }
.pm-ai__callscreen[data-state="listening"] .pm-cs__speaker { box-shadow: 0 0 0 calc(2px + var(--lvl) * 8px) rgba(124, 243, 255, .55); }
.pm-ai__callscreen[data-state="speaking"] .pm-cs__cap { animation: pm-orb-beat .24s ease-in-out infinite alternate; }
.pm-ai__callscreen[data-state="thinking"] .pm-cs__speaker,
.pm-ai__callscreen[data-state="idle"] .pm-cs__speaker { animation: pm-orb-breathe 1.4s ease-in-out infinite; }
.pm-ai__callscreen[data-state="muted"] .pm-cs__speaker { filter: grayscale(1); opacity: .55; }

/* Who, what is going on, for how long; a short message when there is something to do */
.pm-cs__who { display: grid; gap: .15rem; min-width: 0; line-height: 1.25; }
/* The name alone, never cut; « AI » beside it in a small outlined tag */
.pm-cs__name { display: flex; align-items: center; gap: .45rem; font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.pm-cs__ai { padding: .05rem .4rem; border: 1px solid rgba(138, 180, 248, .55); border-radius: 999px; color: #c6dafc;
  font-size: .66rem; font-weight: 700; letter-spacing: .02em; }
.pm-cs__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; font-size: .82rem; }
.pm-cs__state { color: #8ab4f8; font-weight: 600; }
.pm-cs__time { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.pm-cs__hint { margin-top: .2rem; font-size: .8rem; color: rgba(255, 255, 255, .88); }
.pm-cs__hint:empty { display: none; }

/* The keys: the microphone, the red hang-up with its handset laid down, the fold */
.pm-cs__keys { display: flex; align-items: center; gap: .4rem; }
.pm-cs__mute, .pm-cs__hang, .pm-cs__fold { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0;
  border-radius: 50%; cursor: pointer; }
.pm-cs__mute { background: rgba(255, 255, 255, .12); color: #fff; }
.pm-cs__mute:hover { background: rgba(255, 255, 255, .22); }
.pm-cs__mute.is-on { background: #fff; color: #b3261e; }
.pm-cs__hang { background: #d93025; box-shadow: 0 3px 10px rgba(217, 48, 37, .45); }
.pm-cs__hang:hover { background: #b3261e; }
.pm-cs__hang .pm-handset { width: 1.3rem; height: 1.3rem; fill: #fff; transform: rotate(135deg); }
.pm-cs__fold { width: 2rem; background: transparent; color: rgba(255, 255, 255, .75); }
.pm-cs__fold:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pm-cs__fold .pm-icon { transition: transform .2s ease; }
.pm-cs__mute .pm-icon, .pm-cs__fold .pm-icon { width: 1.2rem; height: 1.2rem; }
.pm-cs__speaker:focus-visible, .pm-cs__mute:focus-visible, .pm-cs__hang:focus-visible, .pm-cs__fold:focus-visible {
  outline: 2px solid #8ab4f8; outline-offset: 2px; }

/* Folded: the call screen alone, docked at the bottom; a touch on it shows the conversation */
.pm-ai.is-folded .pm-ai__panel { height: auto; }
.pm-ai.is-folded .pm-ai__panel > :not(.pm-ai__callscreen) { display: none; }
.pm-ai.is-folded .pm-ai__callscreen { cursor: pointer; }
.pm-ai.is-folded .pm-cs__fold .pm-icon { transform: rotate(180deg); }
@media (max-width: 560px) {
  /* Across the phone's foot, the page free above it: the results the AI shows stay in sight */
  .pm-ai.is-folded { inset: auto 0 0 0; }
  .pm-ai.is-folded .pm-ai__panel { border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(11, 37, 69, .3); }
  .pm-ai.is-folded .pm-ai__callscreen { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-ai__callscreen * { animation: none !important; transition: none !important; }
}

/* What is kept of the conversation, said before it starts (spec 114); the AI said in hands-free (AI Act art. 50) */
.pm-ai__note--memory { padding-top: 0; }
