#research-evidence-notebook { margin-top:8px; padding:0; border:0; }
#research-evidence-notebook[hidden] { display:none; }
.analyze-lab[data-has-result=false]:not([data-has-evidence=true]) #research-evidence-notebook:not([data-has-undo=true]) { display:none; }
#research-evidence-notebook > summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; cursor:pointer; padding:12px 0; font-size:var(--analyze-font-body,16px); }
#research-evidence-count { color:var(--text-muted); font-size:var(--analyze-font-small,14px); }
#research-evidence-notebook :is(.research-evidence-intro,#research-evidence-empty) { margin:0 0 16px; font-size:var(--analyze-font-small,14px); line-height:1.6; color:var(--text-muted); }
#research-evidence-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#research-evidence-notebook .research-kept-result { min-width:0; padding:20px; border:1px solid var(--line); border-radius:10px; background:var(--panel,#0d1f26); }
#research-evidence-notebook .research-kept-heading { display:flex; align-items:start; gap:12px; }
#research-evidence-notebook .research-kept-heading h4 { margin:2px 0 0; min-width:0; font-size:var(--analyze-font-body,16px); font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
#research-evidence-notebook .research-kept-number { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; border-radius:50%; border:1px solid var(--line); color:var(--text-muted); font-size:var(--analyze-font-small,14px); font-weight:600; }
#research-evidence-notebook .control { display:flex; flex-direction:column; gap:7px; margin:10px 0 16px; min-width:0; font-size:var(--analyze-font-small,14px); }
#research-evidence-notebook :is(input,textarea) { width:100%; min-width:0; box-sizing:border-box; font:inherit; line-height:1.5; }
#research-evidence-notebook textarea { resize:vertical; }
#research-evidence-notebook .research-kept-meta { margin:8px 0 14px; font-size:var(--analyze-font-small,14px); line-height:1.6; color:var(--text-muted); }
#research-evidence-notebook .research-kept-question { font-size:var(--analyze-font-small,14px); line-height:1.6; overflow-wrap:anywhere; }
#research-evidence-notebook .research-kept-answer { margin:16px 0 8px; font-size:var(--analyze-font-body,16px); font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
#research-evidence-notebook :is(.research-kept-preview,.research-kept-edit) { margin:0; border-top:1px solid var(--line); font-size:var(--analyze-font-small,14px); line-height:1.6; }
#research-evidence-notebook summary { cursor:pointer; }
#research-evidence-notebook .research-kept-result summary { padding:10px 0; }
#research-evidence-notebook .research-kept-figures { overflow:hidden; }
#research-evidence-notebook .research-kept-figures figure { margin:10px 0; padding:12px; border-radius:8px; background:#fff; color:#172d38; }
#research-evidence-notebook .research-kept-figures svg { max-width:100%; height:auto; display:block; }
#research-evidence-notebook .research-kept-figures svg text { font:14px system-ui,sans-serif; fill:#29434b; }
#research-evidence-notebook .research-kept-figures .axis-title { font-weight:600; font-size:15px; }
#research-evidence-notebook .research-kept-figures .legend { display:flex; flex-wrap:wrap; gap:8px 18px; margin:8px 0; }
#research-evidence-notebook .research-kept-figures .legend-item i { display:inline-block; width:18px; height:3px; margin-right:7px; vertical-align:middle; }
#research-evidence-notebook .research-kept-figures :is(figcaption,.chart-note) { color:#42565e; line-height:1.6; }
#research-evidence-notebook .research-kept-figures pre { max-height:260px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
#research-evidence-notebook :is(.research-kept-actions,.research-evidence-actions) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; }
#research-evidence-notebook .research-kept-actions button { font-size:var(--analyze-font-small,14px); padding:9px 12px; }
#research-evidence-notebook .research-kept-actions [data-evidence-action=open] { margin-right:auto; }
#research-evidence-feedback { font-size:var(--analyze-font-small,14px); line-height:1.6; margin:6px 0; }
#research-evidence-feedback:empty { display:none; }
#research-evidence-feedback[data-error=true] { color:var(--danger,#ffb4b4); }
.analyze-lab:not([data-has-result=true]) #research-keep-result { display:none; }
.analyze-lab:not([data-analyze-view=workspace]) #research-keep-result { display:none; }
@media(max-width:900px) { #research-evidence-list { grid-template-columns:minmax(0,1fr); } }
