#store-agent-root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;position:relative;z-index:75}
.store-floating-actions{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:75;display:flex;align-items:center;gap:9px}
.store-call-fab,.store-agent-launcher{border:0;text-decoration:none;box-shadow:0 14px 35px rgba(15,23,42,.20);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.store-call-fab{display:none;width:52px;height:52px;border-radius:18px;background:#0f766e;color:#fff;align-items:center;justify-content:center;flex-direction:column;gap:1px;font-size:9px;font-weight:800}
.store-call-fab svg{width:20px;height:20px}.store-call-fab:hover{background:#115e59;transform:translateY(-1px)}
.store-agent-launcher{height:52px;border-radius:18px;background:#15803d;color:#fff;display:inline-flex;align-items:center;gap:9px;padding:0 14px;cursor:pointer;font-weight:800}
.store-agent-launcher:hover{background:#166534;transform:translateY(-1px);box-shadow:0 17px 38px rgba(15,23,42,.25)}
.store-agent-launcher-icon{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center}.store-agent-launcher-icon svg{width:23px;height:23px}
.store-agent-launcher-label{font-size:13px}.store-agent-online-dot{width:7px;height:7px;border-radius:50%;background:#86efac;box-shadow:0 0 0 3px rgba(134,239,172,.18)}
.store-agent-online-dot.local{background:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.18)}
.store-agent-panel{position:fixed;right:16px;bottom:78px;z-index:76;width:min(390px,calc(100vw - 24px));height:min(575px,calc(100dvh - 105px));display:none;flex-direction:column;overflow:hidden;border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.28);color:#0f172a}
.store-agent-panel.open{display:flex;animation:storeAgentOpen .16s ease-out}
@keyframes storeAgentOpen{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.store-agent-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e2e8f0;background:#fff}
.store-agent-head-main{display:flex;align-items:center;gap:10px;min-width:0}.store-agent-avatar{width:38px;height:38px;border-radius:13px;background:#ecfdf5;color:#15803d;display:flex;align-items:center;justify-content:center}.store-agent-avatar svg{width:21px;height:21px}
.store-agent-head strong{display:block;font-size:14px}.store-agent-status{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:11px;color:#64748b}.store-agent-status-dot{width:7px;height:7px;border-radius:50%;background:#22c55e}.store-agent-status-dot.local{background:#f59e0b}
.store-agent-close{width:34px;height:34px;border:0;border-radius:10px;background:transparent;color:#64748b;display:flex;align-items:center;justify-content:center;cursor:pointer}.store-agent-close:hover{background:#f1f5f9;color:#0f172a}.store-agent-close svg{width:18px;height:18px}
.store-agent-context{padding:8px 13px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#64748b;font-size:11px}
.store-agent-messages{flex:1;overflow-y:auto;background:#f8fafc;padding:14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.store-agent-welcome{margin:auto;text-align:center;max-width:260px;color:#64748b;font-size:12px;line-height:1.5}.store-agent-welcome-icon{width:48px;height:48px;border-radius:16px;background:#ecfdf5;color:#15803d;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}.store-agent-welcome-icon svg{width:25px;height:25px}.store-agent-welcome strong{display:block;color:#0f172a;font-size:13px;margin-bottom:4px}
.store-agent-message{display:flex;flex-direction:column;max-width:87%}.store-agent-message.user{align-self:flex-end;align-items:flex-end}.store-agent-message.assistant{align-self:flex-start;align-items:flex-start}
.store-agent-bubble{padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#1e293b;font-size:12.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.store-agent-message.user .store-agent-bubble{background:#15803d;border-color:#15803d;color:#fff;border-bottom-right-radius:5px}.store-agent-message.assistant .store-agent-bubble{border-bottom-left-radius:5px}
.store-agent-meta{margin-top:4px;padding:0 3px;color:#94a3b8;font-size:10px}
.store-agent-thinking{display:flex;align-items:center;gap:7px}.store-agent-thinking-dots{display:inline-flex;gap:3px}.store-agent-thinking-dots i{display:block;width:5px;height:5px;border-radius:50%;background:#16a34a;animation:storeThink 1.1s infinite ease-in-out}.store-agent-thinking-dots i:nth-child(2){animation-delay:.14s}.store-agent-thinking-dots i:nth-child(3){animation-delay:.28s}
@keyframes storeThink{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
.store-agent-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-top:1px solid #e2e8f0;background:#fff;scrollbar-width:none}.store-agent-quick::-webkit-scrollbar{display:none}.store-agent-quick button{white-space:nowrap;border:1px solid #dbe5ef;border-radius:999px;background:#f8fafc;color:#475569;padding:7px 10px;font-size:10.5px;font-weight:700;cursor:pointer}.store-agent-quick button:hover{border-color:#86efac;background:#f0fdf4;color:#166534}
.store-agent-compose{padding:10px 11px 11px;border-top:1px solid #e2e8f0;background:#fff}.store-agent-compose-box{display:flex;align-items:flex-end;gap:6px;border:1.5px solid #cbd5e1;border-radius:16px;padding:5px;background:#fff}.store-agent-compose-box:focus-within{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.10)}
.store-agent-compose textarea{flex:1;resize:none;overflow-y:auto;min-height:42px;max-height:110px;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#0f172a;padding:10px 8px;font:inherit;font-size:12.5px;line-height:1.45}.store-agent-compose textarea::placeholder{color:#94a3b8}
#store-agent-send{flex:0 0 42px;width:42px;height:42px;border:0;border-radius:13px;background:#15803d;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.12s ease}#store-agent-send:hover:not(:disabled){background:#166534;transform:translateY(-1px)}#store-agent-send:disabled{opacity:.45;cursor:not-allowed}#store-agent-send svg{width:19px;height:19px}
.store-agent-note{margin:6px 2px 0;color:#94a3b8;font-size:9.5px}
html.dark .store-agent-panel,html.dark .store-agent-head,html.dark .store-agent-quick,html.dark .store-agent-compose{background:#0f172a;border-color:#334155;color:#f8fafc}
html.dark .store-agent-context,html.dark .store-agent-messages{background:#0b1120;border-color:#334155;color:#94a3b8}
html.dark .store-agent-head strong,html.dark .store-agent-welcome strong{color:#f8fafc}html.dark .store-agent-status{color:#94a3b8}
html.dark .store-agent-close{color:#cbd5e1}html.dark .store-agent-close:hover{background:#1e293b;color:#fff}
html.dark .store-agent-welcome{color:#94a3b8}html.dark .store-agent-avatar,html.dark .store-agent-welcome-icon{background:rgba(22,163,74,.13);color:#4ade80}
html.dark .store-agent-bubble{background:#1e293b;border-color:#334155;color:#f8fafc}html.dark .store-agent-message.user .store-agent-bubble{background:#15803d;border-color:#22c55e;color:#fff}
html.dark .store-agent-quick button{background:#111827;border-color:#334155;color:#cbd5e1}html.dark .store-agent-quick button:hover{background:#14261b;border-color:#166534;color:#86efac}
html.dark .store-agent-compose-box{background:#0b1120;border-color:#475569}html.dark .store-agent-compose textarea{color:#f8fafc!important}html.dark .store-agent-compose textarea::placeholder{color:#64748b}
@media(max-width:639px){
  .store-call-fab{display:flex}
  .store-floating-actions{right:12px;bottom:max(12px,env(safe-area-inset-bottom));gap:7px}
  .store-agent-launcher{height:52px;padding:0 12px}.store-agent-launcher-label{font-size:12px}
  .store-agent-panel{left:8px;right:8px;bottom:74px;width:auto;height:min(610px,calc(100dvh - 86px));border-radius:20px}
}
@media(max-width:360px){.store-agent-launcher-label{display:none}.store-agent-launcher{width:52px;padding:0;justify-content:center}.store-agent-online-dot{position:absolute;margin-left:28px;margin-top:-28px}}
@media(prefers-reduced-motion:reduce){.store-agent-panel.open,.store-agent-thinking-dots i{animation:none}}
