.context-chat-component{position:fixed;bottom:1rem;right:1rem;z-index:9999}.context-chat-component .chat-message-content{line-height:1.4}.context-chat-component .chat-message-content code{font-size:.875rem;padding:.125rem .25rem;border-radius:.25rem;font-family:ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace}.context-chat-component .chat-message-content pre{font-size:.75rem;line-height:1.3;overflow-x:auto;border-radius:.375rem;margin:.5rem 0}.context-chat-component .chat-message-content pre code{background:none!important;padding:0!important}.context-chat-component .chat-message-content ul,.context-chat-component .chat-message-content ol{margin:.5rem 0;padding-left:1rem}.context-chat-component .chat-message-content li{list-style:none;margin:.125rem 0;padding-left:.75rem}.context-chat-component .chat-message-content a{word-break:break-word}.context-chat-component .chat-message-content p{margin:0}.context-chat-component .chat-message-content p+p{margin-top:.5rem}.context-chat-component .chat-message-content strong{font-weight:600}.context-chat-component .chat-message-content h1,.context-chat-component .chat-message-content h2,.context-chat-component .chat-message-content h3{margin:.5rem 0 .25rem}.context-chat-component .chat-message-content h1:first-child,.context-chat-component .chat-message-content h2:first-child,.context-chat-component .chat-message-content h3:first-child{margin-top:0}.context-chat-component .chat-message-content blockquote{margin:.5rem 0}.context-chat-component .chat-message-content hr{margin:.75rem 0}.context-chat-component .chat-message-content del{opacity:.7}.context-chat-component .chat-toggle-btn{background-color:#3b82f6;color:#fff;border-radius:9999px;padding:1.25rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;transition:all .2s ease;position:relative;border:none;cursor:pointer;transform-origin:center;font-size:1rem;display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:1.5rem}.context-chat-component .chat-toggle-btn .button-label{font-size:.75rem;font-weight:500;white-space:nowrap}@media (max-width: 640px){.context-chat-component .chat-toggle-btn .button-label{display:none}.context-chat-component .chat-toggle-btn{padding:1rem;border-radius:9999px}}.context-chat-component .chat-toggle-btn:hover{background-color:#2563eb}.context-chat-component .chat-toggle-btn .unread-indicator{position:absolute;top:-.25rem;right:-.25rem;width:.75rem;height:.75rem;background-color:#ef4444;border-radius:9999px;animation:context-chat-pulse 2s infinite}@keyframes context-chat-pulse{0%,to{opacity:1}50%{opacity:.5}}.context-chat-component .chat-window{position:fixed;top:1rem;bottom:1rem;right:1rem;z-index:9999;background-color:#fff;border-radius:.5rem;box-shadow:0 25px 50px -12px #00000040;width:20rem;display:flex;flex-direction:column;height:calc(100vh - 2rem);transform-origin:bottom right;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@media (min-width: 640px){.context-chat-component .chat-window{width:24rem}}.context-chat-component .chat-header{background-color:#3b82f6;color:#fff;padding:1rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem;display:flex;justify-content:space-between;align-items:center}.context-chat-component .chat-header .header-content{flex:1}.context-chat-component .chat-header .header-title{display:flex;align-items:center;gap:.5rem}.context-chat-component .chat-header .header-title h3{font-weight:600;margin:0}.context-chat-component .chat-header .context-info{font-size:.75rem;opacity:.9;margin-top:.25rem}.context-chat-component .chat-header .header-actions{display:flex;align-items:center;gap:.5rem}.context-chat-component .chat-header .header-btn{color:#fff;background:none;border:none;padding:.25rem;border-radius:.25rem;transition:all .2s ease;cursor:pointer;transform-origin:center}.context-chat-component .chat-header .header-btn:hover{color:#d1d5db}.context-chat-component .chat-header .header-btn:disabled{opacity:.5;cursor:not-allowed}.context-chat-component .messages-container{flex:1;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.75rem}.context-chat-component .loading-indicator{text-align:center;color:#6b7280;font-size:.875rem}.context-chat-component .loading-indicator .spinner{display:inline-block;width:1rem;height:1rem;border:2px solid #e5e7eb;border-top:2px solid #6b7280;border-radius:50%;animation:context-chat-spin 1s linear infinite;margin-right:.5rem}@keyframes context-chat-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.context-chat-component .loading-indicator{text-align:center;color:#6b7280;font-size:.875rem;animation:context-chat-fade-in-out 2s ease-in-out infinite}@keyframes context-chat-fade-in-out{0%,to{opacity:.6}50%{opacity:1}}.context-chat-component .message-wrapper{display:flex;flex-direction:column;gap:.5rem;transform-origin:bottom}.context-chat-component .user-message{display:flex;justify-content:flex-end}.context-chat-component .user-message .message-bubble{background-color:#dbeafe;color:#1e40af;border-radius:.5rem;padding:.75rem;max-width:14rem;font-size:.875rem;transform-origin:bottom right;transition:all .2s ease}.context-chat-component .assistant-message{display:flex;justify-content:flex-start}.context-chat-component .assistant-message .message-bubble{background-color:#f3f4f6;color:#1f2937;border-radius:.5rem;padding:.75rem;max-width:14rem;font-size:.875rem;transform-origin:bottom left;transition:all .2s ease}.context-chat-component .message-meta{font-size:.75rem;opacity:.7;margin-top:.25rem;transition:opacity .2s ease}.context-chat-component .empty-state{text-align:center;color:#6b7280;padding:2rem 0;font-size:.875rem}.context-chat-component .empty-state p{margin:0}.context-chat-component .empty-state p+p{margin-top:.25rem;font-size:.75rem}.context-chat-component .input-section{padding:1rem;border-top:1px solid #e5e7eb}.context-chat-component .input-form{display:flex;gap:.5rem}.context-chat-component .input-field{flex:1;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.5rem;font-size:.875rem;outline:none;transition:all .2s ease}.context-chat-component .input-field:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.context-chat-component .input-field:disabled{background-color:#f9fafb;cursor:not-allowed}.context-chat-component .send-btn{background-color:#3b82f6;color:#fff;padding:.5rem .75rem;border-radius:.5rem;font-size:.875rem;transition:all .2s ease;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transform-origin:center}.context-chat-component .send-btn:hover:not(:disabled){background-color:#2563eb}.context-chat-component .send-btn:disabled{background-color:#9ca3af;cursor:not-allowed}.context-chat-component .send-btn .send-spinner{width:1rem;height:1rem;border:2px solid #ffffff40;border-top:2px solid #ffffff;border-radius:50%;animation:context-chat-spin 1s linear infinite}.context-chat-component .error-message{color:#ef4444;font-size:.75rem;margin-top:.5rem}.dark .context-chat-component .chat-window{background-color:#1e293b}.dark .context-chat-component .assistant-message .message-bubble{background-color:#374151;color:#e5e7eb}.dark .context-chat-component .user-message .message-bubble{background-color:#1e3a8a;color:#bfdbfe}.dark .context-chat-component .input-section{border-top-color:#374151}.dark .context-chat-component .input-field{background-color:#334155;border-color:#374151;color:#fff}.dark .context-chat-component .input-field:focus{border-color:#3b82f6}.dark .context-chat-component .loading-indicator,.dark .context-chat-component .empty-state{color:#9ca3af}.dark .context-chat-component .error-message{color:#fca5a5}.dark .context-chat-component .chat-message-content pre,.dark .context-chat-component .chat-message-content code{background-color:#4b5563!important}.fi-dark .context-chat-component .chat-window{background-color:#1e293b!important}.fi-dark .context-chat-component .assistant-message .message-bubble{background-color:#374151!important;color:#e5e7eb!important}.fi-dark .context-chat-component .user-message .message-bubble{background-color:#1e3a8a!important;color:#bfdbfe!important}.fi-dark .context-chat-component .input-section{border-top-color:#4b5563!important}.fi-dark .context-chat-component .input-field{background-color:#334155!important;border-color:#4b5563!important;color:#fff!important}.fi-dark .context-chat-component .loading-indicator,.fi-dark .context-chat-component .empty-state{color:#9ca3af!important}.fi-dark .context-chat-component .error-message{color:#fca5a5!important}@media (min-width: 1024px){.context-chat-component{right:1.5rem}}.context-chat-component *{box-sizing:border-box}.context-chat-component .fixed{position:fixed!important}.context-chat-component button,.context-chat-component input,.context-chat-component div{all:unset;box-sizing:border-box}.context-chat-component button{cursor:pointer}.context-chat-component input{background:#fff;border:1px solid #d1d5db;color:#1f2937}
