.driver-active *,.driver-active .driver-overlay{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in .2s ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in .2s}.driver-popover{all:unset;box-sizing:border-box;color:#2d2d2d;margin:0;padding:15px;border-radius:5px;min-width:250px;max-width:300px;box-shadow:0 1px 10px #0006;z-index:1000000000;position:fixed;top:0;right:0;background-color:#fff}.driver-popover *{font-family:Helvetica Neue,Inter,ui-sans-serif,Apple Color Emoji,Helvetica,Arial,sans-serif}.driver-popover-title{font:19px/normal sans-serif;font-weight:700;display:block;position:relative;line-height:1.5;zoom:1;margin:0}.driver-popover-close-btn{all:unset;position:absolute;top:0;right:0;width:32px;height:28px;cursor:pointer;font-size:18px;font-weight:500;color:#d2d2d2;z-index:1;text-align:center;transition:color;transition-duration:.2s}.driver-popover-close-btn:focus,.driver-popover-close-btn:hover{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{margin-bottom:0;font:14px/normal sans-serif;line-height:1.5;font-weight:400;zoom:1}.driver-popover-footer{margin-top:15px;text-align:right;zoom:1;display:flex;align-items:center;justify-content:space-between}.driver-popover-progress-text{font-size:13px;font-weight:400;color:#727272;zoom:1}.driver-popover-footer button{all:unset;display:inline-block;box-sizing:border-box;padding:3px 7px;text-decoration:none;text-shadow:1px 1px 0 #fff;background-color:#fff;color:#2d2d2d;font:12px/normal sans-serif;cursor:pointer;outline:0;zoom:1;line-height:1.3;border:1px solid #ccc;border-radius:3px}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}:not(body):has(>.driver-active-element){overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}.driver-popover-footer button:focus,.driver-popover-footer button:hover{background-color:#f7f7f7}.driver-popover-navigation-btns{display:flex;flex-grow:1;justify-content:flex-end}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";position:absolute;border:5px solid #fff}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{left:100%;border-right-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-right{right:100%;border-left-color:transparent;border-bottom-color:transparent;border-top-color:transparent}.driver-popover-arrow-side-top{top:100%;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}.driver-popover-arrow-side-bottom{bottom:100%;border-left-color:transparent;border-top-color:transparent;border-right-color:transparent}.driver-popover-arrow-side-center{display:none}.driver-popover-arrow-side-left.driver-popover-arrow-align-start,.driver-popover-arrow-side-right.driver-popover-arrow-align-start{top:15px}.driver-popover-arrow-side-bottom.driver-popover-arrow-align-start,.driver-popover-arrow-side-top.driver-popover-arrow-align-start{left:15px}.driver-popover-arrow-align-end.driver-popover-arrow-side-left,.driver-popover-arrow-align-end.driver-popover-arrow-side-right{bottom:15px}.driver-popover-arrow-side-bottom.driver-popover-arrow-align-end,.driver-popover-arrow-side-top.driver-popover-arrow-align-end{right:15px}.driver-popover-arrow-side-left.driver-popover-arrow-align-center,.driver-popover-arrow-side-right.driver-popover-arrow-align-center{top:50%;margin-top:-5px}.driver-popover-arrow-side-bottom.driver-popover-arrow-align-center,.driver-popover-arrow-side-top.driver-popover-arrow-align-center{left:50%;margin-left:-5px}.driver-popover-arrow-none{display:none}:root{--chat-bg:#FAFAFA;--chat-surface:#FFFFFF;--chat-border:#E5E5E5;--chat-border-subtle:#F0F0F0;--chat-text-primary:#171717;--chat-text-secondary:#525252;--chat-text-muted:#A3A3A3;--atlas-primary:#059669;--atlas-bg:rgba(5,150,105,0.1);--atlas-border:rgba(5,150,105,0.2);--sage-primary:#7C3AED;--sage-bg:rgba(124,58,237,0.1);--sage-border:rgba(124,58,237,0.2);--forge-primary:#D97706;--forge-bg:rgba(217,119,6,0.1);--forge-border:rgba(217,119,6,0.2);--chat-spacing-xs:4px;--chat-spacing-sm:8px;--chat-spacing-md:16px;--chat-spacing-lg:24px;--chat-spacing-xl:32px;--chat-radius-sm:8px;--chat-radius-md:12px;--chat-radius-lg:16px;--chat-radius-xl:20px;--chat-shadow-sm:0 1px 2px rgba(0,0,0,0.04);--chat-shadow-md:0 4px 12px rgba(0,0,0,0.08);--chat-shadow-lg:0 12px 32px rgba(0,0,0,0.12)}.dark{--chat-bg:#0A0A0B;--chat-surface:#111113;--chat-border:#27272A;--chat-border-subtle:#1C1C1E;--chat-text-primary:#FAFAFA;--chat-text-secondary:#A1A1AA;--chat-text-muted:#71717A;--chat-shadow-sm:0 1px 2px rgba(0,0,0,0.2);--chat-shadow-md:0 4px 12px rgba(0,0,0,0.3);--chat-shadow-lg:0 12px 32px rgba(0,0,0,0.4)}.chat-container{background:var(--chat-bg);color:var(--chat-text-primary)}.chat-surface{background:var(--chat-surface);border:1px solid var(--chat-border);border-radius:var(--chat-radius-lg)}.chat-scrollbar{scrollbar-width:thin;scrollbar-color:var(--chat-border) transparent}.chat-scrollbar::-webkit-scrollbar{width:6px}.chat-scrollbar::-webkit-scrollbar-track{background:transparent}.chat-scrollbar::-webkit-scrollbar-thumb{background-color:var(--chat-border);border-radius:3px}.chat-scrollbar::-webkit-scrollbar-thumb:hover{background-color:var(--chat-text-muted)}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.message-bubble{animation:messageSlideIn .2s ease-out}@keyframes thinkingPulse{0%,to{opacity:.4}50%{opacity:1}}.thinking-dot{animation:thinkingPulse 1.2s infinite}.thinking-dot:nth-child(2){animation-delay:.2s}.thinking-dot:nth-child(3){animation-delay:.4s}.agent-atlas{--agent-primary:var(--atlas-primary);--agent-bg:var(--atlas-bg);--agent-border:var(--atlas-border)}.agent-sage{--agent-primary:var(--sage-primary);--agent-bg:var(--sage-bg);--agent-border:var(--sage-border)}.agent-forge{--agent-primary:var(--forge-primary);--agent-bg:var(--forge-bg);--agent-border:var(--forge-border)}.agent-badge,.agent-icon{background:var(--agent-bg);border:1px solid var(--agent-border);color:var(--agent-primary)}.artifact-panel{background:var(--chat-surface);border-left:1px solid var(--chat-border);box-shadow:var(--chat-shadow-lg)}.artifact-toolbar{background:var(--chat-bg);border-bottom:1px solid var(--chat-border-subtle)}.artifact-editor{font-family:SF Mono,Fira Code,Consolas,monospace;font-size:13px;line-height:1.6}.chat-input{background:var(--chat-surface);border:1px solid var(--chat-border);border-radius:var(--chat-radius-xl);transition:border-color .2s,box-shadow .2s}.chat-input:focus{border-color:var(--chat-text-primary);box-shadow:0 0 0 2px rgba(0,0,0,.05)}.dark .chat-input:focus{box-shadow:0 0 0 2px rgba(255,255,255,.05)}.thread-item{transition:background-color .15s,transform .15s}.thread-item:hover{background:var(--chat-bg)}.thread-item.active{background:var(--chat-border-subtle)}.pdf-panel{border-left:1px solid var(--chat-border)}.chat-dropdown,.pdf-panel{background:var(--chat-surface)}.chat-dropdown{border:1px solid var(--chat-border);border-radius:var(--chat-radius-lg);box-shadow:var(--chat-shadow-lg)}.chat-dropdown-item{transition:background-color .1s}.chat-dropdown-item:hover,.page-citation{background:var(--chat-bg)}.page-citation{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;margin:0 2px;border-radius:6px;border:1px solid var(--chat-border);font-size:11px;font-weight:500;color:var(--chat-text-secondary);cursor:pointer;transition:background-color .15s,border-color .15s}.page-citation:hover{background:var(--chat-border-subtle);border-color:var(--chat-text-muted)}.chat-prose{--tw-prose-body:var(--chat-text-primary);--tw-prose-headings:var(--chat-text-primary);--tw-prose-links:var(--chat-text-primary);--tw-prose-bold:var(--chat-text-primary);--tw-prose-counters:var(--chat-text-secondary);--tw-prose-bullets:var(--chat-text-muted);--tw-prose-hr:var(--chat-border);--tw-prose-quotes:var(--chat-text-secondary);--tw-prose-quote-borders:var(--chat-border);--tw-prose-captions:var(--chat-text-muted);--tw-prose-code:var(--chat-text-primary);--tw-prose-pre-code:#E5E5E5;--tw-prose-pre-bg:#171717;--tw-prose-th-borders:var(--chat-border);--tw-prose-td-borders:var(--chat-border-subtle)}@media (max-width:768px){.chat-container{--chat-spacing-lg:16px;--chat-spacing-xl:24px}.artifact-panel{width:100%!important;max-width:100%!important}}.safe-area-bottom{padding-bottom:env(safe-area-inset-bottom,0)}.safe-area-top{padding-top:env(safe-area-inset-top,0)}.safe-area-inset{padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}.touch-target{min-height:44px;min-width:44px}.mobile-input-area{position:sticky;bottom:0;padding-bottom:env(safe-area-inset-bottom,0);transition:padding-bottom .2s ease}@media (max-width:640px){.message-bubble-user{max-width:90%!important}.message-bubble-ai{max-width:95%!important}.message-content{font-size:14px;line-height:1.5}.message-timestamp{font-size:10px}.chat-header{padding-left:12px;padding-right:12px}.chat-header-title{font-size:13px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media (max-width:768px){.thread-sidebar-mobile{width:100%!important;max-width:100%!important}.thread-sidebar-backdrop{backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}}@media (max-width:640px){.agent-selector-trigger{padding:8px 12px}.agent-selector-dropdown{position:fixed!important;left:8px!important;right:8px!important;bottom:80px!important;top:auto!important;width:auto!important;max-height:60vh;overflow-y:auto;border-radius:var(--chat-radius-xl)}.agent-capabilities-panel{display:none!important}.chat-input-container{padding:12px 12px calc(12px + env(safe-area-inset-bottom, 0px))}.chat-textarea{min-height:44px;font-size:16px}.chat-send-button{min-width:40px;min-height:40px}}@media (max-width:1024px){.pdf-panel-mobile{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;z-index:50}}@media (max-width:768px){.artifact-panel-mobile{width:100%!important;max-width:100%!important;border-radius:0!important}.artifact-toolbar-mobile{flex-wrap:wrap;gap:4px;padding:8px 12px}.artifact-toolbar-mobile .toolbar-divider{display:none}}@media (max-width:640px){.chat-scroll-area{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.chat-prose h1{font-size:1.25rem}.chat-prose h2{font-size:1.125rem}.chat-prose h3{font-size:1rem}.chat-prose li,.chat-prose p{font-size:.875rem;line-height:1.6}.chat-prose pre{font-size:12px;padding:12px;margin-left:-12px;margin-right:-12px;border-radius:0}.chat-prose table{font-size:12px}}.touch-manipulation{touch-action:manipulation;-webkit-tap-highlight-color:transparent}@media (hover:none) and (pointer:coarse){.touch-active:active{opacity:.7;transform:scale(.98)}.button-touch:active{background-color:var(--chat-border)}}@media (max-width:640px){.modal-mobile{margin:16px;max-height:calc(100vh - 32px);max-width:calc(100vw - 32px);overflow-y:auto}.modal-mobile-fullscreen{margin:0;max-height:100vh;max-width:100vw;border-radius:0}}.chat-layout-grid{display:grid;grid-template-columns:1fr;height:100%}@media (min-width:1024px){.chat-layout-grid.with-pdf{grid-template-columns:1fr 1fr}}.px-mobile{padding-left:12px;padding-right:12px}@media (min-width:640px){.px-mobile{padding-left:16px;padding-right:16px}}@media (min-width:1024px){.px-mobile{padding-left:24px;padding-right:24px}}@media (max-width:640px){.hide-mobile{display:none!important}}@media (min-width:641px){.show-mobile-only{display:none!important}}@media (max-height:500px) and (max-width:768px){.keyboard-visible .chat-header{display:none}.keyboard-visible .mobile-input-area{position:fixed;bottom:0;left:0;right:0}}@media (max-height:500px) and (orientation:landscape){.chat-messages-area{max-height:calc(100vh - 120px)}.agent-selector-dropdown{max-height:50vh}}.chat-focus-ring:focus-visible{outline:none;box-shadow:0 0 0 2px var(--chat-surface),0 0 0 4px var(--chat-text-primary)}.dark .chat-focus-ring:focus-visible{box-shadow:0 0 0 2px var(--chat-surface),0 0 0 4px var(--chat-text-primary)}@keyframes shimmer{0%{background-position:-200px 0}to{background-position:calc(200px + 100%) 0}}.chat-skeleton{background:linear-gradient(90deg,var(--chat-border-subtle) 0,var(--chat-bg) 40px,var(--chat-border-subtle) 80px);background-size:200px 100%;animation:shimmer 1.5s infinite}