#ssai-chat-launcher{position:fixed;right:22px;bottom:22px;z-index:1000;width:58px;height:58px;border:0;border-radius:50%;background:#0B8C72;color:#fff;box-shadow:0 14px 36px rgba(0,0,0,.35);display:grid;place-items:center;cursor:pointer}
#ssai-chat-launcher svg{width:26px;height:26px;fill:currentColor}
#ssai-chat-badge{position:absolute;right:-2px;top:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#EEF2FF;color:#080C18;font:700 11px/20px Inter,sans-serif;display:flex;align-items:center;justify-content:center}
#ssai-chat-panel{position:fixed;right:22px;bottom:92px;z-index:999;width:min(390px,calc(100vw - 28px));height:min(650px,calc(100vh - 118px));background:#0D1220;border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.5);display:none;grid-template-rows:auto auto 1fr auto auto;overflow:hidden;color:#EEF2FF;font-family:Inter,system-ui,sans-serif}
#ssai-chat-panel.ssai-chat-open{display:grid}
#ssai-chat-header{display:flex;align-items:center;gap:10px;padding:14px 15px;background:#10192c;border-bottom:1px solid rgba(255,255,255,.08)}
#ssai-chat-avatar{width:38px;height:38px;border-radius:10px;background:#0B8C72;display:grid;place-items:center;font-weight:800}
#ssai-chat-identity{min-width:0;flex:1}#ssai-chat-title{font:700 14px/1.2 Syne,Inter,sans-serif;margin:0}#ssai-chat-status{font-size:11px;color:#8B97B8;margin-top:3px}#ssai-chat-status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#12B08F;margin-right:5px}
#ssai-chat-header-actions{display:flex;gap:5px}.ssai-chat-icon-button{width:32px;height:32px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:transparent;color:#EEF2FF;cursor:pointer;font-size:18px}
#ssai-chat-page-context{padding:8px 14px;background:rgba(11,140,114,.1);color:#a8dbcF;font-size:11px;border-bottom:1px solid rgba(255,255,255,.06)}
#ssai-chat-messages{overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:12px}
.ssai-chat-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.ssai-chat-user{align-items:flex-end}.ssai-chat-bubble{max-width:86%;padding:10px 12px;border-radius:12px;background:#18233a;color:#EEF2FF;font-size:13px;line-height:1.55;white-space:pre-wrap}.ssai-chat-user .ssai-chat-bubble{background:#0B8C72}.ssai-chat-meta{font-size:10px;color:#667493}.ssai-chat-notice{font-size:11px;color:#8B97B8;text-align:center;padding:8px}.ssai-chat-typing{display:flex;gap:4px;padding:12px;background:#18233a;border-radius:12px}.ssai-chat-typing span{width:6px;height:6px;border-radius:50%;background:#8B97B8;animation:ssaiPulse 1s infinite}.ssai-chat-typing span:nth-child(2){animation-delay:.15s}.ssai-chat-typing span:nth-child(3){animation-delay:.3s}@keyframes ssaiPulse{0%,100%{opacity:.35}50%{opacity:1}}
#ssai-chat-quick{display:flex;gap:7px;overflow-x:auto;padding:8px 12px;border-top:1px solid rgba(255,255,255,.06)}.ssai-chat-chip{flex:0 0 auto;border:1px solid rgba(18,176,143,.35);background:rgba(11,140,114,.1);color:#c9f5ea;border-radius:999px;padding:7px 10px;font-size:11px;cursor:pointer}
#ssai-chat-composer{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.08)}#ssai-chat-input{flex:1;resize:none;max-height:104px;min-height:42px;background:#131A2E;border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#EEF2FF;padding:10px;font:13px/1.4 Inter,sans-serif;outline:none}#ssai-chat-input:focus{border-color:#0B8C72}#ssai-chat-send{border:0;border-radius:9px;background:#0B8C72;color:#fff;padding:0 14px;font-weight:700;cursor:pointer}#ssai-chat-send:disabled{opacity:.5}
#ssai-chat-footer{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;color:#667493;font-size:10px;border-top:1px solid rgba(255,255,255,.06)}.ssai-chat-link-button{border:0;background:none;color:#8B97B8;font-size:10px;cursor:pointer}
@media(max-width:520px){#ssai-chat-panel{right:7px;bottom:78px;width:calc(100vw - 14px);height:calc(100vh - 92px);border-radius:14px}#ssai-chat-launcher{right:14px;bottom:14px}}
@media(prefers-reduced-motion:reduce){.ssai-chat-typing span{animation:none}}
