/* AI employee avatars: same shapes as the app (tools/staff_layout.mjs). Movement only while on screen, via helpers.js. */
.av-svg {
  display: block;
  flex: none;
  overflow: visible;
}

.av-body,
.av-eyes {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .in-view .av-body {
    animation: av-bob 2.4s ease-in-out infinite;
  }

  .in-view .av-eyes {
    animation: av-blink 5s infinite;
  }

  .in-view .pose-wave .av-prop {
    animation: av-rock 1.8s ease-in-out infinite;
  }

  .in-view .agent-card:hover .av-prop {
    animation: av-rock .8s ease-out 1;
  }

  .in-view .av-svg:nth-child(2) .av-body,
  .in-view .agent-card:nth-child(2) .av-body,
  .in-view .day-feed li:nth-child(2) .av-body { animation-delay: .4s; }
  .in-view .av-svg:nth-child(3) .av-body,
  .in-view .agent-card:nth-child(3) .av-body,
  .in-view .day-feed li:nth-child(3) .av-body { animation-delay: .8s; }
  .in-view .av-svg:nth-child(4) .av-body,
  .in-view .agent-card:nth-child(4) .av-body,
  .in-view .day-feed li:nth-child(4) .av-body { animation-delay: 1.2s; }
  .in-view .av-svg:nth-child(5) .av-body,
  .in-view .agent-card:nth-child(5) .av-body,
  .in-view .day-feed li:nth-child(5) .av-body { animation-delay: 1.6s; }
}

.av-prop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.av-happy {
  display: none;
}

.pose-happy .av-eyes {
  display: none;
}

.pose-happy .av-happy {
  display: inline;
}

.pose-think .av-eyes rect {
  transform: translate(4px, -2px);
}

.star {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: var(--s-4);
  vertical-align: -.1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes av-rock {
  50% { transform: rotate(7deg); }
}

@keyframes av-bob {
  50% { transform: translateY(-4px); }
}

@keyframes av-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(.1); }
}

/* Inner pages: the helpers who do this page's job. */
.page-helpers {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
  color: var(--muted);
  font-size: var(--fs-14);
  font-weight: 600;
}

.helper-pile {
  display: flex;
}

.helper-pile .av-svg + .av-svg {
  margin-left: calc(-1 * var(--s-8));
}
