:root{
  --pet-primary:#0a246d;
  --pet-ink:#000001;
  --pet-cyan:#009fbd;
  --pet-surface:#ffffff;
  --pet-border:#d8e3ee;
  --pet-shadow:0 14px 36px rgba(10,36,109,.16);
}
.pg-pet-root{position:fixed;right:18px;bottom:18px;z-index:1180;font-family:inherit;color:var(--pet-ink)}
.pg-pet-root.pg-pet-hidden{display:none}
.pg-pet-launcher{width:78px;height:78px;border:1px solid var(--pet-border);border-radius:50%;padding:7px;background:var(--pet-surface);box-shadow:var(--pet-shadow);cursor:pointer;display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease}
.pg-pet-launcher:hover,.pg-pet-launcher:focus-visible{transform:translateY(-2px);box-shadow:0 17px 38px rgba(10,36,109,.21)}
.pg-pet-launcher:focus-visible,.pg-pet-close:focus-visible,.pg-pet-action:focus-visible{outline:3px solid rgba(0,159,189,.35);outline-offset:2px}
.pg-pet-image{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.pg-pet-panel{position:absolute;right:0;bottom:90px;width:min(304px,calc(100vw - 28px));padding:16px;border:1px solid var(--pet-border);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:var(--pet-shadow);transform-origin:bottom right;animation:pgPetReveal .18s ease-out}
.pg-pet-panel[hidden]{display:none}
.pg-pet-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.pg-pet-panel-title{margin:0;color:var(--pet-primary);font-size:1rem;line-height:1.25}
.pg-pet-panel-copy{margin:4px 0 0;color:#506174;font-size:.8rem;line-height:1.4}
.pg-pet-close{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:50%;background:#edf3f8;color:var(--pet-primary);font-size:1.05rem;cursor:pointer}
.pg-pet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pg-pet-action{min-height:48px;border:1px solid #cad9e6;border-radius:12px;background:#f8fbfd;color:var(--pet-primary);font:inherit;font-size:.82rem;font-weight:750;text-align:left;padding:9px 10px;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.pg-pet-action:hover{border-color:var(--pet-cyan);background:#f1fbfd;transform:translateY(-1px)}
.pg-pet-bubble{position:absolute;right:8px;bottom:90px;max-width:238px;padding:9px 12px;border:1px solid var(--pet-border);border-radius:13px 13px 4px 13px;background:var(--pet-surface);box-shadow:0 10px 25px rgba(10,36,109,.12);color:var(--pet-primary);font-size:.8rem;line-height:1.35;animation:pgPetReveal .18s ease-out}
.pg-pet-bubble[hidden]{display:none}
.pg-pet-status{position:absolute;right:2px;bottom:2px;width:18px;height:18px;border:3px solid #fff;border-radius:50%;background:var(--pet-cyan)}
.pg-pet-root[data-state="searching"] .pg-pet-status,.pg-pet-root[data-state="creating"] .pg-pet-status{background:#e0a11b}
.pg-pet-root[data-state="ready"] .pg-pet-status,.pg-pet-root[data-state="found"] .pg-pet-status,.pg-pet-root[data-state="success"] .pg-pet-status{background:#2f9461}
.pg-pet-root[data-state="no-results"] .pg-pet-status{background:#7890a4}
.pg-pet-root[data-state="searching"] .pg-pet-launcher,.pg-pet-root[data-state="creating"] .pg-pet-launcher{animation:pgPetBreathe 2.4s ease-in-out infinite}
@keyframes pgPetReveal{from{opacity:0;transform:translateY(7px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pgPetBreathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(max-width:700px){
  .pg-pet-root{right:10px;bottom:10px}
  .pg-pet-launcher{width:62px;height:62px;padding:6px}
  .pg-pet-panel{bottom:72px;width:min(286px,calc(100vw - 20px));padding:14px}
  .pg-pet-bubble{right:2px;bottom:72px;max-width:min(220px,calc(100vw - 92px))}
}
@media(prefers-reduced-motion:reduce){
  .pg-pet-root *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.pg-pet-root{display:none!important}}
