#ai-sidebar-trigger{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:24px 0 0 24px;box-shadow:-2px 2px 12px rgba(102,126,234,.4);cursor:pointer;display:none;height:48px;justify-content:center;position:fixed;right:0;top:50%;transform:translateY(-50%);transition:all .3s ease;width:48px;z-index:9990}#ai-sidebar-trigger:hover{box-shadow:-4px 4px 20px rgba(102,126,234,.6);width:56px}#ai-sidebar-trigger img{height:30px;-o-object-fit:contain;object-fit:contain;width:30px}#ai-sidebar-overlay{background:rgba(0,0,0,.4);bottom:0;display:none;left:0;opacity:0;position:fixed;right:0;top:0;transition:opacity .3s ease;z-index:9998}#ai-analysis-modal{background:#fff;box-shadow:-4px 0 25px rgba(0,0,0,.15);display:flex;flex-direction:column;height:100vh;max-width:90vw;overflow:hidden;position:fixed;right:-520px;top:0;transition:right .35s cubic-bezier(.4,0,.2,1);width:500px;z-index:9999}.ai-chat-header{background:linear-gradient(135deg,#667eea,#764ba2);flex-shrink:0;padding:14px 20px;position:relative}.ai-chat-header .ai-chat-header-inner{align-items:center;display:flex;gap:12px}.ai-chat-header .ai-chat-avatar{border-radius:50%;height:40px;width:40px}.ai-chat-header .ai-chat-header-info{color:#fff;flex:1}.ai-chat-header .ai-chat-header-name{font-size:15px;font-weight:600}.ai-chat-header .ai-chat-header-subtitle{font-size:11px;opacity:.85}.ai-chat-header .ai-chat-close-btn{align-items:center;background:#ef4444;border:none;border-radius:50%;box-shadow:0 2px 6px rgba(0,0,0,.2);color:#fff;cursor:pointer;display:flex;flex-shrink:0;font-size:18px;font-weight:700;height:30px;justify-content:center;position:static;transition:all .2s;width:30px}.ai-chat-header .ai-chat-close-btn:hover{background:#dc2626;transform:scale(1.1)}#ai-chat-messages{display:flex;flex:1;flex-direction:column;gap:12px;overflow-y:auto;padding:16px}.ai-msg-theo{align-items:flex-start;display:flex;gap:10px}.ai-msg-theo .ai-msg-avatar{border-radius:50%;flex-shrink:0;height:32px;margin-top:2px;width:32px}.ai-msg-theo .ai-msg-bubble{background:#f3f4f6;border-radius:12px 12px 12px 0;color:#1f2937;font-size:13px;line-height:1.6;max-width:85%;padding:12px 16px}.ai-msg-user{display:flex;justify-content:flex-end}.ai-msg-user .ai-msg-bubble{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px 12px 0 12px;color:#fff;font-size:13px;line-height:1.5;max-width:85%;padding:12px 16px}.ai-msg-error{align-items:flex-start;display:flex;gap:10px}.ai-msg-error .ai-msg-avatar{border-radius:50%;flex-shrink:0;height:32px;margin-top:2px;opacity:.6;width:32px}.ai-msg-error .ai-msg-bubble{background:#fef2f2;border:1px solid #fecaca;border-radius:12px 12px 12px 0;color:#991b1b;font-size:13px;line-height:1.5;max-width:85%;padding:12px 16px}#ai-chat-typing{display:none;padding:0 16px 8px}#ai-chat-typing .ai-typing-inner{align-items:center;display:flex;gap:10px}#ai-chat-typing .ai-typing-avatar{border-radius:50%;flex-shrink:0;height:28px;width:28px}#ai-chat-typing .ai-typing-bubble{align-items:center;background:#f3f4f6;border-radius:12px;display:flex;gap:8px;overflow:hidden;padding:10px 16px}#ai-chat-typing .ai-pencil-icon{align-items:center;animation:aiPencilWrite .8s ease-in-out infinite;color:#6366f1;display:flex;transform-origin:bottom left}#ai-chat-typing .ai-pencil-icon svg{height:16px;width:16px}#ai-chat-typing .ai-pencil-line{animation:aiPencilLineGrow .8s ease-in-out infinite;background:linear-gradient(90deg,#6366f1,transparent);border-radius:2px;height:2px;width:0}@keyframes aiPencilWrite{0%{transform:rotate(-8deg) translate(0)}25%{transform:rotate(-4deg) translate(3px,-2px)}50%{transform:rotate(-8deg) translate(6px)}75%{transform:rotate(-4deg) translate(3px,-2px)}to{transform:rotate(-8deg) translate(0)}}@keyframes aiPencilLineGrow{0%{opacity:.3;width:0}50%{opacity:1;width:32px}to{opacity:.3;width:0}}.ai-chat-input-area{background:#fafafa;border-top:1px solid #e5e7eb;flex-shrink:0;padding:12px 16px}.ai-chat-input-row{align-items:flex-end;display:flex;gap:8px}#ai-chat-input{border:1px solid #d1d5db;border-radius:20px;flex:1;font-size:13px;line-height:1.4;max-height:100px;outline:none;overflow-y:auto;padding:10px 16px;resize:none;transition:border-color .2s}#ai-chat-input:focus{border-color:#6366f1}#ai-chat-send-btn{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:50%;cursor:pointer;display:flex;flex-shrink:0;height:36px;justify-content:center;transition:transform .2s,opacity .2s;width:36px}#ai-chat-send-btn:hover{transform:scale(1.1)}#ai-chat-send-btn{color:#fff}#ai-chat-send-btn i,#ai-chat-send-btn svg{height:16px;width:16px}#ai-image-btn{align-items:center;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:50%;color:#6b7280;cursor:pointer;display:flex;flex-shrink:0;height:36px;justify-content:center;transition:background .2s,border-color .2s;width:36px}#ai-image-btn:hover{background:#e0e7ff;border-color:#6366f1;color:#6366f1}#ai-image-btn i,#ai-image-btn svg{height:16px;width:16px}#ai-image-preview{align-items:center;display:none;gap:8px;padding:6px 4px 2px}#ai-image-preview img{border:1px solid #e5e7eb;border-radius:8px;height:56px;-o-object-fit:cover;object-fit:cover;width:56px}#ai-image-preview #ai-image-preview-remove{align-items:center;align-self:flex-start;background:#ef4444;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;flex-shrink:0;height:22px;justify-content:center;margin-left:-18px;margin-top:-4px;transition:background .2s;width:22px}#ai-image-preview #ai-image-preview-remove:hover{background:#dc2626}#ai-image-preview #ai-image-preview-remove i,#ai-image-preview #ai-image-preview-remove svg{height:12px;width:12px}.ai-msg-image-thumb{border-radius:12px;cursor:pointer;display:block;margin-bottom:4px;max-height:180px;max-width:220px;transition:opacity .2s}.ai-msg-image-thumb:hover{opacity:.9}#ai-mic-btn{align-items:center;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:50%;color:#6b7280;cursor:pointer;display:flex;flex-shrink:0;height:36px;justify-content:center;transition:background .2s,border-color .2s;width:36px}#ai-mic-btn:hover{background:#e0e7ff;border-color:#6366f1;color:#6366f1}#ai-mic-btn:disabled{cursor:not-allowed;opacity:.4}#ai-mic-btn i,#ai-mic-btn svg{height:16px;width:16px}#ai-grab-panel{align-items:center;animation:aiGrabFadeIn .2s ease;display:none;gap:10px;padding:8px 4px}#ai-grab-panel #ai-grab-cancel,#ai-grab-panel #ai-grab-send{align-items:center;border:none;border-radius:50%;cursor:pointer;display:flex;flex-shrink:0;height:34px;justify-content:center;transition:transform .2s,background .2s;width:34px}#ai-grab-panel #ai-grab-cancel i,#ai-grab-panel #ai-grab-cancel svg,#ai-grab-panel #ai-grab-send i,#ai-grab-panel #ai-grab-send svg{height:16px;width:16px}#ai-grab-panel #ai-grab-cancel{background:#fef2f2;color:#ef4444}#ai-grab-panel #ai-grab-cancel:hover{background:#fecaca;transform:scale(1.1)}#ai-grab-panel #ai-grab-send{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}#ai-grab-panel #ai-grab-send:hover{transform:scale(1.1)}#ai-grab-panel #ai-grab-timer{color:#ef4444;flex-shrink:0;font-size:13px;font-weight:600;min-width:36px;text-align:center}.ai-grab-waveform{align-items:center;display:flex;flex:1;gap:3px;height:28px;justify-content:center}.ai-grab-waveform span{animation:aiWaveBounce 1s ease-in-out infinite;background:#6366f1;border-radius:3px;display:block;width:3px}.ai-grab-waveform span:first-child{animation-delay:0s;height:13px}.ai-grab-waveform span:nth-child(2){animation-delay:.08s;height:18px}.ai-grab-waveform span:nth-child(3){animation-delay:.16s;height:23px}.ai-grab-waveform span:nth-child(4){animation-delay:.24s;height:8px}.ai-grab-waveform span:nth-child(5){animation-delay:.32s;height:13px}.ai-grab-waveform span:nth-child(6){animation-delay:.4s;height:18px}.ai-grab-waveform span:nth-child(7){animation-delay:.48s;height:23px}.ai-grab-waveform span:nth-child(8){animation-delay:.56s;height:8px}.ai-grab-waveform span:nth-child(9){animation-delay:.64s;height:13px}.ai-grab-waveform span:nth-child(10){animation-delay:.72s;height:18px}@keyframes aiWaveBounce{0%,to{opacity:.6;transform:scaleY(.4)}50%{opacity:1;transform:scaleY(1)}}@keyframes aiGrabFadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}#ai-transcribing-bar{align-items:center;display:none;gap:4px;padding:6px 4px}#ai-transcribing-bar .ai-transcribing-dot{animation:aiTypingBounce 1.4s ease-in-out infinite;background:#6366f1;border-radius:50%;height:6px;width:6px}#ai-transcribing-bar .ai-transcribing-dot:nth-child(2){animation-delay:.2s}#ai-transcribing-bar .ai-transcribing-dot:nth-child(3){animation-delay:.4s}#ai-transcribing-bar .ai-transcribing-label{color:#6b7280;font-size:12px;margin-left:4px}.ai-quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ai-quick-btn{border:1px solid;border-radius:16px;cursor:pointer;font-size:11px;padding:4px 12px;transition:all .2s;white-space:nowrap}.ai-quick-btn i{display:inline;height:11px;vertical-align:-1px;width:11px}.ai-quick-btn--analysis{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}.ai-quick-btn--analysis:hover{background:#c7d2fe}.ai-quick-btn--alerts{background:#fef3c7;border-color:#fde68a;color:#92400e}.ai-quick-btn--alerts:hover{background:#fde68a}.ai-quick-btn--trends{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.ai-quick-btn--trends:hover{background:#a7f3d0}.ai-quick-btn--feature{background:#f0fdf4;border-color:#86efac;color:#166534}.ai-quick-btn--feature:hover{background:#dcfce7}.ai-features-expand-btn{align-items:center;background:transparent;border:1.5px dashed #d1d5db;border-radius:50%;color:#6b7280;cursor:pointer;display:flex;flex-shrink:0;height:26px;justify-content:center;padding:0;transition:all .2s;width:26px}.ai-features-expand-btn i{display:inline;height:13px;width:13px}.ai-features-expand-btn:hover{background:#f3f4f6;border-color:#9ca3af;color:#374151}.ai-features-lista{background:#f9fafb;border:1px solid #f3f4f6;border-radius:8px;margin-top:6px;max-height:256px;overflow-y:auto}.ai-feature-list-item{align-items:center;border-bottom:1px solid #f3f4f6;color:#374151;cursor:pointer;display:flex;gap:10px;padding:8px 12px;transition:background .15s}.ai-feature-list-item:last-child{border-bottom:none}.ai-feature-list-item:hover{background:#f0fdf4}.ai-feature-list-item i{color:#166534;flex-shrink:0;height:15px;width:15px}.ai-feature-list-content{display:flex;flex-direction:column;gap:1px;overflow:hidden}.ai-feature-list-label{color:#166534;font-size:12px;font-weight:600}.ai-feature-list-desc,.ai-feature-list-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-feature-list-desc{color:#6b7280;font-size:11px}
