:root{--bg-primary: #000000;--bg-secondary: #0a0a0a;--bg-tertiary: #111111;--bg-elevated: #1a1a1a;--text-primary: #ffffff;--text-secondary: #cccccc;--text-tertiary: #888888;--border-primary: #333333;--border-secondary: #222222;--accent-primary: #ffffff;--accent-secondary: #666666;--shadow-sm: 0 2px 4px rgba(0, 0, 0, .3);--shadow-md: 0 4px 8px rgba(0, 0, 0, .4);--shadow-lg: 0 8px 16px rgba(0, 0, 0, .5);--transition-fast: .15s cubic-bezier(.4, 0, .2, 1);--transition-base: .3s cubic-bezier(.4, 0, .2, 1);--transition-slow: .5s cubic-bezier(.4, 0, .2, 1);--morph-duration: .8s}*{margin:0;padding:0;box-sizing:border-box}.actionable-modular,.conclusion-modular{display:flex;flex-wrap:wrap;gap:.5rem;margin:.25rem 0;padding:.5rem;max-width:100%;box-sizing:border-box}.actionable-modular-item,.conclusion-modular-item{display:inline-block;padding:.25rem .5rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:4px;font-size:.6875rem;line-height:1.2;color:var(--text-secondary);max-width:300px;word-wrap:break-word;box-sizing:border-box;margin:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;scroll-behavior:smooth}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,Segoe UI,Roboto,Arial,sans-serif;background-color:var(--bg-primary);color:var(--text-primary);line-height:1.6;overflow-x:hidden;min-height:100vh;min-height:100dvh;min-height:-webkit-fill-available;position:relative;margin:0;padding:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.neural-network-canvas{position:fixed;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.15;transition:opacity var(--transition-base)}.neural-network-canvas.active{opacity:.25}.chat-container{position:relative;z-index:1}.chat-container:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bg-primary);z-index:-1;pointer-events:none}.app-container{display:flex;min-height:100vh;min-height:100dvh;min-height:-webkit-fill-available;position:relative;z-index:1;background-color:transparent;width:100%;margin:0;padding:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);box-sizing:border-box}.app-header{position:sticky;top:0;z-index:100;background-color:var(--bg-primary);border-bottom:1px solid var(--border-primary);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background-color:#000c;padding:1rem 1.25rem;padding-top:calc(1rem + env(safe-area-inset-top));transition:all var(--transition-base);display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;box-sizing:border-box;margin:0}.header-content{display:flex;flex-direction:column;gap:.25rem;flex:1}.settings-toggle{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:8px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center;width:40px;height:40px}.settings-toggle:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.pulsing-ball-icon{width:12px;height:12px;border-radius:50%;background-color:#ffffffe6;box-shadow:0 0 8px #fff9,0 0 16px #fff6;animation:ball-pulse 2s ease-in-out infinite;transition:all var(--transition-fast)}.pulsing-ball-icon:hover{background-color:#fff;box-shadow:0 0 12px #fffc,0 0 24px #fff9}@keyframes ball-pulse{0%,to{transform:scale(1);opacity:.9;box-shadow:0 0 8px #fff9,0 0 16px #fff6}50%{transform:scale(1.1);opacity:1;box-shadow:0 0 12px #fffc,0 0 24px #fff9,0 0 32px #ffffff4d}}@keyframes ball-color-shift{0%,to{background-color:#ffffffe6;box-shadow:0 0 8px #fff9,0 0 16px #fff6}25%{background-color:#f0f8fff2;box-shadow:0 0 8px #f0f8ffb3,0 0 16px #f0f8ff80}50%{background-color:#e6f0fff2;box-shadow:0 0 8px #e6f0ffb3,0 0 16px #e6f0ff80}75%{background-color:#f0f8fff2;box-shadow:0 0 8px #f0f8ffb3,0 0 16px #f0f8ff80}}.pulsing-ball-icon{animation:ball-pulse 2s ease-in-out infinite,ball-color-shift 4s ease-in-out infinite}.app-title{font-size:1.5rem;font-weight:600;letter-spacing:-.02em;color:var(--text-primary);margin:0;line-height:1.2;text-shadow:0 0 10px rgba(135,206,250,.5),0 0 20px rgba(135,206,250,.3),0 0 30px rgba(135,206,250,.2);animation:iceberg-pulse 3s ease-in-out infinite}@keyframes iceberg-pulse{0%,to{text-shadow:0 0 10px rgba(135,206,250,.5),0 0 20px rgba(135,206,250,.3),0 0 30px rgba(135,206,250,.2);opacity:1}50%{text-shadow:0 0 15px rgba(135,206,250,.7),0 0 25px rgba(135,206,250,.5),0 0 35px rgba(135,206,250,.3);opacity:.95}}.app-subtitle{font-size:.75rem;color:var(--text-tertiary);font-weight:400;letter-spacing:.01em;margin:0}.app-main{flex:1;display:flex;flex-direction:column;padding:0;overflow:hidden}.chat-container{flex:1;overflow-y:auto;overflow-x:hidden;padding:1.25rem 1rem;display:flex;flex-direction:column;gap:1.5rem;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;contain:layout style;position:relative;width:100%;box-sizing:border-box;padding-left:calc(1rem + env(safe-area-inset-left));padding-right:calc(1rem + env(safe-area-inset-right))}.meteor-shower-canvas{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:.3}.chat-container::-webkit-scrollbar{width:4px}.chat-container::-webkit-scrollbar-track{background:transparent}.chat-container::-webkit-scrollbar-thumb{background:var(--border-primary);border-radius:2px}.welcome-message{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;padding:2rem 1rem;color:var(--text-secondary);position:relative;z-index:1}.welcome-message p{font-size:1rem;margin-bottom:.5rem}.welcome-subtitle{font-size:.875rem;color:var(--text-tertiary)}.message{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 0;border-radius:0;background-color:transparent;border:none;animation:messageMorphIn var(--morph-duration) cubic-bezier(.4,0,.2,1);transition:opacity var(--transition-base),transform var(--transition-base);position:relative;z-index:1;overflow:visible;will-change:transform,opacity}.message:before{display:none}.thoughts-slide-up{position:fixed;bottom:0;left:0;right:0;max-height:70vh;background:#000000d9;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.1);border-radius:16px 16px 0 0;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);z-index:1000;overflow-y:auto;box-shadow:0 -4px 20px #0000004d}.thoughts-slide-up.open{transform:translateY(0)}.thoughts-slide-up-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid rgba(255,255,255,.1);position:sticky;top:0;background:#00000080;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);z-index:10}.thoughts-slide-up-title{font-size:.875rem;font-weight:600;color:var(--text-primary)}.thoughts-slide-up-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.25rem;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.thoughts-slide-up-close:hover{background:#ffffff1a;color:var(--text-primary)}.thoughts-slide-up-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem}.thoughts-slide-up-section{display:flex;flex-direction:column;gap:.5rem}.thoughts-slide-up-section-title{font-size:.75rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.25rem}.thoughts-slide-up-item{font-size:.8125rem;color:var(--text-primary);padding:.5rem;background:#ffffff0d;border-radius:6px;border-left:2px solid rgba(255,255,255,.2);animation:slideUpItem .3s ease}@keyframes slideUpItem{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.thoughts-slide-up-bullet{display:flex;align-items:flex-start;gap:.5rem;padding:.375rem 0;font-size:.75rem;color:var(--text-secondary)}.thoughts-slide-up-bullet:before{content:"•";color:var(--accent-primary);font-weight:700;margin-top:.125rem}.thoughts-trigger{position:absolute;top:.25rem;right:.25rem;background:#ffffff1a;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.15);border-radius:20px;padding:.25rem .5rem;font-size:.625rem;color:var(--text-secondary);cursor:pointer;display:flex!important;align-items:center;gap:.25rem;transition:all .2s ease;z-index:1000;visibility:visible!important;opacity:1!important;pointer-events:auto!important}.thoughts-trigger:hover{background:#ffffff26;color:var(--text-primary);border-color:#ffffff40}.thoughts-trigger-icon{width:12px;height:12px;transition:transform .2s ease}.thoughts-trigger.active .thoughts-trigger-icon{transform:rotate(180deg)}.message.user{background-color:transparent;border:none;align-self:flex-start;max-width:100%;width:100%;margin-left:0}.message.assistant{background-color:transparent;border:none;align-self:flex-start;max-width:100%;width:100%;box-sizing:border-box;position:relative}.message-header{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--text-tertiary);font-weight:500;letter-spacing:.01em}.message-content{font-size:.875rem;line-height:1.4;color:var(--text-primary);word-wrap:break-word;white-space:pre-wrap;margin-bottom:.5rem;transition:color var(--transition-fast)}.thinking-display{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border-left:2px solid var(--accent-secondary);border-radius:8px;animation:thinkingMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.thinking-display strong{display:block;font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.thinking-item{font-size:.8125rem;color:var(--text-secondary);margin-bottom:.5rem;padding-left:1rem;position:relative;line-height:1.5;animation:thinkingItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.thinking-item:before{content:"";position:absolute;left:0;top:.5em;width:4px;height:4px;background-color:var(--accent-secondary);border-radius:50%;transform:scale(0);animation:thinkingDotMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1) forwards}.informatics-panel{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;animation:informaticsMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.informatics-panel strong{display:block;font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.informatics-item{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.75rem;padding:.75rem;background-color:var(--bg-secondary);border-radius:6px;transition:all var(--transition-fast)}.informatics-item:last-child{margin-bottom:0}.informatics-item:hover{background-color:var(--bg-elevated);transform:translate(2px)}.informatics-label{font-size:.75rem;color:var(--text-tertiary);font-weight:500;text-transform:uppercase;letter-spacing:.05em}.informatics-value{font-size:.875rem;color:var(--text-primary);word-break:break-word}.confidence-bar{display:inline-block;width:80px;height:3px;background-color:var(--border-primary);border-radius:2px;margin-left:.5rem;vertical-align:middle;overflow:hidden}.confidence-fill{height:100%;background-color:var(--accent-primary);border-radius:2px;transition:width var(--transition-slow) cubic-bezier(.4,0,.2,1);animation:confidenceMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.conclusion-bullets{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border-left:2px solid var(--accent-primary);border-radius:8px;animation:conclusionMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.conclusion-bullets h3{font-size:.8125rem;color:var(--text-primary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.conclusion-item{font-size:.8125rem;color:var(--text-secondary);margin-bottom:.5rem;padding-left:1.25rem;position:relative;line-height:1.5;animation:conclusionItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.conclusion-item:before{content:"→";position:absolute;left:0;color:var(--accent-primary);font-weight:600;transform:translate(-4px);animation:arrowMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1) forwards}.conclusion-item:last-child{margin-bottom:0}.prompt-carousel{position:relative;width:100%;margin-bottom:.75rem;background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:12px;overflow:hidden;min-height:48px;display:flex;align-items:center;transition:all var(--transition-base);visibility:visible!important;opacity:1!important}.prompt-carousel:hover{border-color:var(--border-secondary);background-color:var(--bg-tertiary)}.prompt-carousel-content{flex:1;padding:.75rem 3rem;display:flex;align-items:center;justify-content:center;min-height:48px;position:relative;overflow-x:hidden;overflow-y:hidden;visibility:visible!important;opacity:1!important;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.prompt-item{position:absolute;width:100%;text-align:center;padding:0 1rem;opacity:0;transform:translate(20px);transition:all var(--morph-duration) cubic-bezier(.4,0,.2,1);pointer-events:none;font-size:.875rem;color:var(--text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none;visibility:visible!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prompt-item.active{opacity:1;transform:translate(0);pointer-events:auto;visibility:visible!important;z-index:10}.prompt-item:hover{color:var(--text-primary)}.prompt-carousel-prev,.prompt-carousel-next{position:absolute;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:.5rem;border-radius:6px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center;z-index:10;opacity:.5}.prompt-carousel-prev{left:.5rem}.prompt-carousel-next{right:.5rem}.prompt-carousel:hover .prompt-carousel-prev,.prompt-carousel:hover .prompt-carousel-next{opacity:1}.prompt-carousel-prev:hover,.prompt-carousel-next:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.prompt-carousel-prev:active,.prompt-carousel-next:active{transform:translateY(-50%) scale(.95)}.input-container{position:sticky;bottom:0;z-index:100;background-color:var(--bg-primary);border-top:1px solid var(--border-primary);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);background-color:#000c;padding:1rem 1.25rem;padding-bottom:max(1rem,env(safe-area-inset-bottom));padding-left:calc(1.25rem + env(safe-area-inset-left));padding-right:calc(1.25rem + env(safe-area-inset-right));width:100%;box-sizing:border-box;margin:0;left:0;right:0}.input-wrapper{display:flex;gap:.75rem;align-items:flex-end;max-width:100%}.attach-button{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:6px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-width:44px}.attach-button:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.voice-button{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:6px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-width:44px;position:relative}.voice-button:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.voice-button.recording{color:#f44;animation:pulse 1.5s ease-in-out infinite}.voice-button.recording:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;border-radius:50%;background-color:#f443;animation:ripple 1.5s ease-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes ripple{0%{transform:translate(-50%,-50%) scale(1);opacity:.8}to{transform:translate(-50%,-50%) scale(1.5);opacity:0}}.attached-files{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;padding:0 .25rem}.attached-file-item{position:relative;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;font-size:.8125rem;color:var(--text-secondary);animation:messageMorphIn var(--transition-base)}.attached-file-preview{width:48px;height:48px;object-fit:cover;border-radius:6px}.attached-file-remove{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:.25rem;border-radius:4px;font-size:1.25rem;line-height:1;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center}.attached-file-remove:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.message-files{display:flex;flex-direction:column;gap:.75rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border-primary)}.message-file-item{display:flex;align-items:center;gap:.5rem;padding:.5rem;background-color:var(--bg-tertiary);border-radius:6px;font-size:.8125rem;color:var(--text-secondary)}.message-file-image{max-width:200px;max-height:200px;border-radius:6px;object-fit:contain}.input-field{flex:1;padding:.875rem 1rem;background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:12px;color:var(--text-primary);font-family:inherit;font-size:.9375rem;line-height:1.5;transition:all var(--transition-base);resize:none;min-height:44px;max-height:120px}.input-field:focus{outline:none;border-color:var(--accent-primary);background-color:var(--bg-tertiary);box-shadow:0 0 0 3px #ffffff1a}.input-field::placeholder{color:var(--text-tertiary)}.send-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;background-color:var(--accent-primary);color:var(--bg-primary);border:none;border-radius:12px;cursor:pointer;transition:all var(--transition-base);flex-shrink:0;position:relative;overflow:hidden}.send-button:before{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background-color:#0000001a;transform:translate(-50%,-50%);transition:width var(--transition-base),height var(--transition-base)}.send-button:hover:before{width:100%;height:100%}.send-button:hover{transform:scale(1.05);box-shadow:var(--shadow-md)}.send-button:active{transform:scale(.95)}.send-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.send-button svg{width:20px;height:20px;stroke:currentColor;transition:transform var(--transition-fast)}.send-button:hover svg{transform:translate(2px) translateY(-2px)}.loading{display:inline-block;width:16px;height:16px;border:2px solid var(--border-primary);border-top-color:var(--accent-primary);border-radius:50%;animation:spinMorph .8s linear infinite}@keyframes messageMorphIn{0%{opacity:0;transform:translateY(20px) scale(.95);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes thinkingMorphIn{0%{opacity:0;transform:translate(-10px);clip-path:inset(0 100% 0 0)}to{opacity:1;transform:translate(0);clip-path:inset(0 0 0 0)}}@keyframes thinkingItemMorphIn{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes thinkingDotMorphIn{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes informaticsMorphIn{0%{opacity:0;transform:scale(.98);filter:blur(2px)}to{opacity:1;transform:scale(1);filter:blur(0)}}@keyframes conclusionMorphIn{0%{opacity:0;transform:translate(-10px);clip-path:inset(0 0 0 100%)}to{opacity:1;transform:translate(0);clip-path:inset(0 0 0 0)}}@keyframes conclusionItemMorphIn{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes arrowMorphIn{0%{transform:translate(-8px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes confidenceMorphIn{0%{width:0}}@keyframes spinMorph{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.prompt-carousel{margin-bottom:.5rem;min-height:44px}.prompt-carousel-content{padding:.625rem 2.5rem;min-height:44px}.prompt-item{font-size:.8125rem}.prompt-carousel-prev,.prompt-carousel-next{padding:.375rem;opacity:.7}.input-container{padding:.75rem 1rem}.input-wrapper{gap:.5rem}.attach-button,.voice-button,.send-button{width:40px;height:40px;min-width:40px}.input-field{font-size:.875rem;padding:.75rem .875rem;min-height:40px}.sidebar{width:100%;max-width:320px}}@media (max-width: 480px){.app-header{padding:.875rem 1rem}.app-title{font-size:1.25rem}.app-subtitle{font-size:.6875rem}.prompt-carousel{margin-bottom:.5rem;min-height:40px}.prompt-carousel-content{padding:.5rem 2rem;min-height:40px}.prompt-item{font-size:.75rem}.input-container{padding:.625rem .875rem}.input-wrapper{gap:.375rem}.attach-button,.voice-button,.send-button{width:36px;height:36px;min-width:36px;padding:.375rem}.input-field{font-size:.8125rem;padding:.625rem .75rem;min-height:36px}.chat-container{padding:1rem .875rem;gap:1.25rem}.message{padding:.875rem;border-radius:10px}.message.user{max-width:90%}.message.assistant{max-width:100%;width:100%}.input-container{padding:.875rem 1rem}.input-field{font-size:.875rem;padding:.75rem .875rem}}@media (min-width: 768px){.app-container{max-width:800px;margin:0 auto}.app-header{padding:1.25rem 1.5rem}.app-title{font-size:1.75rem}.chat-container{padding:1.5rem 1.25rem}.message{max-width:75%}.input-container{padding:1.25rem 1.5rem}}@media (min-width: 1200px){.app-container{max-width:900px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}*:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.loading-indicator{display:flex;align-items:center;justify-content:center;padding:1rem;color:var(--text-secondary);font-size:.875rem}.loading-dots{display:flex;align-items:center;gap:.5rem;padding:.5rem}.loading-dots span{width:8px;height:8px;border-radius:50%;background-color:var(--accent-primary);animation:loadingDotPulse 1.4s ease-in-out infinite}.loading-dots span:nth-child(1){animation-delay:0s}.loading-dots span:nth-child(2){animation-delay:.2s}.loading-dots span:nth-child(3){animation-delay:.4s}@keyframes loadingDotPulse{0%,80%,to{opacity:.3;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}::selection{background-color:#fff3;color:var(--text-primary)}.controls-panel{display:flex;flex-wrap:wrap;gap:.75rem;padding:1rem 1.25rem;background-color:var(--bg-secondary);border-bottom:1px solid var(--border-primary);animation:controlsMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.control-group{display:flex;flex-direction:column;gap:.5rem;flex:1;min-width:120px}.control-label{font-size:.75rem;color:var(--text-tertiary);font-weight:500;text-transform:uppercase;letter-spacing:.05em}.control-select{padding:.625rem .875rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-family:inherit;font-size:.875rem;transition:all var(--transition-base);cursor:pointer}.control-select:focus{outline:none;border-color:var(--accent-primary);background-color:var(--bg-elevated);box-shadow:0 0 0 2px #ffffff1a}.control-toggle{display:flex;align-items:center;gap:.75rem;cursor:pointer;-webkit-user-select:none;user-select:none}.control-toggle input[type=checkbox]{display:none}.toggle-slider{position:relative;width:44px;height:24px;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:12px;transition:all var(--transition-base)}.toggle-slider:before{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;background-color:var(--text-tertiary);border-radius:50%;transition:all var(--transition-base)}.control-toggle input[type=checkbox]:checked+.toggle-slider{background-color:var(--accent-primary);border-color:var(--accent-primary)}.control-toggle input[type=checkbox]:checked+.toggle-slider:before{transform:translate(20px);background-color:var(--bg-primary)}.toggle-label{font-size:.875rem;color:var(--text-secondary)}.message-meta{font-size:.6875rem;color:var(--text-tertiary);margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border-secondary)}.sources-display{display:none;margin-top:.75rem;padding:.5rem;background-color:var(--bg-tertiary);border-left:2px solid var(--accent-primary);border-radius:4px;animation:sourcesMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1);transition:all .3s ease}.sources-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:.25rem 0;margin-bottom:.5rem}.sources-header strong{font-size:.75rem;color:var(--text-primary);font-weight:600;letter-spacing:.01em}.sources-collapse{font-size:.625rem;color:var(--text-tertiary);transition:transform .3s ease}.sources-display.collapsed .sources-collapse{transform:rotate(-90deg)}.sources-content{display:block;transition:all .3s ease}.sources-display.collapsed .sources-content{display:none}.source-item{margin-bottom:.5rem;padding:.5rem .75rem;background-color:var(--bg-secondary);border-radius:6px;transition:all var(--transition-fast);animation:sourceItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.source-item:hover{background-color:var(--bg-elevated);transform:translate(2px)}.source-item:last-child{margin-bottom:0}.source-link{font-size:.8125rem;color:var(--text-secondary);text-decoration:none;transition:color var(--transition-fast)}.source-link:hover{color:var(--accent-primary)}.source-type{font-size:.75rem;color:var(--text-tertiary);font-weight:400}.agent-thinking-display{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;animation:agentThinkingMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.agent-section{margin-bottom:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-secondary)}.agent-section:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.agent-section strong{display:block;font-size:.8125rem;color:var(--text-primary);margin-bottom:.5rem;font-weight:600;letter-spacing:.01em}.agent-thinking-item{margin-left:.5rem;padding-left:1rem}.engines-display{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border-left:2px solid var(--accent-primary);border-radius:8px;animation:thinkingMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.engines-display strong{display:block;font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.engine-item{font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;padding:.5rem;background-color:var(--bg-elevated);border-radius:4px;display:flex;flex-direction:column;gap:.25rem;animation:thinkingItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.engine-item:last-child{margin-bottom:0}.engine-name{font-weight:600;color:var(--text-primary);font-size:.875rem}.engine-algorithm{color:var(--text-secondary);font-size:.75rem;font-style:italic}.engine-description{color:var(--text-tertiary);font-size:.75rem;margin-top:.25rem}.algorithms-display{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border-left:2px solid var(--accent-secondary);border-radius:8px;animation:thinkingMorphIn var(--transition-slow) cubic-bezier(.4,0,.2,1)}.algorithms-display strong{display:block;font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.algorithm-item{font-size:.8125rem;color:var(--text-secondary);margin-bottom:.75rem;padding:.5rem;background-color:var(--bg-elevated);border-radius:4px;display:flex;flex-direction:column;gap:.25rem;animation:thinkingItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1)}.algorithm-item:last-child{margin-bottom:0}.algorithm-name{font-weight:600;color:var(--text-primary);font-size:.875rem}.algorithm-method{color:var(--text-tertiary);font-size:.75rem;font-style:italic}@keyframes controlsMorphIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes sourcesMorphIn{0%{opacity:0;transform:translate(-10px);clip-path:inset(0 100% 0 0)}to{opacity:1;transform:translate(0);clip-path:inset(0 0 0 0)}}@keyframes sourceItemMorphIn{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes agentThinkingMorphIn{0%{opacity:0;transform:scale(.98);filter:blur(2px)}to{opacity:1;transform:scale(1);filter:blur(0)}}.sidebar{position:fixed;left:0;top:0;width:280px;height:100vh;max-height:100vh;background-color:var(--bg-secondary);border-right:1px solid var(--border-primary);transform:translate(-100%);transition:transform var(--transition-base);z-index:200;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}.sidebar.open{transform:translate(0)}@media (max-width: 768px){.sidebar.open{transform:translate(0)}.main-wrapper:after{content:"";position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;opacity:0;pointer-events:none;transition:opacity var(--transition-base);z-index:199}.sidebar.open~.main-wrapper:after{opacity:1;pointer-events:auto}.sidebar-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;opacity:0;pointer-events:none;transition:opacity var(--transition-base);z-index:199}.sidebar.open~.main-wrapper .sidebar-overlay,.sidebar.open+.sidebar-overlay{opacity:1;pointer-events:auto}}.sidebar-header{padding:1rem;border-bottom:1px solid var(--border-primary)}.sidebar-search{position:relative;padding:.75rem 1rem;border-bottom:1px solid var(--border-primary)}.sidebar-search-input{width:100%;padding:.625rem 2.5rem .625rem .875rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-size:.875rem;font-family:inherit;outline:none;transition:all var(--transition-fast)}.sidebar-search-input:focus{border-color:var(--accent-primary);background-color:var(--bg-elevated);box-shadow:0 0 0 2px #ffffff1a}.sidebar-search-input::placeholder{color:var(--text-tertiary)}.sidebar-search-clear{position:absolute;right:1.25rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:.25rem;border-radius:4px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center}.sidebar-search-clear:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.new-conversation-btn{width:100%;padding:.75rem 1rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-size:.875rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:all var(--transition-base)}.new-conversation-btn:hover{background-color:var(--bg-elevated);border-color:var(--accent-primary)}.conversations-list{flex:1;overflow-y:auto;padding:.5rem}.conversation-item{padding:.75rem 1rem;margin-bottom:.25rem;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:all var(--transition-fast);position:relative}.conversation-item:hover{background-color:var(--bg-tertiary)}.conversation-item.active{background-color:var(--bg-elevated);border:1px solid var(--border-primary)}.conversation-title{font-size:.875rem;color:var(--text-secondary);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-delete{opacity:0;padding:.25rem .5rem;background:none;border:none;color:var(--text-tertiary);font-size:1.25rem;line-height:1;cursor:pointer;transition:all var(--transition-fast)}.conversation-item:hover .conversation-delete{opacity:1}.conversation-item.no-results{justify-content:center;color:var(--text-tertiary);font-style:italic;cursor:default}.conversation-item.no-results:hover{background-color:transparent}.conversation-title mark{background-color:#fff3;color:var(--text-primary);padding:.125rem .25rem;border-radius:3px}.conversation-delete:hover{color:var(--text-primary);background-color:var(--bg-tertiary);border-radius:4px}.app-container{display:flex;min-height:100vh}.main-wrapper{flex:1;display:flex;flex-direction:column;min-height:100vh;transition:margin-left var(--transition-base)}.app-container:has(.sidebar.open) .main-wrapper{margin-left:280px}@media (max-width: 768px){.app-container:has(.sidebar.open) .main-wrapper{margin-left:0}}.sidebar-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:none;border:none;color:var(--text-primary);cursor:pointer;border-radius:8px;transition:all var(--transition-fast);margin-right:.75rem}.sidebar-toggle:hover{background-color:var(--bg-tertiary)}.sidebar-toggle .pulsing-ball-icon{width:12px;height:12px}.message-actions{position:relative;display:flex;gap:.5rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.1);opacity:1;transition:opacity var(--transition-fast)}.action-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:6px;color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast)}.action-btn:hover{background-color:var(--bg-elevated);border-color:var(--accent-primary);color:var(--text-primary)}.action-btn.copied{background-color:var(--accent-primary);color:var(--bg-primary)}.message{position:relative}.message-content{word-wrap:break-word;white-space:pre-wrap}.message-content h1,.message-content h2,.message-content h3,.message-content h4,.message-content h5,.message-content h6{margin-top:.75rem;margin-bottom:.375rem;font-weight:600;line-height:1.3;color:var(--text-primary)}.message-content h1:first-child,.message-content h2:first-child,.message-content h3:first-child,.message-content h4:first-child,.message-content h5:first-child,.message-content h6:first-child{margin-top:0}.message-content h1{font-size:1.375rem}.message-content h2{font-size:1.125rem}.message-content h3{font-size:1rem}.message-content p{margin-bottom:.25rem;line-height:1.4;color:var(--text-primary)}.message-content p:last-child{margin-bottom:0}.message-content ul,.message-content ol{margin-left:1.5rem;margin-bottom:.5rem;margin-top:.25rem;color:var(--text-primary)}.message-content ul:last-child,.message-content ol:last-child{margin-bottom:0}.message-content li{margin-bottom:.25rem;line-height:1.5}.message-content li:last-child{margin-bottom:0}.message-content code{background-color:var(--bg-tertiary);padding:.125rem .375rem;border-radius:4px;font-size:.875em;font-family:Monaco,Menlo,Ubuntu Mono,monospace;color:var(--text-primary)}.message-content pre{background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;padding:.75rem;overflow-x:auto;margin:.5rem 0}.message-content pre code{background:none;padding:0;border-radius:0;font-size:.875rem;line-height:1.5;color:var(--text-primary)}.message-content blockquote{border-left:3px solid var(--accent-primary);padding-left:1rem;margin:.5rem 0;color:var(--text-secondary);font-style:italic}.message-content table{width:100%;border-collapse:collapse;margin:1rem 0}.message-content table th,.message-content table td{border:1px solid var(--border-primary);padding:.5rem;text-align:left;color:var(--text-primary)}.message-content table th{background-color:var(--bg-tertiary);font-weight:600}.message-content a{color:var(--accent-primary);text-decoration:none;border-bottom:1px solid transparent;transition:border-color var(--transition-fast)}.message-content a:hover{border-bottom-color:var(--accent-primary)}.chart-container{margin:1.5rem 0;padding:1rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:8px;position:relative;overflow:hidden}.chart-container canvas{max-width:100%;height:auto}.web-search-indicator{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:6px;font-size:.75rem;color:var(--text-secondary);margin-top:.5rem;animation:messageMorphIn var(--transition-base)}.web-search-indicator svg{flex-shrink:0;color:var(--accent-primary)}.generated-image{max-width:100%;max-height:500px;border-radius:8px;margin:1rem 0;border:1px solid var(--border-primary);object-fit:contain;animation:messageMorphIn var(--transition-base)}.toast-container{position:fixed;bottom:1.5rem;right:1.5rem;z-index:10000;display:flex;flex-direction:column;gap:.75rem;pointer-events:none}.toast{min-width:250px;max-width:400px;padding:.875rem 1rem;background-color:var(--bg-elevated);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-size:.875rem;box-shadow:var(--shadow-lg);opacity:0;transform:translate(100%);transition:all var(--transition-base);pointer-events:auto}.toast.show{opacity:1;transform:translate(0)}.toast-info{border-left:3px solid var(--accent-primary)}.toast-success{border-left:3px solid #4caf50;background-color:#4caf501a}.toast-warning{border-left:3px solid #ff9800;background-color:#ff98001a}.toast-error{border-left:3px solid #ff4444;background-color:#ff44441a}@media (max-width: 480px){.toast-container{bottom:1rem;right:1rem;left:1rem}.toast{min-width:auto;max-width:100%}}.message-content .katex{font-size:1.1em;color:var(--text-primary)}.message-content .katex-display{margin:1rem 0;overflow-x:auto;overflow-y:hidden}.settings-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:1000;opacity:0;visibility:hidden;transition:all var(--transition-base)}.settings-overlay.active{opacity:1;visibility:visible}.settings-panel{position:fixed;top:0;right:0;bottom:0;width:100%;max-width:400px;background-color:var(--bg-primary);border-left:1px solid var(--border-primary);z-index:1001;transform:translate(100%);transition:transform var(--transition-base);display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding-bottom:1rem}.settings-panel.open{transform:translate(0)}.settings-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem 1.25rem;border-bottom:1px solid var(--border-primary)}.settings-header h2{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin:0}.settings-close{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:.5rem;border-radius:6px;transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center}.settings-close:hover{background-color:var(--bg-elevated);color:var(--text-primary)}.settings-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:1.25rem 1.25rem 2rem;box-sizing:border-box}.settings-section{margin-bottom:2rem}.settings-section:last-child{margin-bottom:0}.settings-section h3{font-size:.9375rem;font-weight:600;color:var(--text-secondary);margin-bottom:1rem;text-transform:uppercase;letter-spacing:.05em}.settings-group{margin-bottom:1.5rem}.settings-group:last-child{margin-bottom:0}.settings-label{display:block;font-size:.875rem;color:var(--text-secondary);margin-bottom:.75rem;font-weight:500}.settings-label:has(.settings-checkbox){display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.5rem;border-radius:6px;transition:all var(--transition-fast);margin-bottom:.5rem}.settings-label:has(.settings-checkbox):hover{background-color:var(--bg-elevated)}.settings-checkbox{width:18px;height:18px;cursor:pointer;accent-color:var(--accent-primary)}.shortcut-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem;margin-bottom:.5rem;background-color:var(--bg-secondary);border-radius:6px;font-size:.875rem}.shortcut-item:last-child{margin-bottom:0}.shortcut-key{font-family:Monaco,Menlo,Ubuntu Mono,monospace;background-color:var(--bg-tertiary);border:1px solid var(--border-primary);border-radius:4px;padding:.25rem .5rem;font-size:.75rem;color:var(--text-primary);font-weight:500;min-width:100px;text-align:center}.shortcut-desc{color:var(--text-secondary);flex:1;margin-left:1rem}.settings-select{width:100%;padding:.75rem 1rem;background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-size:.9375rem;font-family:inherit;outline:none;transition:all var(--transition-fast);cursor:pointer}.settings-select:hover{border-color:var(--border-secondary)}.settings-select:focus{border-color:var(--accent-primary)}.settings-range{width:100%;height:6px;background-color:var(--bg-secondary);border-radius:3px;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.settings-range::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;background-color:var(--accent-primary);border-radius:50%;cursor:pointer;transition:all var(--transition-fast)}.settings-range::-webkit-slider-thumb:hover{transform:scale(1.1)}.settings-range::-moz-range-thumb{width:18px;height:18px;background-color:var(--accent-primary);border-radius:50%;cursor:pointer;border:none;transition:all var(--transition-fast)}.settings-range::-moz-range-thumb:hover{transform:scale(1.1)}.settings-value{display:inline-block;margin-left:.75rem;font-size:.875rem;color:var(--text-primary);font-weight:500;min-width:3rem;text-align:right}.settings-button{width:100%;padding:.875rem 1rem;background-color:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;color:var(--text-primary);font-size:.9375rem;font-family:inherit;font-weight:500;cursor:pointer;transition:all var(--transition-fast);margin-bottom:.75rem}.settings-button:last-child{margin-bottom:0}.settings-button:hover{background-color:var(--bg-elevated);border-color:var(--border-secondary)}.settings-button.danger{color:#f44;border-color:#f44}.settings-button.danger:hover{background-color:#ff44441a}@media (max-width: 480px){.controls-panel{padding:.875rem 1rem;gap:.625rem}.control-group{min-width:100px}.control-select{font-size:.8125rem;padding:.5rem .75rem}.sidebar{width:100%}.sidebar.open~.main-wrapper{margin-left:0}.message-actions{opacity:1}.settings-panel{max-width:100%}}.status-carousel{display:block;margin:.125rem 0;padding:.25rem .375rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:4px;position:relative;z-index:5;cursor:pointer;transition:all .3s ease;font-size:.625rem;width:100%;max-width:100%;box-sizing:border-box;min-height:1.5rem;max-height:3rem;overflow:hidden}.status-carousel.expanded{max-height:none;overflow:visible;z-index:10;position:relative;padding-bottom:.5rem}@media (max-width: 768px){.status-carousel{font-size:.625rem;padding:.25rem .375rem;margin-top:.25rem}}.status-carousel:hover{background:#ffffff0d;box-shadow:0 2px 6px #ffffff0d}.status-carousel.expanded .status-carousel-content{display:none}.status-carousel.expanded .status-carousel-expanded{display:block!important;visibility:visible!important;opacity:1!important}.status-carousel-header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0;border-bottom:none;cursor:pointer;transition:all .3s ease;height:1rem;line-height:1rem}.status-carousel-header:hover{opacity:.8}.status-collapse{font-size:.625rem;color:var(--text-tertiary);transition:transform .3s ease;margin-left:.5rem}.status-carousel.expanded .status-collapse{transform:rotate(180deg)}.status-title{font-size:.6875rem;color:var(--text-primary);font-weight:500;letter-spacing:.01em}@media (max-width: 768px){.status-title{font-size:.625rem}}.status-indicator{color:var(--accent-primary);font-size:.625rem;animation:statusPulse 2s ease-in-out infinite}.status-indicator.loading{animation:statusPulse 1.5s ease-in-out infinite,statusFlash 3s ease-in-out infinite}.status-indicator.thinking{animation:statusPulse 1.2s ease-in-out infinite,statusFlash 2.5s ease-in-out infinite}.status-carousel-content{min-height:1.25rem;max-height:2rem;position:relative;overflow:hidden;margin-top:.125rem;padding:0}.status-carousel-expanded{display:none;max-height:500px;overflow-y:auto;overflow-x:hidden;padding:.5rem .375rem;margin-top:.25rem;background:#ffffff05;border-top:1px solid rgba(255,255,255,.1);position:relative;z-index:10;box-sizing:border-box;width:100%}.status-item{padding:.25rem 0;margin:.25rem 0;background-color:transparent;border-radius:0;animation:statusItemMorphIn .3s cubic-bezier(.4,0,.2,1);transition:opacity .3s ease,transform .3s ease;position:absolute;top:0;left:0;width:100%;display:flex;flex-direction:column;align-items:flex-start;opacity:0;transform:translateY(4px);box-sizing:border-box}.status-item.active{opacity:1;transform:translateY(0);position:relative}.status-carousel-expanded .status-item{position:relative;opacity:1;transform:translateY(0);margin:.5rem 0;padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.05)}.status-carousel-expanded .status-item:last-child{border-bottom:none}.status-item.loading{animation:statusItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1),statusItemPulse 2s ease-in-out infinite}.status-item.thinking{animation:statusItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1),statusItemPulse 1.8s ease-in-out infinite}.status-item.thinking.complete{animation:none;opacity:.3!important;pointer-events:none;transition:opacity .3s ease-out}.status-item.thinking.complete[style*="opacity: 0"]{opacity:0!important;display:none!important}.status-item-content.loading,.status-item-content.thinking{animation:contentFlash 3s ease-in-out infinite}.status-carousel[data-stage=linguistics] .status-item-action,.status-carousel[data-stage=thinking] .status-item-action,.status-carousel[data-stage=actions] .status-item-thinking{display:none}.status-item:last-child{margin-bottom:0}.status-item-header{display:flex;align-items:center;gap:.25rem;margin:0;padding:0;min-height:1rem;line-height:1rem;height:1rem}.status-item-icon{font-size:.75rem;width:.875rem;text-align:center;flex-shrink:0;display:flex;align-items:center;justify-content:center}.status-item-title{flex:0 0 auto;font-size:.6875rem;color:var(--text-primary);font-weight:500;line-height:1.25rem;margin:0;padding:0}@media (max-width: 768px){.status-item-title{font-size:.625rem}}.status-item-status{font-size:.625rem;color:var(--text-tertiary);margin-left:auto;flex-shrink:0;line-height:1.25rem}.status-item-content{font-size:.625rem;color:var(--text-secondary);line-height:1.2;margin:0;padding:0;width:100%;max-height:1.5rem;overflow:hidden;text-overflow:ellipsis;display:flex;flex-wrap:nowrap;gap:.25rem;align-items:center;white-space:nowrap;max-width:100%}@media (max-width: 768px){.status-item-content{font-size:.625rem}}.thinking-bullets{display:flex;flex-direction:column;gap:0;margin:0;padding:0}.thinking-bullet{font-size:.625rem;color:var(--text-tertiary);line-height:1.2;padding-left:0;margin:0;padding-top:0;padding-bottom:0;opacity:0;transform:translate(-10px);animation:thinkingBulletIn .3s ease forwards;display:block;text-indent:0}@media (max-width: 768px){.thinking-bullet{font-size:.5625rem}}.thinking-bullet.live-streaming{animation:thinkingBulletIn .3s ease forwards,thinkingPulse 1.8s ease-in-out infinite,thinkingFlash 2.5s ease-in-out infinite}.thinking-bullet.loading{animation:thinkingBulletIn .3s ease forwards,thinkingPulse 1.5s ease-in-out infinite,thinkingFlash 3s ease-in-out infinite}@keyframes thinkingBulletIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}@keyframes thinkingPulse{0%,to{opacity:1}50%{opacity:.7}}@keyframes thinkingFlash{0%,to{opacity:1;text-shadow:0 0 0 rgba(255,255,255,0)}25%{opacity:.9;text-shadow:0 0 3px rgba(255,255,255,.3)}50%{opacity:1;text-shadow:0 0 6px rgba(255,255,255,.5)}75%{opacity:.9;text-shadow:0 0 3px rgba(255,255,255,.3)}}@keyframes statusCarouselMorphIn{0%{opacity:0;transform:translateY(-10px) scale(.98);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes statusItemMorphIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}.action-tracking{margin-top:.75rem;padding:1rem;background-color:var(--bg-tertiary);border-left:3px solid var(--accent-primary);border-radius:8px;animation:actionTrackingMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1);position:relative;z-index:5}.bullet-item{opacity:0;transform:translate(-10px);transition:opacity .3s ease,transform .3s ease}.bullet-content{display:flex;align-items:center;gap:.75rem}.bullet{color:var(--accent-primary);font-size:1.25rem;font-weight:700;animation:bulletPulse 1s ease-in-out infinite}.bullet-text{flex:1;font-size:.875rem;color:var(--text-primary)}.bullet-status{font-size:.75rem;color:var(--text-tertiary);text-transform:uppercase;padding:.25rem .5rem;background-color:var(--bg-secondary);border-radius:4px}.action-tracking strong{display:block;font-size:.8125rem;color:var(--text-primary);margin-bottom:.75rem;font-weight:600;letter-spacing:.01em}.action-item{display:flex;align-items:flex-start;gap:.75rem;padding:.75rem;margin-bottom:.5rem;background-color:var(--bg-secondary);border-radius:6px;cursor:pointer;transition:all var(--transition-fast);animation:actionItemMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.action-item:hover{background-color:var(--bg-elevated);transform:translate(2px)}.action-item:last-child{margin-bottom:0}.action-item.processing{border-left:3px solid var(--accent-secondary)}.action-item.complete{border-left:3px solid #00ff00;opacity:.8}.action-item.error{border-left:3px solid #ff4444}.action-icon{font-size:1.25rem;flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;animation:iconPulse 2s ease-in-out infinite}.action-item.processing .action-icon{animation:iconPulse 1s ease-in-out infinite}.action-item.complete .action-icon{animation:none}.action-content{flex:1;display:flex;flex-direction:column;gap:.25rem}.action-title{font-size:.875rem;color:var(--text-primary);font-weight:500;line-height:1.4}.action-status{font-size:.75rem;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.05em;font-weight:500}.action-item.processing .action-status{color:var(--accent-secondary);animation:statusPulse 1.5s ease-in-out infinite}.action-item.complete .action-status{color:#0f0}.action-item.error .action-status{color:#f44}.action-details{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border-secondary);font-size:.8125rem;color:var(--text-secondary);line-height:1.6}.action-details>div{margin-bottom:.5rem}.action-details>div:last-child{margin-bottom:0}.action-item.expanded .action-details{display:block}.thinking-display{display:none!important;margin-top:.75rem;padding:1rem;background:linear-gradient(135deg,var(--bg-tertiary) 0%,var(--bg-secondary) 100%);border-left:3px solid var(--accent-primary);border-radius:8px;animation:thinkingMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;z-index:1}.thinking-item.live-writing{position:relative}.thinking-item.live-writing:after{content:"|";color:var(--accent-primary);animation:cursorBlink 1s ease-in-out infinite;margin-left:2px}.thinking-display:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent-primary),transparent);animation:thinkingShimmer 2s ease-in-out infinite}.thinking-item:last-child{margin-bottom:0}.message.loading{position:relative}.message.loading:after{content:"";position:absolute;bottom:1rem;left:1rem;width:8px;height:8px;background-color:var(--accent-primary);border-radius:50%;animation:loadingPulse 1.5s ease-in-out infinite}.message.loading .message-content{color:var(--text-secondary);font-style:italic}.message-content{transition:all var(--transition-base)}.message-content.streaming-instant{opacity:1;transition:none}@keyframes characterAppear{0%{opacity:.8}to{opacity:1}}.message-content.streaming-instant .visible-text-content{animation:characterAppear .05s ease-out}@keyframes actionTrackingMorphIn{0%{opacity:0;transform:translateY(-10px) scale(.98);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes actionItemMorphIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}@keyframes iconPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@keyframes statusPulse{0%,to{opacity:1}50%{opacity:.6}}@keyframes statusFlash{0%,to{opacity:1;text-shadow:0 0 0 rgba(255,255,255,0)}25%{opacity:.9;text-shadow:0 0 4px rgba(255,255,255,.4)}50%{opacity:1;text-shadow:0 0 8px rgba(255,255,255,.6)}75%{opacity:.9;text-shadow:0 0 4px rgba(255,255,255,.4)}}@keyframes statusItemPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.95;transform:scale(.98)}}@keyframes contentFlash{0%,to{opacity:1;filter:brightness(1)}25%{opacity:.95;filter:brightness(1.1)}50%{opacity:1;filter:brightness(1.2)}75%{opacity:.95;filter:brightness(1.1)}}@keyframes thinkingShimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}@keyframes thinkingDotPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)}}@keyframes loadingPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(1.5)}}@keyframes contentStream{0%{opacity:.5;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.word-breakdown-display{display:block!important;visibility:visible!important;opacity:1!important;margin-top:.5rem;padding:.5rem;background:transparent!important;border:none!important;border-radius:0;position:relative;z-index:10;font-size:.6875rem;box-shadow:none}@media (max-width: 768px){.word-breakdown-display{font-size:.625rem;padding:.375rem;margin-top:.375rem}}.word-breakdown-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:.25rem 0;margin-bottom:.5rem}.word-breakdown-header strong{font-size:.75rem;color:var(--text-primary);font-weight:600;letter-spacing:.01em}.word-breakdown-collapse{font-size:.625rem;color:var(--text-tertiary);transition:transform .3s ease}.word-breakdown-display.collapsed .word-breakdown-collapse{transform:rotate(-90deg)}.word-breakdown-content{display:block!important;visibility:visible!important;opacity:1!important;transition:all .3s ease}.word-breakdown-display.collapsed .word-breakdown-content{display:none!important}.algorithm-step{display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;margin-bottom:.25rem;background-color:var(--bg-secondary);border-radius:4px;animation:algorithmStepMorphIn var(--transition-base) cubic-bezier(.4,0,.2,1);font-size:.75rem}.algorithm-step.cycling{opacity:1;transform:translate(0);transition:opacity .3s ease,transform .3s ease}.algorithm-step:last-child{margin-bottom:0}.step-name{font-size:.875rem;color:var(--text-primary);font-weight:500;flex:1;text-transform:capitalize}.step-status{font-size:.75rem;padding:.25rem .5rem;border-radius:4px;text-transform:uppercase;font-weight:500}.step-status.processing{background-color:var(--bg-elevated);color:var(--accent-secondary);animation:statusPulse 1.5s ease-in-out infinite}.step-status.complete{background-color:#00ff001a;color:#0f0}.step-status.error{background-color:#ff44441a;color:#f44}.step-time{font-size:.75rem;color:var(--text-tertiary);font-family:monospace}.word-flowing-text{display:block!important;visibility:visible!important;opacity:1!important;line-height:1.6;font-size:.75rem;color:var(--text-primary);word-wrap:break-word;white-space:normal;text-indent:0;margin-bottom:.25rem}@media (max-width: 768px){.word-flowing-text{font-size:.6875rem;line-height:1.5}}.word-neon-container{display:inline;position:relative;margin-right:.125rem;vertical-align:baseline;line-height:1.6}.word-inline-neon{display:inline-block;position:relative;transition:all .2s ease}.word-part-neon{display:inline;position:relative;padding:0;margin:0;font-weight:500;font-size:inherit;transition:all .15s ease;text-shadow:none;background:transparent!important}.word-part-neon.prefix{color:#0ff;text-shadow:0 0 5px #00ffff,0 0 10px #00ffff,0 0 15px #00ffff}.word-part-neon.root{color:#fff;text-shadow:none}.word-part-neon.suffix{color:#ff0;text-shadow:0 0 5px #ffff00,0 0 10px #ffff00,0 0 15px #ffff00}.word-part-neon.origin-latin{color:#0f0;text-shadow:0 0 5px #00ff00,0 0 10px #00ff00,0 0 15px #00ff00}.word-part-neon.origin-greek{color:#fff;text-shadow:none}.word-part-neon.origin-germanic,.word-part-neon.origin-german{color:#0ff;text-shadow:0 0 5px #00ffff,0 0 10px #00ffff,0 0 15px #00ffff}.word-part-neon.origin-french{color:#ff8000;text-shadow:0 0 5px #ff8000,0 0 10px #ff8000,0 0 15px #ff8000}.word-part-neon.origin-english{color:#fff;text-shadow:0 0 5px #ffffff,0 0 10px #ffffff,0 0 15px #ffffff}.word-part-neon.origin-unknown{color:gray;text-shadow:0 0 5px #808080,0 0 10px #808080,0 0 15px #808080}.word-part-neon.neon-lit{animation:neonFlash .15s ease-in-out}@keyframes neonFlash{0%,to{filter:brightness(1);text-shadow:0 0 5px currentColor,0 0 10px currentColor,0 0 15px currentColor}50%{filter:brightness(2);text-shadow:0 0 10px currentColor,0 0 20px currentColor,0 0 30px currentColor,0 0 40px currentColor}}.word-linguistic-origins{display:none;font-size:.5rem;color:#666;line-height:1.3;margin-top:.25rem;margin-left:0;font-family:Courier New,monospace;opacity:.7;text-transform:lowercase;letter-spacing:.02em;transition:all .3s ease;padding-top:.25rem;border-top:1px solid rgba(255,255,255,.1)}@media (max-width: 768px){.word-linguistic-origins{font-size:.4375rem;margin-top:.1875rem;padding-top:.1875rem}}.word-part-neon.origin-latin,.word-part-neon.origin-greek,.word-part-neon.origin-germanic,.word-part-neon.origin-german,.word-part-neon.origin-french,.word-part-neon.origin-english{animation:neonPulse 2s ease-in-out infinite}@keyframes wordSlowFlash{0%,to{opacity:1;filter:brightness(1);text-shadow:0 0 5px currentColor,0 0 10px currentColor,0 0 15px currentColor}25%{opacity:.9;filter:brightness(1.1);text-shadow:0 0 8px currentColor,0 0 15px currentColor,0 0 20px currentColor}50%{opacity:1;filter:brightness(1.2);text-shadow:0 0 10px currentColor,0 0 20px currentColor,0 0 25px currentColor}75%{opacity:.9;filter:brightness(1.1);text-shadow:0 0 8px currentColor,0 0 15px currentColor,0 0 20px currentColor}}.word-part-neon.slow-flash{animation:wordSlowFlash 3s ease-in-out infinite}@keyframes neonPulse{0%,to{filter:brightness(1);text-shadow:0 0 5px currentColor,0 0 10px currentColor,0 0 15px currentColor}50%{filter:brightness(1.3);text-shadow:0 0 8px currentColor,0 0 15px currentColor,0 0 20px currentColor}}.word-title{font-size:1rem;color:var(--text-primary);font-weight:600;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--border-secondary)}.word-analysis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.morphological,.etymology,.compression-hints{font-size:.8125rem;color:var(--text-secondary)}.morphological strong,.etymology strong,.compression-hints strong{display:block;color:var(--text-primary);margin-bottom:.5rem;font-weight:600}.compression-hints ul{margin:.5rem 0 0 1rem;padding:0;list-style:disc}.compression-hints li{margin-bottom:.25rem;color:var(--text-tertiary)}@keyframes wordBreakdownMorphIn{0%{opacity:0;transform:translateY(-10px) scale(.98);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes algorithmStepMorphIn{0%{opacity:0;transform:translate(-10px)}to{opacity:1;transform:translate(0)}}@keyframes wordCardMorphIn{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes bulletPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.1)}}@keyframes cursorBlink{0%,50%{opacity:1}51%,to{opacity:0}}.export-buttons-inline{display:flex;gap:.375rem;align-items:center;justify-content:flex-end;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border-secondary);position:relative;z-index:50}.export-btn-small{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;background-color:var(--bg-elevated);border:1px solid var(--border-primary);border-radius:4px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease}.export-btn-small:hover{background-color:var(--accent-primary);color:var(--bg-primary);border-color:var(--accent-primary);transform:scale(1.1)}.export-btn-small svg{width:14px;height:14px}.export-display{margin-top:1rem;padding:1rem;background-color:var(--bg-elevated);border-radius:8px;border:1px solid var(--border-primary)}.export-display canvas{max-width:100%;height:auto}@keyframes exportOptionsMorphIn{0%{opacity:0;transform:translateY(-10px) scale(.98);filter:blur(4px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}.visualization-panels{margin:20px;display:none!important;position:fixed;top:0;left:0;right:0;bottom:0;background:#000000f2;z-index:1000;overflow-y:auto;padding:20px}.visualization-panels.show{display:block!important}.viz-panel{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:12px;margin-bottom:20px;overflow:hidden}.panel-header{background:var(--bg-tertiary);padding:16px 20px;border-bottom:1px solid var(--border-secondary);display:flex;justify-content:space-between;align-items:center}.panel-header h3{margin:0;color:var(--text-primary);font-size:1.2rem;font-weight:600}.panel-controls{display:flex;gap:8px}.panel-toggle{background:var(--bg-primary);border:1px solid var(--border-primary);color:var(--text-primary);padding:6px 12px;border-radius:6px;cursor:pointer;font-size:.85rem;transition:all var(--transition-fast)}.panel-toggle:hover{background:var(--bg-elevated);border-color:var(--accent-primary)}.panel-toggle.active{background:var(--accent-primary);color:var(--bg-primary)}.panel-content{padding:20px}.viz-section{margin-bottom:30px}.viz-section h4{color:var(--text-primary);margin-bottom:16px;font-size:1.1rem;font-weight:500}.molecular-canvas{width:100%;height:400px;background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;margin-bottom:16px}.molecular-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;margin-bottom:16px}.molecular-results{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:16px;font-family:Courier New,monospace;font-size:.9rem;max-height:300px;overflow-y:auto}.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-bottom:20px}.chart-container{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:16px;height:300px}.monitor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.monitor-item{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:16px;text-align:center}.monitor-label{display:block;color:var(--text-secondary);font-size:.9rem;margin-bottom:8px}.monitor-value{display:block;color:var(--accent-primary);font-size:1.5rem;font-weight:600;margin-bottom:8px}.monitor-bar{width:100%;height:8px;background:var(--bg-primary);border-radius:4px;overflow:hidden}.monitor-fill{height:100%;background:linear-gradient(90deg,#10b981,#f59e0b,#ef4444);border-radius:4px;transition:width var(--transition-base)}.prediction-section{margin-bottom:30px}.prediction-inputs{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:20px;margin-bottom:20px}.input-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.input-row label{min-width:120px;color:var(--text-secondary);font-size:.9rem}.input-row input,.input-row select{flex:1;background:var(--bg-primary);border:1px solid var(--border-primary);color:var(--text-primary);padding:8px 12px;border-radius:6px;font-size:.9rem}.input-row input:focus,.input-row select:focus{outline:none;border-color:var(--accent-primary)}.prediction-results{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:20px}.prediction-summary{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border-secondary)}.prediction-direction{font-size:2rem;font-weight:700;color:var(--accent-primary)}.prediction-confidence{font-size:1.2rem;color:var(--text-secondary)}.prediction-factors{margin-bottom:20px}.prediction-timeline{background:var(--bg-secondary);border-radius:6px;padding:16px;min-height:100px}.hypothesis-inputs{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:20px;margin-bottom:20px}.hypothesis-inputs textarea{width:100%;min-height:100px;background:var(--bg-primary);border:1px solid var(--border-primary);color:var(--text-primary);padding:12px;border-radius:6px;font-family:inherit;font-size:.9rem;resize:vertical}.hypothesis-inputs textarea:focus{outline:none;border-color:var(--accent-primary)}.hypothesis-controls{display:flex;gap:12px;margin-top:12px}.hypothesis-results{background:var(--bg-tertiary);border:1px solid var(--border-secondary);border-radius:8px;padding:20px}.hypothesis-tree{background:var(--bg-secondary);border-radius:6px;padding:16px;margin-bottom:16px;min-height:200px}.evidence-display{background:var(--bg-secondary);border-radius:6px;padding:16px;min-height:150px}@media (max-width: 768px){.visualization-panels{margin:10px}.panel-header{flex-direction:column;gap:12px;align-items:flex-start}.panel-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.chart-grid,.monitor-grid{grid-template-columns:1fr}.hypothesis-controls{flex-direction:column}.molecular-controls{grid-template-columns:1fr}}.thinking-blackboard{margin:1rem 0;padding:1rem;background:linear-gradient(135deg,#00ffff0d,#ff00ff0d);border:1px solid rgba(0,255,255,.2);border-radius:8px;animation:blackboardMorphIn .4s cubic-bezier(.4,0,.2,1)}@keyframes blackboardMorphIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.blackboard-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid rgba(0,255,255,.2)}.blackboard-title{font-size:.875rem;font-weight:600;color:var(--text-primary)}.blackboard-indicator{color:#0ff;animation:pulse 2s ease-in-out infinite;font-size:.75rem}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.blackboard-content{display:flex;flex-direction:column;gap:.75rem}.blackboard-paths{display:flex;flex-direction:column;gap:.5rem}.thinking-point{display:flex;align-items:center;gap:.5rem;padding:.5rem;background:#00ffff0d;border-left:2px solid #00ffff;border-radius:4px;opacity:0;transform:translate(-10px);transition:all .3s ease;animation:thinkingPointIn .3s ease forwards}@keyframes thinkingPointIn{to{opacity:1;transform:translate(0)}}.thinking-dot{color:#0ff;font-size:.75rem;animation:dotPulse 1.5s ease-in-out infinite}@keyframes dotPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.2)}}.thinking-text{font-size:.8125rem;color:var(--text-secondary);line-height:1.4}.blackboard-insights{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.insight-badge{padding:.25rem .5rem;background:#00ff001a;border:1px solid rgba(0,255,0,.3);border-radius:4px;font-size:.75rem;color:#0f0}.blackboard-sources{display:flex;flex-direction:column;gap:.25rem;margin-top:.5rem;font-size:.75rem;color:var(--text-tertiary)}.source-item{display:flex;align-items:center;gap:.5rem;padding:.25rem 0}.source-item:before{content:"🌐";font-size:.875rem}.answer-container{margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.1);animation:answerAppear .4s cubic-bezier(.4,0,.2,1)}.visible-text-content{white-space:pre-wrap;word-spacing:normal}@keyframes answerAppear{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.thoughts-stream-container{position:relative;margin:0 0 .25rem;padding:.4rem .6rem;background:#ffffff05;border:1px solid rgba(255,255,255,.08);border-radius:6px;font-size:.7rem;line-height:1.2;z-index:1;display:block!important;visibility:visible!important;opacity:1!important;min-height:1.5rem}.thoughts-stream-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0;padding:0;border:none}.thoughts-stream-current{flex:1;font-size:.7rem;color:var(--text-secondary);opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2;margin:0;padding:0;position:relative}.thoughts-stream-current.glitch-active{animation:glitchText .3s ease-in-out infinite}@keyframes glitchText{0%{transform:translate(0);text-shadow:0 0 rgba(255,255,255,.1);filter:hue-rotate(0deg)}10%{transform:translate(-.5px,.5px);text-shadow:-.5px .5px rgba(255,0,255,.3);filter:hue-rotate(90deg)}20%{transform:translate(.5px,-.5px);text-shadow:.5px -.5px rgba(0,255,255,.3);filter:hue-rotate(180deg)}30%{transform:translate(-.5px,-.5px);text-shadow:-.5px -.5px rgba(255,255,0,.3);filter:hue-rotate(270deg)}40%{transform:translate(.5px,.5px);text-shadow:.5px .5px rgba(255,0,0,.3);filter:hue-rotate(360deg)}50%,to{transform:translate(0);text-shadow:0 0 rgba(255,255,255,.1);filter:hue-rotate(0deg)}}.thoughts-stream-toggle{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:.2rem;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;opacity:.5;flex-shrink:0}.thoughts-stream-toggle:hover{opacity:.8}.thoughts-stream-toggle svg{width:10px;height:6px}.thoughts-stream-items{display:none;flex-direction:column;gap:.1rem;margin-top:.3rem;padding-top:.3rem;border-top:1px solid rgba(255,255,255,.05);max-height:200px;overflow-y:auto}.thoughts-stream-item{font-size:.65rem;color:var(--text-tertiary);opacity:.6;padding:.15rem 0;margin:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .2s ease}.thoughts-stream-item.active{opacity:.8;color:var(--text-secondary)}.thoughts-stream-item.complete{opacity:.5}.workflow-container{margin:20px 0;display:flex;flex-direction:column;gap:15px}.interactive-step-card{background:linear-gradient(135deg,#1e1e1e,#2a2a2a);border:1px solid #333;border-radius:12px;padding:20px;transition:all .3s ease;position:relative;overflow:hidden}.interactive-step-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#4a9eff,#7b68ee);transform:scaleX(0);transform-origin:left;transition:transform .3s ease}.interactive-step-card.active:before{transform:scaleX(1)}.interactive-step-card.active{border-color:#4a9eff;box-shadow:0 4px 20px #4a9eff33}.interactive-step-card.completed{opacity:.7;border-color:#4a9eff}.interactive-step-card.pending{opacity:.5;border-color:#555}.step-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #333}.step-name{font-size:18px;font-weight:600;color:#fff;text-transform:capitalize}.step-status{font-size:14px;color:#4a9eff;font-weight:500}.step-report{margin-bottom:20px}.step-finding{color:#ccc;margin:8px 0;font-size:14px;line-height:1.5}.step-time{color:#888;font-size:12px;margin-top:10px;font-style:italic}.step-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:15px}.route-button{background:linear-gradient(135deg,#2a2a2a,#1e1e1e);border:1px solid #444;color:#fff;padding:12px 16px;border-radius:8px;cursor:pointer;font-size:14px;transition:all .2s ease;text-align:center}.route-button:hover{background:linear-gradient(135deg,#4a9eff,#7b68ee);border-color:#4a9eff;transform:translateY(-2px);box-shadow:0 4px 12px #4a9eff4d}.route-button:active{transform:translateY(0)}.auto-advance-indicator{text-align:center;color:#888;font-size:12px;margin-top:10px;padding-top:10px;border-top:1px solid #333}.auto-advance-indicator .countdown{color:#4a9eff;font-weight:600}.interactive-step-card{animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.astro-expert-consultations{margin:4px 0;padding:4px;background:transparent;border:none}.astro-section-header-compact{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px;padding:2px 0;border-bottom:1px solid rgba(100,150,255,.15)}.astro-section-header-compact h3{color:#64b5f6;margin:0;font-size:.75em;font-weight:600;text-transform:uppercase;letter-spacing:.5px;line-height:1.2}.expert-count-badge{background:#6496ff33;color:#64b5f6;padding:2px 6px;border-radius:10px;font-size:.75em;font-weight:600}.astro-expert-grid-modern{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:2px;margin-top:2px}.astro-expert-card-modern{background:#141e324d;border:1px solid rgba(100,150,255,.1);border-radius:2px;overflow:hidden;transition:all .2s ease}.astro-expert-card-modern:hover{border-color:#6496ff33;background:#141e3266}.expert-card-header-modern{padding:3px 4px;cursor:pointer;-webkit-user-select:none;user-select:none}.expert-title-row{display:flex;justify-content:space-between;align-items:center}.expert-title-row h4{color:#90caf9;margin:0;font-size:.7em;font-weight:600;text-transform:uppercase;letter-spacing:.3px;line-height:1.1}.expert-toggle-icon{color:#fff6;font-size:.65em;transition:transform .2s}.expert-card-content-modern{padding:3px 4px;border-top:1px solid rgba(100,150,255,.08);font-size:.7em;line-height:1.4;color:#ffffffd9}.expert-insights-modern{margin-bottom:3px;color:#ffffffe6;font-size:.7em;line-height:1.4}.expert-meta-tags{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-top:2px;font-size:.65em}.meta-label{color:#ffffff80;font-weight:600;margin-right:2px;font-size:.65em}.meta-tag{background:#6496ff26;color:#90caf9;padding:1px 4px;border-radius:2px;font-size:.65em}.meta-tag-more{color:#fff6;font-size:.65em}.astro-interventions-modern{margin:4px 0;padding:4px;background:transparent;border:none}.astro-intervention-content-modern{margin-top:2px;padding:0}.intervention-text-modern-compact{font-size:.75em;line-height:1.4;color:#ffffffd9}.intervention-section-title{color:#64b5f6;font-size:.75em;font-weight:600;margin:0;padding:0;text-transform:uppercase;letter-spacing:.5px;line-height:1.1}.intervention-subheading{color:#ffffffe6;font-size:.7em;font-weight:600;margin:0;padding:0;line-height:1.2}.intervention-para-compact{margin:0;padding:0;color:#fffc;font-size:.7em;line-height:1.3}.intervention-list-compact{margin:0;padding-left:12px;color:#fffc;font-size:.75em}.intervention-list-compact li{margin:0;padding:0;line-height:1.4}.intervention-empty{color:#ffffff80;font-size:.75em;font-style:italic;margin:0;padding:0}.astro-hypotheses-compact{margin:2px 0;padding:2px;background:transparent;border:none}.astro-hypotheses-header-compact{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:2px 0;border-bottom:1px solid rgba(138,43,226,.2)}.astro-hypotheses-content-compact{margin-top:2px}.astro-hypotheses-grid-compact{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2px}.astro-hypothesis-card-compact{background:#8a2be21a;border-left:2px solid #8A2BE2;padding:3px 4px;border-radius:2px;font-size:.7em;line-height:1.3}.astro-intervention-sections{display:flex;flex-direction:column;gap:16px}.astro-intervention-section{background:#141e3299;padding:16px;border-radius:8px;border:1px solid rgba(100,150,255,.2)}.astro-intervention-section h4{color:#90caf9;margin:0 0 12px;text-transform:capitalize}.astro-intervention-section pre{background:#0a0f19cc;padding:12px;border-radius:6px;color:#90caf9;font-size:.85em;overflow-x:auto;margin:0}.astro-typing-container{position:relative}.astro-typing-cursor{display:inline-block;color:#00d4ff;font-weight:700;margin-left:2px;animation:astro-cursor-blink 1s infinite}@keyframes astro-cursor-blink{0%,50%{opacity:1}51%,to{opacity:0}}.astro-celestial-reveal{position:relative;overflow:hidden}.astro-glow-effect{position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(circle at center,rgba(0,212,255,.3) 0%,transparent 70%);animation:astro-glow-pulse .6s ease-out;pointer-events:none;z-index:1}@keyframes astro-glow-pulse{0%{opacity:0;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}to{opacity:0;transform:scale(1)}}.astro-progressive-element{opacity:0;transform:translateY(20px);transition:opacity .6s ease-out,transform .6s ease-out}.astro-progressive-element.revealed{opacity:1;transform:translateY(0)}.astro-chart-wrapper{opacity:0;transform:translateY(30px) scale(.95);transition:opacity .8s cubic-bezier(.4,0,.2,1),transform .8s cubic-bezier(.4,0,.2,1)}.astro-chart-wrapper.revealed{opacity:1;transform:translateY(0) scale(1)}.astro-stagger-1{transition-delay:0ms}.astro-stagger-2{transition-delay:.2s}.astro-stagger-3{transition-delay:.4s}.astro-stagger-4{transition-delay:.6s}.astro-stagger-5{transition-delay:.8s}@media (max-width: 768px){.astro-expert-consultations{margin:6px 0;padding:6px;border-radius:6px}.astro-expert-grid{grid-template-columns:1fr;gap:6px;margin-top:6px}.astro-expert-card{padding:6px;border-radius:4px;width:100%;max-width:100%;box-sizing:border-box}.astro-expert-header h4{font-size:.85em;margin:0 0 4px}.astro-expert-content{font-size:.8em;line-height:1.4}.astro-interventions{margin:6px 0;padding:6px;border-radius:6px}.astro-intervention-tabs{flex-wrap:wrap;gap:4px;margin-bottom:6px;overflow-x:auto;-webkit-overflow-scrolling:touch}.astro-tab{padding:6px 8px;font-size:.8em;white-space:nowrap;flex-shrink:0}.astro-tab-panel{padding:6px 0}.astro-intervention-section{padding:6px;border-radius:4px;width:100%;max-width:100%;box-sizing:border-box}.astro-intervention-section h4{font-size:.85em;margin:0 0 4px}.astro-intervention-section pre{padding:6px;font-size:.7em;overflow-x:auto;-webkit-overflow-scrolling:touch}.astro-card-header{flex-direction:column;align-items:flex-start!important;gap:4px;margin-bottom:6px!important}.astro-card-header h3{font-size:.95em!important}.astro-key-insights{margin-bottom:6px!important}.astro-key-insights h4{font-size:.85em!important;margin:0 0 4px!important}.astro-key-insights>div{grid-template-columns:1fr!important;gap:4px!important}.astro-key-insights>div>div{padding:6px!important;font-size:.8em!important}.astro-charts-container{grid-template-columns:1fr!important;gap:6px!important}.astro-chart-wrapper{padding:6px!important;border-radius:4px!important}.astro-chart-wrapper h4{font-size:.85em!important;margin:0 0 4px!important}.astro-chart-wrapper canvas{max-height:180px!important}.astro-expand-btn,.astro-collapse-btn,.astro-dashboard-btn,.astro-expert-btn{padding:6px 8px!important;font-size:.8em!important;white-space:nowrap}.astro-loading-state{padding:6px!important;margin:6px 0!important;border-radius:4px!important}.astro-loading-state h3{font-size:.85em!important}.astro-step{font-size:.8em!important;gap:6px!important}.astro-birth-form{padding:12px!important;margin:12px 0!important;border-radius:8px!important}.astro-form-input{width:100%!important;padding:10px!important;font-size:.875em!important;box-sizing:border-box!important}.astro-form-button{width:100%!important;padding:10px!important;font-size:.875em!important;margin-top:8px!important}}@media (max-width: 480px){.astro-expert-consultations,.astro-interventions{margin:8px 0;padding:10px}.astro-expert-card,.astro-intervention-section{padding:10px}.astro-tab{padding:6px 10px;font-size:.8em}.astro-card-header h3{font-size:1em!important}.astro-key-insights>div>div{padding:6px!important;font-size:.8em!important}.astro-chart-wrapper{padding:10px!important}.astro-chart-wrapper canvas{max-height:150px!important}}@media (max-width: 768px){.chat-container{padding:.875rem .75rem;gap:1rem}.message{padding:.75rem 0;gap:.375rem}.message.user{max-width:85%}.message.assistant{max-width:100%;width:100%}.action-item{padding:.5rem;margin:.25rem 0;border-radius:6px}.action-item-header{padding:.375rem 0}.action-item-content{padding:.5rem 0}}@media (max-width: 480px){.chat-container{padding:.75rem .625rem;gap:.875rem}.message{padding:.625rem 0;gap:.25rem}.action-item{padding:.375rem;margin:.2rem 0}}
