.workspace-bar{padding:15px 18px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.workspace-bar strong{font-size:13px}.workspace-bar small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.workspace-actions,.template-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}.workspace-bar input,.workspace-bar select,.template-actions input,.template-actions select{background:var(--panel);border:1px solid var(--border);color:var(--ink);border-radius:6px;padding:9px;font-size:12px;min-width:0;max-width:100%}.workspace-actions input{width:140px}.workspace-actions select{width:160px}.workspace-actions button,.template-actions button{padding:9px 11px;font-size:12px}.workspace-bar>#workspaceStatus{width:100%;margin:0}.template-actions{margin-top:16px}.template-actions>label{color:var(--muted);font-size:12px}.template-actions input{width:140px}.template-actions select{max-width:180px}.template-actions #screenTemplateStatus{width:100%}.scan-columns{display:flex;flex-wrap:wrap;gap:13px;border:0;padding:9px 0 12px;margin:0;font-size:12px;color:var(--muted)}.scan-columns legend{font-size:12px;padding:0;color:var(--muted)}.scan-columns label{display:flex;align-items:center;gap:5px}.scan-table [hidden]{display:none!important}.scan-table td[data-column]{font-variant-numeric:tabular-nums}.scan-table tr[aria-selected=true]{background:var(--accent-soft)}.research-dock{align-self:start;position:sticky;top:12px;padding:14px 11px}.research-head{display:flex;gap:6px;align-items:center;justify-content:space-between}.research-head h2,.research-note h2{font-size:14px;margin:0}.research-tabs{margin:13px 0 8px}.research-tabs button{padding:6px 9px}.research-list{max-height:410px;overflow:auto}.research-stock{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:6px;color:var(--ink);padding:10px 8px}.research-stock strong{font-size:13px}.research-stock span{font-size:12px;color:var(--muted)}.research-stock[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}.research-stock:hover{background:var(--surface)}.research-step{display:flex;gap:6px;margin:12px 0}.research-step button{flex:1;font-size:12px;padding:7px 2px}.research-link{font-size:12px;color:var(--accent-strong)}.research-note{padding:17px;min-width:0}.research-note label{display:block;font-size:12px;color:var(--muted);margin:15px 0 7px}.research-note textarea{width:100%;resize:vertical;min-height:160px;max-height:600px;background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:6px;padding:10px;font-family:inherit;font-size:12px;line-height:1.8}.research-note textarea:focus-visible{outline:2px solid var(--accent)}.research-note #noteState{line-height:1.7}
@media(min-width:1400px){.workspace{grid-template-columns:175px minmax(0,1fr) 270px;gap:14px}}
@media(max-width:1399px){.research-dock{position:static;grid-column:1/-1}.research-list{display:flex;gap:6px;max-height:130px;overflow:auto}.research-stock{width:130px;flex-shrink:0}.research-step{max-width:220px}.research-tabs{margin:7px 0}.research-head{justify-content:flex-start;gap:16px}.research-link{display:inline-block}}
@media(max-width:600px){.workspace-bar{padding:13px}.workspace-actions{width:100%}.workspace-actions input,.workspace-actions select{flex:1 1 120px}.template-actions input,.template-actions select{flex:1 1 110px;width:auto}.research-note{padding:15px}.scan-columns{gap:10px}.workspace-bar small{line-height:1.6}}

