/* The original Beni geometry and face motions stay in beni-character.*. */
@keyframes beniCompanionFloat {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-5px,0); }
}

.beni-assistant .beni-floating-trigger {
  position: relative;
  top: 0;
  width: 80px;
  height: 96px;
  transform: translate3d(0,0,0);
  animation: beniCompanionFloat 6.8s ease-in-out infinite;
  will-change: transform;
}

.beni-assistant .beni-floating-trigger #rail-beni-character,
.beni-assistant .beni-floating-trigger .beni,
.beni-assistant .beni-floating-trigger svg {
  display: block;
  width: 80px;
  height: 96px;
  max-width: none;
  overflow: visible;
  will-change: auto;
  shape-rendering: geometricPrecision;
  image-rendering: auto;
}

.beni-assistant { align-items: center; }

.beni-assistant .beni-greeting {
  --beni-bubble-max-width: 190;
  --beni-bubble-pad-x: 13;
  --beni-bubble-pad-y: 10;
  flex: 0 0 auto;
  display: block;
  position: relative;
  width: auto;
  min-width: 0;
  min-height: 0;
  max-width: 190px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: keep-all;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translateY(-18px);
  transition: width 280ms ease, height 280ms ease;
}

.beni-assistant .beni-greeting::before,
.beni-assistant .beni-greeting::after { content: none !important; }

.beni-greeting .beni-bubble-backdrop,
.beni-greeting .beni-bubble-shape {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}
.beni-greeting .beni-bubble-backdrop {
  background: transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.beni-greeting .beni-bubble-shape { overflow: visible; shape-rendering: geometricPrecision; }
.beni-greeting .beni-bubble-shape path {
  fill: color-mix(in srgb, var(--raised) 66%, transparent);
  stroke: color-mix(in srgb, var(--line) 74%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.beni-greeting .beni-greeting-text {
  position: absolute;
  top: calc(var(--beni-bubble-pad-y) * 1px + 1px);
  left: calc(var(--beni-bubble-pad-x) * 1px + 9px);
  right: calc(var(--beni-bubble-pad-x) * 1px + 1px);
  display: block;
  margin: 0;
  padding: 0;
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: left;
  opacity: 1;
  transition: opacity 140ms ease;
}
.beni-greeting[data-text-visible="false"] .beni-greeting-text { opacity: 0; }
.beni-bubble-measure {
  position: fixed;
  left: -10000px;
  top: 0;
  display: block;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-line;
  overflow-wrap: normal;
  word-break: keep-all;
}

.beni-open .beni-assistant .beni-greeting {
  display: none;
}

.beni-assistant[data-paused="true"] .beni-floating-trigger,
.beni-assistant[data-paused="true"] .beni * {
  animation-play-state: paused !important;
}

@media (max-width: 700px) {
  .beni-assistant .beni-floating-trigger,
  .beni-assistant .beni-floating-trigger #rail-beni-character,
  .beni-assistant .beni-floating-trigger .beni,
  .beni-assistant .beni-floating-trigger svg {
    width: 64px;
    height: 78px;
  }
  .beni-assistant .beni-greeting {
    --beni-bubble-max-width: 168;
    --beni-bubble-pad-x: 11;
    --beni-bubble-pad-y: 8;
    max-width: 168px;
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beni-assistant .beni-floating-trigger,
  .beni-assistant .beni * {
    animation: none !important;
    transition: none !important;
  }
  .beni-assistant .beni-floating-trigger {
    top: 0;
    transform: none;
    will-change: auto;
  }
  .beni-assistant .beni-greeting,
  .beni-greeting .beni-greeting-text { transition: none; }
}

/* One floating cycle; pose swaps do not reset a second vertical/head motion. */
.beni-assistant .beni .bn-top,.beni-assistant .st-happy .bn-head{animation:none;transform:none}
.beni-assistant{height:96px}
@media(max-width:700px){.beni-assistant{height:78px}}
