/* Private research views. Public layout and Support retain their own sizing. */
.nav-item[data-private-tab][hidden],#research-view[hidden]{display:none!important}
.nav-item[data-private-tab] span:not(.nav-arrow){white-space:normal;line-height:1.3}
.research-layout-active .page-heading .session-stamp,.research-layout-active .page-footer{display:none}
.research-layout-active .page-heading{margin-bottom:8px}
.research-layout-active .page-heading h1{font-size:22px}
#research-view{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;flex:1;padding-bottom:72px}
.research-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;flex-shrink:0}
.research-context,.research-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.research-private{font-size:10px;font-weight:650;letter-spacing:.4px;color:var(--accent);background:var(--accent-soft);border:1px solid var(--line);padding:4px 7px;border-radius:5px}
.research-time{font-size:11px;color:var(--muted)}
.research-button{border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--surface);font-size:12px;min-height:34px}
.research-button:hover,.research-button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.research-button:disabled{opacity:.5}
.research-primary{background:var(--accent);border-color:var(--accent);color:white}
.research-actions select{height:34px;font-size:11px;max-width:260px}
.research-status{padding:9px 12px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:7px;font-size:12px;background:var(--surface);flex-shrink:0}
.research-status:empty{display:none}
.research-status.error{border-left-color:var(--red);color:var(--red)}
.research-status.good{border-left-color:var(--accent)}
.research-panel{display:flex;flex-direction:column;flex:1;min-height:150px;min-width:0}
.research-panel-heading{padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);flex-shrink:0}
.research-panel-heading h2{font-size:15px}
.research-panel-heading small{font-size:11px;color:var(--muted)}
.research-scroll{overflow:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#bdcec5 transparent}
.research-table{width:100%;min-width:0!important;table-layout:fixed;white-space:normal;font-size:12px}
.research-table th,.research-table td{padding:9px 8px;height:auto;vertical-align:top;text-align:right;overflow-wrap:anywhere}
.research-table th{font-size:10px;white-space:normal}
.research-table td{border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;line-height:1.4}
.research-table td:first-child,.research-table th:first-child{padding-left:12px;text-align:left}
.research-table .left{text-align:left}
.research-table .reason{font-size:11px;text-align:left;font-weight:400}
.research-table strong{font-size:12px}
.research-table small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}
.research-table tbody tr:last-child td{border-bottom:0}
.research-action{display:inline-block;white-space:nowrap;font-size:11px;font-weight:650;padding:3px 6px;border-radius:5px;background:var(--soft);border:1px solid var(--line)}
.research-action.buy,.research-action.hold{background:var(--accent-soft);color:var(--accent)}
.research-action.sell{background:var(--red-soft);color:var(--red)}
.research-action.wait{color:var(--gold)}
.research-up{color:var(--accent)}.research-down{color:var(--red)}
.research-empty{padding:35px 18px;text-align:center;color:var(--muted);font-size:13px;margin:auto;max-width:580px}
.research-empty strong{display:block;color:var(--ink);margin-bottom:7px;font-size:16px}
.research-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex-shrink:0}
.research-metric{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:10px 12px;min-width:0}
.research-metric span{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
.research-metric strong{font-size:18px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.research-metric small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.research-subtabs{display:flex;gap:5px;flex-wrap:wrap}
.research-subtabs .research-button{font-size:11px;padding:5px 9px;min-height:30px}
.research-method{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-shrink:0;font-size:12px;overflow:auto;max-height:36vh}
.research-method summary{font-size:11px;padding:9px 12px;cursor:pointer;color:var(--muted)}
.research-method-content{padding:0 14px 12px;display:grid;grid-template-columns:1.15fr 1fr;gap:20px;line-height:1.65}
.research-method-content ol{padding-left:18px;margin:6px 0}
.research-method-content p{margin-bottom:6px}
.research-method-content dl{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:5px 0}
.research-method-content dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.research-method-content dt{color:var(--muted)}
.research-footnote{font-size:11px;color:var(--muted)}
.research-run-status{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;flex-shrink:0}
.research-run-status strong{font-weight:600;color:var(--ink)}.research-health-error{color:var(--red)}
.research-exclusions{background:var(--surface);border:1px solid var(--line);border-radius:8px;max-height:28vh;overflow:auto;flex-shrink:0}
.research-exclusions summary{font-size:11px;padding:9px 12px;cursor:pointer;color:var(--muted)}
.research-exclusion-list{padding:0 12px 9px}.research-exclusion-list>div{display:grid;grid-template-columns:65px 1fr;gap:10px;border-top:1px solid var(--line);padding:7px 0;font-size:11px}
.research-exclusion-list span{color:var(--muted);overflow-wrap:anywhere}
#research-view:has(details[open]){overflow-y:auto}
.research-assessment{border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--surface);font-size:11px;flex-shrink:0}
.research-assessment>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:3px}
.research-assessment>div strong{font-size:12px}.research-assessment>div span{color:var(--gold)}
.research-assessment p{color:var(--muted);margin-top:3px;line-height:1.4}
.research-assessment .research-warning{color:var(--gold)}
.research-assessment details{margin-top:4px}.research-assessment summary{cursor:pointer;color:var(--accent);font-size:10px}
@media(min-width:1100px) and (min-height:650px){
 .research-layout-active main{overflow:hidden}
 #research-view{overflow:hidden;padding-bottom:66px}
 .research-panel{min-height:130px}
}
@media(max-height:760px) and (min-width:1100px){
 .research-metric{padding:7px 10px}.research-metric strong{font-size:16px}
 .research-metrics{gap:5px}.research-panel-heading{padding:8px 12px}
 .research-table th,.research-table td{padding-top:7px;padding-bottom:7px}
}
@media(max-width:1099px){
 .research-layout-active .workspace{height:auto;min-height:100dvh}
 .research-layout-active main{display:block}
 #research-view{min-height:55vh}
 .research-scroll{max-height:60vh}
 .research-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .research-toolbar,.research-actions{align-items:stretch}
 .research-actions{width:100%}.research-actions select{flex:1;max-width:none;min-width:0;width:auto}
 .research-actions .research-button{flex:1;white-space:nowrap}
 .research-context{width:100%;justify-content:space-between}
 .research-metric strong{font-size:16px}.research-metric{padding:9px 10px}
 .research-table thead{display:none}.research-table,.research-table tbody{display:block;min-width:0}
 .research-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 12px;border-bottom:1px solid var(--line);gap:6px 12px}
 .research-table td,.research-table td:first-child{display:block;padding:0;border:0;text-align:left!important;min-width:0}
 .research-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;font-weight:400;margin-bottom:2px}
 .research-table td.reason{grid-column:1 / -1}.research-table td.rank{display:none}
 .research-table td.symbol{font-size:15px;grid-column:1}.research-table td.symbol strong{font-size:15px}
 .research-method-content{grid-template-columns:1fr;gap:10px}
 .research-method{max-height:55vh}.research-scroll{max-height:none}
 .research-subtabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .research-subtabs .research-button{padding:6px 3px;font-size:10px}
 .research-status{font-size:11px}
 #research-view{padding-bottom:12px}
}
