.code-block-wrapper ::-webkit-scrollbar{width:8px;height:8px}.code-block-wrapper ::-webkit-scrollbar-track{background:rgba(126,126,126,.2);border-radius:10px}.code-block-wrapper ::-webkit-scrollbar-thumb{background-color:#818181;border-radius:10px;border:2px solid transparent;background-clip:content-box}body.light-mode .code-block-wrapper ::-webkit-scrollbar-track{background:rgba(161,161,161,.2)}body.light-mode .code-block-wrapper ::-webkit-scrollbar-thumb{background-color:#666666}.streaming-text{display:block}.response-text-streaming>.streaming-text:last-of-type{-webkit-mask-image:linear-gradient(180deg,#000,#000 calc(100% - 24px),rgba(0,0,0,.5));mask-image:linear-gradient(180deg,#000,#000 calc(100% - 24px),rgba(0,0,0,.5))}.response-text-streaming>.streaming-text>*{animation:streamReveal var(--stream-fade-duration,.45s) cubic-bezier(.22,1,.36,1) both}.response-text-streaming>:not(.streaming-text){animation:streamFadeIn var(--stream-fade-duration,.4s) cubic-bezier(.22,1,.36,1) both}.response-text-streaming .code-block-wrapper,.response-text-streaming .map-container,.response-text-streaming .mermaid-wrapper,.response-text-streaming .response-table-container,.response-text-streaming .support-hotline-banner{animation:streamBlockFadeIn .35s cubic-bezier(.22,1,.36,1) .05s both}.ai-response-streaming>.generated-audio-section,.ai-response-streaming>.generated-media-panel,.ai-response-streaming>.generated-video-section,.ai-response-streaming>.related-questions,.ai-response-streaming>.study-viewer{animation:streamFadeIn var(--stream-fade-duration,.4s) cubic-bezier(.22,1,.36,1) both}@keyframes streamReveal{0%{opacity:.65}to{opacity:1}}@keyframes streamFadeIn{0%{opacity:0;filter:blur(2px);transform:translateY(3px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}@keyframes streamBlockFadeIn{0%{opacity:0;transform:scale(.98) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes streamZoomFadeIn{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@media(max-width:768px){.messages-container-inner{padding:10px 10px 12px;max-width:none}.user-message-container{margin-top:15px}.user-message{max-width:75%;padding:10px 12px}.message-controls-container{padding:3px}.message-control-btn{width:32px;height:32px;padding:6px}.message-control-btn img{width:22px;height:22px}.search-result-card,.source-card,.video-card{min-width:240px}.source-card{max-width:240px;height:110px;padding:12px}.youtube-card{min-width:340px;max-width:340px}.task-header{flex-direction:row;align-items:center;gap:12px}.steps-toggle{align-self:flex-end}}@media(max-width:480px){.messages-container-inner{padding:10px}.user-message-container{margin-top:20px}.user-message{max-width:78%;padding:8px 10px;font-size:.95rem}.message-controls-container{padding:2px}.message-control-btn{width:30px;height:30px;padding:5px}.message-control-btn img{width:20px;height:20px}.search-result-card,.video-card{min-width:200px;padding:12px}.source-card{min-width:220px;max-width:220px;height:105px;padding:10px}.source-title{font-size:.9rem}.source-description{font-size:.8rem}.youtube-card{min-width:300px;max-width:300px}.youtube-title{font-size:.9rem}.youtube-description{font-size:.8rem}.step-main{gap:8px}.task-title{font-size:1.1rem}.steps-toggle{font-size:.85rem;padding:5px 10px}}.generated-audio-section{margin:24px 0}.generated-audio-title{color:#ffffff;font-size:1.1rem;font-weight:600;margin:0 0 12px}body.light-mode .generated-audio-title{color:#000000}.generated-audio-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;gap:12px}.custom-audio-player{position:relative;background:rgba(124,124,124,.15);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:20px;box-shadow:0 8px 32px rgba(0,0,0,.1)}.generated-audio-wrapper .custom-audio-player{background:rgba(124,124,124,.1);border:2px solid rgba(255,255,255,.1);border-radius:14px;padding:14px;box-shadow:none}body.light-mode .custom-audio-player{background:rgba(196,196,196,.2);border:1px solid rgba(0,0,0,.2)}body.light-mode .generated-audio-wrapper .custom-audio-player{background:rgba(196,196,196,.1);border-color:rgba(0,0,0,.1)}.generated-audio-wrapper .audio-play-pause-btn,.generated-audio-wrapper .audio-volume-btn{border:1px solid rgba(255,255,255,.16);width:38px;height:38px;-webkit-backdrop-filter:none;backdrop-filter:none}.generated-audio-wrapper .audio-play-pause-btn:hover,.generated-audio-wrapper .audio-volume-btn:hover{transform:none}body.light-mode .generated-audio-wrapper .audio-play-pause-btn,body.light-mode .generated-audio-wrapper .audio-volume-btn{background:rgba(0,0,0,.06);border-color:rgba(0,0,0,.14);color:#111111}body.light-mode .generated-audio-wrapper .audio-play-pause-btn:hover,body.light-mode .generated-audio-wrapper .audio-volume-btn:hover{background:rgba(0,0,0,.12)}.generated-audio{display:none}.audio-controls{display:flex;align-items:center;gap:10px}.audio-play-pause-btn,.audio-volume-btn{background:rgba(255,255,255,.1);border:none;color:#fff;cursor:pointer;padding:8px;border-radius:8px;transition:all .3s ease;display:flex;align-items:center;justify-content:center;width:36px;height:36px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.audio-play-pause-btn:hover,.audio-volume-btn:hover{background:rgba(255,255,255,.2);transform:scale(1.05)}.audio-play-pause-btn svg,.audio-volume-btn svg{width:16px;height:16px;fill:currentColor}body.light-mode .audio-play-pause-btn,body.light-mode .audio-volume-btn{background:rgba(0,0,0,.1);color:#000}body.light-mode .audio-play-pause-btn:hover,body.light-mode .audio-volume-btn:hover{background:rgba(0,0,0,.2)}.audio-timeline{flex:1 1;height:6px;background:rgba(255,255,255,.2);border-radius:3px;cursor:pointer;position:relative;margin:0 8px;transition:height .2s ease}.audio-timeline:hover{height:7px}body.light-mode .audio-timeline{background:rgba(0,0,0,.2)}.audio-progress{width:100%;height:100%;position:relative;border-radius:3px;cursor:pointer;transition:height .2s ease;touch-action:none}.audio-progress:hover{height:7px}.audio-progress-bar{height:100%;background:#fff;border-radius:3px;width:0;transition:width .1s ease;will-change:width}body.light-mode .audio-progress-bar{background:#000}.audio-time{color:#fff;font-size:13px;font-weight:500;display:flex;gap:4px;min-width:70px;font-family:Courier New,monospace}body.light-mode .audio-time{color:#000}.audio-current-time,.audio-duration{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;opacity:.9}.generated-audio-wrapper .media-download-btn{margin-top:10px;padding:8px 14px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#e0e0e0;font-size:.85rem;font-weight:500}.generated-audio-wrapper .media-download-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.15)}body.light-mode .generated-audio-wrapper .media-download-btn{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.14);color:#333333}body.light-mode .generated-audio-wrapper .media-download-btn:hover{background:rgba(0,0,0,.1)}.history-audio-prompt-wrap{margin-top:10px;text-align:left}.history-audio-prompt{margin:0;font-size:.92rem;line-height:1.45;color:rgba(255,255,255,.78);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;overflow:hidden}.history-audio-prompt.expanded{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}body.light-mode .history-audio-prompt{color:rgba(0,0,0,.75)}.history-audio-expand-btn{margin-top:6px;padding:0;border:none;background:transparent;color:rgba(255,255,255,.9);font-size:.82rem;cursor:pointer}body.light-mode .history-audio-expand-btn{color:rgba(0,0,0,.8)}.maps-section{margin:24px 0}.maps-title{color:#ffffff;font-size:1.1rem;font-weight:600;margin:0 0 12px}body.light-mode .maps-title{color:#000000}.maps-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;gap:16px}.map-container{width:100%;border-radius:16px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.25);background:#fff;position:relative;padding-bottom:56.25%}.inline-map{margin:16px 0;height:320px;padding-bottom:0}@media(max-width:768px){.map-container{padding-bottom:100%}}.map-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}.code-block-wrapper{position:relative;margin:16px 0;background:rgba(0,0,0,.3);border-radius:8px;overflow:hidden}body.light-mode .code-block-wrapper{background:rgba(0,0,0,.05)}.code-block-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.1);position:relative}body.light-mode .code-block-header{background:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.1)}.code-language-label{color:rgba(255,255,255,.6);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}body.light-mode .code-language-label{color:rgba(0,0,0,.6)}.code-block-actions{display:flex;gap:8px;position:sticky;top:0;z-index:10}.code-action-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;transition:all .3s ease;color:#ffffff}body.light-mode .code-action-btn{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.1);color:#000000}.code-action-btn:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3);transform:scale(1.05)}body.light-mode .code-action-btn:hover{background:rgba(0,0,0,.1);border-color:rgba(0,0,0,.2)}.code-action-btn img{width:16px;height:16px}body.light-mode .code-action-btn img{filter:invert(1)}.code-run-btn svg{width:16px;height:16px;fill:currentColor}.code-block-content{position:relative}.code-block-plain-fallback{white-space:pre;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.9rem;color:inherit;background:transparent;border:none;box-sizing:border-box;width:100%}.code-block-fade{position:absolute;left:0;right:0;bottom:0;height:56px;pointer-events:none;background:linear-gradient(180deg,rgba(17,17,17,0),rgba(17,17,17,.85))}body.light-mode .code-block-fade{background:linear-gradient(180deg,rgba(248,248,248,0),rgba(248,248,248,.96))}.code-block-footer{display:flex;align-items:center;gap:12px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}body.light-mode .code-block-footer{border-top:1px solid rgba(0,0,0,.08);background:rgba(0,0,0,.03)}.code-block-progress{display:flex;flex:1 1;min-width:0;flex-direction:column;gap:6px}.code-progress-text{color:rgba(255,255,255,.72);font-size:.78rem;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.light-mode .code-progress-text{color:rgba(0,0,0,.62)}.code-expand-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#ffffff;border-radius:8px;padding:6px 10px;font-size:.78rem;font-weight:500;line-height:1.2;cursor:pointer;white-space:nowrap;transition:all .2s ease}body.light-mode .code-expand-btn{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.12);color:#000000}.code-expand-btn:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.28)}body.light-mode .code-expand-btn:hover{background:rgba(0,0,0,.09);border-color:rgba(0,0,0,.2)}.code-expand-btn:active{transform:translateY(1px)}.response-text pre{margin:0!important}.response-text pre,.response-text pre code{background:transparent!important;padding:0!important}.code-block-wrapper pre{margin:0!important}.code-block-wrapper pre,body.light-mode .code-block-wrapper pre{background:transparent!important}.mermaid-wrapper{position:relative;margin:16px 0;display:flex;flex-direction:column;align-items:center}.mermaid-controls{position:absolute;top:12px;right:12px;display:flex;gap:6px;z-index:10}.mermaid-control-btn{width:32px;height:32px;background:rgba(0,0,0,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.15);border-radius:8px;color:rgba(255,255,255,.85);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.mermaid-control-btn:hover{background:rgba(0,0,0,.35);transform:scale(1.05)}.mermaid-control-btn.active{background:rgba(0,0,0,.35);border-color:rgba(255,255,255,.3)}body.light-mode .mermaid-control-btn{background:rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.15);color:#111827}body.light-mode .mermaid-control-btn:hover{background:rgba(0,0,0,.15)}body.light-mode .mermaid-control-btn.active{background:rgba(0,0,0,.18);border-color:rgba(0,0,0,.25)}.mermaid-container{position:relative;width:100%;min-height:200px;background:rgba(30,30,40,.96);border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden;padding:16px;user-select:none;-webkit-user-select:none;touch-action:pan-y}.mermaid-wrapper:has(.mermaid-multitouch-active){touch-action:none}.mermaid-container.mermaid-multitouch-active{touch-action:none}body.light-mode .mermaid-container{background:#f4f6fa;border:1px solid rgba(0,0,0,.12)}.mermaid-container.mermaid-container-touch-hint{padding-bottom:36px}.mermaid-touch-hint{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);margin:0;max-width:calc(100% - 24px);text-align:center;font-size:.75rem;font-weight:500;line-height:1.3;color:rgba(255,255,255,.45);pointer-events:none;z-index:6;user-select:none;-webkit-user-select:none}body.light-mode .mermaid-touch-hint{color:rgba(17,24,39,.55)}.mermaid-content{transform-origin:0 0;display:flex;justify-content:center;align-items:center;min-height:168px}.mermaid-content svg{display:block;max-width:100%;height:auto;overflow:visible!important}.mermaid-content foreignObject p{margin:0;white-space:inherit}.mermaid-loading{background:rgba(30,30,40,.95);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:24px;margin:16px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:rgba(255,255,255,.6);font-size:.9rem;min-height:100px}.mermaid-skeleton-node{width:9rem;max-width:40%;height:2.5rem;border-radius:10px}.mermaid-skeleton-edge{width:2px;height:1.5rem;border-radius:1px}.mermaid-skeleton-row{display:flex;justify-content:center;gap:2rem;width:100%}.mermaid-skeleton-row .mermaid-skeleton-node{max-width:35%}body.light-mode .mermaid-loading{background:rgba(0,0,0,.03);border:1px solid rgba(0,0,0,.12);color:rgba(0,0,0,.6)}.mermaid-error{background:rgba(255,100,100,.1);border:1px solid rgba(255,100,100,.3);border-radius:12px;padding:16px 20px;margin:16px 0;display:flex;align-items:center;gap:10px;color:#ff6b6b;font-size:.9rem;max-width:100%;min-width:0;box-sizing:border-box}body.light-mode .mermaid-error{background:rgba(220,53,69,.1);border:1px solid rgba(220,53,69,.3);color:#dc3545}.mermaid-error-panel{width:100%;flex-direction:column;align-items:flex-start;gap:12px}.mermaid-error-body{display:flex;align-items:center;gap:10px;width:100%;min-width:0;overflow-wrap:anywhere;word-break:break-word;white-space:normal}.mermaid-error-body span:last-child{min-width:0}.mermaid-error-icon{font-size:1.2rem;flex-shrink:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:rgba(255,100,100,.15);border-radius:50%}.mermaid-error-actions{display:flex;gap:8px;flex-wrap:wrap;max-width:100%}.mermaid-inline-action{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:8px;color:inherit;cursor:pointer;font-size:.85rem;font-weight:600;padding:8px 12px;transition:background .2s ease,border-color .2s ease,transform .2s ease;white-space:normal}.mermaid-inline-action:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.28);transform:translateY(-1px)}body.light-mode .mermaid-inline-action{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.12)}body.light-mode .mermaid-inline-action:hover{background:rgba(0,0,0,.08);border-color:rgba(0,0,0,.18)}.mermaid-code-panel{width:100%;background:rgba(20,20,30,.95);border:1px solid rgba(255,255,255,.08);border-top:none;border-radius:0 0 12px 12px;overflow:hidden}body.light-mode .mermaid-code-panel{background:rgba(0,0,0,.05);border-color:rgba(0,0,0,.12)}.mermaid-wrapper:has(.mermaid-code-panel) .mermaid-container{border-radius:12px 12px 0 0}.mermaid-code-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.1)}body.light-mode .mermaid-code-header{background:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.1)}.mermaid-code-label{color:rgba(255,255,255,.6);font-size:.85rem;font-weight:500;text-transform:uppercase;letter-spacing:.5px}body.light-mode .mermaid-code-label{color:rgba(0,0,0,.6)}.mermaid-code-copy-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:6px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;transition:all .3s ease;color:#ffffff}body.light-mode .mermaid-code-copy-btn{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.1);color:#000000}.mermaid-code-copy-btn:hover{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.3);transform:scale(1.05)}body.light-mode .mermaid-code-copy-btn:hover{background:rgba(0,0,0,.1);border-color:rgba(0,0,0,.2)}.mermaid-code-copy-btn img{width:16px;height:16px}body.light-mode .mermaid-code-copy-btn img{filter:invert(1)}.mermaid-code-content{overflow-x:auto}.mermaid-code-content pre{margin:0;padding:16px;background:transparent}.mermaid-code-content code{font-family:Courier New,Courier,monospace;font-size:.88rem;line-height:1.6;color:rgba(255,255,255,.85);white-space:pre;tab-size:2}body.light-mode .mermaid-code-content code{color:rgba(0,0,0,.8)}.mermaid-code-content ::-webkit-scrollbar{width:8px;height:8px}.mermaid-code-content ::-webkit-scrollbar-track{background:rgba(126,126,126,.2);border-radius:10px}.mermaid-code-content ::-webkit-scrollbar-thumb{background-color:#818181;border-radius:10px;border:2px solid transparent;background-clip:content-box}body.light-mode .mermaid-code-content ::-webkit-scrollbar-track{background:rgba(161,161,161,.2)}body.light-mode .mermaid-code-content ::-webkit-scrollbar-thumb{background-color:#666666}