@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,500&family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap";.chat-panel{position:fixed;top:56px;left:0;bottom:0;width:418px;background:var(--surface);border-right:1px solid var(--border);display:none;flex-direction:column;z-index:50}.chat-panel.open{display:flex}.chat-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.chat-header-left{display:flex;align-items:center;gap:8px}.chat-status-dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.chat-title{font-size:12px;font-weight:600;color:var(--text);letter-spacing:.5px}.chat-header-actions{display:flex;gap:4px}.chat-header-btn{background:transparent;border:none;cursor:pointer;font-size:16px;color:var(--text-muted);padding:4px 6px;border-radius:4px;transition:background .12s}.chat-header-btn:hover{background:var(--surface-alt)}.chat-messages{flex:1;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:4px}.chat-load-more-indicator{text-align:center;font-size:11px;color:var(--text-muted);padding:6px 0 10px;opacity:.7}.chat-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 28px;gap:6px}.chat-empty-icon{color:var(--accent);opacity:.5;margin-bottom:2px}.chat-empty-title{font-size:13px;font-weight:600;color:var(--text-secondary);margin:0}.chat-empty-subtitle{font-size:12px;color:var(--text-muted);line-height:1.55;margin:0;max-width:260px}.chat-msg{display:flex;gap:5px;margin-bottom:12px;align-items:flex-start}.chat-msg.user{flex-direction:row-reverse}.chat-msg-avatar{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.chat-msg-avatar svg{width:12px;height:12px}.chat-msg-avatar.user{background:var(--accent-light);color:var(--accent)}.chat-msg-avatar.ai{background:var(--accent);color:var(--on-accent, #fff)}.chat-msg-bubble{flex:1;min-width:0;padding:9px 11px;border-radius:12px;font-size:13px;line-height:1.55;word-break:break-word}.chat-msg.user .chat-msg-bubble{background:var(--accent-light);color:var(--text);border-bottom-right-radius:4px;white-space:pre-wrap}.chat-msg.ai .chat-msg-bubble{background:var(--surface);color:var(--text);border:1px solid var(--border-light);border-bottom-left-radius:4px}.chat-msg-markdown{display:flex;flex-direction:column;gap:0;overflow-x:auto;-webkit-overflow-scrolling:touch}.stream-pulse-a{animation:streamPulseA .2s ease-out both}.stream-pulse-b{animation:streamPulseB .2s ease-out both}@keyframes streamPulseA{0%{opacity:.55}to{opacity:1}}@keyframes streamPulseB{0%{opacity:.55}to{opacity:1}}.chat-msg-markdown>*+*{margin-top:10px}.chat-msg-markdown p{margin:0;line-height:1.55}.chat-msg-markdown strong{font-weight:650}.chat-msg-markdown em{font-style:italic}.chat-msg-markdown ul,.chat-msg-markdown ol{margin:4px 0;padding-left:18px}.chat-msg-markdown li{margin:2px 0;line-height:1.5}.chat-msg-markdown li+li{margin-top:2px}.chat-msg-markdown h1,.chat-msg-markdown h2,.chat-msg-markdown h3,.chat-msg-markdown h4{font-weight:650;line-height:1.3;margin:6px 0 2px;color:var(--text)}.chat-msg-markdown h1{font-size:14px}.chat-msg-markdown h2{font-size:13.5px}.chat-msg-markdown h3{font-size:13px}.chat-msg-markdown h4{font-size:12.5px}.chat-msg-markdown code{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:11.5px;background:#00000012;padding:1px 5px;border-radius:3px}.chat-msg-markdown pre{background:#00000012;border-radius:var(--radius-sm);padding:10px 12px;overflow-x:auto;margin:4px 0}.chat-msg-markdown pre code{background:none;padding:0;font-size:11.5px;line-height:1.5}.chat-msg-markdown blockquote{margin:4px 0;padding:4px 10px;border-left:3px solid var(--accent);color:var(--text-secondary);font-style:italic}.chat-msg-markdown a{color:var(--accent);text-decoration:underline}.chat-source-mention-link{display:inline;color:var(--accent);background:var(--accent-light);padding:1px 6px;border-radius:8px;font-size:.9em;font-weight:500;cursor:pointer;transition:background .12s;word-break:break-word;overflow-wrap:anywhere}.chat-source-mention-link:hover{background:var(--accent);color:var(--on-accent, #fff);text-decoration:underline}.chat-msg-markdown hr{border:none;border-top:1px solid var(--border);margin:8px 0}.chat-msg-markdown table{border-collapse:collapse;width:100%;font-size:12px}.chat-msg-markdown th,.chat-msg-markdown td{border:1px solid var(--border);padding:4px 8px;text-align:left}.chat-msg-markdown th{background:var(--surface-alt);font-weight:600}.chat-source-refs{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid var(--border-light)}.chat-source-ref{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--accent);background:var(--accent-light);padding:2px 8px;border-radius:10px;cursor:pointer;transition:background .12s}.chat-source-ref:hover{background:#d6dffb}.chat-apply-btn{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 12px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);font-size:12px;font-weight:500;cursor:pointer;transition:background .15s}.chat-apply-btn:hover{background:var(--accent-hover)}.chat-apply-btn.applied{background:var(--green);cursor:default}.chat-view-research-btn{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 12px;background:var(--accent-light);color:var(--accent);border:1px solid var(--accent-light);border-radius:var(--radius-sm);font-size:12px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}.chat-view-research-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-status-row{display:flex;align-items:center;gap:6px;padding:2px 4px;margin:2px 0}.chat-status-pulse{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--text-muted);animation:statusPulse 1.4s ease-in-out infinite}@keyframes statusPulse{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:.9;transform:scale(1.1)}}.chat-status-text{font-size:10.5px;color:var(--text-muted);opacity:.75}.chat-passage-type-badge{display:inline-block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:1px 5px;border-radius:3px;flex-shrink:0;line-height:1.6}.chat-passage-type-badge--editor{background:var(--accent-light);color:var(--accent)}.chat-passage-type-badge--source{background:#f0fdf4;color:var(--green)}.chat-passage-type-badge--editor-comment{background:var(--amber-light);color:var(--amber)}.chat-passage-heading-text{font-size:11px;font-weight:500;color:var(--text-secondary);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-msg-group{display:flex;flex-direction:column;align-items:stretch;margin-bottom:12px}.chat-msg-group .chat-msg{margin-bottom:0}.chat-context-block{margin-left:auto;max-width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:4px;animation:contextCardIn .15s ease;animation-fill-mode:both}@keyframes contextCardIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-context-header{display:flex;align-items:center;gap:6px;padding:6px 10px;background:var(--surface-alt);border:none;width:100%;cursor:pointer;text-align:left;color:var(--text-secondary);font-size:11.5px;font-weight:600;font-family:inherit;transition:background .1s,color .1s;-webkit-user-select:none;user-select:none}.chat-context-header:hover{background:var(--accent-light);color:var(--accent)}.chat-context-label{flex:1}.chat-context-chevron{opacity:.5;transition:transform .15s,opacity .15s;flex-shrink:0}.chat-context-chevron.open{transform:rotate(180deg);opacity:.8}.chat-context-header:hover .chat-context-chevron{opacity:1}.chat-context-passages{border-top:1px solid var(--border-light);display:flex;flex-direction:column;max-height:200px;overflow-y:auto}.chat-context-passage-item{display:flex;align-items:flex-start;gap:9px;padding:8px 10px;background:var(--surface);border-bottom:1px solid var(--border-light)}.chat-context-passage-item:last-child{border-bottom:none}.chat-context-passage-bar{width:2px;min-height:16px;align-self:stretch;background:var(--accent);border-radius:2px;flex-shrink:0;margin-top:2px;opacity:.45}.chat-context-passage-content{flex:1;min-width:0}.chat-context-passage-heading{display:flex;align-items:center;gap:5px;margin-bottom:3px}.chat-context-passage-text{font-size:11.5px;color:var(--text-secondary);line-height:1.55;margin:0;font-style:italic;word-break:break-word}.chat-input-area{padding:16px;border-top:1px solid var(--border);flex-shrink:0}.chat-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.chat-suggestion-btn{background:var(--surface-alt);border:1px solid var(--border-light);padding:8px 10px;border-radius:var(--radius-sm);font-size:11px;cursor:pointer;color:var(--text-secondary);transition:background .12s,border-color .12s;text-align:left}.chat-suggestion-btn:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.chat-quotes-list{margin-bottom:8px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;animation:quotePreviewIn .15s ease}@keyframes quotePreviewIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.chat-quotes-list-header{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;background:var(--accent-light);border-bottom:1px solid var(--border-light)}.chat-quotes-list-count{font-size:11px;font-weight:600;color:var(--accent);letter-spacing:.1px}.chat-quotes-clear-all{background:none;border:none;cursor:pointer;font-size:11px;color:var(--accent);font-family:inherit;padding:0;opacity:.7;transition:opacity .12s}.chat-quotes-clear-all:hover{opacity:1;text-decoration:underline}.chat-quotes-scroll{max-height:130px;overflow-y:auto;display:flex;flex-direction:column;gap:1px;background:var(--border-light)}.chat-quote-item{display:flex;align-items:flex-start;gap:8px;padding:7px 10px;background:var(--surface);transition:background .1s}.chat-quote-item:hover{background:var(--accent-light)}.chat-quote-item-bar{width:2px;min-height:14px;align-self:stretch;background:var(--accent);border-radius:2px;flex-shrink:0;margin-top:2px;opacity:.6}.chat-quote-item:hover .chat-quote-item-bar{opacity:1}.chat-quote-item-content{flex:1;min-width:0}.chat-quote-item-heading{display:flex;align-items:center;gap:5px;margin-bottom:2px}.chat-quote-item-text{font-size:11.5px;color:var(--text-secondary);line-height:1.5;margin:0;font-style:italic;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chat-quote-item-remove{background:transparent;border:none;cursor:pointer;color:var(--text-muted);padding:2px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;margin-top:1px;transition:color .12s,background .12s}.chat-quote-item-remove:hover{color:var(--red);background:#fef2f2}.research-prompt{background:var(--surface);border:1px solid var(--accent);border-radius:var(--radius);padding:12px;margin-bottom:10px;animation:researchPromptIn .2s ease}@keyframes researchPromptIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.research-prompt-header{margin-bottom:6px}.research-prompt-title-row{display:flex;align-items:center;gap:6px}.research-prompt-title-row svg{width:13px;height:13px;color:var(--purple);flex-shrink:0}.research-prompt-title{font-size:11.5px;font-weight:600;color:var(--text);letter-spacing:.1px}.research-prompt-text{font-size:12px;color:var(--text-secondary);font-style:italic;margin-bottom:10px;word-break:break-word;line-height:1.5}.research-prompt-types{display:flex;gap:6px;margin-bottom:10px}.research-type-btn{flex:1;display:flex;flex-direction:column;align-items:flex-start;padding:8px 10px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-alt);cursor:pointer;font-family:inherit;transition:border-color .15s,background .15s;gap:2px}.research-type-name{font-size:12px;font-weight:600;color:var(--text);line-height:1}.research-type-meta{font-size:10px;color:var(--text-muted);line-height:1}.research-type-btn.active{border-color:var(--accent);background:var(--accent-light)}.research-type-btn.active .research-type-name{color:var(--accent)}.research-type-btn:hover:not(.active){border-color:var(--border);background:var(--surface)}.research-prompt-actions{display:flex;align-items:center;gap:6px;margin-bottom:10px;flex-wrap:wrap}.research-prompt-start{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s}.research-prompt-start svg{width:12px;height:12px}.research-prompt-start:hover{background:var(--accent-hover)}.research-prompt-chat,.research-prompt-discard{background:none;border:1px solid var(--border);color:var(--text-secondary);padding:5px 10px;border-radius:var(--radius-sm);font-size:11.5px;cursor:pointer;font-family:inherit;transition:background .12s,color .12s,border-color .12s}.research-prompt-chat:hover{background:var(--accent-light);color:var(--accent);border-color:var(--accent)}.research-prompt-discard:hover{background:var(--red-light);color:var(--red);border-color:var(--red)}.research-prompt-timer{display:flex;flex-direction:column;gap:5px}.research-prompt-timer-label{font-size:10px;color:var(--text-muted)}.research-prompt-progress{height:3px;background:var(--border);border-radius:2px;overflow:hidden}.research-prompt-progress-bar{height:100%;background:var(--accent);border-radius:2px;transition:width 1s linear}.chat-msg-bubble--edit{padding:0;background:transparent;overflow:hidden;border-radius:var(--radius-sm)}.chat-draft-edit{border:1px solid var(--green-border);border-radius:var(--radius-sm);overflow:hidden;animation:draftEditIn .2s ease;animation-fill-mode:both}@keyframes draftEditIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.chat-draft-edit-header{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#f0fdf4;border-bottom:1px solid #bbf7d0}.chat-draft-edit-header svg{color:var(--green);flex-shrink:0}.chat-draft-edit-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--green);flex:1}.chat-draft-edit-type-badge{font-size:9.5px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--text-muted);background:var(--surface-alt);border:1px solid var(--border-light);border-radius:3px;padding:1px 5px;white-space:nowrap}.chat-draft-edit-removed{padding:7px 11px;font-size:12px;color:var(--text-secondary);line-height:1.6;max-height:120px;overflow-y:auto;word-break:break-word;background:#fef2f2;border-bottom:1px solid #fecaca;text-decoration:line-through;opacity:.75}.chat-draft-edit-removed p{margin:0 0 4px}.chat-draft-edit-removed p:last-child{margin-bottom:0}.chat-draft-edit-content{padding:9px 11px;font-size:12px;color:var(--text-secondary);line-height:1.6;max-height:200px;overflow-y:auto;word-break:break-word;background:var(--surface)}.chat-draft-edit-content h1{font-size:13px;font-weight:700;color:var(--text);margin:6px 0 4px;line-height:1.3}.chat-draft-edit-content h1:first-child{margin-top:0}.chat-draft-edit-content h2{font-size:12px;font-weight:700;color:var(--text);margin:8px 0 3px;line-height:1.3}.chat-draft-edit-content p{margin:0 0 6px;font-size:12px;line-height:1.6}.chat-draft-edit-content p:last-child{margin-bottom:0}.chat-draft-edit-content strong{font-weight:650;color:var(--text)}.chat-draft-edit-content em{font-style:italic}.chat-draft-edit-footer{display:flex;align-items:center;gap:5px;padding:5px 10px;background:#f0fdf4;border-top:1px solid #bbf7d0;font-size:10.5px;color:var(--green);font-style:italic}.chat-draft-edit-footer svg{flex-shrink:0;color:var(--green)}.chat-draft-edit--accepted{border-color:var(--green);opacity:.75}.chat-draft-edit-footer--accepted{background:#f0fdf4;border-color:#bbf7d0;color:var(--green);font-style:normal;font-weight:600}.chat-draft-edit--rejected{border-color:var(--border);opacity:.6}.chat-draft-edit--rejected .chat-draft-edit-header{background:#fafafa;border-color:var(--border)}.chat-draft-edit--rejected .chat-draft-edit-header svg,.chat-draft-edit--rejected .chat-draft-edit-label{color:var(--text-muted)}.chat-draft-edit--rejected .chat-draft-edit-content{opacity:.5;text-decoration:line-through;text-decoration-color:var(--text-muted)}.chat-draft-edit-footer--rejected{background:#fafafa;border-color:var(--border);color:var(--text-muted);font-style:normal;font-weight:600}.chat-input-row{display:flex}.chat-input{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;line-height:1.5;outline:none;font-family:inherit;resize:none;overflow-y:auto;max-height:156px;transition:border-color .15s}.chat-input:focus{border-color:var(--accent)}.chat-send-btn{background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;flex-shrink:0}.chat-send-btn svg{width:12px;height:12px}.chat-send-btn:hover:not(:disabled){background:var(--accent-hover)}.chat-send-btn:disabled{opacity:.4;cursor:default}.chat-tool-used{display:flex;align-items:center;gap:5px;padding:0 4px;margin:1px 0;font-size:10.5px;color:var(--text-muted);opacity:.75;animation:toolUsedFadeIn .25s ease-out both}.chat-tool-used svg{flex-shrink:0;opacity:.6}@keyframes toolUsedFadeIn{0%{opacity:0;transform:translateY(3px)}to{opacity:.75;transform:translateY(0)}}.chat-memory-chip{display:flex;align-items:center;gap:6px;padding:4px 8px;margin:2px 0;font-size:11px;color:var(--text-secondary);background:var(--surface-alt);border:1px solid var(--border-light);border-radius:var(--radius);width:fit-content;max-width:100%;animation:toolUsedFadeIn .25s ease-out both}.chat-memory-chip svg{flex-shrink:0;color:var(--text-muted)}.chat-memory-chip-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-memory-chip-undo{background:none;border:none;font:inherit;font-size:10.5px;font-weight:600;color:var(--accent);cursor:pointer;padding:0}.chat-memory-chip-undo:hover{color:var(--accent-hover)}.chat-memory-chip--undone{color:var(--text-muted);font-style:italic}.chat-smartness-row{display:flex;align-items:center;gap:4px;padding-top:8px}.chat-smartness-row .chat-send-btn{margin-left:auto;flex-shrink:0}.chat-smartness-btn{position:relative;display:flex;align-items:center;gap:5px;background:none;border:none;padding:3px 8px;border-radius:20px;font-size:11px;font-family:inherit;color:var(--text-muted);cursor:pointer;transition:color .12s,background .12s}.chat-smartness-btn:hover{color:var(--text-secondary);background:var(--surface-alt)}.chat-smartness-btn.active{color:var(--accent);background:var(--accent-light);font-weight:600}.chat-smartness-btn:after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);background:var(--text);color:var(--surface);font-size:11px;font-weight:400;white-space:nowrap;padding:4px 8px;border-radius:var(--radius-sm);pointer-events:none;opacity:0;transition:opacity .12s;z-index:100}.chat-smartness-btn:hover:after{opacity:1}.chat-smartness-btn:first-child:after{left:0;transform:none}.rtp{position:fixed;top:56px;left:0;bottom:0;width:418px;background:var(--surface);border-right:1px solid var(--border);display:none;flex-direction:column;z-index:50}.rtp.open{display:flex}.rtp-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.rtp-header-left{display:flex;align-items:center;gap:8px}.rtp-header-icon{width:14px;height:14px;color:var(--purple)}.rtp-title{font-size:12px;font-weight:600;color:var(--text);letter-spacing:.5px}.rtp-running-badge{font-size:10px;font-weight:600;color:var(--accent);background:var(--accent-light);padding:2px 9px;border-radius:10px}.rtp-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:0;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.rtp-list::-webkit-scrollbar{width:4px}.rtp-list::-webkit-scrollbar-track{background:transparent}.rtp-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.rtp-list::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.rtp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:60px 24px;color:var(--text-muted);text-align:center}.rtp-empty-title{font-size:14px;font-weight:600;color:var(--text-secondary)}.rtp-empty-sub{font-size:12px;color:var(--text-muted);line-height:1.55}.rtp-item{border:1px solid var(--border-light);border-radius:var(--radius);padding:12px;background:var(--surface);display:flex;flex-direction:column;gap:6px;transition:box-shadow .15s}.rtp-item:hover{box-shadow:var(--shadow-sm)}.rtp-item--running,.rtp-item--error,.rtp-item--failed{background:var(--surface)}.rtp-item--completed{opacity:.85}.rtp-item-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.rtp-item-meta{display:flex;align-items:flex-start;gap:7px;flex:1;min-width:0}.rtp-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:4px}.rtp-dot--running{background:var(--accent);animation:rtpPulse 1.6s ease-in-out infinite}.rtp-dot--completed{background:var(--green)}.rtp-dot--terminated{background:var(--text-muted)}.rtp-dot--error,.rtp-dot--failed{background:var(--red)}@keyframes rtpPulse{0%,to{box-shadow:0 0 0 0 var(--accent-light)}50%{box-shadow:0 0 0 4px transparent}}.rtp-item-title{font-size:13px;font-weight:600;color:var(--text);line-height:1.4;word-break:break-word}.rtp-item-actions{flex-shrink:0}.rtp-btn{font-size:11px;font-weight:600;padding:3px 10px;border-radius:4px;cursor:pointer;border:1px solid;font-family:inherit;transition:background .15s,color .15s,border-color .15s}.rtp-btn--stop{color:var(--text-secondary);background:var(--surface);border-color:var(--border)}.rtp-btn--stop:hover{color:var(--red);border-color:var(--red);background:var(--red-light)}.rtp-btn--retry{color:var(--accent);background:var(--surface);border-color:var(--accent)}.rtp-btn--retry:hover{background:var(--accent-light)}.rtp-type-pill{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--purple);background:var(--purple-light);padding:1px 7px;border-radius:10px;align-self:flex-start}.rtp-item-desc{font-size:12px;color:var(--text-secondary);line-height:1.55;margin:0}.rtp-item-error{font-size:12px;color:var(--red);line-height:1.55;margin:0;padding:2px 0}.rtp-item-footer{display:flex;align-items:center;gap:5px;margin-top:2px}.rtp-spinner{width:10px;height:10px;border:2px solid var(--accent-light);border-top-color:var(--accent);border-radius:50%;animation:rtpSpin .75s linear infinite;flex-shrink:0}@keyframes rtpSpin{to{transform:rotate(360deg)}}.rtp-check{width:11px;height:11px;color:var(--green);flex-shrink:0}.rtp-status-label{font-size:11px;font-weight:500}.rtp-status-label--running{color:var(--accent)}.rtp-status-label--completed{color:var(--green)}.rtp-status-label--terminated{color:var(--text-muted)}.rtp-status-label--error,.rtp-status-label--failed{color:var(--red)}.sidebar-panel{position:fixed;top:56px;right:0;bottom:0;width:374px;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;transform:translate(100%);transition:transform .3s ease;z-index:50}.sidebar-panel.open{transform:translate(0)}.sidebar-drop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;background:rgba(var(--accent-rgb, 99, 102, 241),.12);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:2px dashed var(--accent, #6366f1);border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--accent, #6366f1);font-size:14px;font-weight:600;pointer-events:none}.sidebar-header{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:13px;font-weight:600;color:var(--text);flex-shrink:0}.sidebar-tab-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.research-library{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.library-filter-bar--hidden{display:none}.library-filter-bar{padding:12px 18px;border-bottom:1px solid var(--border);flex-shrink:0}.library-filter-row{display:flex;gap:8px;align-items:center}.library-search{flex:1;padding:7px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;outline:none;font-family:inherit;transition:border-color .15s}.library-search:focus{border-color:var(--accent)}.lib-type-dropdown-wrap{position:relative}.lib-type-dropdown-btn{background:var(--surface);border:1px solid var(--border);padding:7px 12px;border-radius:var(--radius-sm);cursor:pointer;font-size:12px;font-family:inherit;white-space:nowrap;transition:border-color .15s}.lib-type-dropdown-btn.has-filter{border-color:var(--accent);color:var(--accent)}.lib-type-dropdown{position:absolute;top:calc(100% + 4px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 0;box-shadow:var(--shadow-md);z-index:10;min-width:160px}.lib-type-dropdown label{display:flex;align-items:center;gap:8px;padding:6px 14px;font-size:12px;cursor:pointer;transition:background .12s}.lib-type-dropdown label:hover{background:var(--surface-alt)}.lib-type-dropdown input[type=checkbox]{accent-color:var(--accent)}.lib-type-dropdown-icon{font-size:14px;width:18px;text-align:center}.library-action-bar{flex-shrink:0;border-top:1px solid var(--border);padding:10px 14px;display:flex;flex-direction:column;gap:8px}.library-action-row{display:flex;gap:6px}.lib-action-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;font-size:11px;font-family:inherit;font-weight:500;color:var(--text-secondary);white-space:nowrap;transition:all .12s}.lib-action-btn:hover{background:var(--surface-alt);border-color:var(--text-muted);color:var(--text)}.lib-action-btn--copy:hover,.lib-action-btn--copy.active{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.lib-upload-error{margin-top:6px;padding:6px 10px;background:var(--red-light, #fee2e2);color:var(--red, #dc2626);border-radius:var(--radius-sm);font-size:12px;line-height:1.4}.lib-source-uploading{opacity:.6;pointer-events:none}.lib-upload-spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:lib-spin .7s linear infinite}@keyframes lib-spin{to{transform:rotate(360deg)}}.add-source-form{display:flex;flex-direction:column;gap:7px;animation:addSourceFormIn .15s ease}@keyframes addSourceFormIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.add-source-field{position:relative;display:flex;align-items:center}.add-source-input{flex:1;padding:7px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;font-family:inherit;outline:none;background:var(--surface);color:var(--text);transition:border-color .15s}.add-source-input:focus{border-color:var(--accent)}.add-source-input:disabled{opacity:.6}.add-source-type-pill{position:absolute;right:8px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;background:var(--accent-light);color:var(--accent);padding:1px 6px;border-radius:4px;pointer-events:none}.add-source-error{font-size:11px;color:var(--red);margin:0}.add-source-actions{display:flex;gap:6px;justify-content:flex-end}.add-source-btn-cancel{padding:5px 12px;font-size:12px;font-family:inherit;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);transition:all .12s}.add-source-btn-cancel:hover:not(:disabled){background:var(--surface-alt);color:var(--text)}.add-source-btn-submit{padding:5px 14px;font-size:12px;font-family:inherit;font-weight:600;background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:opacity .12s}.add-source-btn-submit:disabled{opacity:.6;cursor:not-allowed}.library-list{flex:1;overflow-y:auto;padding:0}.library-list--hidden{display:none}.library-empty{text-align:center;padding:28px 20px;color:var(--text-muted);font-size:13px}.library-item{display:flex;gap:10px;padding:10px 18px;border-bottom:1px solid var(--border-light);cursor:pointer;transition:background .12s}.library-item:last-child{border-bottom:none}.library-item:hover{background:var(--surface-alt)}.library-item--active,.library-item--active:hover{background:var(--accent-light);border-left:3px solid var(--accent);padding-left:15px}.lib-icon{width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;position:relative;overflow:hidden}.lib-icon-thumb{width:100%;height:100%;object-fit:cover;border-radius:6px;display:block}.lib-meta{flex:1;min-width:0}.lib-title{font-size:13px;font-weight:500;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lib-domain{font-size:12px;color:var(--text-muted)}.lib-author{font-size:11px;color:var(--text-secondary);font-weight:500}.lib-context-note{font-size:11px;line-height:1.4;color:var(--text-muted);font-style:italic;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lib-context-note:before{content:"📝 ";font-style:normal}.lib-agent-badge{font-size:10px;font-weight:600;color:var(--accent);margin-top:3px}.lib-agent-badge--processing{display:flex;align-items:center;gap:4px}.lib-ai-stars{display:flex;gap:1px}@keyframes lib-ai-blink{0%,to{opacity:.15}50%{opacity:1}}.lib-ai-stars span{animation:lib-ai-blink 1.4s ease-in-out infinite}.lib-ai-stars span:nth-child(2){animation-delay:.2s}.lib-ai-stars span:nth-child(3){animation-delay:.4s}.lib-excerpts-badge{font-size:10px;font-weight:600;color:var(--accent);margin-top:3px}.lib-deleted-warning{font-size:10px;font-weight:600;color:var(--red);margin-top:2px;display:flex;align-items:center;gap:3px}.copy-panel{flex:1;min-height:0;background:var(--surface);overflow:hidden;display:flex;flex-direction:column}.copy-panel-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border);min-height:48px;box-sizing:border-box}.copy-panel-title{font-size:12px;font-weight:600;color:var(--text)}.copy-panel-close{background:none;border:none;cursor:pointer;font-size:12px;color:var(--text-muted);padding:0 2px;line-height:1}.copy-panel-close:hover{color:var(--text)}.copy-panel-notice{font-size:11px;color:var(--amber, #d97706);background:var(--amber-light, #fef3c7);padding:6px 12px;border-bottom:1px solid var(--border);font-weight:500}.copy-panel-search{display:block;margin:6px 10px 2px;width:calc(100% - 20px);box-sizing:border-box;padding:6px 10px;font-size:12px;font-family:inherit;border:1px solid var(--border);border-radius:var(--radius-sm);outline:none;background:var(--surface);color:var(--text);transition:border-color .15s}.copy-panel-search:focus{border-color:var(--accent)}.copy-panel-list{overflow-y:auto;flex:1;padding:4px 0 8px}.copy-panel-empty{font-size:12px;color:var(--text-muted);text-align:center;padding:18px 12px}.copy-panel-error{color:var(--red)}.copy-panel-group{margin-bottom:4px}.copy-panel-group-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:6px 12px 3px}.copy-panel-item{display:flex;align-items:center;gap:9px;padding:6px 10px;cursor:default;transition:background .1s}.copy-panel-item:hover{background:var(--surface-alt)}.copy-panel-copy-btn{font-size:11px;font-weight:600;background:var(--accent-light);color:var(--accent);border:1px solid var(--accent);border-radius:var(--radius-sm);padding:3px 10px;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .15s}.copy-panel-copy-btn:hover:not(:disabled){background:var(--accent);color:#fff}.copy-panel-copy-btn:disabled{opacity:.5;cursor:default}.lib-used{font-size:11px;font-weight:500;padding:2px 8px;border-radius:12px;align-self:flex-start;white-space:nowrap;flex-shrink:0;line-height:1.4;margin-top:2px}.lib-used.yes{background:var(--green-light);color:var(--green)}.lib-used.no{background:var(--surface-alt);color:var(--text-muted)}.outtakes-vault{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.vault-search-wrap{padding:12px 18px;flex-shrink:0}.vault-search{width:100%;padding:7px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12px;outline:none;font-family:inherit;transition:border-color .15s}.vault-search:focus{border-color:var(--accent)}.vault-info-bar{display:flex;align-items:center;justify-content:space-between;padding:0 18px 10px;font-size:11px;color:var(--text-muted);flex-shrink:0}.vault-story-filter{background:var(--surface);border:1px solid var(--border);padding:3px 8px;border-radius:4px;font-size:11px;cursor:pointer;color:var(--text-secondary);font-family:inherit}.vault-list{flex:1;overflow-y:auto}.vault-section-divider{display:flex;align-items:center;gap:8px;padding:10px 18px 6px;font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.3px}.vault-section-divider svg{color:var(--text-muted)}.outtake-item{padding:12px 18px;border-bottom:1px solid var(--border-light);animation:outtakeIn .25s ease}.outtake-item:hover{background:var(--surface-alt)}.outtake-item:last-child{border-bottom:none}@keyframes outtakeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.outtake-text{font-size:13px;line-height:1.5;color:var(--text);margin-bottom:8px;overflow:hidden;transition:max-height .3s ease}.outtake-expand-btn{display:inline-flex;align-items:center;gap:3px;margin-bottom:8px;padding:0;border:none;background:none;font-size:11px;font-weight:500;font-family:inherit;color:var(--text-muted);cursor:pointer;line-height:1}.outtake-expand-btn svg{width:11px;height:11px}.outtake-expand-btn:hover{color:var(--text-secondary)}.outtake-text mark{background:var(--accent-light);color:var(--accent);padding:0 1px;border-radius:2px}.outtake-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}.outtake-tag{font-size:10px;font-weight:600;padding:2px 8px;border-radius:4px;white-space:nowrap}.outtake-tag.section{background:var(--accent-light);color:var(--accent)}.outtake-tag.story{background:var(--purple-light);color:var(--purple)}.outtake-tag.time{background:var(--surface-alt);color:var(--text-muted);font-weight:500}.outtake-tag.new{background:var(--green-light);color:#16a34a;animation:pulse-dot .6s ease 2}@keyframes pulse-dot{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}.outtake-actions{display:flex;gap:6px}.outtake-btn{font-size:11px;font-weight:500;padding:4px 10px;border-radius:4px;border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:all .12s;display:inline-flex;align-items:center;gap:4px;font-family:inherit}.outtake-btn svg{width:12px;height:12px}.outtake-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}.outtake-btn.restore-original:hover{border-color:var(--green);color:#16a34a;background:var(--green-light)}.outtake-btn.discard{padding:4px 6px}.outtake-btn.discard:hover{border-color:var(--red);color:var(--red);background:var(--red-light)}.vault-empty{text-align:center;padding:40px 24px;color:var(--text-muted)}.vault-empty svg{margin-bottom:12px;opacity:.4}.vault-empty strong{display:block;color:var(--text-secondary);margin-bottom:4px;font-size:14px}.vault-empty span{font-size:12px}.source-detail-overlay{position:fixed;top:56px;right:0;bottom:0;width:528px;background:var(--surface);border-left:1px solid var(--border);display:flex;flex-direction:column;z-index:105;box-shadow:var(--shadow-lg);animation:sourceDetailIn .22s ease}.source-detail-overlay.sidebar-open{right:374px;border-right:1px solid var(--border)}.source-detail-overlay.expanded{left:0;width:auto;right:0;border:none;box-shadow:none;overflow-y:auto;background:var(--surface);z-index:90;transition:left .25s ease,right .3s ease;animation:sourceDetailExpand .2s ease}.source-detail-overlay.expanded.sidebar-open{right:374px}.source-detail-overlay.expanded.chat-panel-open{left:418px}@keyframes sourceDetailIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes sourceDetailExpand{0%{opacity:.7;transform:scale(.99)}to{opacity:1;transform:scale(1)}}.source-detail-header{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--bg);flex-shrink:0}.source-detail-close{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);flex-shrink:0;transition:background .12s,color .12s}.source-detail-close:hover{background:var(--surface-alt);color:var(--text)}.source-detail-label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;flex:1}.source-detail-header-spacer{flex:1}.source-detail-chat-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;height:28px;border-radius:var(--radius-sm);background:var(--accent-light);color:var(--accent);font-family:inherit;font-size:12px;font-weight:600;white-space:nowrap;border:none;cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}.source-detail-chat-btn:hover{background:var(--accent);color:#fff}.source-detail-header-identity{display:flex;align-items:center;gap:6px;min-width:0;flex-shrink:1;overflow:hidden}.source-detail-header-icon{font-size:13px;flex-shrink:0;line-height:1}.source-detail-header-domain{font-size:12px;font-weight:500;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-detail-header-divider{width:1px;height:16px;background:var(--border);flex-shrink:0}.source-detail-copy-url-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);border:none;cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}.source-detail-copy-url-btn:hover{background:var(--surface-alt);color:var(--text)}.source-detail-copy-url-btn--copied,.source-detail-copy-url-btn--copied:hover{background:var(--green-light);color:var(--green)}.source-detail-open-btn{display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:var(--radius-sm);background:var(--accent-light);color:var(--accent);font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;border:none;transition:background .12s,color .12s;flex-shrink:0}.source-detail-open-btn:hover{background:var(--accent);color:#fff}.source-detail-open-btn--broken{background:var(--red-light);color:var(--red)}.source-detail-open-btn--broken:hover{background:var(--red);color:#fff}.source-detail-more-wrap{position:relative;flex-shrink:0}.source-detail-more-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);border:none;cursor:pointer;transition:background .12s,color .12s}.source-detail-more-btn:hover,.source-detail-more-btn--open{background:var(--surface-alt);color:var(--text)}.source-detail-more-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:160px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:200;padding:4px;animation:moreMenuIn .1s ease}@keyframes moreMenuIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.source-detail-more-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;font-size:12.5px;font-weight:500;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--text-secondary);cursor:pointer;text-align:left;transition:background .1s,color .1s}.source-detail-more-menu-item:hover{background:var(--surface-alt);color:var(--text)}.source-detail-more-menu-item--danger{color:var(--red)}.source-detail-more-menu-item--danger:hover{background:var(--red-light);color:var(--red)}.source-detail-more-menu-divider{height:1px;background:var(--border);margin:4px 0}.source-detail-delete-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);border:1px solid transparent;cursor:pointer;flex-shrink:0;margin-left:auto;transition:background .15s,color .15s,border-color .15s}.source-detail-delete-btn:hover{background:var(--red-light);color:var(--red);border-color:var(--red-light)}.source-detail-expand-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);border:none;cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}.source-detail-expand-btn:hover{background:var(--surface-alt);color:var(--text)}.source-detail-expanded-bar{position:sticky;top:0;z-index:10;background:var(--bg);display:flex;align-items:center;gap:10px;padding:14px 48px;flex-shrink:0;max-width:900px;width:100%;margin:0 auto;box-sizing:border-box}.source-detail-collapse-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);border:none;cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}.source-detail-collapse-btn:hover{background:var(--surface-alt);color:var(--text)}.source-detail-delete-confirm{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}.source-detail-delete-confirm-label{font-size:11px;font-weight:600;color:var(--red);white-space:nowrap}.source-detail-delete-confirm-yes{padding:4px 10px;font-size:11px;font-weight:600;border-radius:var(--radius-sm);background:var(--red);color:#fff;border:none;cursor:pointer;transition:opacity .15s}.source-detail-delete-confirm-yes:hover:not(:disabled){opacity:.85}.source-detail-delete-confirm-yes:disabled{opacity:.6;cursor:not-allowed}.source-detail-delete-confirm-cancel{padding:4px 10px;font-size:11px;font-weight:600;border-radius:var(--radius-sm);background:var(--surface);color:var(--text-muted);border:1px solid var(--border);cursor:pointer;transition:background .15s,color .15s}.source-detail-delete-confirm-cancel:hover:not(:disabled){background:var(--border-light);color:var(--text)}.source-detail-delete-confirm-cancel:disabled{opacity:.6;cursor:not-allowed}.source-detail-body{flex:1;overflow-y:auto;padding:22px 20px;display:flex;flex-direction:column;gap:16px}.source-detail-overlay.expanded .source-detail-body{overflow-y:visible;flex:none;padding:24px 48px;max-width:900px;width:100%;box-sizing:border-box;align-self:center}.source-detail-title{font-size:16px;font-weight:700;color:var(--text);line-height:1.4;margin:0}.source-detail-meta{display:flex;flex-direction:column;gap:3px}.source-detail-author{font-size:12px;font-weight:600;color:var(--text-secondary)}.source-detail-domain{font-size:12px;color:var(--text-muted)}.source-detail-date{font-size:11px;color:var(--text-muted)}.source-detail-badges{display:flex;flex-wrap:wrap;gap:6px}.source-detail-badge{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;padding:2px 8px;border-radius:4px}.source-detail-badge--agent{background:var(--accent-light);color:var(--accent)}.source-detail-badge--broken{background:var(--red-light);color:var(--red)}.source-detail-badge--transcript{background:var(--green-light);color:var(--green)}.source-detail-relevance{font-size:13px;line-height:1.65;color:var(--text-secondary);margin:0;padding:10px 12px;background:var(--accent-light);border-left:3px solid var(--accent);border-radius:0 var(--radius-sm) var(--radius-sm) 0}.source-detail-no-content-notice{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted)}.source-detail-no-content-notice svg{color:var(--text-muted)}.source-detail-no-content-notice p{font-size:12.5px;line-height:1.65;margin:0}.source-detail-no-content-notice a{color:var(--accent);text-decoration:underline}.source-detail-processing-notice{display:flex;gap:9px;align-items:center;padding:10px 12px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted)}.source-detail-processing-notice p{font-size:12.5px;line-height:1.65;margin:0}.source-detail-ai-stars{display:flex;gap:2px;flex-shrink:0;color:var(--accent);font-size:12px}@keyframes source-ai-blink{0%,to{opacity:.15}50%{opacity:1}}.source-detail-ai-stars span{animation:source-ai-blink 1.4s ease-in-out infinite}.source-detail-ai-stars span:nth-child(2){animation-delay:.2s}.source-detail-ai-stars span:nth-child(3){animation-delay:.4s}.source-detail-section{display:flex;flex-direction:column;gap:8px}.source-detail-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.source-detail-section-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.source-detail-note{font-size:12px;line-height:1.6;color:var(--text-muted);background:var(--surface-alt);border-radius:var(--radius-sm);padding:10px 12px}.source-detail-note p{margin:0 0 6px}.source-detail-note p:last-child{margin-bottom:0}.source-detail-note ul,.source-detail-note ol{margin:4px 0 6px;padding-left:18px}.source-detail-note ul{list-style-type:disc}.source-detail-note ol{list-style-type:decimal}.source-detail-note li{margin-bottom:3px;line-height:1.55}.source-detail-note h1,.source-detail-note h2,.source-detail-note h3,.source-detail-note h4{font-size:12px;font-weight:700;color:var(--text-secondary);margin:8px 0 3px;line-height:1.4}.source-detail-note h1:first-child,.source-detail-note h2:first-child,.source-detail-note h3:first-child,.source-detail-note h4:first-child{margin-top:0}.source-detail-note strong,.source-detail-note b{font-weight:600;color:var(--text-secondary)}.source-detail-note em,.source-detail-note i{font-style:italic}.source-detail-note code{font-family:SF Mono,Fira Code,monospace;font-size:11px;background:var(--surface);padding:1px 4px;border-radius:3px;color:var(--text)}.source-detail-note blockquote{margin:6px 0;padding:4px 10px;border-left:2px solid var(--accent);color:var(--text-muted);font-style:italic}.source-detail-note a{color:var(--accent);text-decoration:none}.source-detail-note a:hover{text-decoration:underline}.note-add-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;font-size:10px;font-weight:600;color:var(--accent);background:var(--accent-light);border:none;border-radius:var(--radius-sm);cursor:pointer;flex-shrink:0;transition:background .12s,color .12s}.note-add-btn:hover{background:var(--accent);color:#fff}.source-detail-note-item,.source-detail-note-wrap{position:relative}.source-detail-note-wrap:hover .note-actions,.source-detail-excerpt-note-wrap:hover .note-actions{opacity:1}.note-actions{position:absolute;top:6px;right:6px;display:flex;gap:3px;opacity:0;transition:opacity .1s}.note-action-btn{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text-muted);cursor:pointer;transition:background .1s,color .1s,border-color .1s}.note-action-btn:hover{background:var(--accent-light);color:var(--accent);border-color:var(--accent)}.note-action-btn--delete:hover{background:var(--red-light);color:var(--red);border-color:var(--red)}.note-editor{display:flex;flex-direction:column;gap:6px}.note-editor--excerpt{margin-bottom:4px}.note-textarea{width:100%;min-height:60px;padding:8px 10px;font-size:12px;line-height:1.6;color:var(--text);background:var(--surface);border:1.5px solid var(--accent);border-radius:var(--radius-sm);resize:none;overflow:hidden;outline:none;box-sizing:border-box;font-family:inherit;box-shadow:0 0 0 3px var(--accent-light);transition:border-color .12s}.note-textarea:focus{border-color:var(--accent)}.note-editor-actions{display:flex;align-items:center;gap:6px}.note-editor-hint{flex:1;font-size:10px;color:var(--text-muted)}.note-editor-cancel{padding:4px 10px;font-size:11px;font-weight:500;color:var(--text-secondary);background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:background .1s}.note-editor-cancel:hover{background:var(--border-light)}.note-editor-save{padding:4px 12px;font-size:11px;font-weight:600;color:#fff;background:var(--accent);border:none;border-radius:var(--radius-sm);cursor:pointer;transition:opacity .1s}.note-editor-save:disabled{opacity:.45;cursor:default}.note-editor-save:not(:disabled):hover{opacity:.88}.source-detail-note-empty{font-size:12px;color:var(--text-muted);margin:0;font-style:italic}.source-detail-excerpt-note-wrap{position:relative}.excerpt-add-note-btn{display:inline-flex;align-items:center;padding:3px 8px;font-size:10.5px;font-weight:500;color:var(--text-muted);background:none;border:1px dashed var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:color .12s,border-color .12s,background .12s;align-self:flex-start}.excerpt-add-note-btn:hover{color:var(--accent);border-color:var(--accent);background:var(--accent-light)}.source-detail-x-wrap{width:100%;flex-shrink:0;display:flex;justify-content:center;margin:4px 0 8px}.source-detail-x-wrap .twitter-tweet{margin:0 auto!important}.source-detail-youtube-wrap{position:relative;width:100%;padding-bottom:56.25%;border-radius:var(--radius);overflow:hidden;background:#000;flex-shrink:0}.source-detail-youtube{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:none}.source-detail-pdf-badge{display:block;font-size:11px;line-height:1;margin-bottom:8px;pointer-events:none;-webkit-user-select:none;user-select:none}.source-detail-pdf-badge--cached{color:var(--accent, #6366f1)}.source-detail-pdf-badge--original{color:var(--text-muted, #888)}.source-detail-image-wrap{width:100%;margin:4px 0 2px}.source-detail-image{display:block;max-width:100%;border-radius:var(--radius);border:1px solid var(--border);cursor:zoom-in;transition:opacity .15s}.source-detail-image:hover{opacity:.9}.source-detail-body img:not(.image-lightbox-img){cursor:grab}.source-detail-body img:not(.image-lightbox-img):active{cursor:grabbing}.source-detail-audio-wrap{width:100%;margin:8px 0;display:flex;flex-direction:column;gap:10px}.source-detail-audio{display:block;width:100%;border-radius:var(--radius);outline:none}.image-lightbox-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#000000c7;display:flex;align-items:center;justify-content:center;cursor:zoom-out;animation:lightbox-fade-in .15s ease}@keyframes lightbox-fade-in{0%{opacity:0}to{opacity:1}}.image-lightbox-img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:var(--radius);cursor:default;box-shadow:0 8px 40px #00000080}.source-detail-excerpt-item{display:flex;flex-direction:column;gap:4px}.source-detail-excerpt-note{font-size:11.5px;line-height:1.55;color:var(--text-muted, #888);font-style:italic;margin:0;padding:6px 10px;background:var(--surface-alt);border-radius:var(--radius-sm)}.source-detail-excerpt-note:before{content:"📝 ";font-style:normal}.source-detail-excerpt-item+.source-detail-excerpt-item{margin-top:10px}.source-detail-excerpt{font-size:13px;line-height:1.7;color:var(--text-secondary);margin:0;padding:10px 14px;border-left:3px solid var(--accent, #7c6af5);background:var(--surface-alt);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic}.source-detail-excerpt-ts{font-size:11px;color:var(--text-muted, #888);padding-left:2px}.source-detail-full-content{font-size:13.5px;line-height:1.8;color:var(--text-secondary)}.source-detail-full-content p{margin:0 0 14px}.source-detail-full-content p:last-child{margin-bottom:0}.source-detail-full-content h1,.source-detail-full-content h2,.source-detail-full-content h3,.source-detail-full-content h4,.source-detail-full-content h5,.source-detail-full-content h6{font-weight:700;color:var(--text);line-height:1.3;margin:20px 0 8px}.source-detail-full-content h1{font-size:17px}.source-detail-full-content h2{font-size:15.5px}.source-detail-full-content h3,.source-detail-full-content h4{font-size:14px}.source-detail-full-content h5,.source-detail-full-content h6{font-size:13.5px}.source-detail-full-content :first-child{margin-top:0}.source-detail-full-content strong,.source-detail-full-content b{font-weight:600;color:var(--text)}.source-detail-full-content em,.source-detail-full-content i{font-style:italic}.source-detail-full-content ul,.source-detail-full-content ol{margin:0 0 14px;padding-left:20px}.source-detail-full-content ul{list-style-type:disc}.source-detail-full-content ol{list-style-type:decimal}.source-detail-full-content li{margin-bottom:6px;line-height:1.7}.source-detail-full-content blockquote{margin:12px 0;padding:8px 14px;border-left:3px solid var(--accent);background:var(--surface-alt);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-style:italic;color:var(--text-muted)}.source-detail-full-content code{font-family:SF Mono,Fira Code,Fira Mono,monospace;font-size:12px;background:var(--surface-alt);padding:1px 5px;border-radius:3px;color:var(--text)}.source-detail-full-content pre{margin:12px 0;padding:12px 14px;background:var(--surface-alt);border-radius:var(--radius-sm);overflow-x:auto;font-size:12px;line-height:1.6}.source-detail-full-content pre code{background:none;padding:0}.source-detail-full-content a{color:var(--accent);text-decoration:none}.source-detail-full-content a:hover{text-decoration:underline}.source-detail-full-content img{max-width:100%;height:auto;border-radius:var(--radius-sm);margin:8px 0;display:block}.source-detail-full-content figure{margin:12px 0}.source-detail-full-content figcaption{font-size:11px;color:var(--text-muted);margin-top:4px;text-align:center}.source-detail-full-content table{width:100%;border-collapse:collapse;margin:16px 0;font-size:12.5px;line-height:1.55;overflow-x:auto;display:block}.source-detail-full-content thead{background:var(--surface-alt)}.source-detail-full-content th{padding:8px 12px;text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--text);border:1px solid var(--border);white-space:nowrap}.source-detail-full-content td{padding:7px 12px;color:var(--text-secondary);border:1px solid var(--border);vertical-align:top}.source-detail-full-content tr:nth-child(2n) td{background:var(--surface-alt)}.source-detail-full-content--markdown hr{border:none;border-top:1px solid var(--border-light);margin:20px 0}.source-detail-pdf-load-more{display:flex;align-items:center;gap:10px;padding:12px 0 4px}.source-detail-pdf-load-more-btn{padding:5px 12px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);font-size:12px;font-weight:500;cursor:pointer;transition:background .12s,color .12s}.source-detail-pdf-load-more-btn:hover{background:var(--border);color:var(--text)}.source-detail-pdf-load-more-count{font-size:11px;color:var(--text-muted)}.source-selection-chat-btn{position:fixed;transform:translate(-50%);display:inline-flex;align-items:center;gap:5px;padding:5px 11px;background:var(--accent);color:#fff;border:none;border-radius:20px;font-size:11px;font-weight:600;cursor:pointer;z-index:200;box-shadow:var(--shadow-md);white-space:nowrap;pointer-events:all;animation:selectionBtnIn .12s ease}.source-selection-chat-btn:hover{background:var(--accent-hover)}@keyframes selectionBtnIn{0%{opacity:0;transform:translate(-50%) translateY(-4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.editor-comments-panel{position:fixed;top:56px;left:0;bottom:0;width:418px;background:var(--surface);border-right:1px solid var(--border);display:none;flex-direction:column;z-index:50}.editor-comments-panel.open{display:flex}.ecp-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.ecp-header-left{display:flex;align-items:center;gap:8px}.ecp-status-dot{width:8px;height:8px;border-radius:50%;background:var(--border);flex-shrink:0}.ecp-status-dot.analyzing{background:var(--amber);animation:ecp-pulse 1.4s ease-in-out infinite}.ecp-status-dot.ready{background:var(--green)}@keyframes ecp-pulse{0%,to{opacity:1}50%{opacity:.4}}.ecp-title{font-size:12px;font-weight:600;color:var(--text);letter-spacing:.5px}.ecp-count{font-size:11px;font-weight:700;color:var(--amber);background:var(--amber-light);border-radius:10px;padding:1px 7px;line-height:1.6}.ecp-header-right{display:flex;align-items:center;gap:2px}.ecp-refresh-btn{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:11px;font-weight:500;font-family:inherit;color:var(--text-secondary);transition:all .12s;flex-shrink:0}.ecp-refresh-btn:hover:not(:disabled){background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.ecp-refresh-btn:disabled{cursor:default;opacity:.5}.ecp-close-btn{background:transparent;border:none;cursor:pointer;font-size:18px;color:var(--text-muted);padding:4px 6px;border-radius:4px;line-height:1;transition:background .12s}.ecp-close-btn:hover{background:var(--surface-alt)}.ecp-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:0}.ecp-analyzing-notice{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--amber);font-weight:500;padding:8px 4px 14px}.ecp-analyzing-spinner{width:14px;height:14px;border:2px solid var(--amber-light);border-top-color:var(--amber);border-radius:50%;animation:ecp-spin .7s linear infinite;flex-shrink:0}@keyframes ecp-spin{to{transform:rotate(360deg)}}.ecp-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:40px 24px;color:var(--text-muted);font-size:13px}.ecp-empty-icon{width:36px;height:36px;color:var(--border);margin-bottom:4px}.ecp-empty-sub{font-size:12px;color:var(--text-muted)}.ecp-summary{border:1px solid var(--border);background:var(--surface-alt);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:12px}.ecp-summary-header{display:flex;align-items:center;gap:6px;margin-bottom:8px}.ecp-summary-header .reply-avatar{margin-top:0}.ecp-summary-agent-name{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--amber)}.ecp-summary-divider{font-size:11px;color:var(--text-muted);line-height:1;margin-top:1px}.ecp-summary-label{font-size:10px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--text-muted)}.ecp-summary-text{font-size:12.5px;color:var(--text-secondary);line-height:1.6;margin:0}.ecp-section{display:flex;flex-direction:column;gap:8px;padding-bottom:8px}.comment-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s;position:relative}.comment-card:hover:not(.resolved){border-color:var(--amber);box-shadow:0 0 0 2px var(--amber-light)}.comment-card.active{border-color:var(--amber);box-shadow:0 0 0 2px var(--amber-light)}.comment-card.flash{animation:ecp-card-flash .55s ease-out}@keyframes ecp-card-flash{0%{box-shadow:0 0 0 4px var(--amber);background:var(--amber-light)}60%{box-shadow:0 0 0 3px var(--amber-light);background:var(--amber-light)}to{box-shadow:0 0 0 2px var(--amber-light);background:var(--surface)}}.comment-card.resolved{opacity:.55;cursor:default}.comment-anchor-quote{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}.comment-anchor-bar{flex-shrink:0;width:3px;align-self:stretch;background:var(--amber);border-radius:2px;min-height:14px}.comment-anchor-text{font-size:11.5px;font-style:italic;color:var(--text-secondary);line-height:1.5;word-break:break-word}.comment-body-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px}.comment-body-row .comment-body{margin-bottom:0;flex:1}.comment-body{font-size:13px;color:var(--text);line-height:1.55;margin-bottom:10px}.comment-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.comment-footer-left{display:flex;align-items:center;gap:6px}.comment-thread-toggle,.comment-reply-btn{font-size:11px;font-weight:500;color:var(--text-muted);background:transparent;border:none;cursor:pointer;padding:2px 6px;border-radius:4px;transition:background .12s,color .12s}.comment-thread-toggle:hover,.comment-reply-btn:hover{background:var(--surface-alt);color:var(--text)}.comment-resolve-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--border);border-radius:50%;background:transparent;cursor:pointer;color:var(--text-muted);transition:border-color .12s,background .12s,color .12s;flex-shrink:0}.comment-resolve-btn svg{width:12px;height:12px}.comment-resolve-btn:hover{border-color:var(--green);background:var(--green-light);color:var(--green)}.comment-resolved-badge{font-size:10px;font-weight:600;color:var(--green);background:var(--green-light);border-radius:10px;padding:1px 7px;letter-spacing:.2px}.reply-avatar{flex-shrink:0;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:1px}.agent-avatar{background:var(--amber-light);color:var(--amber);border:1px solid color-mix(in srgb,var(--amber) 30%,transparent)}.agent-avatar svg{width:11px;height:11px}.user-avatar-img{width:22px;height:22px;border-radius:50%;object-fit:cover}.user-avatar-initials{background:var(--accent-light, #e8f0fe);color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.3px}.discuss-btn{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;padding:5px 10px;border-radius:var(--radius-sm);cursor:pointer;border:1px solid var(--accent);background:transparent;color:var(--accent);margin-bottom:8px;transition:background .12s,color .12s}.discuss-btn:hover{background:var(--accent-light)}.comment-thread{margin-top:10px;border-top:1px solid var(--border-light);padding-top:8px;display:flex;flex-direction:column;gap:10px}.comment-reply{display:flex;flex-direction:row;align-items:flex-start;gap:8px}.reply-content{display:flex;flex-direction:column;gap:2px;flex:1}.comment-reply.user .reply-author{color:var(--accent)}.comment-reply.agent .reply-author{color:var(--amber)}.reply-author{font-size:10.5px;font-weight:600;letter-spacing:.3px;text-transform:uppercase}.reply-text{font-size:12.5px;color:var(--text-secondary);line-height:1.5}.typing-indicator{display:flex;align-items:center;gap:4px;padding:4px 0}.typing-indicator .dot{width:5px;height:5px;border-radius:50%;background:var(--amber);animation:typing-bounce 1.2s ease-in-out infinite;opacity:.7}.typing-indicator .dot:nth-child(2){animation-delay:.2s}.typing-indicator .dot:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}.comment-reply-input-area{margin-top:10px;border-top:1px solid var(--border-light);padding-top:8px}.comment-reply-input-area.inline{margin-top:2px;border-top:none;padding-top:0}.comment-reply-composer-row{display:flex;align-items:flex-start;gap:8px}.comment-reply-composer-row .comment-reply-textarea{flex:1}.comment-reply-textarea{width:100%;font-size:12.5px;font-family:inherit;color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);padding:7px 10px;resize:none;background:var(--surface-alt);outline:none;line-height:1.5;transition:border-color .12s}.comment-reply-textarea:focus{border-color:var(--accent);background:var(--surface)}.comment-reply-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}.reply-cancel-btn{font-size:12px;padding:4px 10px;background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);transition:background .12s}.reply-cancel-btn:hover{background:var(--surface-alt)}.reply-send-btn{font-size:12px;padding:4px 12px;background:var(--amber);border:none;border-radius:var(--radius-sm);cursor:pointer;color:#fff;font-weight:500;transition:opacity .12s}.reply-send-btn:disabled{opacity:.5;cursor:not-allowed}.reply-send-btn:not(:disabled):hover{opacity:.85}.ecp-resolved-section{margin-top:8px;border-top:1px solid var(--border-light);padding-top:8px}.ecp-resolved-toggle{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:var(--text-muted);background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;transition:color .12s;width:100%}.ecp-resolved-toggle:hover{color:var(--text)}.ecp-resolved-toggle svg{width:12px;height:12px;transition:transform .15s;flex-shrink:0}.ecp-resolved-toggle svg.rotated{transform:rotate(180deg)}.ecp-resolved-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}.comment-card.skeleton{pointer-events:none;cursor:default;animation:ecp-shimmer 1.4s ease-in-out infinite}@keyframes ecp-shimmer{0%,to{opacity:1}50%{opacity:.45}}.skeleton-anchor{height:12px;background:var(--border);border-radius:4px;margin-bottom:10px;width:60%}.skeleton-line{height:10px;background:var(--border-light);border-radius:4px;margin-bottom:8px}.skeleton-line.long{width:90%}.skeleton-line.medium{width:72%}.skeleton-line.short{width:45%}.editor-col{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;min-height:0;overflow-y:auto;padding:12px 80px}.editor-card{overflow:visible;flex:1;display:flex;flex-direction:column;position:relative;width:100%;max-width:960px}.editor-toolbar{display:flex;align-items:center;gap:2px;padding:6px 12px;margin:0 24px;border:1px solid var(--border-light);border-radius:12px;background:#ffffffb3;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);flex-shrink:0;position:sticky;top:0;z-index:90;box-shadow:var(--shadow-sm)}.toolbar-spacer{flex:1}.toolbar-save-indicator{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:500;letter-spacing:.01em;margin-right:4px}.toolbar-save-indicator.saving{color:var(--text-muted)}.toolbar-save-indicator.saved{color:var(--green);animation:saved-fade 2.5s ease forwards}@keyframes saved-fade{0%{opacity:0;transform:translateY(2px)}10%{opacity:1;transform:translateY(0)}75%{opacity:1}to{opacity:0}}.save-spinner{width:9px;height:9px;border:1.5px solid var(--border);border-top-color:var(--text-muted);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.toolbar-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:var(--radius-sm);cursor:pointer;color:var(--text-secondary);font-size:14px;font-weight:600;transition:all .12s;position:relative}.toolbar-btn--auto-width{width:auto;padding:0 8px}.toolbar-btn:hover{background:var(--border-light);color:var(--text)}.toolbar-btn.active{background:var(--accent-light);color:var(--accent)}.toolbar-btn:disabled{opacity:.3;cursor:not-allowed;pointer-events:none}.toolbar-sep{width:1px;height:20px;background:var(--border);margin:0 6px}.zen-btn{width:auto;padding:0 10px;gap:5px;font-size:12px;font-weight:500;color:var(--text-secondary);border:1px solid var(--border);border-radius:var(--radius-sm)}.zen-btn svg{flex-shrink:0}.zen-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}.zen-btn.active{background:transparent;color:var(--text-secondary);border-color:var(--border)}.zen-btn.active:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}.editor-scroller{flex:1;overflow:visible;display:flex;flex-direction:column;position:relative;width:100%}.editor-title{padding:28px 40px 18px;outline:none;font-size:32px;font-weight:800;line-height:1.2;letter-spacing:-.8px;color:#2c3a4e;caret-color:#2c3a4e;cursor:text;flex-shrink:0;word-break:break-word;margin-bottom:0;position:relative;font-family:var(--font-family-content)}.editor-title:empty:before{content:attr(data-placeholder);color:var(--text-muted);opacity:.45;pointer-events:none}.editor-title:focus:before{opacity:.25}.editor-subtitle{padding:6px 40px 20px;outline:none;font-size:17px;font-weight:400;line-height:1.5;color:var(--text-secondary);caret-color:var(--text-secondary);cursor:text;flex-shrink:0;word-break:break-word;border-bottom:1px solid var(--border-light);position:relative;font-family:var(--font-family-content)}.editor-subtitle:empty:before{content:attr(data-placeholder);color:var(--text-muted);opacity:.4;pointer-events:none}.editor-subtitle:focus:before{opacity:.2}.editor-body{padding:24px 40px 80px;outline:none;font-size:15.5px;flex:1;overflow-y:visible;min-height:50vh;line-height:1.8;color:#2c3a4e;caret-color:#2c3a4e;position:relative;cursor:text;font-family:var(--font-family-content)}.editor-body h1{font-size:22px;font-weight:700;line-height:1.3;margin-bottom:12px;margin-top:32px;letter-spacing:-.4px}.editor-body h1:first-child{margin-top:0}.editor-body h2{font-size:17px;font-weight:700;line-height:1.35;margin-bottom:8px;margin-top:24px;letter-spacing:-.2px}.editor-body h1 span,.editor-body h2 span{font-size:inherit!important;font-family:inherit!important}.editor-body p{margin-bottom:14px}.editor-body blockquote{margin:18px 0;padding:10px 20px;border-left:3px solid var(--accent);background:var(--accent-light);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--text-secondary);font-style:italic}.editor-body a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.editor-body a:hover{opacity:.75}.link-popup{position:absolute;z-index:200;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm),0 4px 16px #0000001f;padding:7px 12px;min-width:280px;max-width:380px;animation:linkPopupIn .12s ease}@keyframes linkPopupIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.link-popup-icon{color:var(--accent);flex-shrink:0}.link-popup-input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-size:13px;color:var(--text);font-family:inherit}.link-popup-input::placeholder{color:var(--text-muted)}.editor-body .cited:empty,.editor-body .cited-warn:empty{display:none}.editor-body .cited{background:var(--accent-light);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:2px;padding:0 2px;border-radius:2px;cursor:text;transition:background .15s}.editor-body .cited:hover{background:var(--accent-light);filter:brightness(.92)}.editor-body .cited-warn{background:var(--amber-light);text-decoration:underline;text-decoration-color:var(--amber);text-decoration-thickness:2px;text-underline-offset:2px}.editor-body.citations-hidden .cited,.editor-body.citations-hidden .cited-warn{background:none;text-decoration:none;padding:0;border-radius:0}.editor-body .comment-anchor{background:#f59e0b1f;border-bottom:1.5px dashed var(--amber);border-radius:2px;cursor:pointer;transition:background .15s}.editor-body .comment-anchor:hover,.editor-body .comment-anchor.active{background:#f59e0b47}.editor-body .tracked-change{margin:8px 0;padding-top:20px;position:relative}.editor-body .tracked-change:before{content:attr(data-label);position:absolute;top:2px;left:0;font-size:9px;font-weight:600;color:var(--green);letter-spacing:.3px;text-transform:uppercase;white-space:nowrap}.editor-body .tracked-remove{display:block;background:#fee2e2;border-left:3px solid var(--red);padding:4px 8px;border-radius:2px;text-decoration:line-through;color:var(--text-secondary);margin-bottom:4px}.editor-body .tracked-insert{display:block;background:#dcfce7;border-left:3px solid var(--green);padding:4px 8px;border-radius:2px}.tracked-actions{display:flex;gap:4px;margin-top:6px}.tracked-accept,.tracked-reject{font-size:11px;padding:2px 8px;border-radius:4px;border:none;cursor:pointer;font-weight:500;transition:background .12s}.tracked-accept{background:var(--green-light);color:var(--green)}.tracked-accept:hover{background:var(--green);color:#fff}.tracked-reject{background:var(--red-light);color:var(--red)}.tracked-reject:hover{background:var(--red);color:#fff}.cite-indicator{position:absolute;display:flex;align-items:center;gap:4px;padding:4px 10px;background:var(--accent);color:#fff;border:none;border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;box-shadow:var(--shadow-md);z-index:50;transition:transform .12s,opacity .12s;white-space:nowrap}.cite-indicator svg{width:14px;height:14px}.cite-indicator .badge{background:#fff;color:var(--accent);width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.cite-indicator:hover{transform:scale(1.05)}.cite-indicator.no-match{background:var(--red)}.citation-panel{position:absolute;width:360px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);z-index:60;overflow:hidden;animation:panelIn .2s ease}@keyframes panelIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.citation-panel-header{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-bottom:1px solid var(--border-light);background:var(--surface-alt)}.citation-panel-header h3{font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin:0}.panel-close{width:22px;height:22px;border:none;background:transparent;border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);font-size:14px;display:flex;align-items:center;justify-content:center}.panel-close:hover{background:var(--border-light);color:var(--text)}.citation-panel-body{padding:8px;max-height:340px;overflow-y:auto}.citation-match{display:flex;gap:10px;padding:8px 10px;border-radius:var(--radius-sm);border:1px solid var(--border-light);margin-bottom:6px;transition:border-color .15s,box-shadow .15s;cursor:pointer}.citation-match:hover{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.citation-match:last-child{margin-bottom:0}.match-icon{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}.match-icon.web{background:var(--accent-light)}.match-meta{flex:1;min-width:0}.match-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:1px;line-height:1.4}.match-domain{font-size:11px;color:var(--text-muted);margin-bottom:3px;display:flex;align-items:center;gap:6px}.match-excerpt{font-size:13px;color:var(--text-secondary);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.match-excerpt mark{background:var(--accent-light);color:var(--accent);padding:0 2px;border-radius:2px}.match-actions{display:flex;flex-direction:column;gap:4px;flex-shrink:0;align-items:flex-end;justify-content:space-between}.match-date{font-size:11px;color:var(--text-muted);white-space:nowrap}.no-match-msg{text-align:center;padding:28px 20px;color:var(--text-muted);font-size:14px}.no-match-msg svg{display:block;margin:0 auto 10px;opacity:.4}.no-match-msg strong{color:var(--text-secondary);display:block;margin-bottom:4px}.editor-body.drop-active{outline:2px dashed var(--accent);outline-offset:-3px;background:color-mix(in srgb,var(--accent-light) 40%,transparent)}.image-drop-cursor{position:absolute;width:2px;background:var(--accent);border-radius:2px;pointer-events:none;z-index:90;animation:dropCursorBlink .8s step-start infinite}@keyframes dropCursorBlink{0%,to{opacity:1}50%{opacity:0}}.editor-image-figure{display:block;text-align:center;margin:20px 0;line-height:1.4}.editor-audio-figure{display:block;margin:20px 0;line-height:1.4}.editor-audio{display:block;width:100%;border-radius:3px;outline:none}.editor-image-figure.dragging{opacity:.35;pointer-events:none}.editor-image{display:inline-block;max-width:100%;height:auto;cursor:grab;border-radius:3px;transition:box-shadow .15s;vertical-align:top;-webkit-user-select:none;user-select:none}.editor-image:active{cursor:grabbing}.editor-image:hover{box-shadow:0 0 0 2px var(--accent-light),0 2px 8px #0000001f}.editor-image-caption{display:block;width:70%;margin:0 auto;text-align:center;font-size:13px;line-height:1.5;color:var(--text-muted);outline:none;cursor:text;max-height:0;overflow:hidden;opacity:0;transition:max-height .18s ease,opacity .18s ease,margin-top .18s ease}.editor-image-figure.caption-active .editor-image-caption,.editor-image-figure.caption-has-content .editor-image-caption{max-height:8em;opacity:1;margin-top:8px}.editor-image-figure.caption-active .editor-image-caption:empty:before{content:attr(data-placeholder);color:var(--text-muted);opacity:.5;pointer-events:none}.editor-image-caption:focus{color:var(--text-secondary)}.editor-image-placeholder{display:block;text-align:center;margin:20px 0;line-height:1;-webkit-user-select:none;user-select:none}.image-placeholder-body{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:60%;min-height:130px;border-radius:var(--radius);border:1.5px dashed var(--border);background:linear-gradient(90deg,var(--surface-alt) 25%,var(--accent-light) 50%,var(--surface-alt) 75%);background-size:300% 100%;animation:imgPlaceholderShimmer 1.6s ease-in-out infinite;color:var(--text-muted)}@keyframes imgPlaceholderShimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.image-placeholder-spinner{width:22px;height:22px;border:2.5px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:imgPlaceholderSpin .75s linear infinite;flex-shrink:0}@keyframes imgPlaceholderSpin{to{transform:rotate(360deg)}}.image-placeholder-label{font-size:12.5px;font-weight:500;color:var(--text-secondary);letter-spacing:.01em}.editor-image-placeholder.error .image-placeholder-body{background:var(--red-light, #fff0f0);border-color:var(--red, #e53e3e);border-style:solid;animation:none}.editor-image-placeholder.error .image-placeholder-label{color:var(--red, #e53e3e)}.image-placeholder-error-icon{color:var(--red, #e53e3e);flex-shrink:0}.image-size-toolbar{position:absolute;transform:translate(-50%);display:flex;gap:2px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:3px;z-index:80;pointer-events:all}.image-size-btn{padding:4px 10px;font-size:12px;font-weight:500;color:var(--text-secondary);background:transparent;border:none;border-radius:4px;cursor:pointer;transition:background .12s,color .12s;white-space:nowrap}.image-size-btn:hover{background:var(--surface-alt);color:var(--text)}.image-size-btn.active{background:var(--accent-light);color:var(--accent)}.editor-image-figure.caption-active .editor-image{box-shadow:0 0 0 2px var(--accent)}.editor-selection-chat-btn{position:fixed;transform:translate(-50%);display:inline-flex;align-items:center;gap:5px;padding:5px 11px;background:var(--accent);color:#fff;border:none;border-radius:20px;font-size:11px;font-weight:600;cursor:pointer;z-index:200;box-shadow:var(--shadow-md);white-space:nowrap;pointer-events:all;animation:editorSelectionBtnIn .12s ease}.editor-selection-chat-btn:hover{background:var(--accent-hover, #3d5ce0)}@keyframes editorSelectionBtnIn{0%{opacity:0;transform:translate(-50%) translateY(-4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.editor-card.zen-mode{border-radius:0;border:none;box-shadow:none;background:var(--bg)}.zen-toolbar-shell{position:fixed;top:0;left:0;right:0;z-index:200;pointer-events:none}.zen-toolbar-rail{--zen-toolbar-toggle-h: 28px;display:flex;flex-direction:column;align-items:stretch;width:100%;pointer-events:auto;transform:translateY(calc(-100% + var(--zen-toolbar-toggle-h)));transition:transform .28s cubic-bezier(.4,0,.2,1)}.zen-toolbar-rail.zen-toolbar-rail--open{transform:translateY(0)}.editor-toolbar.zen-toolbar{position:relative;margin:0;width:100%;border-radius:0;border-left:none;border-right:none;border-top:none;background:var(--surface-alt);border-bottom:1px solid var(--border-light);box-shadow:var(--shadow-md)}.zen-toolbar-toggle{flex-shrink:0;align-self:flex-end;height:var(--zen-toolbar-toggle-h);min-width:52px;padding:0 12px;margin:0 12px 0 0;border:1px solid var(--border-light);border-top:none;border-radius:0 0 10px 10px;background:var(--surface-alt);box-shadow:var(--shadow-md);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center}.zen-toolbar-toggle:hover{color:var(--text);background:var(--surface)}.zen-toolbar-toggle:focus-visible{outline:2px solid var(--accent, #4d6ce6);outline-offset:2px}.editor-title.zen-title{padding:60px 40px 8px;font-size:36px}.editor-subtitle.zen-subtitle{padding:6px 40px 20px}.editor-body.zen-body{background:var(--bg);padding:16px 40px 60px;font-size:17px;line-height:2}.topbar{background:var(--surface);border-bottom:1px solid var(--border);padding:0 32px;height:56px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:200;flex-shrink:0}.topbar-left{display:flex;align-items:center;gap:16px}.logo{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center}.logo:hover{opacity:.8}.logo-img{height:56px;width:auto;display:block}.breadcrumb{font-size:13px;color:var(--text-muted)}.breadcrumb span{color:var(--text-secondary);font-weight:500}.breadcrumb-status{display:inline-flex;align-items:center;padding:2px 7px;border-radius:10px;font-size:11px;font-weight:600;letter-spacing:.2px;vertical-align:middle;cursor:pointer;transition:all .12s;gap:4px;-webkit-user-select:none;user-select:none}.breadcrumb-status:hover,.breadcrumb-status.active{filter:brightness(.95);transform:translateY(-1px)}.status-dropdown-wrapper{position:relative;display:inline-flex;margin-left:8px}.status-chevron{opacity:.5;transition:transform .2s}.breadcrumb-status.active .status-chevron{transform:rotate(180deg)}.status-dropdown{position:absolute;top:calc(100% + 6px);left:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:4px;min-width:160px;z-index:1000;display:flex;flex-direction:column;gap:2px;animation:slideDown .1s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.status-dropdown-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border:none;background:transparent;width:100%;text-align:left;font-size:13px;color:var(--text);cursor:pointer;border-radius:4px;font-family:inherit;transition:background .1s}.status-dropdown-item:hover{background:var(--surface-alt)}.status-dropdown-item.selected{background:var(--accent-light);color:var(--accent);font-weight:500}.status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.status-dot--idea{background:var(--purple)}.status-dot--drafting{background:#f97316}.status-dot--editing{background:var(--red)}.status-dot--published{background:var(--text-muted)}.breadcrumb-status--idea{background:#ede9fe;color:var(--purple)}.breadcrumb-status--drafting{background:#fff0e6;color:#f97316}.breadcrumb-status--editing{background:#fef2f2;color:var(--red)}.breadcrumb-status--published{background:var(--surface-alt);color:var(--text-muted)}.topbar-right{display:flex;align-items:center;gap:12px}.topbar-btn{display:flex;align-items:center;gap:6px;padding:8px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary);font-family:inherit;transition:all .12s}.topbar-btn:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.topbar-btn svg{width:16px;height:16px}.export-wrapper{position:relative}.topbar-btn--export{gap:5px;background:var(--accent);border-color:var(--accent);color:#fff}.topbar-btn--export:hover,.topbar-btn--export-open{background:var(--accent-hover);border-color:var(--accent-hover);color:#fff}.export-chevron{opacity:.75;transition:transform .15s;flex-shrink:0}.topbar-btn--export-open .export-chevron{transform:rotate(180deg);opacity:1}.topbar-btn--exporting{opacity:.85;cursor:default;pointer-events:none}@keyframes export-spin{to{transform:rotate(360deg)}}.export-spinner{animation:export-spin .75s linear infinite;flex-shrink:0}.export-dropdown{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:4px;z-index:200;animation:dropdown-in .1s ease}.export-dropdown-label{font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;padding:6px 10px 4px}.export-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:none;background:none;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary);font-family:inherit;text-align:left;transition:background .1s,color .1s}.export-dropdown-item:hover{background:var(--surface-alt);color:var(--text)}.export-dropdown-ext{margin-left:auto;font-size:11px;color:var(--text-muted);font-weight:400;font-family:monospace}.user-menu-wrapper{position:relative}.user-menu-btn{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary);font-family:inherit;transition:all .12s}.user-menu-btn:hover,.user-menu-btn--open{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.user-avatar{width:26px;height:26px;border-radius:50%;background:var(--accent);color:var(--on-accent, #fff);font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;letter-spacing:.3px}.user-avatar--img{object-fit:cover;background:var(--surface-alt)}.user-menu-btn--open .user-avatar:not(.user-avatar--img),.user-menu-btn:hover .user-avatar:not(.user-avatar--img){background:var(--accent)}.user-chevron{opacity:.6;transition:transform .15s}.user-menu-btn--open .user-chevron{transform:rotate(180deg);opacity:1}.user-dropdown{position:absolute;top:calc(100% + 6px);right:0;min-width:168px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:4px;z-index:200;animation:user-dropdown-in .1s ease}@keyframes user-dropdown-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.user-dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:none;background:none;border-radius:var(--radius-sm);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary);font-family:inherit;text-align:left;transition:background .1s,color .1s}.user-dropdown-item:hover{background:var(--surface-alt);color:var(--text)}.user-dropdown-item--danger:hover{background:#fef2f2;color:var(--red)}.user-dropdown-divider{height:1px;background:var(--border-light);margin:4px 0}.user-dropdown-profile{display:flex;flex-direction:column;gap:2px;padding:10px 12px 8px}.user-dropdown-profile-name{font-size:13px;font-weight:600;color:var(--text);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-dropdown-profile-email{font-size:11px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-dropdown-credits{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 12px;border:none;background:var(--surface-alt);border-radius:var(--radius-sm);cursor:pointer;font-family:inherit;transition:background .1s}.user-dropdown-credits:hover{background:var(--accent-light)}.user-dropdown-credits-label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.user-dropdown-credits-value{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em}.user-dropdown-credits-value--healthy{color:var(--green)}.user-dropdown-credits-value--low{color:var(--amber)}.user-dropdown-credits-value--empty{color:var(--red)}.user-dropdown-credits-value--loading{color:var(--text-muted)}.user-dropdown-section-label{padding:6px 10px 4px;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}.user-dropdown-theme-grid{display:flex;gap:4px;padding:2px 6px 6px}.user-dropdown-theme-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 4px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:none;cursor:pointer;font-size:11px;font-weight:500;color:var(--text-secondary);font-family:inherit;transition:border-color .12s,color .12s,background .12s}.user-dropdown-theme-btn:hover{background:var(--surface-alt);border-color:var(--border);color:var(--text)}.user-dropdown-theme-btn--active{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}.lp{position:fixed;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;font-family:var(--font-family);background:#1a1a18}.lp-section{position:relative;overflow:hidden}.lp-section--ink{background:#1a1a18}.lp-section--paper{background:#f5f5f3}.lp-section--white{background:#fff}.lp-aurora{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.lp-aurora-orb{position:absolute;border-radius:50%;filter:blur(130px);will-change:transform}.lp-aurora-orb--1{width:750px;height:750px;background:radial-gradient(circle,rgba(105,65,198,.28) 0%,transparent 70%);top:-18%;left:-8%;animation:lp-aurora-drift-1 30s ease-in-out infinite alternate}.lp-aurora-orb--2{width:850px;height:850px;background:radial-gradient(circle,rgba(13,116,144,.22) 0%,transparent 70%);bottom:-22%;right:-12%;animation:lp-aurora-drift-2 38s ease-in-out infinite alternate}.lp-aurora-orb--3{width:580px;height:580px;background:radial-gradient(circle,rgba(245,158,11,.13) 0%,transparent 70%);top:28%;right:10%;animation:lp-aurora-drift-3 24s ease-in-out infinite alternate}@keyframes lp-aurora-drift-1{0%{transform:translate(0) scale(1)}to{transform:translate(90px,70px) scale(1.14)}}@keyframes lp-aurora-drift-2{0%{transform:translate(0) scale(1)}to{transform:translate(-80px,-55px) scale(1.1)}}@keyframes lp-aurora-drift-3{0%{transform:translate(0) scale(1)}to{transform:translate(-55px,80px) scale(.88)}}.lp-nav{position:sticky;top:0;z-index:50;background:#1a1a18e6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08)}.lp-nav-inner{max-width:1280px;margin:0 auto;padding:0 40px;height:56px;display:flex;align-items:center;gap:32px}.lp-nav-brand{display:flex;align-items:center;gap:8px;color:#fff;font-size:15px;font-weight:700;letter-spacing:-.02em;flex-shrink:0}.lp-nav-brand svg{opacity:.9}.lp-nav-links{display:flex;gap:2px;flex:1}.lp-nav-link{padding:6px 12px;font-size:13.5px;color:#fff9;text-decoration:none;border-radius:2px;transition:color .15s}.lp-nav-link:hover{color:#ffffffe6}.lp-nav-actions{display:flex;gap:8px;align-items:center;flex-shrink:0;margin-left:auto}.lp-nav .lp-cta-btn,.lp-nav .lp-dev-btn{padding:7px 16px;font-size:13px}.lp-nav .lp-cta-btn{background:#ffffff1a;border-color:#ffffff38;color:#ffffffeb}.lp-nav .lp-cta-btn:hover{background:#ffffff29}.lp-nav .lp-dev-btn{padding:7px 14px}.lp-section--hero{min-height:100vh;display:flex;align-items:center;justify-content:center}.lp-hero{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:24px;text-align:center;max-width:860px;padding:80px 40px}.lp-hero-logo{width:clamp(320px,50vw,560px);height:auto}.lp-hero-headline{font-size:clamp(36px,4.2vw,56px);font-weight:800;color:#fff;line-height:1.1;letter-spacing:-.03em;margin:0}.lp-hero-sub{font-size:clamp(15px,1.4vw,17px);color:#fff9;line-height:1.75;max-width:560px;margin:0}.lp-hero-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.lp-chip{font-size:11px;font-weight:600;letter-spacing:.05em;padding:4px 10px;border-radius:2px;border:1px solid}.lp-chip--purple{color:#c4a8ff;border-color:#c4a8ff4d;background:#c4a8ff14}.lp-chip--teal{color:#6dd8c8;border-color:#6dd8c84d;background:#6dd8c814}.lp-chip--amber{color:#f5c84a;border-color:#f5c84a4d;background:#f5c84a14}.lp-hero-cta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center;margin-top:4px}.lp-cta-btn{display:inline-flex;align-items:center;gap:10px;padding:13px 26px;background:#f5f5f3;color:#111;border:1px solid #c4c4c2;border-radius:2px;font-size:15px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.lp-cta-btn:hover{background:#ebebea}.lp-google-icon{flex-shrink:0}.lp-waitlist-btn{display:inline-flex;align-items:center;padding:13px 28px;background:#1a1a18;color:#ffffffeb;border:1px solid rgba(255,255,255,.3);border-radius:2px;font-size:15px;font-weight:600;font-family:inherit;cursor:pointer;letter-spacing:.01em;transition:background .15s,border-color .15s;white-space:nowrap;position:relative;overflow:visible}.lp-waitlist-btn:hover,.lp-waitlist-btn--open{background:#252523;border-color:#ffffff80}.lp-waitlist-btn--open:before,.lp-waitlist-btn--open:after{animation:none;opacity:0}.lp-waitlist-btn:before,.lp-waitlist-btn:after{content:"";position:absolute;top:50%;width:48px;height:48px;border-radius:50%;border:1.5px solid rgba(255,255,255,.5);pointer-events:none;z-index:-1}.lp-waitlist-btn:before{left:0;animation:lp-waitlist-wave-left 2.2s ease-out infinite}.lp-waitlist-btn:after{right:0;animation:lp-waitlist-wave-right 2.2s ease-out .55s infinite}@keyframes lp-waitlist-wave-left{0%{transform:translate(-50%,-50%) scale(.4);opacity:.8}to{transform:translate(-50%,-50%) scale(2.6);opacity:0}}@keyframes lp-waitlist-wave-right{0%{transform:translate(50%,-50%) scale(.4);opacity:.8}to{transform:translate(50%,-50%) scale(2.6);opacity:0}}@media (prefers-reduced-motion: reduce){.lp-waitlist-btn:before,.lp-waitlist-btn:after{animation:none;opacity:0}}.lp-dev-btn{padding:13px 20px;background:#ffffff12;color:#fff9;border:1px solid rgba(255,255,255,.16);border-radius:2px;font-size:13px;font-weight:500;font-family:inherit;cursor:pointer;transition:background .15s}.lp-dev-btn:hover{background:#ffffff1f}.lp-terms{font-size:12px;color:#ffffff59;margin:0}.lp-agent-row{display:flex;align-items:center;gap:72px;max-width:1280px;margin:0 auto;padding:100px 80px}.lp-agent-row--reverse{flex-direction:row-reverse}.lp-agent-stack{max-width:1280px;margin:0 auto;padding:100px 80px;display:flex;flex-direction:column;align-items:center;gap:52px}.lp-agent-text--centered{max-width:620px;text-align:center}.lp-agent-text--centered .lp-feature-list{text-align:left}.lp-agent-visual-full{width:100%;display:flex;justify-content:center}.lp-agent-text{flex:0 0 40%;display:flex;flex-direction:column;gap:20px}.lp-agent-visual{flex:1;display:flex;align-items:center;justify-content:center}.lp-agent-visual--wide{align-items:flex-start}.lp-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.lp-eyebrow--purple{color:#6941c6}.lp-eyebrow--teal{color:#0e7490}.lp-eyebrow--amber{color:#92400e}.lp-section--ink .lp-eyebrow--purple{color:#c4a8ff}.lp-section--ink .lp-eyebrow--teal{color:#6dd8c8}.lp-section--ink .lp-eyebrow--amber{color:#f5c84a}.lp-headline{font-size:clamp(26px,3vw,40px);font-weight:800;color:#111;line-height:1.18;letter-spacing:-.025em;margin:0}.lp-section--white .lp-headline{color:#111}.lp-body{font-size:clamp(14px,1.15vw,16px);color:#444;line-height:1.75;margin:0}.lp-feature-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.lp-feature-list li{font-size:13.5px;color:#666663;padding-left:18px;position:relative;line-height:1.5}.lp-feature-list li:before{content:"—";position:absolute;left:0;color:#aaa;font-weight:300}.lp-section--cta{min-height:60vh;display:flex;align-items:center;justify-content:center}.lp-cta-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center;padding:80px 40px}.lp-cta-headline{font-size:clamp(32px,4vw,56px);font-weight:800;color:#fff;line-height:1.12;letter-spacing:-.03em;margin:0}.lp-cta-sub{font-size:clamp(14px,1.2vw,17px);color:#ffffff8c;margin:0;max-width:480px}.lp-mock{width:100%;max-width:440px;background:var(--surface);border:1px solid var(--border);border-radius:4px;overflow:hidden;box-shadow:0 4px 28px #0000001a;position:relative}.lp-mock:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;z-index:100}.lp-mock--wide{max-width:1100px;width:100%;max-height:580px;overflow:hidden}.lp-mock--research{max-width:1000px;width:100%;max-height:600px;overflow:visible;background:transparent;border-color:transparent;box-shadow:none}.lp-mock-research-layout{display:flex;height:100%;gap:20px}.lp-mock--research .chat-panel{flex:0 0 420px;border-radius:6px;overflow:hidden;max-height:none;box-shadow:0 2px 16px #0000001a}.lp-mock .rtp{position:relative;top:auto;left:auto;bottom:auto;width:auto;flex:1;z-index:auto;border-right:none}.lp-mock--research .rtp{border:1px solid var(--border);border-radius:6px;overflow:hidden;box-shadow:0 2px 16px #0000001a}.lp-mock .rtp-list{overflow-y:hidden}.lp-mock .research-prompt{animation:none}.lp-mock-chat-layout{display:flex;height:100%;width:100%}.lp-mock .chat-panel,.lp-mock-chat-panel{position:relative;top:auto;left:auto;bottom:auto;width:auto;flex:0 0 380px;z-index:auto;border-right:1px solid var(--border);border-radius:0;max-height:580px}.lp-mock-chat-panel .chat-messages{overflow-y:hidden}.lp-mock-messages-scroll{display:flex;flex-direction:column;gap:4px;will-change:transform}@keyframes lp-messages-scroll{0%{transform:translateY(0)}33%{transform:translateY(0)}39%{transform:translateY(-70px)}46%{transform:translateY(-240px)}68%{transform:translateY(-620px)}to{transform:translateY(-620px)}}.mock--playing .lp-mock-messages-scroll{animation:lp-messages-scroll 8s ease-in-out .3s forwards}.lp-mock-chat-panel .chat-input-row--typing .chat-input{border-color:var(--accent);outline:none}.lp-mock-chat-panel .chat-send-btn--active{background:var(--accent);color:var(--on-accent);border-color:var(--accent);opacity:1;cursor:default}.lp-mock-editor--chat{flex:1;border-left:none;min-width:0;overflow:hidden}.lp-mock-msg--1,.lp-mock-msg--2,.lp-mock-msg--3,.lp-mock-msg--4,.lp-mock-msg--5{opacity:0}.mock--playing .lp-mock-msg--1{animation:lp-fade-up .35s ease-out 2.1s forwards}.mock--playing .lp-mock-msg--2{animation:lp-fade-up .3s ease-out 2.9s forwards}.mock--playing .lp-mock-msg--3{animation:lp-fade-up .35s ease-out 3.4s forwards}.mock--playing .lp-mock-msg--4{animation:lp-fade-up .4s ease-out 4s forwards}.mock--playing .lp-mock-msg--5{animation:lp-fade-up .4s ease-out 5.6s forwards}@keyframes lp-lede-exit{0%{opacity:1;max-height:200px;overflow:hidden;margin-bottom:1em}50%{opacity:0;max-height:200px}to{opacity:0;max-height:0;overflow:hidden;margin-bottom:0}}.lp-mock-original-lede{max-height:200px;overflow:hidden}.mock--playing .lp-mock-original-lede{animation:lp-lede-exit .45s ease-in-out 4s forwards}@keyframes lp-tracked-change-expand{0%{opacity:0;max-height:0;overflow:hidden;margin:0;transform:translateY(-6px)}35%{opacity:1}to{opacity:1;max-height:600px;overflow:visible;margin:8px 0 14px;transform:translateY(0)}}.lp-mock-tracked-change-anim{opacity:0;max-height:0;overflow:hidden;margin:0}.mock--playing .lp-mock-tracked-change-anim{animation:lp-tracked-change-expand .5s ease-out 4.5s forwards}.lp-mock-editor-body .tracked-change{margin:8px 0 14px;padding-top:20px;position:relative}.lp-mock-editor-body .tracked-change:before{content:attr(data-label);position:absolute;top:2px;left:0;font-size:9px;font-weight:600;color:var(--green);letter-spacing:.3px;text-transform:uppercase;white-space:nowrap}.lp-mock-editor-body .tracked-remove{display:block;background:#fee2e2;border-left:3px solid var(--red);padding:4px 8px;border-radius:2px;text-decoration:line-through;color:var(--text-secondary);margin-bottom:4px;font-size:13.5px;line-height:1.7}.lp-mock-editor-body .tracked-insert{display:block;background:#dcfce7;border-left:3px solid var(--green);padding:4px 8px;border-radius:2px;font-size:13.5px;line-height:1.7}.lp-mock-editor-body .tracked-actions{display:flex;gap:4px;margin-top:6px}.lp-mock-editor-body .tracked-accept,.lp-mock-editor-body .tracked-reject{font-size:11px;padding:2px 8px;border-radius:4px;border:none;cursor:default;font-weight:500;pointer-events:none}.lp-mock-editor-body .tracked-accept{background:var(--green-light, #dcfce7);color:var(--green)}.lp-mock-editor-body .tracked-reject{background:var(--red-light, #fee2e2);color:var(--red)}.lp-mock-editor-body .lp-mock-cited{background:var(--accent-light);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:2px;padding:0 2px;border-radius:2px}.lp-mock-editor-layout{display:flex;height:100%}.lp-mock-editor{flex:1;display:flex;flex-direction:column;min-width:0}.lp-mock-editor-toolbar{display:flex;align-items:center;gap:4px;padding:7px 12px;border-bottom:1px solid var(--border-light);background:var(--surface-alt)}.lp-mock-tbtn{display:inline-block;width:20px;height:20px;border-radius:2px;background:var(--border-light)}.lp-mock-tbtn--wide{width:36px}.lp-mock-tsep{display:inline-block;width:1px;height:16px;background:var(--border);margin:0 3px}.lp-mock-editor-title{padding:20px 28px 12px;font-size:28px;font-weight:800;line-height:1.2;letter-spacing:-.8px;color:#2c3a4e;font-family:var(--font-family-content)}.lp-mock-editor-subtitle{padding:4px 28px 16px;font-size:15px;font-weight:400;line-height:1.5;color:var(--text-secondary);font-family:var(--font-family-content);border-bottom:1px solid var(--border-light)}.lp-mock-editor-body{padding:18px 28px 24px;display:flex;flex-direction:column;gap:0}.lp-mock-editor-para{font-size:14px;line-height:1.8;color:#2c3a4e;font-family:var(--font-family-content);margin:0 0 1em}.lp-mock-anchor-highlight{background:#f59e0b1f;border-bottom:1.5px dashed var(--amber);border-radius:2px}.lp-mock .editor-comments-panel{position:relative;top:auto;left:auto;bottom:auto;width:auto;flex:0 0 340px;z-index:auto}.lp-mock .ecp-body{overflow-y:hidden}.lp-mock-research-msg--1,.lp-mock-research-prompt,.lp-mock-rtp-panel,.lp-mock-rtp-done,.lp-mock-msg--1,.lp-mock-msg--2,.lp-mock-ai-line--1,.lp-mock-ai-line--2,.lp-mock-ai-line--3{opacity:0}.lp-mock-progress-bar{width:0%;transition:none}@keyframes lp-fade-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.mock--playing .lp-mock-research-msg--1{animation:lp-fade-up .35s ease .4s forwards}.mock--playing .lp-mock-research-prompt{animation:lp-fade-up .35s ease 1.1s forwards}@keyframes lp-progress-fill{0%{width:0%}to{width:60%}}.mock--playing .lp-mock-progress-bar{animation:lp-progress-fill 3s linear 1.3s forwards}@keyframes lp-rtp-panel-in{0%{opacity:0;transform:translate(14px)}to{opacity:1;transform:translate(0)}}.mock--playing .lp-mock-rtp-panel{animation:lp-rtp-panel-in .45s ease 1.8s forwards}.mock--playing .lp-mock-rtp-done{animation:lp-fade-up .4s ease 2.4s forwards}.mock--playing .lp-mock-msg--1{animation:lp-fade-up .4s ease 2.1s forwards}.mock--playing .lp-mock-msg--2{animation:lp-fade-up .4s ease 2.9s forwards}.mock--playing .lp-mock-ai-line--1{animation:lp-fade-up .4s ease 1.5s forwards}.mock--playing .lp-mock-ai-line--2{animation:lp-fade-up .4s ease 2.1s forwards}.mock--playing .lp-mock-ai-line--3{animation:lp-fade-up .4s ease 2.7s forwards}.mock--playing .lp-mock-comment-anim{animation:ecp-card-flash .55s ease-out .5s forwards}@keyframes lp-anchor-pulse{0%{background:#f59e0b1f}40%{background:#f59e0b59}to{background:#f59e0b1f}}.mock--playing .lp-mock-anchor-highlight--1{animation:lp-anchor-pulse .8s ease .5s}@media (prefers-reduced-motion: reduce){.lp-aurora-orb{animation:none}.lp-mock-research-msg--1,.lp-mock-research-prompt,.lp-mock-rtp-panel,.lp-mock-rtp-done,.lp-mock-msg--1,.lp-mock-msg--2,.lp-mock-msg--3,.lp-mock-msg--4,.lp-mock-msg--5,.lp-mock-ai-line--1,.lp-mock-ai-line--2,.lp-mock-ai-line--3{opacity:1}.lp-mock-progress-bar{width:60%}.mock--playing .lp-mock-research-msg--1,.mock--playing .lp-mock-research-prompt,.mock--playing .lp-mock-rtp-panel,.mock--playing .lp-mock-rtp-done,.mock--playing .lp-mock-progress-bar,.mock--playing .lp-mock-msg--1,.mock--playing .lp-mock-msg--2,.mock--playing .lp-mock-msg--3,.mock--playing .lp-mock-msg--4,.mock--playing .lp-mock-msg--5,.mock--playing .lp-mock-ai-line--1,.mock--playing .lp-mock-ai-line--2,.mock--playing .lp-mock-ai-line--3,.mock--playing .lp-mock-comment-anim,.mock--playing .lp-mock-anchor-highlight--1,.mock--playing .lp-mock-delete-target,.mock--playing .lp-mock-outtake-new-wrap,.mock--playing .lp-mock-browser--wordra,.mock--playing .lp-mock-original-lede,.mock--playing .lp-mock-tracked-change-anim{animation:none}.lp-mock-browser--wordra{opacity:1}.lp-mock-lib-new{max-height:100px;opacity:1}.lp-mock-delete-target{opacity:0;max-height:0;overflow:hidden}.lp-mock-outtake-new-wrap{max-height:400px;opacity:1}.lp-mock-original-lede{opacity:0;max-height:0;overflow:hidden;margin-bottom:0}.lp-mock-tracked-change-anim{opacity:1;max-height:600px;overflow:visible;margin:8px 0 14px}}.lp-mock-outtakes-layout{display:flex;height:100%;width:100%}.lp-mock-editor--outtakes{flex:1;min-width:0;overflow:hidden;border-right:1px solid var(--border)}.lp-mock-editor-h2{font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-.2px;color:#2c3a4e;margin:10px 0 6px;font-family:var(--font-family-content)}.lp-mock-sidebar-panel{position:relative;top:auto;right:auto;bottom:auto;transform:none!important;transition:none!important;flex:0 0 340px;z-index:auto;border-left:1px solid var(--border);max-height:540px;overflow:hidden}.lp-mock .outtake-item{animation:none}@keyframes lp-text-select-delete{0%{background:transparent;opacity:1;max-height:300px;overflow:hidden;border-radius:3px}20%{background:var(--accent-light);opacity:1;max-height:300px;border-radius:3px}38%{background:var(--accent-light);opacity:1;max-height:300px;border-radius:3px}65%{background:transparent;opacity:.25;max-height:300px}85%{opacity:0;max-height:300px}to{opacity:0;max-height:0;overflow:hidden}}.lp-mock-delete-target{border-radius:3px;overflow:hidden}.mock--playing .lp-mock-delete-target{animation:lp-text-select-delete 2s ease-in-out .4s forwards}.lp-mock-outtake-new-wrap{max-height:0;overflow:hidden;opacity:0}.mock--playing .lp-mock-outtake-new-wrap{animation:lp-outtake-appear .45s ease-out 1.9s forwards}@keyframes lp-outtake-appear{0%{max-height:0;opacity:0;transform:translateY(-6px)}30%{opacity:1}to{max-height:400px;opacity:1;transform:translateY(0)}}.lp-eyebrow--green{color:var(--green)}@media (max-width: 1024px){.lp-agent-row{gap:48px;padding:80px 48px}}@media (max-width: 860px){.lp-agent-row,.lp-agent-row--reverse{flex-direction:column;align-items:stretch;gap:40px;padding:64px 32px}.lp-agent-stack{padding:64px 32px;gap:36px}.lp-agent-text{flex:0 0 auto}.lp-agent-visual{align-items:center;justify-content:center}.lp-mock--wide{max-width:100%;max-height:none}.lp-mock--library{max-width:100%}.lp-mock--research{max-width:100%;max-height:none}}@media (max-width: 600px){.lp-hero{padding:60px 24px;gap:20px}.lp-agent-row{padding:48px 20px}.lp-cta-content{padding:60px 24px}.lp-agent-stack{padding:48px 20px}.lp-mock-editor-layout{flex-direction:column}.lp-mock .editor-comments-panel{flex:0 0 auto;width:auto;border-right:none;border-bottom:1px solid var(--border)}.lp-mock-chat-layout,.lp-mock-research-layout{flex-direction:column}.lp-mock-chat-panel{flex:0 0 auto;width:100%;border-right:none;border-bottom:1px solid var(--border)}.lp-mock--research .rtp{flex:0 0 auto}.lp-mock-editor--chat{display:none}.lp-mock-outtakes-layout{flex-direction:column}.lp-mock-editor--outtakes{flex:0 0 auto;border-right:none;border-bottom:1px solid var(--border);max-height:220px;overflow:hidden}.lp-mock-sidebar-panel{flex:0 0 auto;width:100%;border-left:none;max-height:380px}.lp-mock-library-layout{flex-direction:column}.lp-mock-browser{flex:0 0 260px}.lp-mock .sidebar-panel{flex:0 0 auto!important;width:100%}}.lp-mock--library{background:transparent;border-color:transparent;box-shadow:none;overflow:visible!important;max-width:1100px;position:relative}.lp-mock-library-layout{display:flex;flex:1;height:480px;min-height:0;overflow:visible;gap:20px;position:relative}.lp-mock .sidebar-panel{position:relative;top:auto;right:auto;bottom:auto;transform:none;flex:1;min-height:0;z-index:auto;overflow:hidden}.lp-mock .library-list{overflow-y:hidden;flex-shrink:1}.lp-mock-browser{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:6px;box-shadow:0 2px 16px #00000014}.lp-mock-browser--article{flex:0 0 340px}.lp-mock-browser--wordra{flex:1;position:relative;opacity:0}.mock--playing .lp-mock-browser--wordra{animation:lp-fade-up .4s ease 2.5s forwards}.lp-mock-browser--wordra .sidebar-panel{border:none;border-radius:0;box-shadow:none}.lp-mock-browser-bar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:var(--surface-alt);border-bottom:1px solid var(--border-light);flex-shrink:0}.lp-mock-browser-dots{display:flex;gap:5px;flex-shrink:0}.lp-mock-browser-dots span{width:10px;height:10px;border-radius:50%;background:var(--border)}.lp-mock-browser-dots span:nth-child(1){background:#fc6057}.lp-mock-browser-dots span:nth-child(2){background:#fbbf24}.lp-mock-browser-dots span:nth-child(3){background:#34d399}.lp-mock-browser-url{flex:1;max-width:260px;margin:0 auto;font-size:11px;color:var(--text-secondary);background:var(--surface);border:1px solid var(--border-light);border-radius:5px;padding:4px 12px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lp-mock-browser-content{flex:1;padding:22px 28px;overflow:hidden;position:relative}.lp-mock-browser-heading{font-size:15px;font-weight:700;color:var(--text);line-height:1.4;margin:0 0 5px;font-family:var(--font-family-content)}.lp-mock-browser-byline{font-size:11px;color:var(--text-muted);margin:0 0 14px}.lp-mock-browser-body{font-size:12.5px;line-height:1.75;color:var(--text-secondary);margin:0 0 10px;font-family:var(--font-family-content)}.lp-mock-browser-selection{background:#93c5fd4d;border-radius:2px;padding:2px 0}.lp-mock-ctx-menu{position:absolute;top:175px;left:36px;background:#2c2c2ef5;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:.5px solid rgba(255,255,255,.14);border-radius:9px;box-shadow:0 6px 28px #00000080,0 1px 5px #0000004d;min-width:195px;overflow:hidden;z-index:200;padding:5px 0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Helvetica Neue,sans-serif;opacity:0;transform:translateY(5px)}.lp-mock-ctx-item{padding:4px 13px;font-size:13px;color:#ffffffed;display:flex;align-items:center;cursor:default;white-space:nowrap;line-height:1.55;letter-spacing:-.01em}.lp-mock-ctx-divider{height:.5px;background:#ffffff24;margin:4px 0}@keyframes lp-ctx-wordra-pulse{0%{background:transparent;border-radius:0}to{background:#0a84ff;border-radius:5px;margin:0 4px;padding:4px 6px}}.mock--playing .lp-mock-ctx-wordra-pulse{animation:lp-ctx-wordra-pulse .25s ease 1.2s 1 forwards}@keyframes lp-ctx-fade-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px);pointer-events:none}}.mock--playing .lp-mock-ctx-anim{animation:lp-fade-up .25s ease .5s forwards,lp-ctx-fade-out .3s ease 2.6s forwards}.lp-mock-browser-wordra-body{display:flex;flex:1;min-height:0;overflow:hidden}.lp-mock-source-inline{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;max-width:0;flex-shrink:0;overflow:hidden;opacity:0;border:none;border-right:1px solid var(--border);box-shadow:none;animation:none!important}@keyframes lp-source-expand{0%{max-width:0;opacity:0}30%{opacity:1}to{max-width:440px;opacity:1}}.mock--playing .lp-mock-source-inline{animation:lp-source-expand .5s ease 2.8s forwards!important}.lp-mock .source-detail-body{overflow-y:hidden}.lp-mock-lib-new{max-height:0;opacity:0;overflow:hidden}@keyframes lp-lib-item-expand{0%{max-height:0;opacity:0}40%{opacity:1}to{max-height:100px;opacity:1}}.mock--playing .lp-mock-lib-new{animation:lp-lib-item-expand .45s ease 1.9s forwards}.lp-section--editor-showcase .lp-agent-stack{padding-left:40px;padding-right:40px}.lp-mock--editor-app{background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 4px 40px #0000001a;overflow:hidden;max-width:1400px;width:100%;display:flex;flex-direction:column}.lp-mock-topbar{position:relative!important;top:auto!important;z-index:auto!important;flex-shrink:0;padding:0 20px}.lp-mock-topbar .breadcrumb-status{margin-left:8px}.lp-mock-topbar .topbar-btn:hover,.lp-mock-topbar .user-menu-btn:hover{background:var(--surface);border-color:var(--border);color:var(--text-secondary)}.lp-mock-topbar .topbar-btn--export:hover{background:var(--accent);border-color:var(--accent);color:#fff}.lp-mock-editor-app-body{display:flex;flex:none;height:700px;overflow:hidden;border-top:1px solid var(--border);padding:0 80px}.lp-mock-editor-center{flex:1;min-width:0;max-width:none;display:flex;flex-direction:column;overflow:hidden;border-radius:0!important;box-shadow:none!important}.lp-mock-editor-center .editor-toolbar{position:relative!important;top:auto!important;z-index:auto!important;margin:8px 12px;font-size:12px}.lp-mock-editor-center .editor-scroller{overflow-y:hidden;flex:1}.lp-mock-editor-center .editor-title{font-size:22px;padding:20px 28px 10px}.lp-mock-editor-center .editor-subtitle{font-size:14px;padding:0 28px 10px}.lp-mock-editor-center .editor-body{padding:0 28px 20px;font-size:14px;line-height:1.6}.lp-mock-citation-panel{position:relative!important;top:auto!important;left:auto!important;width:100%!important;max-width:400px;margin-top:8px;opacity:0;animation:none!important}.lp-mock-citation-panel h3{font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin:0;padding:7px 12px;border-bottom:1px solid var(--border-light);background:var(--surface-alt)}.lp-mock-cite-indicator{position:relative!important;top:auto!important;left:auto!important;display:inline-flex;margin-left:6px;vertical-align:middle;font-size:11px;padding:3px 8px;opacity:0}.lp-mock-editor-lede{opacity:1;margin-top:18px}.mock--playing .lp-mock-editor-lede{animation:lp-lede-exit .45s ease-in-out 2.2s forwards}.lp-mock--editor-app .tracked-change.lp-mock-editor-app-suggestion{opacity:0;max-height:0;overflow:hidden;padding:0;margin:0;transform:translateY(-6px)}@keyframes lp-editor-suggestion-expand{0%{opacity:0;max-height:0;overflow:hidden;padding:0;margin:0;transform:translateY(-6px)}35%{opacity:1}to{opacity:1;max-height:600px;overflow:visible;padding-top:20px;margin:8px 0;transform:translateY(0)}}.mock--playing .lp-mock-editor-app-suggestion{animation:lp-editor-suggestion-expand .55s ease-out 2s forwards}.mock--playing .lp-mock-cite-indicator{animation:lp-fade-up .3s ease 3.5s forwards}@keyframes lp-cited-highlight{0%{background:transparent;text-decoration:none}to{background:var(--accent-light);text-decoration:underline;text-decoration-color:var(--accent)}}.lp-mock-cited-pulse{background:transparent}.mock--playing .lp-mock-cited-pulse{animation:lp-cited-highlight .4s ease 3.5s forwards}.mock--playing .lp-mock-citation-panel{animation:lp-fade-up .35s ease 4.8s forwards}@media (prefers-reduced-motion: reduce){.lp-mock-cite-indicator,.lp-mock-citation-panel{opacity:1;transform:none;animation:none}.lp-mock--editor-app .tracked-change.lp-mock-editor-app-suggestion{opacity:1;max-height:none;overflow:visible;padding-top:20px;margin:8px 0;transform:none;animation:none}.lp-mock-editor-lede{opacity:0;max-height:0;overflow:hidden;animation:none}.lp-mock-cited-pulse{background:var(--accent-light);text-decoration:underline;text-decoration-color:var(--accent)}}.lp-waitlist-form-wrap{max-height:0;overflow:hidden;opacity:0;transition:max-height .4s cubic-bezier(.4,0,.2,1),opacity .3s ease;width:100%;max-width:440px}.lp-waitlist-form-wrap--open{max-height:600px;opacity:1}.lp-waitlist-form{padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:4px;background:#ffffff0a;display:flex;flex-direction:column;gap:16px;margin-top:4px}.lp-waitlist-error{margin:0;padding:10px 12px;font-size:13px;line-height:1.4;color:#fecaca;background:#7f1d1d59;border:1px solid rgba(185,28,28,.45);border-radius:2px}.lp-waitlist-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lp-waitlist-field{display:flex;flex-direction:column;gap:6px}.lp-waitlist-label{font-size:12px;font-weight:500;letter-spacing:.02em;color:#fff9}.lp-waitlist-input{background:#ffffff12;border:1px solid rgba(255,255,255,.18);border-radius:2px;color:#ffffffeb;font-family:inherit;font-size:14px;padding:9px 12px;transition:border-color .15s,background .15s;outline:none;width:100%;box-sizing:border-box}.lp-waitlist-input::placeholder{color:#ffffff47}.lp-waitlist-input:focus{border-color:#ffffff80;background:#ffffff1a}.lp-waitlist-select{-moz-appearance:none;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;cursor:pointer}.lp-waitlist-select option{background:#252523;color:#ffffffeb}.lp-waitlist-form-actions{display:flex;gap:10px;align-items:center;padding-top:4px}.lp-waitlist-submit-btn{flex:1;padding:11px 20px;background:#f5f5f3;color:#111;border:1px solid #c4c4c2;border-radius:2px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s}.lp-waitlist-submit-btn:hover:not(:disabled){background:#ebebea}.lp-waitlist-submit-btn:disabled{opacity:.55;cursor:not-allowed}.lp-waitlist-cancel-btn{padding:11px 16px;background:transparent;color:#ffffff73;border:1px solid rgba(255,255,255,.14);border-radius:2px;font-size:14px;font-weight:500;font-family:inherit;cursor:pointer;transition:color .15s,border-color .15s;white-space:nowrap}.lp-waitlist-cancel-btn:hover{color:#ffffffb3;border-color:#ffffff4d}.lp-waitlist-success{padding:28px 24px;border:1px solid rgba(255,255,255,.14);border-radius:4px;background:#ffffff0a;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-top:4px;animation:lp-fade-up .35s ease forwards}.lp-waitlist-success-icon{color:#6dd8c8;width:32px;height:32px}.lp-waitlist-success-title{font-size:16px;font-weight:700;color:#ffffffeb;margin:0}.lp-waitlist-success-sub{font-size:13.5px;color:#ffffff80;margin:0;line-height:1.6}.lp-waitlist-success-sub strong{color:#ffffffbf;font-weight:500}@media (max-width: 480px){.lp-waitlist-form-wrap{max-width:100%}.lp-waitlist-form-row{grid-template-columns:1fr}}@media (max-width: 960px){.lp-section--editor-showcase .lp-agent-stack{padding-left:24px;padding-right:24px}}@media (max-width: 860px){.lp-mock-editor-app-body{height:auto}.lp-mock-editor-center{max-height:540px}}.nf-page{min-height:100vh;background:#09111f;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.nf-orb{position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none}.nf-orb--1{width:480px;height:480px;background:radial-gradient(circle,rgba(79,110,247,.18) 0%,transparent 70%);top:-120px;left:-100px;animation:nf-drift-1 14s ease-in-out infinite alternate}.nf-orb--2{width:360px;height:360px;background:radial-gradient(circle,rgba(139,92,246,.14) 0%,transparent 70%);bottom:-80px;right:-60px;animation:nf-drift-2 18s ease-in-out infinite alternate}@keyframes nf-drift-1{0%{transform:translate(0)}to{transform:translate(40px,30px)}}@keyframes nf-drift-2{0%{transform:translate(0)}to{transform:translate(-30px,-20px)}}.nf-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 24px}.nf-backdrop-num{position:absolute;top:50%;left:50%;transform:translate(-50%,-58%);font-size:clamp(160px,28vw,280px);font-weight:800;color:#ffffff06;letter-spacing:-.04em;-webkit-user-select:none;user-select:none;pointer-events:none;white-space:nowrap}.nf-logo{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;color:#ffffffe6;margin-bottom:40px;cursor:pointer;transition:opacity .15s;letter-spacing:-.01em}.nf-logo:hover{opacity:.75}.nf-illustration{margin-bottom:32px;opacity:.9}.nf-headline{font-size:clamp(28px,4vw,38px);font-weight:800;color:#e8eaf0;margin:0 0 14px;letter-spacing:-.02em;line-height:1.2}.nf-sub{font-size:15px;color:#7b82a0;line-height:1.65;max-width:380px;margin:0 0 36px}.nf-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.nf-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 24px;border-radius:8px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;border:none;transition:opacity .15s,transform .15s,background .15s}.nf-btn--primary{background:#4f6ef7;color:#fff}.nf-btn--primary:hover{opacity:.88;transform:translateY(-1px)}.nf-btn--ghost{background:#ffffff0f;color:#ffffffd9;border:1px solid rgba(255,255,255,.12)}.nf-btn--ghost:hover{background:#ffffff1a}.nf-google-icon{flex-shrink:0}.dashboard-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 32px;height:56px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.dashboard-topbar-left{display:flex;align-items:center;gap:16px}.dashboard-topbar-right{display:flex;align-items:center;gap:12px}.dashboard-topbar-home{display:flex;align-items:center;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;border-radius:var(--radius-sm)}.dashboard-topbar-home:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dashboard-topbar-title{font-size:16px;font-weight:600;color:var(--text)}.new-idea-btn{display:flex;align-items:center;gap:6px;padding:7px 14px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .15s}.new-idea-btn:hover{opacity:.88}.new-idea-btn-icon{font-size:16px;line-height:1;font-weight:400;display:flex;align-items:center;margin-bottom:1px}.idea-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f142866;z-index:300;display:flex;align-items:center;justify-content:center}.idea-modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);width:540px;max-width:calc(100vw - 48px);padding:32px;display:flex;flex-direction:column;gap:20px}.idea-modal-header{display:flex;flex-direction:column;gap:6px}.idea-modal-title{font-size:18px;font-weight:700;color:var(--text);margin:0}.idea-modal-subtitle{font-size:13px;color:var(--text-muted);margin:0}.idea-modal-textarea{width:100%;min-height:140px;padding:14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-size:14px;font-family:inherit;line-height:1.6;resize:vertical;outline:none;box-sizing:border-box;transition:border-color .15s}.idea-modal-textarea:focus{border-color:var(--accent)}.idea-modal-textarea::placeholder{color:var(--text-muted)}.idea-modal-research{display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-sm)}.idea-modal-research-toggle-row{display:flex;align-items:center;justify-content:space-between}.idea-modal-research-label{display:flex;align-items:center;gap:7px}.idea-modal-research-icon{display:flex;align-items:center;color:var(--accent)}.idea-modal-research-title{font-size:13px;font-weight:600;color:var(--text)}.idea-modal-research-hint{font-size:12px;color:var(--text-muted);margin:0;line-height:1.5}.idea-modal-toggle{position:relative;width:36px;height:20px;border-radius:10px;border:none;background:var(--border);cursor:pointer;transition:background .2s;flex-shrink:0;padding:0}.idea-modal-toggle.on{background:var(--accent)}.idea-modal-toggle-thumb{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:var(--shadow-sm);transition:transform .2s}.idea-modal-toggle.on .idea-modal-toggle-thumb{transform:translate(16px)}.idea-modal-depth{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.idea-modal-depth-btn{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;transition:border-color .15s,background .15s;font-family:inherit}.idea-modal-depth-btn:hover{border-color:var(--accent-light)}.idea-modal-depth-btn.active{border-color:var(--accent);background:var(--accent-light)}.idea-modal-depth-name{font-size:12px;font-weight:600;color:var(--text)}.idea-modal-depth-meta{font-size:11px;color:var(--text-muted)}.idea-modal-instructions{display:flex;flex-direction:column;gap:8px;margin-top:4px}.idea-modal-instructions-toggle{display:inline-flex;align-items:center;gap:5px;background:none;border:none;padding:0;font-size:12px;font-weight:500;font-family:inherit;color:var(--text-secondary);cursor:pointer;transition:color .15s;width:fit-content}.idea-modal-instructions-toggle:hover{color:var(--accent)}.idea-modal-instructions-chevron{color:var(--text-muted);transition:transform .18s;flex-shrink:0}.idea-modal-instructions-chevron.open{transform:rotate(90deg)}.idea-modal-instructions-optional{font-size:10px;font-weight:500;color:var(--text-muted);background:var(--border-light);border:1px solid var(--border);padding:1px 6px;border-radius:10px;margin-left:2px}.idea-modal-instructions-input{width:100%;padding:9px 11px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:12px;font-family:inherit;line-height:1.5;resize:none;outline:none;box-sizing:border-box;transition:border-color .15s}.idea-modal-instructions-input:focus{border-color:var(--accent)}.idea-modal-instructions-input::placeholder{color:var(--text-muted)}.idea-modal-instructions-disclaimer{display:flex;align-items:flex-start;gap:5px;font-size:11px;color:var(--text-muted);margin:0;line-height:1.5}.idea-modal-save-error{font-size:12px;color:var(--red);margin:0 0 8px}.idea-modal-actions{display:flex;align-items:center;justify-content:space-between}.idea-modal-actions-right{display:flex;gap:10px}.idea-modal-discard{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s,border-color .15s;flex-shrink:0}.idea-modal-discard:hover{background:#fff0f0;border-color:var(--red);color:var(--red)}.idea-modal-btn{padding:9px 20px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;border:none;transition:opacity .15s,background .15s}.idea-modal-btn-secondary{background:var(--surface-alt);color:var(--text-secondary);border:1px solid var(--border)}.idea-modal-btn-secondary:hover:not(:disabled){background:var(--border)}.idea-modal-btn-secondary:disabled{opacity:.4;cursor:not-allowed}.idea-modal-btn-primary{background:var(--accent);color:#fff}.idea-modal-btn-primary:hover:not(:disabled){opacity:.88}.idea-modal-btn-primary:disabled{opacity:.4;cursor:not-allowed}.account-page{min-height:100vh;background:var(--bg);display:flex;flex-direction:column}.account-shell{flex:1;display:flex;align-items:stretch;width:100%;max-width:1100px;margin:0 auto;padding:24px;gap:32px;box-sizing:border-box}.account-sidenav{flex:0 0 200px;display:flex;flex-direction:column;gap:2px;position:sticky;top:24px;align-self:flex-start}.account-sidenav-link{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-sm);color:var(--text-secondary);text-decoration:none;font-size:13px;font-weight:500;transition:background .1s,color .1s}.account-sidenav-link:hover{background:var(--surface-alt);color:var(--text)}.account-sidenav-link.is-active{background:var(--surface-alt);color:var(--text);font-weight:600}.account-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:32px;padding-bottom:64px}.account-loading,.account-error{font-size:14px;color:var(--text-secondary);text-align:center;padding:40px 0}.account-error{color:var(--red)}@media (max-width: 720px){.account-shell{flex-direction:column;gap:16px;padding:16px}.account-sidenav{flex:0 0 auto;flex-direction:row;flex-wrap:wrap;position:static}.account-sidenav-link{padding:6px 10px}}.account-section{display:flex;flex-direction:column;gap:12px}.account-section-title{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin:0}.account-profile-list{background:var(--surface);border:1px solid var(--border-light);border-radius:var(--radius);margin:0;overflow:hidden}.account-profile-row{display:grid;grid-template-columns:120px 1fr;padding:12px 16px;gap:12px;border-bottom:1px solid var(--border-light);font-size:14px}.account-profile-row:last-child{border-bottom:none}.account-profile-row dt{color:var(--text-secondary);font-weight:500}.account-profile-row dd{color:var(--text);margin:0}.account-credits-card{background:var(--surface);border:1px solid var(--border-light);border-radius:var(--radius);padding:20px 24px;display:flex;flex-direction:column;gap:6px}.account-credits-card--exhausted{border-color:var(--red, #dc2626);background:#fef2f2}.account-credits-label{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}.account-credits-amount{font-size:32px;font-weight:700;color:var(--text);line-height:1.1}.account-credits-card--exhausted .account-credits-amount{color:var(--red, #dc2626)}.account-credits-exhausted-note{font-size:13px;color:var(--red, #dc2626);margin:4px 0 0;line-height:1.5}.account-credits-exhausted-note a{color:inherit;font-weight:600}.account-credits-info{font-size:13px;color:var(--text-muted);line-height:1.6;margin:0}.memory-section-body{display:flex;flex-direction:column;gap:32px}.memory-loading,.memory-error{font-size:14px;color:var(--text-secondary);text-align:center;padding:40px 0}.memory-error{color:var(--red)}.memory-intro{font-size:14px;color:var(--text-secondary);line-height:1.6;margin:0}.memory-section{display:flex;flex-direction:column;gap:12px}.memory-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-section-title{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted);margin:0}.memory-filter-row{display:flex;flex-wrap:wrap;gap:6px}.memory-filter-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 10px;font-size:12px;color:var(--text-secondary);cursor:pointer;font-family:inherit}.memory-filter-btn:hover{background:var(--surface-alt);color:var(--text)}.memory-filter-btn.is-active{background:var(--accent);color:var(--on-accent, #fff);border-color:var(--accent)}.memory-empty{font-size:13px;color:var(--text-muted);background:var(--surface);border:1px dashed var(--border-light);border-radius:var(--radius);padding:24px;margin:0;line-height:1.5}.memory-group{display:flex;flex-direction:column;gap:8px;margin-top:12px}.memory-group-header{display:flex;flex-direction:column;gap:2px}.memory-group-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text);margin:0}.memory-group-count{font-size:11px;color:var(--text-muted);font-weight:500}.memory-group-help{font-size:12px;color:var(--text-muted);margin:0;line-height:1.4}.memory-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.memory-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:var(--surface);border:1px solid var(--border-light);border-radius:var(--radius);padding:12px 16px}.memory-row-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.memory-row-text{font-size:14px;color:var(--text);margin:0;line-height:1.45}.memory-row-summary{font-size:12px;color:var(--text-secondary);margin:0;font-style:italic}.memory-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:11px;color:var(--text-muted)}.memory-meta-item:before{content:"·";margin-right:8px;color:var(--border)}.memory-meta-item:first-child:before{content:"";margin-right:0}.memory-tag{font-size:10px;padding:1px 6px;border-radius:var(--radius-sm);border:1px solid var(--border);text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary)}.memory-tag--avoid{color:var(--red);border-color:var(--red)}.memory-tag--prefer{color:var(--green);border-color:var(--green)}.memory-row-actions{display:flex;gap:6px;flex-shrink:0}.memory-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 10px;font-size:12px;color:var(--text-secondary);cursor:pointer;font-family:inherit}.memory-btn:hover{background:var(--surface-alt);color:var(--text)}.memory-btn--primary{background:var(--accent);color:var(--on-accent, #fff);border-color:var(--accent)}.memory-btn--primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--on-accent, #fff)}.memory-btn--danger{color:var(--red);border-color:var(--red)}.memory-btn--danger:hover{background:var(--red);color:var(--on-accent, #fff)}.memory-row-edit{display:flex;flex-direction:column;gap:8px;flex:1}.memory-row-textarea{width:100%;resize:vertical;font-family:inherit;font-size:13px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px;background:var(--surface);color:var(--text)}.memory-row-edit-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-row-valence{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--text-muted)}.memory-row-valence select,.memory-new-form-row select{font-family:inherit;font-size:12px;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 6px;background:var(--surface)}.memory-row-edit-buttons{display:flex;gap:6px}.memory-row-error{font-size:12px;color:var(--red);margin:0}.memory-add-toggle{white-space:nowrap}.memory-new-form{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--border-light);border-radius:var(--radius);padding:12px 16px;margin-top:8px}.memory-new-form-row{display:flex;gap:16px;flex-wrap:wrap}.memory-new-form-row label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--text-muted)}.memory-section--danger{margin-top:16px}.memory-danger-help{font-size:13px;color:var(--text-muted);margin:0;line-height:1.5}.credits-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9000}.credits-overlay-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg, 12px);box-shadow:var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, .25));padding:40px 48px;max-width:440px;width:calc(100% - 48px);text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}.credits-overlay-icon{color:var(--yellow, #e08a00);margin-bottom:4px}.credits-overlay-title{font-size:20px;font-weight:700;color:var(--text);margin:0;line-height:1.3}.credits-overlay-message{font-size:14px;color:var(--text-secondary);line-height:1.6;margin:0}.credits-overlay-cta{display:inline-block;margin-top:8px;padding:10px 24px;background:var(--accent);color:var(--on-accent, #fff);border-radius:var(--radius-sm);font-size:14px;font-weight:600;text-decoration:none;transition:opacity .15s}.credits-overlay-cta:hover{opacity:.88}.has-tooltip{position:relative}.has-tooltip:after{content:attr(data-tooltip);position:absolute;background:var(--text);color:var(--surface);font-size:11px;font-weight:500;font-family:var(--font-family);white-space:nowrap;padding:4px 8px;border-radius:var(--radius-sm);pointer-events:none;opacity:0;transition:opacity .1s;z-index:200;letter-spacing:.01em}.has-tooltip:hover:after{opacity:1;transition-delay:.4s}.tooltip-bottom:after{top:calc(100% + 7px);left:50%;transform:translate(-50%)}.tooltip-top:after{bottom:calc(100% + 7px);left:50%;transform:translate(-50%)}.tooltip-left:after{top:50%;right:calc(100% + 7px);left:auto;transform:translateY(-50%)}.tooltip-right:after{top:50%;left:calc(100% + 7px);transform:translateY(-50%)}.insights-panel{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:0}.rp-section{display:flex;flex-direction:column;gap:2px;padding:4px 0 12px}.rp-section-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);margin-bottom:10px}.rp-divider{height:1px;background:var(--border-light);margin:4px 0 12px}.rp-stat-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid var(--border-light)}.rp-stat-row:last-child{border-bottom:none}.rp-stat-row--has-progress{padding-bottom:10px}.rp-word-target{font-weight:400;color:var(--text-muted);font-size:12px;margin-left:2px}.rp-progress-bar{width:100%;height:4px;background:var(--border-light);border-radius:2px;margin-top:7px;overflow:hidden}.rp-progress-fill{height:100%;border-radius:2px;transition:width .4s ease}.rp-progress-fill.early{background:var(--accent)}.rp-progress-fill.near{background:var(--amber)}.rp-progress-fill.complete{background:var(--green)}.rp-stat-label{font-size:13px;color:var(--text-secondary)}.rp-stat-value{font-size:13px;font-weight:600;color:var(--text)}.rp-read-time{font-weight:500;color:var(--text-secondary)}.rp-badge{padding:2px 10px;border-radius:12px;font-weight:600;font-size:11px}.rp-badge.easy{background:var(--green-light);color:var(--green)}.rp-badge.moderate{background:var(--amber-light);color:var(--amber)}.rp-badge.hard{background:var(--red-light);color:var(--red)}.rp-field{display:flex;flex-direction:column;gap:6px;padding:10px 0;border-bottom:1px solid var(--border-light)}.rp-field:last-child{border-bottom:none}.rp-field-label{font-size:12px;font-weight:500;color:var(--text-secondary)}.rp-select{width:100%;background:var(--surface-alt);border:1px solid var(--border);padding:7px 10px;border-radius:var(--radius-sm);font-size:13px;cursor:pointer;color:var(--text);font-family:inherit;outline:none;transition:border-color .15s}.rp-select:focus{border-color:var(--accent)}.rp-number-input{width:100%;background:var(--surface-alt);border:1px solid var(--border);padding:7px 10px;border-radius:var(--radius-sm);font-size:13px;color:var(--text);font-family:inherit;outline:none;transition:border-color .15s;box-sizing:border-box}.rp-number-input:focus{border-color:var(--accent)}.rp-number-input::placeholder{color:var(--text-muted)}.story-settings-panel{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column}.dashboard-overlay{min-height:100vh;background:var(--bg);display:flex;flex-direction:column}.dashboard-close{background:transparent;border:none;font-size:24px;cursor:pointer;color:var(--text-muted);padding:4px 8px;border-radius:4px}.dashboard-close:hover{background:var(--surface-alt)}.dashboard-body{flex:1;overflow-y:auto;padding:28px 32px}.focus-section{margin-bottom:32px}.focus-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:12px}.focus-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;transition:box-shadow .15s;cursor:pointer}.focus-card:hover{box-shadow:var(--shadow-md)}.focus-card-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:8px}.focus-card-meta{font-size:11px;color:var(--text-muted);display:flex;justify-content:space-between;margin-bottom:10px}.focus-card-progress{height:4px;background:var(--surface-alt);border-radius:2px;overflow:hidden}.focus-card-progress-bar{height:100%;border-radius:2px;transition:width .3s}.kanban-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.kanban-header h3{font-size:16px;font-weight:600;color:var(--text)}.kanban-view-toggle{display:flex;gap:4px;background:var(--surface-alt);padding:3px;border-radius:var(--radius-sm)}.kanban-view-btn{padding:6px 14px;border:none;border-radius:4px;font-size:12px;cursor:pointer;font-weight:500;font-family:inherit;background:transparent;color:var(--text-muted);transition:all .15s}.kanban-view-btn.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.kanban-board{display:flex;gap:16px;overflow-x:auto;padding-bottom:16px}.kanban-column{min-width:220px;flex:1;background:var(--surface-alt);border-radius:var(--radius);padding:12px;transition:background-color .2s,box-shadow .2s}.kanban-column.drag-over{background:var(--surface);box-shadow:inset 0 0 0 2px var(--accent)}.kanban-column-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:16px;display:flex;align-items:center;gap:8px}.stage-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.kanban-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;margin-bottom:8px;cursor:grab;transition:box-shadow .12s,transform .12s,opacity .2s}.kanban-card:active{cursor:grabbing}.kanban-card.dragging{opacity:.5;transform:scale(.98);box-shadow:var(--shadow-lg)}.kanban-card:hover{box-shadow:var(--shadow-sm)}.kanban-card-title{font-size:12px;font-weight:500;color:var(--text);margin-bottom:6px}.kanban-card-meta{font-size:10px;color:var(--text-muted)}.kanban-card-progress{height:3px;background:var(--surface-alt);border-radius:2px;margin-top:8px;overflow:hidden}.kanban-card-progress-bar{height:100%;border-radius:2px}.agent-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;padding:2px 7px;border-radius:10px;margin-top:6px;white-space:nowrap}.agent-badge--researching{background:var(--accent-light);color:var(--accent)}.agent-badge--ready{background:var(--green-light, #e6f9f0);color:var(--green)}.agent-badge-pulse{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:agent-pulse 1.4s ease-in-out infinite}@keyframes agent-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.75)}}.list-item{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;cursor:pointer}.list-item:hover{background:var(--surface-alt)}.pipeline-status{padding:48px 32px;text-align:center;font-size:13px;color:var(--text-muted)}.pipeline-status--error{color:var(--red)}.pipeline-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:72px 32px 80px;animation:empty-state-in .4s ease both}@keyframes empty-state-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.pipeline-empty-icon{margin-bottom:20px;display:flex;align-items:center;justify-content:center}.pipeline-empty-title{font-size:22px;font-weight:700;color:var(--text);margin:0 0 10px}.pipeline-empty-subtitle{font-size:14px;color:var(--text-muted);line-height:1.6;max-width:400px;margin:0 0 32px}.pipeline-empty-cta{display:inline-flex;align-items:center;gap:8px;padding:11px 24px;background:var(--accent);color:#fff;border:none;border-radius:var(--radius-sm);font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .15s,transform .15s;box-shadow:var(--shadow-md);margin-bottom:56px}.pipeline-empty-cta:hover{opacity:.88;transform:translateY(-1px)}.pipeline-empty-cta:active{transform:translateY(0)}.pipeline-empty-features{display:flex;flex-direction:column;gap:28px;max-width:860px;width:100%}.pipeline-empty-features-group{display:flex;flex-direction:column;gap:10px;width:100%}.pipeline-empty-features-group-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--text-muted);padding-bottom:8px;border-bottom:1px solid var(--border-light)}.pipeline-empty-features-grid{display:grid;gap:10px}.pipeline-empty-features-grid--3{grid-template-columns:repeat(3,1fr)}.pipeline-empty-features-grid--2{grid-template-columns:repeat(2,1fr)}.pipeline-empty-feature{display:flex;align-items:flex-start;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:left}.pipeline-empty-feature-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--radius-sm);flex-shrink:0}.pipeline-empty-feature-icon--accent{background:var(--accent-light);color:var(--accent)}.pipeline-empty-feature-icon--purple{background:color-mix(in srgb,var(--purple) 12%,transparent);color:var(--purple)}.pipeline-empty-feature-icon--green{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}.pipeline-empty-feature-icon--amber{background:color-mix(in srgb,var(--amber) 12%,transparent);color:var(--amber)}.pipeline-empty-feature-icon--orange{background:color-mix(in srgb,#f97316 12%,transparent);color:#f97316}.pipeline-empty-feature-icon--red{background:color-mix(in srgb,var(--red) 10%,transparent);color:var(--red)}.pipeline-empty-feature-icon--muted{background:var(--surface-alt);color:var(--text-secondary)}.pipeline-empty-feature-title{font-size:12px;font-weight:700;color:var(--text);margin-bottom:5px}.pipeline-empty-feature-desc{font-size:11px;color:var(--text-muted);line-height:1.55}.kanban-card-priority{display:inline-block;margin-top:6px;font-size:10px;font-weight:600;padding:2px 7px;border-radius:10px;background:color-mix(in srgb,var(--purple) 15%,transparent);color:var(--purple);letter-spacing:.03em;text-transform:uppercase}.app{display:flex;flex-direction:column;height:100vh;background:var(--bg)}.editor-loading,.editor-error{display:flex;align-items:center;justify-content:center;height:100vh;font-size:15px;color:var(--text-muted, #888)}.editor-error{color:var(--red, #dc2626)}.layout{padding:0;transition:padding-left .3s ease,padding-right .3s ease;height:calc(100vh - 56px);display:flex;flex-direction:column;box-sizing:border-box}.layout.chat-open{padding-left:418px}.layout.sidebar-open{padding-right:374px}.chat-toggle,.research-toggle,.editor-toggle{position:fixed;left:0;width:32px;height:50px;background:var(--surface);border:1px solid var(--border);border-left:none;border-radius:0 8px 8px 0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;z-index:100;transition:left .25s ease;box-shadow:var(--shadow-sm)}.chat-toggle.open,.research-toggle.open,.editor-toggle.open{left:418px}.chat-toggle{top:72px;color:var(--accent)}.chat-toggle svg{height:22px;width:auto}.chat-toggle:hover,.chat-toggle.active{background:var(--accent-light);color:var(--accent)}.sidebar-toggle-group{position:fixed;top:72px;right:0;display:flex;flex-direction:column;gap:4px;z-index:100;transition:right .3s ease}.sidebar-toggle-group.open{right:374px}.sidebar-toggle-btn{width:32px;height:50px;background:var(--surface);border:1px solid var(--border);border-right:none;border-radius:8px 0 0 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--text-muted);box-shadow:var(--shadow-sm);transition:background .2s,color .2s}.sidebar-toggle-btn svg{width:14px;height:14px;flex-shrink:0}.sidebar-toggle-btn.active{color:var(--accent);background:var(--accent-light)}.sidebar-toggle-btn:hover{background:var(--accent-light);color:var(--accent)}.sidebar-toggle-count{font-size:10px;font-weight:700;line-height:1}.research-toggle{top:126px;color:var(--purple)}.research-toggle svg{width:14px;height:14px}.research-toggle:hover,.research-toggle.active{background:var(--purple-light);color:var(--purple)}.research-toggle-count{font-size:10px;font-weight:700;line-height:1}.editor-toggle{top:180px;color:var(--amber)}.editor-toggle svg{width:14px;height:14px}.editor-toggle:hover,.editor-toggle.active{background:var(--amber-light);color:var(--amber)}.editor-toggle-count{font-size:10px;font-weight:700;line-height:1}.layout.zen-mode{padding:0!important;height:100vh;transition:none;background:var(--bg)}@media (max-width: 960px){.layout{padding:0}.layout.sidebar-open{padding-right:16px}.layout.chat-open{padding-left:16px}}:root{--bg: #ffffff;--surface: #ffffff;--surface-alt: #f8f9fc;--border: #e2e6ef;--border-light: #edf0f7;--text: #1e2532;--text-secondary: #5f6b80;--text-muted: #8d96a8;--accent: #64748b;--accent-light: #d8e2ec;--accent-hover: #475569;--on-accent: #ffffff;--green: #22c55e;--green-border: #86efac;--green-light: #e8faf0;--amber: #f59e0b;--amber-light: #fef7e6;--red: #ef4444;--red-light: #fde8e8;--purple: #8b5cf6;--purple-light: #f0ebfe;--shadow-sm: 0 1px 3px rgba(30,37,50,.06);--shadow-md: 0 4px 16px rgba(30,37,50,.1);--shadow-lg: 0 8px 32px rgba(30,37,50,.14);--radius: 10px;--radius-sm: 6px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;--font-family-content: var(--font-family)}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;width:100%}body{font-family:var(--font-family);background:var(--bg);color:var(--text);line-height:1.6;height:100vh;overflow:hidden}[data-theme=paper]{--bg: #f5f5f3;--surface: #ffffff;--surface-alt: #ebebea;--border: #c4c4c2;--border-light: #e0e0de;--text: #111111;--text-secondary: #444444;--text-muted: #888888;--accent: #3b4758;--accent-light: #dde2e8;--accent-hover: #2c3849;--green: #2d6a2d;--green-border: #7aab7a;--green-light: #dff0d8;--amber: #7a6000;--amber-light: #f5edc0;--red: #b00020;--red-light: #f5d8d8;--purple: #4a2d7a;--purple-light: #e8e0f5;--shadow-sm: none;--shadow-md: none;--shadow-lg: 0 2px 8px rgba(0, 0, 0, .1);--radius: 2px;--radius-sm: 1px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;--font-family-content: "Source Serif 4", Georgia, "Times New Roman", serif}[data-theme=paper] .chat-msg.user .chat-msg-bubble{background:#d4dae1}[data-theme=paper] .chat-source-mention-link{background:#d4d4d2;color:var(--text)}[data-theme=paper] .chat-source-mention-link:hover{background:var(--accent);color:var(--on-accent, #fff)}
