.ayv-fab { position: fixed; right: 26px; bottom: 80px; z-index: 1400; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-size: 24px; box-shadow: 0 10px 30px var(--glow); transition: transform .25s var(--ease), box-shadow .25s; }
.ayv-fab:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 14px 40px var(--glow); }
.ayv-fab::after { content: ''; position: absolute; inset: -6px; border: 1px solid var(--accent); border-radius: 20px; opacity: .5; animation: status-pulse 3s ease-in-out infinite; }
.ayv-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #ff5d6c; border: 2px solid var(--bg); }
.ayv-fab[aria-expanded="true"] .ayv-dot { display: none; }
.ayv-tip { position: fixed; right: 94px; bottom: 92px; z-index: 1400; max-width: 220px; padding: 10px 14px; border: 1px solid var(--primary-color); border-radius: 12px 12px 4px 12px; background: var(--surface-raised); color: var(--text); font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); cursor: pointer; animation: ayv-in .4s var(--ease); }
.ayv-panel { position: fixed; right: 26px; bottom: 148px; z-index: 1500; display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100dvh - 180px)); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 70px #000a, 0 0 60px var(--accent-soft); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right; transition: opacity .25s, transform .25s var(--ease); }
.ayv-panel[hidden] { display: none; }
.ayv-panel.is-open { opacity: 1; transform: none; }
.ayv-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--accent-soft), transparent); }
.ayv-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.ayv-head strong { font: 600 14px var(--heading); }
.ayv-head span { display: flex; align-items: center; gap: 7px; font: 9px var(--mono); color: var(--muted); }
.ayv-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); }
.ayv-close { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); }
.ayv-close:hover { color: var(--accent); border-color: var(--accent); }
.ayv-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; scroll-behavior: smooth; }
.ayv-msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; animation: ayv-in .3s var(--ease); }
.ayv-msg.user { align-self: flex-end; align-items: flex-end; }
.ayv-bubble { padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface-muted); border: 1px solid var(--border); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.ayv-msg.user .ayv-bubble { border-radius: 14px 14px 4px 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ayv-bubble code { padding: 1px 6px; border-radius: 4px; background: #ffffff14; font: 11px var(--mono); }
.ayv-typing { display: inline-flex; gap: 4px; padding: 3px 0; }
.ayv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color); animation: ayv-bounce 1s infinite; }
.ayv-typing i:nth-child(2) { animation-delay: .15s; } .ayv-typing i:nth-child(3) { animation-delay: .3s; }
.ayv-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ayv-act, .ayv-chips button { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--primary-color); font-size: 11px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.ayv-act:hover, .ayv-chips button:hover { background: var(--accent-soft); border-color: var(--primary-color); transform: translateY(-2px); }
.ayv-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ayv-chips[hidden] { display: none; }
.ayv-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.ayv-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 16px; outline: none; }
.ayv-form input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--accent-soft); }
.ayv-form button { width: 44px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.ayv-form button:hover { box-shadow: 0 0 18px var(--glow); }
@keyframes ayv-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ayv-bounce { 50% { transform: translateY(-5px); opacity: .5; } }
@media (max-width: 767.98px) {
    .ayv-fab { right: 16px; bottom: 64px; width: 50px; height: 50px; }
    .ayv-fab[aria-expanded="true"] { display: none; }
    .ayv-tip { right: 76px; bottom: 72px; }
    .ayv-panel { right: 12px; left: 12px; bottom: 12px; width: auto; height: min(600px, calc(100dvh - 24px)); }
}
