.research-tools { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.research-tools .form-control { min-width: 0; }
.research-tools .table-responsive { max-width: 100%; overflow-x: auto; }
.research-tools .research-advanced summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.research-tools .research-advanced summary::before { content: "+"; margin-right: .5rem; }
.research-tools .research-advanced[open] summary::before { content: "−"; }
.research-tools .research-review { color: #805600; font-weight: 600; }
.research-tools [data-compare-resume][hidden] { display: none !important; }
.research-tools .research-event dt { font-weight: 500; }
.research-tools .research-event dd { margin-bottom: .4rem; }
.research-tools .btn, .research-tools .page-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.research-tools .research-actions { gap: .5rem; }
.research-tools .research-table { min-width: 880px; }
.research-tools .research-table th, .research-tools .research-table td { vertical-align: middle; }
.research-tools .research-comparison { width: max-content; min-width: 100%; }
.research-tools .research-comparison th, .research-tools .research-comparison td { min-width: 150px; max-width: 260px; padding: .7rem; overflow-wrap: anywhere; }
.research-tools .research-comparison tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--ui-surface); min-width: 160px; }
.research-tools .research-select { width: 24px; height: 24px; margin: 10px; }
body.dark-mode .research-tools .research-review,
.theme-dark .research-tools .research-review { color: #ffd36b; }
.research-tools [data-copy-status] { display: block; min-height: 1.3em; }
.research-tools .table-responsive:focus { outline: 2px solid var(--primary, #007bff); outline-offset: 2px; }
@media (max-width: 575px) {
    .research-tools .research-comparison th, .research-tools .research-comparison td { min-width: 145px; max-width: 175px; }
    .research-tools .research-comparison tr > :first-child { min-width: 130px; max-width: 130px; }
    .research-tools .research-share .form-control { min-width: 0; }
}

/* Compact results-first research controls. */
.screener-filter { margin-bottom: 12px; padding: 12px 16px 0; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); }
.screener-filter .research-advanced > summary { gap: 8px; font-size: 14px; }
.screener-filter-hint { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ui-muted); }
.screener-filter .research-actions { margin-bottom: 16px; }
.research-active-filters { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
.research-active-filters:empty { display: none; }
.screener-result-toolbar { align-items: center; }
.screener-result-toolbar p { margin: 0; }
.screener-sort-control { display: flex; gap: 8px; max-width: 52%; }
.screener-sort-control select { width: 100%; }
.screener-quote-time { margin-bottom: 8px; font-size: 12px; }
.screener-footer-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.screener-page-size { display: flex; align-items: center; gap: 8px; }
.screener-page-size label { margin: 0; }
.screener-page-size select { width: 76px; }
.ui-shell [data-research-tool="screener"] > h1 + p { margin-bottom: 16px; }
.research-result-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.research-result-toolbar p { margin: 0; font-size: 14px; }
.compact-share { flex-shrink: 0; max-width: 100%; }
.compact-share [data-copy-status]:empty { display: none; }
.copy-fallback { margin-top: 8px; }
.research-selection-bar { position: sticky; top: 12px; z-index: 3; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.research-method > summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.screener-mobile-data { display: none; }
.screener-results-table td:nth-child(4), .screener-results-table td:nth-child(5) { text-align: right; }
@media(max-width:767.98px) {
    .screener-filter { padding: 12px 12px 0; }
    .screener-filter-hint { font-size: 12px; }
    .research-tools .screener-results-table { min-width: 0; width: 100%; }
    .screener-results-table tr > :nth-child(3), .screener-results-table tr > :nth-child(4), .screener-results-table tr > :nth-child(6), .screener-results-table tr > :nth-child(7), .screener-results-table tr > :nth-child(8) { display: none; }
    .research-tools .screener-results-table th, .research-tools .screener-results-table td { padding: 10px 4px; vertical-align: top; }
    .screener-results-table tr > :first-child { width: 44px; }
    .research-tools .research-select { margin: 10px 6px; }
    .screener-results-table tr > :nth-child(5) { width: 82px; }
    .screener-mobile-data { display: block; font-weight: 400; margin-top: 6px; }
    .screener-mobile-data small { display: block; color: var(--ui-muted); }
    .screener-mobile-data summary { cursor: pointer; min-height: 44px; padding-top: 10px; font-size: 13px; color: var(--ui-link); }
    .research-active-filters { margin-bottom: 8px !important; }
    .research-active-filters .btn { min-height: 36px; font-size: 13px; }
}
.compare-add-panel { margin-bottom: 8px; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); }
.compare-add-panel > summary, .comparison-security-info > summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: var(--ui-link); line-height: 1.25; }
.compare-add-panel > summary small { margin-left: 8px; color: var(--ui-muted); font-size: 12px; font-weight: 400; }
.compare-add-panel form { max-width: 640px; margin-top: 8px; }
.comparison-security-info { font-weight: 400; }
.comparison-security-info small { display: block; }
.comparison-remove { display: inline-flex; align-items: center; min-height: 44px; }
.comparison-empty { padding: 20px; border: 1px solid var(--ui-line); border-radius: 8px; background: var(--ui-surface); }
.comparison-controls { margin-bottom: 12px; }
.comparison-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.comparison-selected-set { flex: 1; min-width: 0; }
.comparison-selected-set > summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-size: 14px; }
.comparison-selected-set__items { padding-bottom: 8px; }
.comparison-context { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.comparison-context > .comparison-all { display: none; margin-left: auto; padding: 4px 0; font-size: 13px; }
.comparison-selected-set__items { display: flex; flex-wrap: wrap; gap: 6px; }
.comparison-selected-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; border: 1px solid var(--ui-line); border-radius: 999px; font-size: 13px; line-height: 1.35; }
.comparison-selected-chip small { color: var(--ui-muted); }
.comparison-selected-chip span { font-size: 16px; line-height: 1; }
.comparison-visible-count--mobile { display: none; }
.comparison-mobile-controls { display: none; }
.research-tools .research-comparison tbody td { font-variant-numeric: tabular-nums; }
.selection-details { margin-top: 4px; }
.selection-details > summary { cursor: pointer; min-height: 36px; padding: 8px 0 2px; color: var(--ui-link); font-size: 13px; }
.selection-details [data-selection-chips] { padding-bottom: 2px; }
.selection-details [data-selection-chips] .btn { min-height: 36px; font-size: 13px; }
.screener-results-table th[scope="row"] a { font-size: 15px; }
.screener-results-table td:nth-child(5) { font-size: 15px; font-weight: 600; }
.screener-results-table tbody td, .screener-results-table tbody th { line-height: 1.35; }
@media(max-width:767.98px) {
    .has-js .comparison-visible-count--desktop { display: none; }
    .has-js .comparison-visible-count--mobile { display: inline; }
    .has-js .comparison-mobile-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 4px 0; }
    .comparison-mobile-controls label { font-size: 13px; font-weight: 500; }
    .comparison-mobile-controls select { font-size: 14px; }
    .has-js .comparison-context > .comparison-all { display: inline-flex; }
    .comparison-context > span:not(.comparison-visible-count) { flex-basis: 100%; order: 2; }
    .has-js [data-research-tool=compare]:not(.comparison-show-all) .comparison-hidden-column { display: none; }
    .has-js [data-research-tool=compare]:not(.comparison-show-all) .research-comparison { width: 100%; min-width: 0; table-layout: fixed; }
    .has-js [data-research-tool=compare]:not(.comparison-show-all) .research-comparison th,
    .has-js [data-research-tool=compare]:not(.comparison-show-all) .research-comparison td { min-width: 0; max-width: none; width: auto; padding: 10px 6px; font-size: 14px; }
    .has-js [data-research-tool=compare]:not(.comparison-show-all) .research-comparison tr > :first-child { width: 31%; min-width: 0; max-width: none; font-size: 13px; }
}
.research-comparison thead th { position: relative; vertical-align: top; }
.research-comparison thead th, .research-comparison thead th a, .research-comparison thead th small { overflow-wrap: normal; word-break: normal; }
.research-comparison.comparison-has-remove thead th:not(:first-child) { padding-right: 42px; }
.research-comparison .comparison-remove { position: absolute; top: 4px; right: 0; justify-content: center; width: 40px; height: 44px; font-size: 20px; text-decoration: none; }
@media(max-width:767.98px) { .has-js [data-research-tool=compare]:not(.comparison-show-all) .research-comparison.comparison-has-remove thead th:not(:first-child) { padding-right: 44px; } .research-comparison .comparison-remove { width: 44px; } }
.research-comparison .comparison-security-info,
.research-comparison .comparison-security-info summary { overflow-wrap: normal; word-break: normal; }

.research-comparison tr[data-comparison-year] th{color:var(--ui-muted);font-weight:500}.research-comparison tr[data-comparison-year]:first-of-type{border-top:2px solid var(--ui-line)}
.research-comparison .comparison-section-row th { padding: 9px 10px; background: var(--ui-page); color: var(--ui-ink); font-size: 13px; font-weight: 600; }
@media(max-width:767px){.has-js .research-comparison .comparison-year-hidden{display:none}.comparison-year-picker{grid-column:1/-1}}

@media(max-width:767px){.compare-add-panel{padding:0 10px}}

.comparison-year-controls { display: none; }
@media(max-width:767px){.has-js .comparison-year-controls{display:table-row}.comparison-year-picker label{font-size:13px}.comparison-year-picker select{max-width:280px;font-size:14px}}