/* Research records reuse the shared Finance colors and controls. */
.research-note-heading,.research-history-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.research-note .research-note-heading{margin-bottom:9px}.research-note-heading .research-link{white-space:nowrap}
.insights .research-note{flex:0 0 auto;min-height:0}
.research-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}
.research-form-row label{min-width:0}.research-form-row select,.research-form-row input{display:block;width:100%;min-width:0;margin-top:7px;padding:8px 5px;font:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--border);border-radius:6px}
.research-note #researchThesis,.research-note #researchCondition{flex:none;min-height:80px;max-height:300px;font-size:13px;line-height:1.7}
.research-note #stockNote{flex:none;min-height:115px;max-height:380px;font-size:13px}
.research-notes-detail{margin-top:16px}.research-notes-detail summary{font-size:13px;color:var(--muted);cursor:pointer}.research-notes-detail label{margin-top:10px}
.research-note #researchSave{margin-top:16px;padding:11px 8px;font-size:13px;flex-shrink:0}
.research-note #researchStatus{font-size:12px;line-height:1.7;margin:9px 0 16px;overflow-wrap:anywhere}
.research-history-heading{padding-top:15px;border-top:1px solid var(--border)}.research-history-heading h3{font-size:13px;margin:0}.research-history-heading span{font-size:12px}
.research-history-item{padding:14px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.research-history-item h4{font-size:13px;margin:0 0 7px;color:var(--ink)}.research-history-item strong{font-size:12px;color:var(--ink)}
.research-history-meta{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 11px}.research-history-copy{font-size:13px;line-height:1.7;white-space:pre-wrap;margin:5px 0 12px;color:var(--ink)}
.research-history-pager{display:flex;gap:8px;justify-content:space-between;margin-top:12px}.research-history-pager button{font-size:12px;padding:7px}
.research-desk{padding:16px;min-height:100%;margin:0}
.research-desk-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.research-desk-heading h2{font-size:18px;margin:5px 0 9px;letter-spacing:.02em}.research-desk-heading p{margin:0;font-size:13px;line-height:1.8}
.research-desk-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}.research-desk-links a{font-size:13px;display:inline-flex;padding:9px 12px;white-space:nowrap;text-decoration:none}.research-desk-links .research-link{padding:9px 0}
.research-desk-tools{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.research-desk-tools>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;color:var(--muted)}.research-desk-tools>label:first-child{flex:1;min-width:180px;max-width:460px}
.research-desk-tools input[type=search],.research-desk-tools select{width:100%;min-width:0;border:1px solid var(--border);border-radius:6px;background:var(--panel);color:var(--ink);padding:10px;font:inherit;font-size:13px}
.research-desk-tools .research-due-option{flex-direction:row;align-items:center;min-height:39px;font-size:13px}.research-due-option input{accent-color:var(--accent);width:16px;height:16px}
.research-desk-summary{font-size:13px;color:var(--muted);line-height:1.7;margin:17px 0 8px}
.research-desk-row{display:grid;grid-template-columns:minmax(160px,.9fr) minmax(220px,2.6fr) auto;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--border);min-width:0}
.research-desk-stock{text-align:left;color:var(--ink);background:none;border:0;padding:5px 0;font:inherit;font-size:14px;line-height:1.9;cursor:pointer;overflow-wrap:anywhere}.research-desk-stock:hover{text-decoration:underline;color:var(--accent-strong)}
.research-desk-detail{min-width:0}.research-desk-detail p{font-size:14px;line-height:1.8;color:var(--ink);margin:7px 0;overflow-wrap:anywhere;white-space:pre-wrap}.research-desk-detail small{font-size:12px;color:var(--muted);line-height:1.8}
.research-stage{display:inline-block;font-size:12px;color:var(--muted);border-left:3px solid var(--border);padding-left:8px;line-height:1.5}.research-stage[data-stage=researching]{color:var(--accent-strong);border-color:var(--accent)}.research-stage[data-stage=review]{color:var(--warning);border-color:var(--warning)}.research-stage[data-stage=archived]{color:var(--muted);border-color:var(--muted)}
.research-desk-actions button{font-size:13px;white-space:nowrap;padding:10px 12px}
.research-desk-empty{padding:55px 20px;text-align:center;line-height:1.9;color:var(--muted);font-size:14px;border-bottom:1px solid var(--border)}
.research-desk-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0}.research-desk-pagination button{font-size:13px}.research-desk-foot{font-size:12px;line-height:1.8;margin:10px 0 0}
@media(max-width:820px){.research-desk{padding:16px}.research-desk-heading{display:block}.research-desk-heading h2{font-size:21px}.research-desk-links{justify-content:flex-start;margin-top:13px;gap:7px}.research-desk-links a{font-size:12px;padding:8px 10px}.research-desk-tools{gap:12px}.research-desk-tools>label:first-child{min-width:100%;max-width:none}.research-desk-row{grid-template-columns:1fr auto;gap:9px 12px;padding:18px 0}.research-desk-stock{grid-column:1;grid-row:1}.research-desk-detail{grid-column:1/-1;grid-row:2}.research-desk-actions{grid-column:2;grid-row:1}.research-desk-actions button{font-size:12px;padding:8px 9px}.research-desk-detail p{font-size:13px}.research-desk-summary{font-size:12px}.research-desk-tools .research-due-option{font-size:12px}}
.scan-add-research{display:block;margin-top:7px;padding:4px 8px;font-size:12px}
