.apz-assistant{position:fixed;right:18px;bottom:92px;z-index:900;font-family:var(--anpaz-font,Arial,sans-serif)}
.apz-assistant [hidden]{display:none!important}
.apz-launch{display:flex;flex-direction:column;align-items:center;gap:3px;position:relative;background:#061529;color:#fff;border:1px solid #245b7c;border-radius:20px;padding:6px 9px 8px;box-shadow:0 12px 40px #0b76a94d;cursor:pointer;font-size:10px;font-weight:700;line-height:1.15;min-width:76px}
.apz-launch img{width:56px;height:56px;animation:apz-float 3s ease-in-out infinite;display:block;object-fit:contain}
.apz-launch span{display:block;max-width:70px;text-align:center}
.apz-launch i{position:absolute;right:7px;top:7px;background:#34d399;border:2px solid #061529;width:10px;height:10px;border-radius:50%}
@keyframes apz-float{50%{transform:translateY(-4px)}}
.apz-chat{position:absolute;bottom:96px;right:0;width:min(388px,calc(100vw - 28px));max-height:calc(100dvh - 220px);display:flex;flex-direction:column;background:#fff;border:1px solid #dbe5ef;border-radius:22px;overflow:hidden;box-shadow:0 20px 70px #06152940;color:#132238;font-size:13px}
.apz-chat header{display:flex;align-items:center;gap:10px;background:linear-gradient(125deg,#061529,#0c4a6e);color:#fff;padding:12px;flex-shrink:0}
.apz-chat header img{width:40px;height:40px;object-fit:contain}
.apz-chat header div{flex:1;min-width:0}.apz-chat header strong,.apz-chat header small{display:block}.apz-chat header small{font-size:11px;color:#bae6fd}.apz-close{font-size:24px;color:#fff;background:transparent;border:0;cursor:pointer;padding:0 8px}.apz-links{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:10px;background:#f8fafc;overflow:auto;flex-shrink:0;max-height:145px}.apz-links a{display:flex;justify-content:space-between;padding:7px 9px;background:#fff;border:1px solid #dbe5ef;border-radius:8px;text-decoration:none;color:#0c4a6e;font-weight:650;font-size:11px}.apz-messages{min-height:75px;max-height:260px;flex:1;overflow:auto;background:#f0f6fa;padding:12px;display:flex;flex-direction:column;gap:9px}.apz-bot,.apz-user{padding:10px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;max-width:95%}.apz-bot{background:#fff;border:1px solid #dbe5ef;align-self:flex-start}.apz-user{background:#061529;color:#fff;align-self:flex-end}.apz-result{display:block;background:#fff;border:1px solid #c9e5f6;padding:9px;border-radius:9px;color:#0369a1;text-decoration:none}.apz-result small{display:block;color:#475569}.apz-prompts{display:flex;gap:5px;overflow:auto;padding:8px;flex-shrink:0}.apz-prompts button{white-space:nowrap;background:#e0f2fe;color:#075985;border:0;padding:7px;border-radius:8px;font-size:10px;cursor:pointer}.apz-form{display:flex;gap:6px;padding:10px;flex-shrink:0}.apz-form input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:10px;color:#0f172a;background:#f8fafc}.apz-form button{border:0;background:#061529;color:#fff;border-radius:10px;padding:10px;font-weight:700;cursor:pointer}.apz-form button:disabled{opacity:.5}.apz-note{padding:0 12px 10px;color:#64748b;font-size:10px;flex-shrink:0}.apz-assistant :focus-visible{outline:2px solid #0ea5e9;outline-offset:2px}@media(max-width:600px){.apz-assistant{right:12px;bottom:74px}.apz-launch{min-width:68px;padding:5px 8px 7px}.apz-launch img{width:48px;height:48px}.apz-chat{position:fixed;right:12px;bottom:12px;max-height:calc(100dvh - 24px);z-index:2}.apz-chat:not([hidden]){box-shadow:0 0 0 100vmax #06152955}}@media(prefers-reduced-motion:reduce){.apz-launch img{animation:none}}
.apz-sound{background:#ffffff17;color:#fff;border:1px solid #ffffff30;border-radius:9px;padding:7px;cursor:pointer}.apz-form .apz-mic{background:#e0f2fe;color:#075985}.apz-sound[aria-pressed="true"]{background:#0369a1}


/* Same sizing rules for the real launcher and the admin preview. */
.apz-size-surface{--apz-size:var(--apz-desktop,68px)}
.apz-size-surface .apz-launch{box-sizing:border-box;width:var(--apz-size);min-width:0;max-width:none;height:var(--apz-size);min-height:0;padding:0;border-radius:50%;gap:0;justify-content:center;flex-shrink:0}
.apz-size-surface .apz-launch img{width:calc(var(--apz-size) * .72);height:calc(var(--apz-size) * .72);max-width:none;max-height:none;flex-shrink:0}
.apz-size-surface .apz-launch span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.apz-size-surface .apz-launch i{width:10px;height:10px;top:5px;right:5px;box-sizing:border-box}
#anpazAssistant .apz-chat{bottom:calc(var(--apz-size) + 14px);max-height:calc(100dvh - 106px - var(--apz-size))}
#anpazAssistant .apz-chat header img{width:32px;height:32px}
.apz-size-surface[data-apz-device="mobile"]{--apz-size:var(--apz-mobile,60px)}
@media(max-width:600px){#anpazAssistant{--apz-size:var(--apz-mobile,60px)}#anpazAssistant .apz-chat{bottom:12px;max-height:calc(100dvh - 24px)}}
