@import"https://fonts.googleapis.com/icon?family=Material+Icons";@import"https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;600;700&display=swap";.app-shell{display:flex;flex-direction:column;height:100vh;min-height:100vh;--safe-area-top: env(safe-area-inset-top, 0px)}.app-shell__header{position:relative;display:flex;align-items:center;gap:8px;padding:calc(8px + var(--safe-area-top)) 20px 8px 12px;border-bottom:1px solid #e5e7eb;background:#fff;height:calc(65px + var(--safe-area-top));min-height:calc(65px + var(--safe-area-top));box-sizing:border-box}.menu-toggle{border:none;background:#fff;cursor:pointer;border-radius:8px;padding:8px 10px;color:#495057;box-shadow:none;display:inline-flex;align-items:center;gap:8px;font-weight:600}.menu-toggle:focus{outline:none;box-shadow:0 0 0 2px #0284c738}.menu-toggle .menu-text{margin-left:6px;font-size:16px;color:#374151;font-weight:600}.menu-toggle .material-icons{font-size:22px}.brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:10px;white-space:nowrap}.brand span{font-family:Titillium Web,sans-serif;font-weight:700;font-size:22px;color:#009edb;letter-spacing:.2px}.brand img.un-logo-navbar{height:28px}.admin-ctrls{display:flex;align-items:center;gap:12px}.llm-mode{display:inline-flex;align-items:center;gap:6px;color:#334155}.llm-mode select{border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;background:#fff;height:36px}.btn-run-test{background:#22c55e;color:#fff;border:none;border-radius:6px;padding:6px 10px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}.app-shell__main{flex:1;min-height:0;display:flex;height:calc(100vh - (65px + var(--safe-area-top)));align-items:stretch}#chat-column-container{min-width:260px;max-width:60vw;display:flex;flex-direction:column;border-right:1px solid #e5e7eb;flex:0 0 auto;min-height:100%;overscroll-behavior:contain}.chat-history{flex:1;min-height:0;overflow:auto;padding:12px 12px 240px;background:#fff;scroll-padding-bottom:240px}@supports (height: 100dvh){.app-shell{height:100dvh;min-height:100dvh}.app-shell__main{height:calc(100dvh - (65px + var(--safe-area-top)))}}.chat-row{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:flex-start}.plan-intro-row,.typing-row{align-items:flex-start}.chat-row .message-column,.typing-row .message-column{display:flex;width:100%}.message-column-user{justify-content:flex-end}.message-column-assistant{justify-content:flex-start}.plan-rail-stack{display:flex;gap:6px;min-width:0;align-self:stretch;height:100%}.plan-intro-row .plan-rail-stack,.typing-row .plan-rail-stack{align-self:stretch;height:100%}.plan-rail-slot{width:14px;min-height:100%;height:100%}.plan-rail{position:relative;width:14px;min-height:100%;height:100%;overflow:visible;--rail-connector: 28px}.plan-rail-line{position:absolute;left:50%;width:2px;transform:translate(-50%);background:#b9c1d4;opacity:.9;top:0;bottom:0}.plan-rail.plan-rail-extend-up:before,.plan-rail.plan-rail-extend-down:after{content:"";position:absolute;left:50%;width:2px;transform:translate(-50%);background:#b9c1d4;opacity:.9}.plan-rail.plan-rail-extend-up:before{top:calc(-1 * var(--rail-connector));height:var(--rail-connector)}.plan-rail.plan-rail-extend-down:after{bottom:calc(-1 * var(--rail-connector));height:var(--rail-connector)}.plan-rail-dot{position:absolute;width:7px;height:7px;border-radius:999px;background:var(--plan-rail-color, #8b95ad);left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #fff}.plan-rail-dot--task{width:9px;height:9px;background:#2563eb}.plan-rail-dot--end{width:9px;height:9px;border:2px solid #fff;box-shadow:0 0 0 1px #fff}.plan-rail.has-task .plan-rail-dot{background:#2563eb}.plan-rail.rail-color-0{--plan-rail-color: #2563eb}.plan-rail.rail-color-1{--plan-rail-color: #0ea5e9}.plan-rail.rail-color-2{--plan-rail-color: #8b5cf6}.plan-rail.rail-color-3{--plan-rail-color: #f97316}.plan-start-row{margin-bottom:4px}.plan-start-card{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;color:#1e40af;background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe}.plan-start-card.rail-color-0{color:#1e40af;background:linear-gradient(135deg,#eff6ff,#dbeafe);border-color:#bfdbfe}.plan-start-card.rail-color-1{color:#0369a1;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-color:#bae6fd}.plan-start-card.rail-color-2{color:#6d28d9;background:linear-gradient(135deg,#f5f3ff,#ede9fe);border-color:#ddd6fe}.plan-start-card.rail-color-3{color:#c2410c;background:linear-gradient(135deg,#fff7ed,#ffedd5);border-color:#fed7aa}.plan-start-icon{font-size:16px}.plan-start-text{text-transform:uppercase;letter-spacing:.03em}.plan-progress-row{margin-top:8px}.plan-progress-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;box-shadow:0 1px 3px #0000000d;min-width:220px;max-width:340px}.plan-progress-card.rail-color-0{border-left:3px solid #2563eb}.plan-progress-card.rail-color-1{border-left:3px solid #0ea5e9}.plan-progress-card.rail-color-2{border-left:3px solid #8b5cf6}.plan-progress-card.rail-color-3{border-left:3px solid #f97316}.plan-progress-card.plan-progress-completed{background:#f8fafc;border-color:#e2e8f0}.plan-progress-header{display:flex;align-items:center;gap:8px;margin-bottom:10px}.plan-progress-icon{font-size:18px;color:#3b82f6}.plan-progress-icon.done{color:#16a34a}.plan-progress-title{font-size:13px;font-weight:700;color:#0f172a;letter-spacing:.01em;flex:1}.plan-progress-status{font-size:11px;font-weight:600;color:#16a34a;text-transform:uppercase;letter-spacing:.04em}.plan-progress-tasks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.plan-progress-task{display:flex;align-items:center;gap:8px;font-size:13px;color:#475569}.plan-progress-task .task-check{font-size:18px;color:#cbd5e1}.plan-progress-task.done .task-check{color:#16a34a}.plan-progress-task.active .task-check{color:#3b82f6}.plan-progress-task.done .task-label{color:#64748b}.plan-progress-task.active .task-label{color:#1e293b;font-weight:500}.plan-badge-list{margin-top:10px;display:flex;flex-direction:column;gap:6px}.plan-badge{display:inline-flex;gap:8px;align-items:flex-start;padding:8px 10px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.plan-badge .material-icons{font-size:18px;color:#16a34a}.plan-badge-plan{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#0f172a}.plan-badge-label{font-size:13px;color:#334155}.plan-intro-card{background:#f1f5ff;border:1px solid #cbd5f5;border-radius:14px;padding:12px 14px}.plan-intro-row{margin-bottom:4px}.plan-intro-heading{font-size:13px;font-weight:700;color:#0f172a;letter-spacing:.02em;text-transform:uppercase}.plan-intro-steps{margin:8px 0 0;padding-left:18px;font-size:13px;color:#1e293b;line-height:1.35}.plan-intro-steps li+li{margin-top:4px}.chat-status-panel{position:sticky;top:0;z-index:4;background:#fff;border-bottom:1px solid #e5e7eb;padding:8px 12px 6px}.chat-status-heading{font-size:13px;font-weight:600;color:#0f172a;margin-bottom:4px}.chat-status-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.chat-status-step{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569}.chat-status-step .material-icons{font-size:16px}.chat-status-step.status-active .material-icons{color:#2563eb}.chat-status-step.status-done .material-icons{color:#16a34a}.chat-status-step.status-pending .material-icons{color:#9ca3af}.assistant-text{white-space:pre-wrap}.chat-input-area{padding:8px;border-top:1px solid #e5e7eb;background:#fafafa;position:sticky;bottom:0}.chat-composer-floating{position:absolute;left:12px;right:12px;bottom:24px;z-index:2}.chat-gradient-fade{position:absolute;left:0;right:0;bottom:0;height:260px;pointer-events:none;z-index:1;background:linear-gradient(to top,#fffffffa,#fffffff0 18%,#ffffffe0 30%,#ffffffc7,#fff9 60%,#ffffff52 78%,#fff0)}.composer-input{display:grid;grid-template-columns:1fr auto;gap:6px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 10px 30px #02061714;padding:8px 10px}.composer-input:hover{border-color:#b4b9c7;box-shadow:0 2px 12px #00000014,0 2px 4px #00000014}.composer-input:focus-within{border-color:#3b82f6;box-shadow:0 2px 12px #3b82f626,0 2px 4px #3b82f626}.composer-input textarea{border:none;outline:none;resize:none;min-height:36px;font-size:14px}.btn-send{width:36px;height:36px;border-radius:9999px;border:1px solid #e5e7eb;background:#eef2ff;color:#475569;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s,border-color .15s;position:relative}.btn-send.btn-typing{background:#f8fafc;border-color:transparent}.btn-send.btn-typing:hover{background:#f1f5f9}.btn-send.btn-typing .material-icons{font-size:16px;color:#64748b}.btn-send-spinner{position:absolute;top:0;right:0;bottom:0;left:0;border:2px solid #e2e8f0;border-top-color:#3b82f6;border-radius:9999px;animation:v2spin .8s linear infinite}.composer-actions{display:flex;flex-wrap:wrap;gap:12px;padding:8px 4px 0;margin-top:10px}.link-action{border:none;background:transparent;color:#6b7280;font-size:13px;display:inline-flex;align-items:center;gap:6px;cursor:pointer}.link-action:hover{color:#111827}.export-menu{position:relative;display:inline-flex}.export-trigger{display:inline-flex;align-items:center;gap:6px}.export-chevron{font-size:16px}.export-menu__panel{position:absolute;left:0;bottom:calc(100% + 8px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 14px 40px #0f172a1f;min-width:280px;padding:8px;z-index:12}.export-option{width:100%;border:none;background:transparent;display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:10px;cursor:pointer;text-align:left}.export-option:hover{background:#f8fafc}.export-option:disabled{opacity:.55;cursor:not-allowed}.export-texts{flex:1;min-width:0}.export-texts .title{font-size:13px;font-weight:700;color:#0f172a;line-height:1.3}.export-texts .desc{font-size:12px;color:#6b7280;line-height:1.45}.export-option .material-icons{font-size:18px;color:#475569;margin-top:1px}.export-option .spinner{width:14px;height:14px;border:2px solid #9ca3af;border-top-color:transparent;border-radius:50%;animation:v2spin .8s linear infinite;margin-left:auto;margin-top:2px}.file-upload-label{display:inline-flex;align-items:center;gap:6px;border:1px solid #e5e7eb;padding:6px 10px;border-radius:6px;background:#fff;cursor:pointer;margin-right:8px}.file-input-overlay{position:absolute;opacity:0;pointer-events:none}.btn{border:1px solid #e5e7eb;padding:6px 10px;border-radius:6px;background:#fff;cursor:pointer;margin-right:8px}.btn-primary{border:none;background:#2563eb;color:#fff;padding:6px 10px;border-radius:6px;cursor:pointer}.message-input-wrapper{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:8px}.message-input-wrapper textarea{width:100%;min-height:36px;resize:none;padding:8px;border:1px solid #e5e7eb;border-radius:6px}#layout-divider{position:relative;width:0;background:transparent;cursor:col-resize;flex:0 0 auto;z-index:5}#layout-divider:after{content:"";position:absolute;top:0;bottom:0;left:-6px;width:12px;background:transparent;pointer-events:auto;cursor:col-resize;touch-action:none}#layout-divider .divider-handle{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);width:6px;height:24px;background:#e5e7eb;border-radius:3px;cursor:col-resize}#layout-divider:hover .divider-handle{background:#9ca3af}.viewer-panel{overflow:hidden;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;position:relative;background:#fff;min-height:100%}.viewer-content{padding:0;width:100%;max-width:100%;overflow:hidden;flex:1 1 auto;min-height:0;box-sizing:border-box;display:flex;flex-direction:column}.viewer-wrapper{height:100%;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;min-width:0}.viewer-wrapper--sidebar{height:100%;flex:1;min-height:0;display:flex;flex-direction:row;overflow:hidden;background:#fff;min-width:0}.viewer-fullscreen-toggle{position:absolute;top:12px;right:16px;border:none;border-radius:4px;background:transparent;color:#374151;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:background .12s ease,color .12s ease}.viewer-fullscreen-toggle:hover{background:#0f172a14;color:#0f172a}.viewer-fullscreen-toggle .material-icons{font-size:20px}.viewer-panel:fullscreen,.viewer-panel.viewer-panel-fullscreen-active{background:#0f172a;padding:0;display:flex;align-items:stretch;justify-content:stretch;box-sizing:border-box}.viewer-panel.viewer-panel-fullscreen-active{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;z-index:9999}.viewer-panel:fullscreen .viewer-content,.viewer-panel.viewer-panel-fullscreen-active .viewer-content{background:#fff;border-radius:24px;box-shadow:none;height:100%;width:100%;max-width:none;padding:16px 20px 24px;box-sizing:border-box;position:relative}.viewer-panel:fullscreen .viewer-fullscreen-toggle,.viewer-panel.viewer-panel-fullscreen-active .viewer-fullscreen-toggle{top:24px;right:28px;background:transparent;color:#374151}.viewer-panel:fullscreen .viewer-fullscreen-toggle:hover,.viewer-panel.viewer-panel-fullscreen-active .viewer-fullscreen-toggle:hover{background:#0f172a14;color:#0f172a}.markdown-panel{background:#fff;border:none;border-radius:14px;box-shadow:0 8px 24px #02061714;max-width:980px;margin:0 auto;padding:24px 28px}.markdown-viewer-wrapper .markdown-panel{border:none}.markdown-viewer-wrapper:has(.outline-sidebar) .markdown-panel{border-left:1px solid #e5e7eb;border-top:none;border-right:none;border-bottom:none;margin:0 auto}.markdown-panel>:first-child{margin-top:0}.markdown-content{color:#111827}.markdown-content h1,.markdown-content h2,.markdown-content h3{font-family:Titillium Web,sans-serif;font-weight:700;color:#111827}.markdown-content h1{font-size:34px;line-height:1.2;margin:0 0 18px}.markdown-content h2{font-size:22px;margin:18px 0 10px}.markdown-content h3{font-size:18px;margin:16px 0 8px}.markdown-content p{margin:10px 0;color:#1f2937}.markdown-content ul,.markdown-content ol{margin:10px 0 10px 24px}.markdown-content blockquote{border-left:4px solid #e5e7eb;padding-left:12px;color:#374151;background:#fafafa}.markdown-content table{width:100%;border-collapse:collapse;margin:12px 0}.markdown-content th,.markdown-content td{border:1px solid #e5e7eb;padding:8px 10px}.markdown-content code{background:#f3f4f6;padding:2px 6px;border-radius:4px}.markdown-content hr{display:none}.markdown-content pre{background:#0c1324;color:#e2e8f0;padding:16px 18px;border-radius:10px;overflow:auto;font-family:SFMono-Regular,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;line-height:1.6;border:1px solid #111827;box-shadow:inset 0 1px #ffffff05}.markdown-content pre code{background:transparent;color:inherit;font-family:inherit;font-size:inherit}.markdown-viewer-wrapper{height:100%;flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:center;gap:12px;padding:0 18px;background:#fff}.markdown-viewer-wrapper:before{content:"";flex-shrink:0;width:16px}.markdown-viewer-wrapper:has(.outline-sidebar):before{display:none}.outline-sidebar{position:sticky;top:0;display:flex;flex-shrink:0;align-items:flex-start;justify-content:flex-end;padding:24px 0;align-self:flex-start;transition:width .2s ease}.outline-sidebar.collapsed{width:32px}.outline-sidebar.expanded{width:auto}.outline-toggle-btn{position:absolute;left:-30px;top:24px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:6px;color:#9ca3af;transition:color .15s ease,background .15s ease;z-index:10}.outline-toggle-btn:hover{color:#374151;background:#0000000f}.outline-toggle-btn .material-icons{font-size:20px}.outline-sidebar .outline-nav{display:flex;flex-direction:column;background:transparent;padding:4px 0;min-width:140px;max-width:180px;max-height:calc(100vh - 180px);overflow-y:auto;overflow-x:hidden;margin-left:8px;margin-right:4px;opacity:1;transform:translate(0);transition:opacity .2s ease,transform .2s ease,width .2s ease,min-width .2s ease}.outline-sidebar.collapsed .outline-nav{opacity:0;transform:translate(-10px);pointer-events:none;width:0;min-width:0;margin:0;padding:0;overflow:hidden}.outline-header{padding:4px 10px 8px;font-size:11px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.03em}.outline-item{display:block;padding:5px 10px;color:#6b7280;text-decoration:none;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:4px;transition:background .12s ease,color .12s ease}.outline-item:hover{background:#0000000f;color:#374151}.outline-item.level-1{font-weight:600;color:#4b5563}.outline-item.level-2{padding-left:18px;font-size:12px;color:#9ca3af}.outline-item.level-2:hover{color:#4b5563}.markdown-panel{position:relative;flex:1;min-width:0}.markdown-viewer-wrapper:after{content:"";flex-shrink:0;width:16px;transition:width .2s ease}.markdown-viewer-wrapper:has(.outline-sidebar.expanded):after{width:0}@media (max-width: 900px){.outline-sidebar{display:none}.markdown-viewer-wrapper:after{display:none}}.tabbed-markdown-sidebar{flex-shrink:0;width:200px;border-right:1px solid #e5e7eb;background:#f9fafb;overflow-y:auto}.tabbed-markdown-nav{display:flex;flex-direction:column;padding:12px 0}.tabbed-markdown-header{padding:8px 16px 12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.tabbed-markdown-tab{display:flex;align-items:center;gap:10px;padding:10px 16px;border:none;background:transparent;text-align:left;cursor:pointer;transition:all .15s ease;position:relative;--tab-accent: #2563eb;--tab-accent-contrast: #fff;--tab-accent-muted: #e5e7eb}.tabbed-markdown-tab:hover{background:#0000000a}.tabbed-markdown-tab.active{background:#fff;box-shadow:inset 3px 0 0 var(--tab-accent)}.tabbed-markdown-tab .tab-number{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--tab-accent-muted);color:#6b7280;font-size:11px;font-weight:600;flex-shrink:0}.tabbed-markdown-tab.active .tab-number{background:var(--tab-accent);color:var(--tab-accent-contrast)}.tabbed-markdown-tab.streaming .tab-number{background:#10b981;color:#fff}.tabbed-markdown-tab.has-color .tab-number{background:var(--tab-accent);color:var(--tab-accent-contrast)}.tabbed-markdown-tab .tab-title{flex:1;font-size:13px;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabbed-markdown-tab.active .tab-title{color:#1e3a5f;font-weight:500}.tabbed-markdown-tab .streaming-indicator{width:8px;height:8px;border-radius:50%;background:#10b981;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}.tabbed-markdown-panel{flex:1;overflow-y:auto;padding:24px 32px;min-width:0}.tabbed-markdown-content-header{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.tabbed-markdown-content-header h2{margin:0;font-size:20px;font-weight:600;color:#111827}.streaming-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:12px;background:#ecfdf5;color:#059669;font-size:11px;font-weight:500}.tabbed-markdown-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#9ca3af}.tabbed-markdown-empty .material-icons{font-size:48px;margin-bottom:12px;opacity:.5}.tabbed-markdown-empty p{font-size:14px;margin:0}@media (max-width: 768px){.tabbed-markdown-sidebar{width:60px}.tabbed-markdown-header,.tabbed-markdown-tab .tab-title{display:none}.tabbed-markdown-tab{justify-content:center;padding:12px}}#chat-column-container .chat-history{scrollbar-gutter:stable both-edges;overscroll-behavior:contain}.viewer-placeholder{color:#6b7280;min-height:200px;display:flex;align-items:center;justify-content:center}.viewer-placeholder__inner{display:inline-flex;align-items:center;gap:8px;font-size:18px;color:#6b7280}.artifact-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;cursor:pointer}.artifact-card:hover{background:#f1f5f9}.artifact-card__icon{font-family:Material Icons;font-size:18px;color:#475569}.artifact-card__content{flex:1;min-width:0}.artifact-card__title{font-size:13px;color:#334155;font-weight:600}.artifact-card__meta{font-size:12px;color:#64748b}.artifact-card__button{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:6px 10px;font-size:12px}.artifact-card__button[disabled]{opacity:.6;cursor:default}.artifact-card__error{margin-left:8px;color:#b91c1c;font-size:12px}.update-item{border:1px solid #e5e7eb;border-radius:8px;background:#fff;margin-bottom:10px}.update-header{padding:8px;border-bottom:1px solid #f1f5f9}.update-payload{padding:10px;margin:0}.menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000;display:flex;opacity:0;pointer-events:none;transition:opacity .3s ease;z-index:1000}.menu-overlay.active{background:#00000059;opacity:1;pointer-events:auto}.menu-panel{position:fixed;top:0;left:0;bottom:0;width:380px;max-width:86vw;padding-top:var(--safe-area-top);box-sizing:border-box;background:#fff;border-right:1px solid #e5e7eb;transform:translate(-100%);transition:transform .3s ease-in-out;box-shadow:16px 0 40px #0206172e;display:flex;flex-direction:column;overflow:hidden}.menu-panel.active{transform:translate(0)}.menu-header{display:flex;align-items:center;justify-content:space-between;height:60px;min-height:60px;padding:0 14px;border-bottom:1px solid #eef2f7;flex-shrink:0}.menu-title{font-family:Titillium Web,sans-serif;font-weight:700;font-size:18px;color:#0f172a}.menu-close{border:none;background:transparent;cursor:pointer;border-radius:8px;padding:6px;color:#475569}.menu-close:hover{background:#f1f5f9}.menu-content{padding:8px;flex:1;overflow-y:auto;min-height:0}.menu-item{display:block;padding:10px;border-radius:8px;color:#111827;text-decoration:none;font-size:15px}.menu-item:hover,.menu-item:focus{background:#f3f4f6;outline:none}.menu-section{margin-top:12px}.menu-section-title{display:flex;align-items:center;gap:8px;color:#6b7280;font-weight:700;font-size:13px;padding:6px}.recent-threads-list{list-style:none;padding:0 0 0 10px;margin:2px 0 10px;border-left:3px solid #e5e7eb}.recent-thread-item{padding:6px;border-radius:6px}.recent-thread-link{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;color:#111827;text-decoration:none}.recent-thread-link:hover .title{color:#0ea5e9}.recent-thread-icon{color:#009edb;font-size:20px;margin-top:1px}.recent-thread-texts{overflow:hidden}.recent-thread-texts .title{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-thread-texts .subtitle{font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-thread-empty,.recent-thread-error,.recent-thread-placeholder{padding:6px 8px;color:#6b7280;font-size:13px}html,body{background:#f8fafc;margin:0;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}body{overscroll-behavior:none}html:has(.app-shell),body:has(.app-shell){overflow:hidden;height:100%}body:has(.app-shell){position:fixed;width:100%}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:18px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.un-logo-navbar{height:28px;width:auto;vertical-align:middle;display:inline-block;margin-right:6px;object-fit:contain}#chat-column-container{container-type:inline-size;container-name:chat-column}@container chat-column (max-width: 520px){.link-action .label{display:none}.link-action{padding:8px;min-width:32px}}#chat-column-container .fade-in{animation:v2fadeIn .25s ease-in}@keyframes v2fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}#chat-column-container .message{padding:10px 14px;border-radius:18px;max-width:80%;line-height:1.5;word-wrap:break-word;box-shadow:0 1px 2px #0000000d}#chat-column-container .user-message{background:#009edb;color:#fff;border-bottom-right-radius:5px}#chat-column-container .ai-response,#chat-column-container .ai-message{background:#e9ecef;color:#212529;border-bottom-left-radius:5px}#chat-column-container .artifact-link{display:inline-block;padding:6px 12px;margin:4px 6px 0 0;background:#f8f9fa;border:1px solid #e9ecef;border-radius:12px;color:#495057;font-weight:500;font-size:.9rem;text-decoration:none;transition:all .2s ease}#chat-column-container .artifact-link:hover{background:#fff;color:#212529;transform:translateY(-1px);box-shadow:0 4px 12px #0000001a;border-color:#dee2e6;text-decoration:none}#chat-column-container .message .message-content{display:block}#chat-column-container .message .message-content p{margin:.4rem 0}#chat-column-container .message .message-content ul,#chat-column-container .message .message-content ol{margin:.5rem 0 .5rem 1.25rem;padding-left:1.25rem}#chat-column-container .message .message-content li{margin:.25rem 0}#chat-column-container .message .message-content ul ul,#chat-column-container .message .message-content ul ol,#chat-column-container .message .message-content ol ul,#chat-column-container .message .message-content ol ol{margin-left:1rem}#chat-column-container .message .message-content li>p{margin:.25rem 0}#chat-column-container .message .message-content hr{display:none}#chat-column-container .unified-shimmer-bubble{background:transparent;border:none;padding:0}#chat-column-container .typing-bubble{padding:8px 12px}#chat-column-container .typing-indicator{display:inline-flex;align-items:center;gap:6px;padding:0}#chat-column-container .typing-indicator .dot{width:6px;height:6px;background:#94a3b8;border-radius:9999px;animation:v2typing 1.3s infinite ease-in-out}#chat-column-container .typing-indicator .dot:nth-child(1){animation-delay:-.26s}#chat-column-container .typing-indicator .dot:nth-child(2){animation-delay:-.13s}#chat-column-container .typing-indicator .dot:nth-child(3){animation-delay:0s}@keyframes v2typing{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.home-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;overflow:auto;background:radial-gradient(1200px 600px at 20% -10%,#ffffffe6,#fff9 40%,#fff3,#fff0),linear-gradient(135deg,#eef2ff,#e0f2fe);padding:64px 20px 60px;--home-col-width: 980px}.home-hero{max-width:var(--home-col-width);margin:0 auto 22px;text-align:center}.home-brand{display:inline-flex;align-items:center;gap:12px;justify-content:center;margin:24px 0 10px}.home-brand span{font-family:Titillium Web,sans-serif;font-weight:700;font-size:42px;color:#009edb;letter-spacing:.2px}.un-logo-home{height:56px}.home-subtitle{color:#334155;margin-top:30px;font-size:22px;font-weight:700;text-align:center}.home-subtitle.examples{margin-top:16px;margin-bottom:8px}.home-composer{max-width:var(--home-col-width);margin:28px auto 0}.composer-input.large{position:relative;grid-template-columns:1fr;padding:16px;border-radius:22px;box-shadow:0 20px 60px #0206171a}.home-composer .attach-row{justify-content:flex-start;margin-top:14px}.home-composer .attach-actions{display:flex;align-items:center;gap:12px}.drag-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:none;align-items:center;justify-content:center;background:#0f172a59;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.drag-overlay.active{display:flex}.drag-overlay .drag-overlay-content{pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#fffffff2;border:2px dashed #94a3b8;border-radius:16px;padding:28px 36px;box-shadow:0 10px 30px #02061726;color:#334155;text-align:center}.drag-overlay .drag-overlay-content .material-icons{font-size:40px;color:#64748b}.drag-overlay .drag-overlay-content h3{margin:0;font-size:18px;font-weight:700}.drag-overlay .drag-overlay-content p{margin:0;font-size:13px;color:#64748b}.memory-search-input{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;font-size:13px;margin-bottom:8px;flex-shrink:0;box-sizing:border-box}.memory-search-input:focus{outline:none;border-color:#93c5fd}.memory-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1;min-height:0}.memory-list-empty{color:#9ca3af;font-size:13px;padding:12px 0;text-align:center}.memory-item{display:flex;align-items:flex-start;gap:8px;padding:8px;border-radius:8px;cursor:pointer}.memory-item:hover{background:#f8fafc}.memory-item.selected{background:#eff6ff}.memory-item input[type=checkbox]{margin-top:2px;accent-color:#2563eb}.memory-item-content{flex:1;min-width:0}.memory-item-title{font-size:13px;font-weight:500;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memory-item-preview{font-size:12px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memory-item-edit{display:flex;align-items:center;gap:4px}.memory-item-edit input{flex:1;border:1px solid #e5e7eb;border-radius:6px;padding:4px 8px;font-size:13px;min-width:0}.memory-item-actions{display:flex;gap:4px;opacity:0;transition:opacity .15s;flex-shrink:0}.memory-item:hover .memory-item-actions{opacity:1}.global-instructions-item{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;margin-bottom:8px}.global-instructions-item:hover{background:linear-gradient(135deg,#f1f5f9,#e2e8f0);border-color:#cbd5e1}.global-instructions-item .memory-item-actions{opacity:1}.global-instructions-hint{font-size:13px;color:#64748b;margin:0 0 12px;line-height:1.5}.memory-action-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#64748b;cursor:pointer;transition:all .15s ease}.memory-action-btn:hover{background:#f1f5f9;border-color:#cbd5e1;color:#334155}.memory-action-btn .material-icons{font-size:16px}.memory-action-btn.danger:hover{background:#fef2f2;border-color:#fecaca;color:#dc2626}.btn-small{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:8px 12px;cursor:pointer;font-size:13px}.btn-small.primary{background:#2563eb;border-color:#2563eb;color:#fff}.btn-small.primary:hover{background:#1d4ed8}.btn-small.primary:disabled{background:#93c5fd;border-color:#93c5fd;cursor:not-allowed}.btn-small:disabled{opacity:.6;cursor:not-allowed}.memory-header-row{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-shrink:0}.memory-header-row .memory-search-input{flex:1;margin-bottom:0}.memory-new-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;flex-shrink:0}.memory-editor-fullwidth{display:flex;flex-direction:column;height:100%;gap:12px;flex:1;min-height:0}.memory-editor{display:flex;flex-direction:column;height:100%;gap:12px}.memory-editor-title{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;font-size:15px;font-weight:600;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,sans-serif;color:#0f172a;box-sizing:border-box}.memory-editor-title:focus{outline:none;border-color:#93c5fd}.memory-editor-title:disabled{background:#f8fafc;color:#64748b}.memory-editor-body{flex:1;width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:12px;font-size:14px;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;color:#374151;resize:none;box-sizing:border-box;min-height:150px}.memory-editor-body:focus{outline:none;border-color:#93c5fd}.memory-editor-body:disabled{background:#f8fafc;color:#64748b}.memory-editor-actions{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0}.add-modal .menu-content{display:flex;flex-direction:column;gap:12px;overflow:hidden;flex:1}.add-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);height:400px;width:min(800px,95vw);border-radius:16px;border:1px solid #e5e7eb;box-shadow:0 18px 50px #0f172a2e;overflow:hidden;display:flex;flex-direction:column}.add-modal.active{transform:translate(-50%,-50%)}.add-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:0}.add-modal-pane{display:flex;flex-direction:column;min-height:0;overflow:hidden}.add-drop-zone{height:100%;border:1.5px dashed #cbd5e1;border-radius:14px;padding:16px;background:#f8fafc;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:all .12s ease;box-sizing:border-box}.add-drop-zone .material-icons{font-size:26px;color:#0ea5e9}.add-drop-zone .title{font-weight:700;color:#0f172a}.add-drop-zone .subtitle{font-size:13px;color:#475569}.add-drop-zone .actions{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap;font-size:12px;color:#475569}.add-drop-zone.dragging{border-color:#2563eb;background:#e0ecff;box-shadow:inset 0 0 0 1px #2563eb}.add-modal .section-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin:6px 2px 2px}.chips-hint{font-size:12px;color:#6b7280}.add-modal-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb}.add-modal-chips .attach-chip{max-width:100%}.add-modal-chips .attach-chip .name{max-width:180px}.memory-popover-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100}.memory-popover{position:absolute;bottom:100%;left:0;right:0;margin-bottom:8px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 10px 40px #0206171f;padding:14px 14px 12px;z-index:101}.memory-popover .memory-title-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}.memory-popover .memory-title-input{width:100%;border:none;outline:none;font-size:15px;font-weight:600;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,sans-serif;color:#0f172a;margin-bottom:10px}.memory-popover .memory-title-input::placeholder{color:#9ca3af;font-weight:400}.memory-popover .memory-content-input{width:100%;border:none;outline:none;resize:none;min-height:60px;font-size:14px;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;color:#374151}.memory-popover .memory-content-input::placeholder{color:#9ca3af}.memory-popover .memory-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding-top:10px;border-top:1px solid #f1f5f9}.memory-popover .memory-hint{font-size:12px;color:#9ca3af}.memory-popover .memory-error{font-size:12px;color:#dc2626}.memory-popover .memory-actions{display:flex;gap:8px}.memory-popover .btn-cancel{border:none;background:none;color:#64748b;font-size:13px;cursor:pointer;padding:6px 10px}.memory-popover .btn-cancel:hover{color:#374151}.memory-popover .btn-save{border:none;background:#2563eb;color:#fff;font-size:13px;font-weight:600;cursor:pointer;padding:6px 14px;border-radius:8px}.memory-popover .btn-save:hover{background:#1d4ed8}.memory-popover .btn-save:disabled{background:#93c5fd;cursor:not-allowed}.composer-input.large textarea{min-height:88px;font-size:18px;padding-right:64px;font-family:Titillium Web,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.4;transition:min-height .12s ease}.composer-input.large textarea:focus{min-height:140px}.composer-input.large .btn-send.home{position:absolute;right:12px;bottom:12px;width:44px;height:44px;border-radius:9999px;border:1px solid #e5e7eb;background:#eef2ff;color:#1f2937;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 18px #0206171f}.composer-input.large .btn-send.home:hover{background:#e0e7ff}.composer-input.large .btn-send.home:disabled{opacity:.5;cursor:not-allowed;background:#f1f5f9}.composer-input.large .btn-send.home:disabled:hover{background:#f1f5f9}.composer-hint{margin-top:6px;color:#6b7280;font-size:12px}.attach-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 2px 0}.attach-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.attach-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;border:1px solid #e5e7eb;background:#eef2ff;color:#334155;font-size:12px}.attach-chip .material-icons{font-size:16px;color:#64748b}.attach-chip .spinner{width:14px;height:14px;border:2px solid #9ca3af;border-top-color:transparent;border-radius:50%;animation:v2spin .8s linear infinite}.attach-chip .name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attach-chip .attach-remove{border:none;background:transparent;color:#64748b;display:inline-flex;align-items:center;cursor:pointer;padding:0}.attach-chip .attach-remove .material-icons{font-size:16px}@keyframes v2spin{to{transform:rotate(360deg)}}.attach-remove{border:none;background:transparent;color:#64748b;cursor:pointer;padding:0;display:inline-flex;align-items:center}.attach-actions{margin-left:auto}@media (max-width: 820px){.add-modal{width:min(640px,96vw);height:auto;max-height:80vh}.add-modal-grid{grid-template-columns:1fr;height:auto}.add-drop-zone{min-height:120px}.memory-list{max-height:180px}}.home-sections{max-width:var(--home-col-width);margin:16px auto 0;display:grid;gap:16px}.home-section{text-align:left}.home-section-title{color:#334155;font-size:16px;font-weight:700;margin:6px 0 8px;opacity:.9}.home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.home-card{text-align:left;display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;padding:12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;transition:all .18s ease;box-shadow:0 2px 8px #0206170d}.home-card:hover{transform:translateY(-2px);border-color:#d1d5db;box-shadow:0 10px 22px #02061714}.home-card.disabled,.home-card:disabled{cursor:not-allowed;opacity:.6;box-shadow:none;transform:none;border-color:#e5e7eb}.home-card.disabled:hover,.home-card:disabled:hover{transform:none;border-color:#e5e7eb;box-shadow:none}.home-card-icon .material-icons{font-size:20px;color:#667eea}.home-card-title{font-family:Titillium Web,sans-serif;font-weight:700;color:#111827;margin-bottom:2px;font-size:13px}.home-card-desc{font-family:Titillium Web,sans-serif;color:#6b7280;font-size:12.5px;line-height:1.35}.signin-gate-card{max-width:520px;margin:12px auto 0;padding:18px;border-radius:14px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 12px 28px #0f172a1f;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}.signin-gate-card p{margin:0;color:#1f2937;font-size:14px}.home-notice{max-width:var(--home-col-width);width:100%;box-sizing:border-box;margin:18px auto 0;padding:12px 14px;border-radius:10px;border:1px solid rgba(31,41,55,.12);background:#ffffffb8;color:#374151;font-size:13px}.composer-input textarea,.message-input-wrapper textarea,#user-input{font-family:Titillium Web,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.app-shell__main.chat-only{display:flex;background:#fff}.app-shell__main.chat-only #layout-divider,.app-shell__main.chat-only #display-panel-container{display:none}.app-shell__main.chat-only #chat-column-container{border-right:none;max-width:1100px;width:100%;margin:0 auto;flex:1 1 auto}.app-shell__main.chat-only .chat-history{padding-left:20px;padding-right:20px;background:transparent!important}.app-shell__main.chat-only .chat-composer-floating{left:20px;right:20px}@media (max-width: 640px){.app-shell__main.chat-only #chat-column-container{max-width:100%}}.deep-research-toggle{display:inline-flex;align-items:center;gap:8px;transition:all .2s ease;font-size:13px;padding:4px 8px;border-radius:999px}.deep-research-toggle.active{background:#3b82f614;border-color:transparent;color:#1d4ed8}.deep-research-toggle:not(.active):hover{background:#f8fafc}.deep-research-toggle .state-text{font-size:12px;color:#64748b}.deep-research-toggle.active .state-text{color:#1d4ed8}.deep-research-toggle .toggle-pill{position:relative;width:34px;height:18px;border-radius:999px;background:#e5e7eb;transition:all .2s ease;box-shadow:inset 0 0 0 1px #0000000a}.deep-research-toggle .pill-knob{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:999px;background:#fff;box-shadow:0 1px 3px #0003;transition:all .2s ease}.deep-research-toggle .toggle-pill.on{background:linear-gradient(135deg,#60a5fa,#2563eb)}.deep-research-toggle .toggle-pill.on .pill-knob{transform:translate(16px)}.deep-research-card{display:flex;gap:16px;padding:16px;background:linear-gradient(135deg,#eff6ff,#dbeafe);border:1px solid #bfdbfe;border-radius:12px;margin:12px 0;align-items:flex-start}.research-progress-circle{position:relative;width:56px;height:56px;flex-shrink:0}.research-progress-circle svg{display:block}.research-icon-inner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px;color:#3b82f6;animation:research-pulse 2s ease-in-out infinite}@keyframes research-pulse{0%,to{opacity:1}50%{opacity:.6}}.research-content{flex:1;min-width:0}.research-title{font-weight:600;font-size:14px;color:#1e40af;margin-bottom:4px}.research-subtitle{font-size:13px;color:#3b82f6;margin-bottom:8px}.research-timing{display:flex;gap:12px;font-size:12px;color:#6b7280;flex-wrap:wrap}.research-timing .elapsed{font-weight:500}.research-timing .remaining{color:#9ca3af}.research-cancel-btn{display:inline-flex;align-items:center;gap:4px;margin-top:10px;padding:6px 12px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#6b7280;font-size:12px;cursor:pointer;transition:all .15s ease}.research-cancel-btn:hover{background:#f3f4f6;border-color:#9ca3af;color:#374151}.research-cancel-btn .material-icons{font-size:14px}.web-search-card{display:flex;gap:12px;padding:12px 16px;background:linear-gradient(135deg,#f0f7ff,#e8f4ff);border:1px solid #d0e3ff;border-radius:12px;margin:8px 0;align-items:center}.search-icon-container{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#3b82f61a;border-radius:50%;flex-shrink:0}.web-search-card .search-icon{font-size:22px;color:#3b82f6;animation:search-pulse 1.5s ease-in-out infinite}@keyframes search-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.95)}}.web-search-card .search-content{flex:1;min-width:0}.web-search-card .search-title{font-weight:600;font-size:13px;color:#1e40af;margin-bottom:2px}.web-search-card .search-query{font-size:12px;font-style:italic;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.search-cancel-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:50%;background:transparent;color:#9ca3af;cursor:pointer;transition:all .15s ease;flex-shrink:0}.search-cancel-btn:hover{background:#0000000d;color:#6b7280}.search-cancel-btn .material-icons{font-size:18px}.citation-list{margin-top:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.citation-header{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;border:none;background:transparent;cursor:pointer;font-size:13px;font-weight:500;color:#475569;text-align:left;transition:background .15s ease}.citation-header:hover{background:#f1f5f9}.citation-icon{font-size:18px;color:#64748b}.citation-count{flex:1}.expand-icon{font-size:20px;color:#94a3b8;transition:transform .2s ease}.expand-icon.expanded{transform:rotate(180deg)}.citation-items{list-style:none;padding:0;margin:0;border-top:1px solid #e2e8f0}.citation-item{border-bottom:1px solid #e2e8f0}.citation-item:last-child{border-bottom:none}.citation-link{display:flex;align-items:center;gap:8px;padding:10px 12px;color:inherit;text-decoration:none;transition:background .15s ease}.citation-link:hover{background:#f1f5f9}.citation-number{font-size:11px;font-weight:600;color:#3b82f6;min-width:24px}.citation-title{flex:1;font-size:13px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.citation-domain{font-size:11px;color:#94a3b8;white-space:nowrap}.external-icon{font-size:14px;color:#cbd5e1}.citation-link:hover .external-icon{color:#3b82f6}.header-user-menu{margin-left:auto}.user-menu{position:relative;display:flex;align-items:center}.user-menu--loading{min-width:100px;justify-content:center}.user-menu__spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.user-menu__trigger{display:flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid #e5e7eb;border-radius:24px;background:#fff;cursor:pointer;transition:all .15s ease}.user-menu__trigger:hover{background:#f9fafb;border-color:#d1d5db}.user-menu__trigger:focus{outline:none;box-shadow:0 0 0 2px #3b82f64d}.user-menu__avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.user-menu__avatar--placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;font-size:12px;font-weight:600}.user-menu__name{font-size:14px;font-weight:500;color:#374151;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu__chevron{color:#6b7280;transition:transform .2s ease}.user-menu__chevron--open{transform:rotate(180deg)}.user-menu__dropdown{position:absolute;top:calc(100% + 8px);right:0;min-width:200px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 10px 25px #0000001a,0 4px 10px #0000000d;z-index:1000;overflow:hidden;animation:dropdown-in .15s ease}@keyframes dropdown-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.user-menu__header{padding:12px 16px;background:#f9fafb}.user-menu__header-name{font-size:14px;font-weight:600;color:#111827}.user-menu__header-email{font-size:12px;color:#6b7280;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu__divider{height:1px;background:#e5e7eb}.user-menu__item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 16px;border:none;background:none;font-size:14px;color:#374151;cursor:pointer;transition:background .15s ease;text-align:left}.user-menu__item:hover{background:#f3f4f6}.user-menu__item--logout{color:#dc2626}.user-menu__item--logout:hover{background:#fef2f2}.google-signin-button{display:flex;align-items:center;min-height:40px}.google-signin-loading{display:flex;align-items:center;justify-content:center;min-width:100px;padding:8px 16px}.google-signin-loading .loading-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}:root{--primary:#009edb;--primary-dark:#007bbf;--text:#2c3e50;--muted:#64748b;--bg:#f8fafc;--surface:#ffffff;--border:#e5e7eb;--accent:#e3f2fd;--radius:10px;--shadow-sm:0 1px 2px rgba(2,6,23,.06);--shadow-md:0 8px 24px rgba(2,6,23,.08)}.admin-shell{padding:0 16px 18px;background:var(--bg);color:var(--text);max-width:1400px;margin:0 auto;width:100%;box-sizing:border-box}.admin-shell *{box-sizing:border-box}.admin-toolbar{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:5}.admin-toolbar .crumbs{display:inline-flex;gap:8px;color:#334155;font-weight:700}.admin-toolbar .spacer{flex:1}.admin-tabs{display:flex;gap:4px;margin:10px 0 14px;border-bottom:1px solid var(--border)}.admin-tabs .tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:var(--muted);padding:10px 12px;cursor:pointer;font-weight:600;border-bottom:3px solid transparent;border-radius:0}.admin-tabs .tab:hover{color:var(--primary)}.admin-tabs .tab.active{color:var(--primary);border-bottom-color:var(--primary)}.admin-page{padding:12px 0 0;width:100%}.section{display:block}.toolbar-row{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.toolbar-row input,.toolbar-row select{border:1px solid var(--border);border-radius:10px;padding:8px 10px;background:var(--surface);height:36px}.toolbar-row button{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:8px 10px;cursor:pointer}.toolbar-row button:hover{border-color:#cbd5e1}.muted{color:var(--muted)}.card{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow-sm)}.card-head{background:var(--accent)}.row{border-top:1px solid var(--border)}.row.selected{background:#effaff}.grid-2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}.grid-settings{display:grid;grid-template-columns:220px minmax(0,1fr) minmax(0,1.4fr);gap:10px}.grid-instructions{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto 1fr;gap:10px;grid-template-areas:"sidebar toolbar" "sidebar editor"}.instr-sidebar{grid-area:sidebar}.instr-toolbar{grid-area:toolbar;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:10px;box-shadow:var(--shadow-sm)}.instr-toolbar .spacer{flex:1}.instr-editor{grid-area:editor}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.mod-card{border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-sm);display:flex;flex-direction:column}.mod-card .hdr{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--accent);font-weight:700;color:#334155}.mod-card .body{display:flex;flex-direction:column;gap:8px;padding:10px 12px}.mod-card .row{border-top:none}.mod-card .actions{display:flex;gap:8px;justify-content:flex-end;padding:8px 12px;border-top:1px solid var(--border)}.global-card{grid-column:1 / -1}.sidebar,.instr-sidebar{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:10px;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow-sm);min-width:220px}.sidebar-title{font-weight:700;color:#334155}.side-item{display:block;text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:10px 12px;margin-bottom:6px;cursor:pointer;transition:background .15s,border-color .15s,transform .06s}.side-item:hover{background:#f9fafb}.side-item.active{border-color:var(--primary);background:#effaff;box-shadow:inset 3px 0 0 var(--primary)}.divider{height:1px;background:var(--border);margin:6px 0}.danger{border:1px solid #fecaca;background:#fee2e2;color:#991b1b;border-radius:10px;padding:8px 10px;cursor:pointer}.primary{border:none;background:var(--primary);color:#fff;border-radius:10px;padding:8px 12px;cursor:pointer;box-shadow:var(--shadow-sm)}.primary:hover{background:var(--primary-dark)}.keylist{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:8px}.keylist-title{font-weight:700;color:#334155;margin-bottom:6px}.keylist-items{display:flex;flex-direction:column;gap:6px;max-height:340px;overflow:auto}.key-item{display:flex;gap:8px;align-items:center;justify-content:space-between;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:8px;text-align:left;cursor:pointer}.key-item .k{font-weight:700;color:#0f172a}.key-item .d{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%}.key-item.active{border-color:var(--primary);background:#effaff}.editor,.instr-editor{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-sm)}.editor textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px}.editor input{border:1px solid var(--border);border-radius:10px;padding:8px}.editor-header{display:flex;align-items:center;gap:8px}.editor-header .title{font-weight:700;color:#111827;font-size:20px}.switch-row input[type=checkbox]{margin-right:4px}.panel{border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-sm)}.panel-title{font-weight:700;color:#334155;margin-bottom:4px}.panel .actions-col{display:flex;flex-direction:column;gap:8px}.versions{max-height:200px;overflow:auto;border:1px dashed var(--border);border-radius:10px;padding:6px}.version-row{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #f1f5f9;padding:6px 2px}.version-row:last-child{border-bottom:none}.seg{display:flex;gap:6px}.seg-item{flex:1;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:6px 8px;cursor:pointer}.seg-item.active{border-color:var(--primary);background:#effaff}.pill{display:inline-block;border-radius:999px;padding:4px 10px;font-size:11px;border:1px solid var(--border);background:var(--accent)}.pill.on{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.pill.off{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.scroll{max-height:320px;overflow:auto}table thead th{background:var(--accent);font-weight:700;color:var(--text);font-size:12px;text-transform:uppercase;letter-spacing:.04em}table td{vertical-align:top}.admin-shell table{width:100%;border-collapse:collapse}.admin-shell table td,.admin-shell table th{word-break:break-word;overflow-wrap:anywhere}.admin-shell pre{max-width:100%;overflow:auto;display:block}.admin-shell img{max-width:100%;height:auto}@media (max-width: 1100px){.grid-settings{grid-template-columns:200px 1fr}.grid-instructions{grid-template-columns:1fr}}.radar-v3{font-family:Titillium Web,sans-serif}.radar-v3__body{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}.radar-v3__svg-container{flex:0 0 60%;width:60%;height:100%;position:relative;background:#fafafa;overflow:hidden;display:flex;align-items:center;justify-content:center;min-width:300px;touch-action:none}.radar-v3__svg{width:100%;height:100%;display:block}.radar-v3__sector-label{font-size:16px;font-weight:700;fill:#1e293b;font-family:Titillium Web,sans-serif;text-transform:uppercase;letter-spacing:.5px}.radar-v3__node{cursor:pointer;transition:all .2s ease}.radar-v3__node:hover{stroke-width:3;stroke:#333}.radar-v3__connection{transition:opacity .2s ease,stroke-width .2s ease}.radar-v3__tooltip{position:absolute;background:#1e40aff2;color:#fff;padding:10px 14px;border-radius:6px;font-size:13px;font-weight:500;pointer-events:none;z-index:9999;max-width:280px;white-space:normal;word-wrap:break-word;font-family:Titillium Web,sans-serif;box-shadow:0 4px 12px #0000004d;line-height:1.4}.radar-v3__tooltip strong{display:block;margin-bottom:2px}.radar-v3__tooltip span{font-size:11px;opacity:.9}.radar-v3__detail{width:40%;flex:0 0 40%;min-height:0;padding:20px;background:#f8fafc;border-left:1px solid #e2e8f0;overflow-y:auto;min-width:250px;box-sizing:border-box}.radar-v3__panel h4{margin:0 0 12px;font-size:20px;font-weight:600;color:#1e40af;font-family:Titillium Web,sans-serif}.radar-v3__badges{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.radar-v3__badges .badge{font-size:.75rem;font-weight:600;padding:6px 14px;border-radius:20px;border:none;text-transform:capitalize;letter-spacing:.3px;transition:all .2s ease;box-shadow:0 2px 4px #0000001a;display:inline-block;font-family:Titillium Web,sans-serif}.radar-v3__badges .badge-light{background:#f1f5f9;color:#475569}.radar-v3__badges .badge.type-risk{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;text-shadow:0 1px 2px rgba(15,23,42,.4);box-shadow:0 2px 8px #ef44444d}.radar-v3__badges .badge.type-opportunity{background:linear-gradient(135deg,#10b981,#059669);color:#fff;text-shadow:0 1px 2px rgba(15,23,42,.35);box-shadow:0 2px 8px #10b9814d}.radar-v3__badges .badge.type-trend{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;text-shadow:0 1px 2px rgba(15,23,42,.35);box-shadow:0 2px 8px #3b82f64d}.radar-v3__badges .badge.type-black-swan,.radar-v3__badges .badge.type-blackswan{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;text-shadow:0 1px 2px rgba(15,23,42,.35);box-shadow:0 2px 8px #8b5cf64d}.radar-v3__badges .badge:hover{transform:translateY(-1px)}.radar-v3__description{margin:0 0 12px;color:#475569;line-height:1.5;font-size:14px}.radar-v3__connections h6{margin:0 0 8px;font-size:13px;font-weight:600;color:#1e293b}.radar-v3__connections ul{margin:0;padding-left:18px;color:#475569;font-size:13px}.radar-v3__connections li{margin-bottom:4px}.radar-v3__placeholder{color:#94a3b8;padding:20px;font-size:14px;text-align:center}.radar-v3__divider{position:relative;height:1px;background:#e0e0e0;cursor:ns-resize;flex:0 0 auto;z-index:5;touch-action:none}.radar-v3__divider:after{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;background:transparent;pointer-events:auto;cursor:ns-resize;touch-action:none}.radar-v3__divider-handle{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:24px;height:6px;background:#e5e7eb;border-radius:3px;cursor:ns-resize;touch-action:none}.radar-v3__divider:hover .radar-v3__divider-handle{background:#9ca3af}.radar-v3__table{background:#f8f9fa;flex:0 0 auto;display:flex;flex-direction:column;overflow:hidden}.radar-v3__table-header{padding:12px 32px 12px 16px;font-weight:600;color:#1e293b;font-size:14px;border-bottom:1px solid #e0e0e0;font-family:Titillium Web,sans-serif;display:flex;justify-content:space-between;align-items:center}.radar-v3__filters{display:flex;gap:8px}.radar-v3__filter-dropdown{position:relative}.radar-v3__filter-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:500;color:#64748b;background:#fff;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;transition:all .15s ease;font-family:Titillium Web,sans-serif}.radar-v3__filter-btn:hover{background:#f8fafc;border-color:#cbd5e1}.radar-v3__filter-btn.active{background:#eff6ff;border-color:#3b82f6;color:#1e40af}.radar-v3__filter-menu{position:absolute;top:100%;right:0;margin-top:4px;min-width:160px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:100;padding:8px 0}.radar-v3__filter-option{display:flex;align-items:center;gap:10px;padding:8px 14px;font-size:13px;font-weight:500;color:#374151;cursor:pointer;transition:background .1s ease}.radar-v3__filter-option:hover{background:#f8fafc}.radar-v3__filter-option input[type=checkbox]{width:16px;height:16px;accent-color:#3b82f6;cursor:pointer}.radar-v3__filter-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.radar-v3__table-body{flex:1;overflow-y:auto;padding:8px 32px 8px 16px;display:flex;flex-direction:column;gap:6px}.radar-v3__card{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #0000000a}.radar-v3__card:hover{background-color:#f8fafc;transform:translateY(-2px);box-shadow:0 4px 12px #00000014;border-color:#cbd5e1}.radar-v3__card.active{background-color:#eff6ff;border-color:#3b82f6;box-shadow:0 4px 16px #3b82f626}.radar-v3__card-content{display:flex;gap:12px;align-items:center;min-width:0;flex:1}.radar-v3__card-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0;box-shadow:0 1px 3px #0003}.radar-v3__card-info{min-width:0}.radar-v3__card-title{font-weight:600;color:#1e293b;font-size:14px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.radar-v3__card-meta{color:#64748b;font-size:12px}.radar-v3__card-type{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:4px 10px;border-radius:12px;flex-shrink:0}.radar-v3__card-type.risk{background:#fef2f2;color:#dc2626}.radar-v3__card-type.opportunity{background:#f0fdf4;color:#16a34a}.radar-v3__card-type.trend{background:#eff6ff;color:#2563eb}.radar-v3__card-type.black-swan,.radar-v3__card-type.blackswan{background:#f5f3ff;color:#7c3aed}.radar-v3__card-type.default{background:#f3f4f6;color:#6b7280}.radar-v3__row{display:flex;flex-direction:column;padding:12px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s ease;box-shadow:0 1px 3px #0000000a;gap:6px}.radar-v3__row:hover{background-color:#f8fafc;transform:translateY(-2px);box-shadow:0 4px 12px #00000014;border-color:#cbd5e1}.radar-v3__row.active{background-color:#eff6ff;border-color:#3b82f6;box-shadow:0 4px 16px #3b82f626}.radar-v3__row-title{display:flex;gap:10px;align-items:center;min-width:0;width:100%}.radar-v3__row-title .dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;box-shadow:0 1px 2px #0003}.radar-v3__row-title .title{font-weight:600;color:#1e293b;font-size:14px;line-height:1.3;flex:1;min-width:0}.radar-v3__row-desc{color:#64748b;font-size:13px;line-height:1.4;padding-left:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.radar-v3__row-sources{display:flex;flex-wrap:wrap;gap:6px;padding-left:20px;margin-top:4px}.radar-v3__source-link{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:11px;color:#2563eb;background:#eff6ff;border-radius:4px;text-decoration:none;transition:all .15s ease;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.radar-v3__source-link:hover{background:#dbeafe;color:#1d4ed8}.radar-v3__source-link:before{content:"🔗";font-size:9px}.radar-v3__row-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-left:20px;width:100%;box-sizing:border-box}.radar-v3__row-meta .meta{color:#64748b;font-size:12px;white-space:nowrap}.radar-v3__row-type{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}@media (max-width: 992px){.radar-v3__body{flex-direction:column}.radar-v3__svg-container{width:100%;height:60%;min-height:300px}.radar-v3__detail{width:100%;height:40%;border-left:none;border-top:1px solid #e2e8f0;min-height:200px}}@media (max-width: 768px){.radar-v3__svg-container{min-width:250px;min-height:250px}.radar-v3__detail{min-width:200px;padding:15px}.radar-v3__table-body,.radar-v3__row,.radar-v3__card{padding:10px 12px}}.scenario-frames-panel{padding:16px}.scenario-content-container{flex-grow:1;overflow-y:auto}.scenario-frames-panel .uncertainty-pairs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.scenario-frames-panel .btn{border-radius:999px;border:1px solid #cbd5e1;background:#fff;padding:4px 12px;font-size:.85rem;color:#334155;cursor:pointer;transition:all .2s ease}.scenario-frames-panel .btn:hover{border-color:#009edb;color:#009edb}.scenario-frames-panel .btn.active{background:#009edb;border-color:#009edb;color:#fff}.scenario-frames-panel .btn-outline-secondary{border-color:#cbd5e1;color:#334155}.scenario-frames-panel .btn-outline-secondary.active{background:#009edb;border-color:#009edb;color:#fff}.matrix-display{background:#fff;max-width:1100px;margin:12px auto 0;display:flex;justify-content:center}.scenario-matrix{max-width:1100px;margin:16px auto 28px;width:100%}.scenario-matrix .matrix-title-x{text-align:center;font-weight:600;margin:0 0 12px;color:#0f172a;display:block;padding-left:70px}.scenario-matrix .matrix-layout{display:flex;gap:12px;align-items:stretch}.scenario-matrix .matrix-title-y-container{display:flex;align-items:center;justify-content:center;padding-right:10px}.scenario-matrix .matrix-title-y{writing-mode:vertical-rl;transform:rotate(180deg);font-weight:600;text-align:center;color:#0f172a;line-height:1.3;white-space:nowrap}.scenario-matrix .matrix-quadrant-grid{flex-grow:1;display:grid;grid-template-columns:50px 1fr 1fr;grid-template-rows:auto 1fr 1fr;gap:6px;position:relative;border-left:1px solid #d1d5db;padding-left:10px;min-height:260px}.matrix-label-x-low{grid-row:1;grid-column:2;align-self:end;padding-bottom:4px}.matrix-label-x-high{grid-row:1;grid-column:3;align-self:end;padding-bottom:4px}.matrix-label-y-high{grid-row:2;grid-column:1;writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;justify-content:center;align-self:center;padding-right:4px;width:50px;max-height:320px;line-height:1.2;white-space:normal;text-align:center;font-size:.75rem;word-wrap:break-word;overflow-wrap:break-word}.matrix-label-y-low{grid-row:3;grid-column:1;writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;justify-content:center;align-self:center;padding-right:4px;width:50px;max-height:320px;line-height:1.2;white-space:normal;text-align:center;font-size:.75rem;word-wrap:break-word;overflow-wrap:break-word}.scenario-matrix .matrix-outline{grid-column:2 / 4;grid-row:2 / 4;border:3px solid #90a4ae;border-radius:10px;pointer-events:none;z-index:2}.scenario-matrix .matrix-label{text-align:center;font-size:.8rem;color:#555;padding:2px;position:relative;z-index:3;background:#fff}.scenario-matrix .matrix-label-y-high,.scenario-matrix .matrix-label-y-low{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;justify-content:center;align-self:center;line-height:1.2;padding-right:4px;width:50px;max-height:320px;white-space:normal;text-align:center;font-size:.75rem;word-wrap:break-word;overflow-wrap:break-word}.scenario-matrix .matrix-quadrant{border:1px solid #e0e0e0;border-radius:6px;background-color:#f9f9f9;padding:10px;font-size:.9rem;position:relative;z-index:1;display:flex;flex-direction:column}.scenario-matrix .matrix-quadrant h4{font-size:.95rem;color:#009edb;margin:0 0 5px}.scenario-matrix .matrix-quadrant p{margin:0;line-height:1.35;color:#374151}.scenario-matrix .quadrant-top-left{grid-column:2;grid-row:2}.scenario-matrix .quadrant-top-right{grid-column:3;grid-row:2}.scenario-matrix .quadrant-bottom-left{grid-column:2;grid-row:3}.scenario-matrix .quadrant-bottom-right{grid-column:3;grid-row:3}.progression-container{margin-top:16px;display:flex;flex-direction:column;gap:12px}.progression-stage{border:1px solid #e0e0e0;border-radius:6px;padding:12px;background:#fff}.progression-stage h4{margin:0 0 8px;font-size:1rem;display:flex;align-items:center;gap:8px;color:#1f2937}.stage-type-badge{display:inline-block;padding:3px 10px;font-size:.75rem;border-radius:999px;color:#fff;text-transform:capitalize}.stage-type-badge.baseline{background:#6c757d}.stage-type-badge.marginal{background:#0d6efd}.stage-type-badge.adaptive{background:#198754}.stage-type-badge.radical{background:#dc3545}.progression-stage p{margin:0;color:#4b5563}#sf-stories-block .list-group{border:1px solid #e5e7eb;border-radius:8px;background:#fff;list-style:none;margin:0;padding:0}.scenario-story-card{border:none;border-bottom:1px solid #edf2f7;padding:16px}.scenario-story-card:last-child{border-bottom:none}.scenario-story-topic h6{color:#0f172a}.scenario-story-topic p{color:#4b5563}.scenario-frames-panel .badge{border-radius:999px;font-size:.75rem;padding:4px 10px;background:#e2e8f0;color:#334155}.scenario-frames-panel .badge.bg-secondary{background:#6c757d;color:#fff}.text-muted{color:#6b7280!important}.shimmer{position:relative;overflow:hidden;background:linear-gradient(90deg,#e5e7eb 25%,#f8fafc,#e5e7eb 75%);background-size:200% 100%;animation:scenarioShimmer 1.3s ease-in-out infinite}@keyframes scenarioShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.pill-shimmer-row{display:flex;gap:8px;flex-wrap:wrap}.pill-shimmer{display:inline-block;height:28px;border-radius:999px;min-width:110px}.pill-shimmer-short{width:130px}.pill-shimmer-medium{width:170px}.progression-shimmer{border:1px solid #e0e0e0;border-radius:6px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:10px}.shimmer-line{width:92%;height:10px;border-radius:8px}.shimmer-line-title{width:40%;height:12px}.canvas-cards-layout{display:flex;flex-direction:column;height:100%;min-height:0;gap:0}.canvas-cards-layout__canvas{flex:1 1 0;min-height:160px;background:transparent;overflow:hidden;touch-action:none}.canvas-cards-layout__divider{position:relative;height:1px;background:#e5e7eb;cursor:ns-resize;flex:0 0 auto;z-index:5;margin-top:-1px;touch-action:none}.canvas-cards-layout__divider:after{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;background:transparent;pointer-events:auto;cursor:ns-resize;touch-action:none}.canvas-cards-layout__handle{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:28px;height:6px;background:#cbd5e1;border-radius:999px;cursor:ns-resize;box-shadow:0 1px 2px #00000014;touch-action:none}.canvas-cards-layout__divider:hover .canvas-cards-layout__handle,.canvas-cards-layout__divider.dragging .canvas-cards-layout__handle{background:#94a3b8}.canvas-cards-layout__cards{flex:0 0 auto;min-height:120px;max-height:none;display:flex;flex-direction:column;overflow:hidden;background:transparent;border:none;border-radius:0;box-shadow:none}.timeline-v3{background:#f8fafc}.timeline-v3__content{flex:1 1 auto;display:flex;flex-direction:column;gap:12px;overflow:hidden;padding:0 12px 12px;box-sizing:border-box}.timeline-v3__chart-wrapper{position:relative;flex:1 1 auto;min-height:260px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0f172a0a;padding:8px;box-sizing:border-box}.timeline-v3__header{padding:12px 16px 8px;flex-shrink:0}.timeline-v3__title{margin:0 0 4px;color:#0f172a;font-size:1.1rem}.timeline-v3__desc{margin:0;color:#475569;font-size:13px;white-space:pre-wrap}.timeline-v3__frame{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0;background:#fff;overflow:hidden;flex:1 1 auto;min-height:220px;min-width:0;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0f172a0a}.timeline-v3__gutter-wrap{background:linear-gradient(180deg,#f8fafc,#fff);border-right:1px solid #e2e8f0;position:relative}.timeline-v3__gutter{display:block}.timeline-v3__scroll{position:relative;overflow-x:auto;overflow-y:hidden;background:#fff;min-width:0;padding:12px 12px 16px 0;box-sizing:border-box;touch-action:pan-x}.timeline-v3__svg{display:block}.timeline-v3__tooltip{position:absolute;pointer-events:none;background:#0f172aeb;color:#f8fafc;padding:8px 10px;border-radius:8px;font-size:12px;box-shadow:0 10px 28px #0f172a40;opacity:0;transform:translate(-50%,-110%);transition:opacity .12s ease;z-index:100}.timeline-v3__controls{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:8px 16px;background:#f8fafc;flex-shrink:0}.control-group{display:flex;align-items:center;gap:8px}.control-label{font-size:12px;color:#475569;font-weight:600}.pill-group{display:flex;gap:6px;flex-wrap:wrap}.pill{border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:4px 10px;border-radius:6px;font-size:12px;cursor:pointer;transition:all .15s ease}.pill.active{background:#0ea5e9;border-color:#0ea5e9;color:#fff;box-shadow:0 4px 12px #0ea5e933}.timeline-v3__select{padding:4px 8px;border:1px solid #cbd5e1;border-radius:6px;font-size:12px;color:#0f172a;background:#fff;cursor:pointer}.timeline-v3__select:focus{outline:none;border-color:#0ea5e9}.control-hint{font-size:11px;color:#64748b;font-style:italic}.timeline-v3__date-summary{margin-left:auto}.timeline-v3__date-value{font-weight:600;color:#0f172a;font-size:13px}.timeline-v3__date-hint{font-size:12px;color:#64748b}.timeline-v3__events{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}.timeline-v3__events-title{font-weight:700;color:#0f172a;font-size:13px;padding:8px 16px 6px;flex-shrink:0}.timeline-v3__events-scroll{display:flex;flex-direction:column;gap:4px;overflow-y:auto;padding:0 8px 8px;flex:1 1 auto}.timeline-v3__event{display:grid;grid-template-columns:140px 1fr auto;gap:12px;align-items:center;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .15s ease;width:100%}.timeline-v3__divider{position:relative;height:1px;background:#e0e0e0;cursor:ns-resize;flex:0 0 auto;z-index:5}.timeline-v3__divider:after{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;background:transparent;pointer-events:auto;cursor:ns-resize;touch-action:none}.timeline-v3__divider-handle{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:24px;height:6px;background:#e5e7eb;border-radius:3px;cursor:ns-resize}.timeline-v3__divider:hover .timeline-v3__divider-handle,.timeline-v3__divider.dragging .timeline-v3__divider-handle{background:#9ca3af}.timeline-v3__cards{flex:0 0 auto;min-height:140px;max-height:600px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 12px #0f172a0a;padding:4px 4px 8px;box-sizing:border-box}.timeline-v3__event.is-selected{border-color:#0ea5e9;background:#f0f9ff}.timeline-v3__event:hover{border-color:#cbd5e1;background:#fafafa}.timeline-v3__event-lane{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}.timeline-v3__event-lane .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.timeline-v3__event-main{display:flex;align-items:center;gap:8px}.timeline-v3__event-label{font-weight:600;color:#0f172a;font-size:13px}.timeline-v3__event-date{font-size:12px;color:#475569;text-align:right}.timeline-v3__event-desc{grid-column:1 / -1;font-size:12px;color:#64748b;margin-top:4px}.badge{background:#0ea5e9;color:#fff;border-radius:999px;font-size:10px;padding:2px 6px;flex-shrink:0}.lane-chip{display:inline-flex;align-items:center;gap:6px;font-weight:600}.lane-chip .dot{width:10px;height:10px;border-radius:50%}.pathways-v3{display:flex;flex-direction:column;height:100%;min-height:0;gap:0;background:#f8fafc}.pathways-v3__empty{padding:12px;color:#64748b}.pathways-v3__canvas{flex:0 0 auto;min-height:200px;display:flex;flex-direction:column;overflow:hidden;padding:16px 16px 0;background:#f8fafc}.pathways-v3__title{margin:0 0 12px;padding-top:8px;font-size:18px;font-weight:700;color:#0f172a}.pathways-v3__chart-wrapper{flex:1;min-height:0;position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.pathways-v3__d3-container{width:100%;height:100%;position:relative}.pathways-v3__divider{position:relative;height:1px;background:#e5e7eb;cursor:ns-resize;flex:0 0 auto;z-index:5;margin:12px 16px;touch-action:none}.pathways-v3__divider:after{content:"";position:absolute;left:0;right:0;top:-6px;height:14px;background:transparent;pointer-events:auto;cursor:ns-resize;touch-action:none}.pathways-v3__handle{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:32px;height:6px;background:#cbd5e1;border-radius:999px;cursor:ns-resize;box-shadow:0 1px 2px #00000014;touch-action:none;transition:background .15s ease}.pathways-v3__divider:hover .pathways-v3__handle,.pathways-v3__divider.dragging .pathways-v3__handle{background:#94a3b8}.pathways-v3__cards{flex:0 0 auto;min-height:140px;display:flex;flex-direction:column;overflow:hidden;padding:0 16px 16px}.pathways-v3__cards-inner{flex:1;overflow-y:auto;overflow-x:hidden}.pathways-v3__timeline-group{margin-bottom:10px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}.pathways-v3__timeline-group--focused{border-color:#94a3b8;box-shadow:0 2px 8px #0000000f}.pathways-v3__timeline-header{padding:8px 12px;background:#f8fafc;display:flex;align-items:center;justify-content:space-between}.pathways-v3__timeline-label{display:flex;align-items:center;gap:8px}.pathways-v3__timeline-dot{width:10px;height:10px;border-radius:999px;flex-shrink:0}.pathways-v3__timeline-name{font-weight:700}.pathways-v3__events{padding:12px}.pathways-v3__event-card{border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;margin-bottom:8px;background:#fff;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.pathways-v3__event-card:last-child{margin-bottom:0}.pathways-v3__event-card:hover,.pathways-v3__event-card--highlighted{background:#f8fafc}.pathways-v3__event-title{font-weight:700;margin-bottom:4px}.pathways-v3__event-year{font-size:12px;color:#475569;margin-bottom:4px}.pathways-v3__event-desc{font-size:13px;color:#1e293b;line-height:1.4}.d3-graph-tooltip{position:absolute;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #64748b;border-radius:8px;padding:10px 12px;box-shadow:0 4px 12px #00000026;max-width:280px;z-index:100;pointer-events:none;transform:translate(-50%,-100%) translateY(-12px);animation:tooltipFadeIn .15s ease-out}@keyframes tooltipFadeIn{0%{opacity:0;transform:translate(-50%,-100%) translateY(-8px)}to{opacity:1;transform:translate(-50%,-100%) translateY(-12px)}}.d3-graph-tooltip .tooltip-title{font-weight:600;font-size:.9rem;color:#0f172a;margin-bottom:4px}.d3-graph-tooltip .tooltip-tags{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px}.d3-graph-tooltip .tooltip-tag{display:inline-block;padding:2px 6px;font-size:.7rem;background:#f1f5f9;color:#475569;border-radius:3px}.d3-graph-tooltip .tooltip-desc{font-size:.8rem;color:#64748b;line-height:1.4}.d3-graph-v3__empty{padding:24px;color:#64748b;text-align:center}.d3-graph-v3__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e2e8f0;gap:16px;flex-wrap:wrap;flex-shrink:0}.d3-graph-v3__header h3{margin:0;font-size:1.1rem;font-weight:600;color:#0f172a}.d3-graph-v3__legend{display:flex;gap:16px;flex-wrap:wrap}.d3-graph-v3__legend .legend-item{display:flex;align-items:center;gap:6px;font-size:.85rem;color:#475569}.d3-graph-v3__legend .legend-swatch{width:12px;height:12px;border-radius:3px}.d3-graph-v3__content{flex:1;display:flex;flex-direction:column;overflow:hidden;gap:12px}.d3-graph-v3__chart-wrapper{position:relative;z-index:2;background:#f8fafc;padding:16px 16px 8px;flex:1 1 0;min-height:240px;border:1px solid #e2e8f0;border-radius:12px 12px 0 0;border-bottom:1px solid #e2e8f0;box-shadow:0 4px 12px #0f172a0f;margin-bottom:0}.d3-graph-v3__chart{position:relative;overflow:hidden;width:100%;height:100%;touch-action:none}.d3-graph-v3__chart svg{display:block;width:100%;max-width:100%}.d3-graph-v3__divider{position:relative;height:1px;background:#e5e7eb;cursor:ns-resize;flex:0 0 auto;z-index:5;margin-top:-1px;margin-bottom:0}.d3-graph-v3__divider:after{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;background:transparent;pointer-events:auto;cursor:ns-resize;touch-action:none}.d3-graph-v3__divider-handle{position:absolute;left:50%;top:0;transform:translate(-50%,-50%);width:28px;height:6px;background:#cbd5e1;border-radius:999px;cursor:ns-resize;box-shadow:0 1px 2px #00000014}.d3-graph-v3__divider:hover .d3-graph-v3__divider-handle,.d3-graph-v3__divider.dragging .d3-graph-v3__divider-handle{background:#94a3b8}.d3-graph-node{cursor:pointer}.d3-graph-node:hover circle{filter:drop-shadow(0 2px 4px rgba(0,0,0,.2))}.d3-graph-label{font-size:11px;fill:#1e293b;pointer-events:none;-webkit-user-select:none;user-select:none}.d3-graph-v3__cards-below{flex:0 0 auto;min-height:120px;max-height:620px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:0;border-radius:0;box-shadow:none;padding-top:0;width:100%;box-sizing:border-box}.d3-graph-v3__cards-scroll{flex:1;overflow-y:auto;padding:16px}.horizon-group{margin-bottom:16px}.horizon-group:last-child{margin-bottom:0}.horizon-header{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f8fafc;border-radius:8px 8px 0 0;border:1px solid #e2e8f0;border-bottom:none;border-left:4px solid #64748b}.horizon-dot{width:10px;height:10px;border-radius:50%}.horizon-label{font-weight:600;font-size:.9rem;color:#1e293b}.horizon-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:0 0 8px 8px}.d3-graph-v3__card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e2e8f0;border-left:4px solid #64748b;border-radius:8px;padding:12px;cursor:pointer;transition:all .15s ease}.d3-graph-v3__card:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0000000f}.d3-graph-v3__card.is-selected{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f;background:#f8fafc}.d3-graph-v3__card .card-title{font-weight:600;color:#0f172a;margin-bottom:6px;font-size:.95rem}.d3-graph-v3__card .card-meta{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px}.d3-graph-v3__card .chip{display:inline-block;padding:2px 8px;font-size:.75rem;background:#f1f5f9;color:#475569;border-radius:4px}.d3-graph-v3__card .card-desc{font-size:.85rem;color:#64748b;line-height:1.4}.d3-graph-v3__card .card-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}.d3-graph-v3__card .card-source-link{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;font-size:.75rem;color:#2563eb;background:#eff6ff;border-radius:4px;text-decoration:none;transition:all .15s ease;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d3-graph-v3__card .card-source-link:hover{background:#dbeafe;color:#1d4ed8}.d3-graph-v3__card .card-source-link:before{content:"🔗";font-size:.65rem}.d3-graph-v3__content--force .d3-graph-v3__chart-wrapper{flex:1 1 auto;min-height:300px;overflow:hidden}.d3-graph-v3__content--force .d3-graph-v3__chart{height:100%}.d3-graph-v3__content--force .d3-graph-v3__chart svg{width:100%;height:100%;cursor:grab}.d3-graph-v3__content--force .d3-graph-v3__chart svg:active{cursor:grabbing}@media (max-width: 640px){.horizon-cards{grid-template-columns:1fr}.d3-graph-v3__legend{gap:8px}.d3-graph-v3__legend .legend-item{font-size:.75rem}}
