#analyze-report { grid-column:1/-1; min-width:0; scroll-margin-top:80px; }
.analyze-lab:not([data-analyze-view=report]) > #analyze-report { display:none; }
.analyze-lab[data-analyze-view=report] > :not(.analyze-lab-header):not(#analyze-report) { display:none !important; }
#analyze-report .research-report-heading { display:flex; justify-content:space-between; gap:24px; align-items:center; margin:8px 0 24px; }
#analyze-report .research-report-heading h3 { margin:0; font-size:24px; line-height:1.3; }
#analyze-report .research-report-heading p { margin:0; line-height:1.6; }
#research-report-scope { max-width:390px; font-size:var(--analyze-font-small,14px); }
#analyze-report .research-report-layout { display:grid; grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr); align-items:start; gap:32px; }
#analyze-report .research-report-editor { min-width:0; font-size:var(--analyze-font-body,16px); }
#analyze-report .research-report-compose-intro > p { margin:0 0 10px; line-height:1.6; }
#analyze-report #research-report-writing-state { font-size:var(--analyze-font-small,14px); }
#analyze-report .research-report-section { padding:24px 0 8px; border-top:1px solid var(--line); }
#analyze-report .research-report-section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; margin-bottom:18px; }
#analyze-report .research-report-section-heading h4 { display:flex; align-items:center; gap:10px; margin:0; font-size:18px; line-height:1.4; letter-spacing:normal; text-transform:none; }
#analyze-report .research-report-step { display:inline-flex; width:27px; height:27px; align-items:center; justify-content:center; flex:0 0 27px; border:1px solid var(--line); border-radius:50%; font-size:14px; font-weight:500; color:var(--text-muted); }
#analyze-report .research-report-section-state { font-size:var(--analyze-font-small,14px); line-height:1.4; color:var(--text-muted); }
#analyze-report .research-report-section-state[data-recorded=true] { color:var(--text); }
#analyze-report .research-report-field-hint { display:block; font:inherit; font-size:var(--analyze-font-small,14px); line-height:1.6; color:var(--text-muted); }
#analyze-report p.research-report-field-hint { margin:0 0 16px; }
#analyze-report .research-report-editor .control { display:flex; flex-direction:column; gap:8px; margin:0 0 20px; }
#analyze-report .control > span { font-size:var(--analyze-font-small,14px); font-weight:600; line-height:1.5; }
#analyze-report .research-report-editor :is(textarea,input,select) { box-sizing:border-box; width:100%; min-width:0; padding:10px 12px; border:1px solid var(--line); border-radius:7px; background:var(--panel,#0d1f26); color:inherit; font:inherit; line-height:1.5; }
#analyze-report .research-report-editor textarea { resize:vertical; min-height:78px; }
#analyze-report .research-report-editor summary { cursor:pointer; font-weight:600; padding:12px 0; overflow-wrap:anywhere; }
#analyze-report .research-report-editor details { border-top:1px solid var(--line); padding:0; margin-bottom:8px; font-size:var(--analyze-font-small,14px); line-height:1.6; }
#analyze-report .research-report-editor details > p { margin:0 0 16px; }
#analyze-report .research-report-editor details > .control { margin-top:8px; }
#analyze-report .research-report-editor ul { padding-left:20px; }
#analyze-report .research-report-editor li { margin:10px 0; overflow-wrap:anywhere; }
#analyze-report .research-report-actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 16px; }
#analyze-report .research-report-actions button { flex:1 1 150px; white-space:normal; font-size:var(--analyze-font-small,14px); min-height:42px; }
#analyze-report #research-report-include-current-field { display:flex; flex-direction:row; align-items:flex-start; margin:12px 0 16px; gap:8px; font-size:var(--analyze-font-small,14px); line-height:1.6; }
#analyze-report #research-report-include-current-field[hidden] { display:none; }
#analyze-report #research-report-include-current { width:17px; min-width:17px; height:17px; min-height:17px; flex:0 0 17px; padding:0; margin:2px 0 0; }
#research-report-readiness { font-size:var(--analyze-font-small,14px); line-height:1.6; padding:12px; border-left:3px solid var(--warning,#e6bd77); background:var(--panel,#0d1f26); }
#research-report-readiness:empty { display:none; }
#analyze-report #research-report-review-count { display:block; margin-top:3px; color:var(--text-muted); font-size:var(--analyze-font-small,14px); font-weight:400; }
#analyze-report #research-report-review-list { padding-left:18px; }
#analyze-report #research-report-review-all-list [data-status=ready] { color:var(--text-muted); }
#analyze-report .research-report-honu { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
#analyze-report .research-report-honu .control { margin-bottom:10px; }
#analyze-report .research-report-honu > details { border-top:0; margin:6px 0 0; }
#analyze-report :is(#research-report-check,#research-report-honu-review) { font-size:var(--analyze-font-small,14px); white-space:normal; min-height:40px; }
#analyze-report :is(#research-report-status,#research-report-review-status) { font-size:var(--analyze-font-small,14px); line-height:1.6; }
#research-report-status:empty { display:none; }
#research-report-status[data-error=true] { color:var(--danger,#ff9595); }
#research-report-preview-wrap { min-width:0; }
#research-report-preview-state { font-size:var(--analyze-font-small,14px); margin:0 0 12px; line-height:1.5; color:var(--text); font-weight:600; }
#analyze-report .research-report-notes .control > span { font-size:var(--analyze-font-small,14px); font-weight:600; }
#analyze-report .research-report-notes textarea { line-height:1.65; }
#analyze-report .research-report-embed-option { display:flex; align-items:flex-start; gap:9px; margin:12px 0; font-size:var(--analyze-font-small,14px); line-height:1.5; }
#analyze-report #research-report-embed-data { width:17px; min-width:17px; height:17px; min-height:17px; flex:0 0 17px; margin:3px 0 0; padding:0; }
#research-report-preview { display:block; box-sizing:border-box; width:100%; height:900px; min-height:60vh; max-height:calc(100vh - 165px); border:1px solid var(--line); border-radius:9px; background:white; }
.research-field-metadata { margin:14px 0; border-top:1px solid var(--line); }
.research-field-metadata summary { cursor:pointer; font-weight:600; padding:10px 0; }
@media(min-width:1051px) {
 #research-report-preview-wrap { position:sticky; top:calc(var(--analyze-nav-height,88px) + 12px); }
 #research-report-preview { min-height:260px; height:calc(100vh - var(--analyze-nav-height,88px) - 210px); max-height:none; }
}
@media(max-width:1050px) { #analyze-report .research-report-layout { grid-template-columns:minmax(0,1fr); } #analyze-report .research-report-heading { display:block; } #analyze-report .research-report-heading h3 { margin-bottom:8px; } #research-report-scope { max-width:none; } #analyze-report .research-report-actions button { width:auto; flex:1 1 160px; } }
@media(max-width:600px) { #analyze-report { scroll-margin-top:145px; } #research-report-preview { height:700px; max-height:none; } }
