/* Runtime-only subset adapted from @oneworks/avatar-web 1.0.0-rc.6 (MIT). */
.oneworks-dog-host {
  position: relative;
  width: 100%;
  height: 100%;
  --primary-color: #8ef4cf;
  --text-color: #effffb;
}

.oneworks-dog-host .oneworks-avatar,
.oneworks-dog-host .oneworks-avatar * { box-sizing: border-box; }

.oneworks-dog-host .oneworks-avatar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
  color: var(--text-color);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oneworks-dog-host .oneworks-avatar > .interactive-avatar,
.oneworks-dog-host .interactive-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
  user-select: none;
}

.oneworks-dog-host .interactive-avatar__canvas {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  outline: none;
  pointer-events: none;
}

.oneworks-dog-host .interactive-avatar__face-part { transition: opacity 180ms ease-out; }

.pet-face[data-avatar-engine="oneworks-dog"] {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.24)) drop-shadow(0 0 22px rgba(85, 184, 198, 0.2));
}

.pet-face[data-avatar-engine="oneworks-dog"]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12%;
  border: 1px solid rgba(142, 244, 207, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(85, 184, 198, 0.1), 0 0 42px rgba(86, 98, 217, 0.12);
  pointer-events: none;
}

.pet-face[data-avatar-engine="oneworks-dog"][data-mode="listening"] {
  filter: drop-shadow(0 0 30px rgba(98, 217, 232, 0.34));
}

.pet-face[data-avatar-engine="oneworks-dog"][data-mode="thinking"] {
  filter: drop-shadow(0 0 32px rgba(112, 128, 183, 0.36));
}

.pet-face[data-avatar-engine="oneworks-dog"][data-mode="speaking"] {
  filter: drop-shadow(0 0 34px rgba(142, 244, 207, 0.46));
}

@media (prefers-reduced-motion: reduce) {
  .oneworks-dog-host .interactive-avatar__face-part { transition: none; }
}

.avatar-choice-grid {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.avatar-choice {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.avatar-choice:has(input:checked) {
  border-color: rgba(142, 244, 207, 0.72);
  background: rgba(142, 244, 207, 0.1);
  box-shadow: inset 0 0 0 1px rgba(142, 244, 207, 0.12);
}

.avatar-choice input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--mint);
}

.avatar-choice-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(142, 244, 207, 0.1);
  font-size: 20px;
}

.avatar-choice strong {
  padding-right: 25px;
  color: var(--text);
  font-size: 13px;
}

.avatar-choice small {
  padding-right: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .identity-row { gap: 6px; }
  .identity-row > div:first-child { min-width: 0; gap: 5px; }
  .identity-row .pet-status b { display: none; }
  .identity-row .identity-actions { flex: 0 1 auto; min-width: 0; justify-content: flex-end; gap: 2px; }
  .identity-row .identity-actions .icon-button { padding: 5px 6px; font-size: 9px; letter-spacing: -0.02em; }
}
