/* Centered circular photographic frame player. No transform-only substitute poses. */
body.aurora-hub.pw-product[data-view="chat"] .pw-chat-panel>.pw-chat-top.ap-presence{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;height:154px;min-height:154px;padding:4px 48px 0;margin:0;border:0;background:transparent;overflow:visible}
.ap-presence>.pw-assistant-avatar{display:none!important}
.ap-presence>.ap-avatar{position:relative;display:block;flex:0 0 116px;width:116px;height:116px;min-height:44px;margin:0 auto;padding:0;border:1px solid color-mix(in srgb,var(--accent,#9fb6f7) 27%,transparent);border-radius:50%;background:radial-gradient(circle at 48% 30%,color-mix(in srgb,var(--accent,#9fb6f7) 14%,var(--panel,#191c25)),var(--panel,#191c25) 76%);overflow:hidden;contain:paint;cursor:pointer;box-shadow:inset 0 0 22px #0002,0 3px 14px #0002;touch-action:manipulation}
.ap-avatar:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.ap-character{display:none;position:absolute;inset:0;pointer-events:none;background-image:url('/mike-muse-poster-v81.webp');background-repeat:no-repeat;background-size:100% 100%;background-position:0 0}
.ap-frames{position:absolute;inset:0;display:block;width:100%;height:100%;opacity:0}
.ap-frames.ap-loaded{opacity:1}
.ap-character:has(.ap-loaded){background-image:none}
.ap-art-ready .ap-character{display:block}.ap-art-ready .ap-fallback{display:none}
.ap-fallback{display:grid;place-items:center;width:100%;height:100%;color:var(--accent);font-size:32px;font-weight:600}
body.aurora-hub .ap-presence>div:not(.ap-avatar,.pw-chat-top-actions){flex:0 0 auto;width:min(100%,360px);min-width:0;max-width:100%;text-align:center}
body.aurora-hub .ap-presence h1{margin:0;font-size:12px;line-height:16px;letter-spacing:.1px;font-weight:600}
body.aurora-hub .ap-presence #chat-state{margin:0;font-size:11px;line-height:15px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.aurora-hub .ap-presence .pw-chat-top-actions{position:absolute;right:8px;top:12px;flex:0 0 auto;margin:0;gap:0}
body.aurora-hub .ap-presence #chat-compose{width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;background:transparent;color:var(--muted)}
.ap-egg[hidden]{display:none!important}
.ap-egg{position:absolute;z-index:8;top:calc(100% + 2px);left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 28px);padding:7px 12px;border:1px solid var(--border,#394052);border-radius:16px;background:var(--panel,#202530);color:var(--text,#f0f1f7);box-shadow:0 8px 28px #0003;font-size:12px;line-height:17px;white-space:normal}
.ap-egg-activity{border:0!important;background:transparent!important;color:var(--accent,#adc4ff)!important;min-height:36px!important;padding:6px!important;font-size:12px!important}
@media(max-width:650px){
 body.aurora-hub.pw-product[data-view="chat"] .pw-chat-panel>.pw-chat-top.ap-presence{height:134px;min-height:134px;padding:3px 44px 0;gap:2px}
 .ap-presence>.ap-avatar{flex-basis:96px;width:96px;height:96px}
 body.aurora-hub .ap-presence h1{font-size:11px;line-height:15px}
 body.aurora-hub .ap-presence #chat-state{font-size:10px;line-height:14px}
 body.aurora-hub .ap-presence .pw-chat-top-actions{right:0;top:4px}
}
/* Preserve useful transcript height when the phone keyboard is open. */
@media(max-width:650px) and (max-height:540px){
 body.aurora-hub.pw-product[data-view="chat"] .pw-chat-panel>.pw-chat-top.ap-presence{height:100px;min-height:100px}
 .ap-presence>.ap-avatar{flex-basis:64px;width:64px;height:64px}
}
