/* Only the screener uses this sheet. Data and engine logic remain unchanged. */
.screener-compact{--screener-nav-height:72px;--sc-line:#334155;--sc-panel:#111b2a;--sc-text:#dbe6f5;--sc-muted:#b2c1d6}
.screener-compact main{padding-top:20px}
.screener-compact .screener-controls{padding:14px;gap:12px}
.screener-compact .screener-preset-description{padding:10px 12px}
.screener-compact .screener-filter-group{border:1px solid var(--sc-line);border-radius:8px;padding:0 12px;margin-top:10px}
.screener-compact .screener-filter-group>summary{padding:10px 0;cursor:pointer;font-size:13px;font-weight:700;min-height:44px;color:var(--sc-text)}
.screener-compact .screener-filter-group>div{padding:4px 0 12px;border:0}
.screener-compact select,.screener-compact input,.screener-compact button{min-height:40px}
.screener-compact .screener-active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.screener-compact .screener-filter-chip{border:1px solid #456a9c;border-radius:7px;background:#132845;color:#d0e5ff;padding:5px 10px;font-size:12px;min-height:40px;text-align:start}
.screener-compact .screener-filter-chip span+span{margin-inline-start:10px}
.screener-compact .screener-active-heading{color:var(--sc-muted);font-size:12px}
.screener-compact .screener-results-shell{overflow:visible!important}
.screener-compact .screener-table-scroll{max-height:none;overflow:visible;scroll-margin-block-start:calc(var(--screener-nav-height) + 16px)}
.screener-compact .screener-results{table-layout:fixed;min-width:1160px;width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.screener-compact .screener-results thead{position:static;background:transparent}
.screener-compact .screener-results th{position:sticky;top:var(--screener-nav-height);z-index:20;background:#17243a;color:var(--sc-text);height:48px;padding:0 6px;border-bottom:1px solid #456080;text-align:start}
.screener-compact .screener-results td{height:48px;padding:1px 8px;border-bottom:1px solid #26374e;text-align:start;vertical-align:middle;line-height:18px}
.screener-compact .screener-results tbody tr:nth-child(even){background:#101a29}
.screener-compact .screener-results tbody tr:hover{background:#1c2d45}
.screener-compact .screener-results .screener-identity-cell{position:sticky;inset-inline-start:0;background:#132033;z-index:10}
.screener-compact .screener-results th.screener-identity-cell{z-index:25;background:#17243a}
.screener-compact .screener-identity{display:flex;flex-direction:column;gap:1px;min-width:0}
.screener-compact .screener-ticker{font-weight:700;font-size:14px;color:#83baff;width:fit-content;min-height:20px;line-height:20px}
.screener-compact .screener-company-compact{font-size:12px;line-height:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sc-muted)}
.screener-compact .screener-price-meta{display:block;color:var(--sc-muted);font-size:12px;line-height:15px;white-space:nowrap}
.screener-compact .screener-results .screener-sort{font-size:12px;min-height:48px;line-height:18px;text-align:start;width:100%;white-space:nowrap;display:flex;align-items:center;gap:5px}
.screener-compact .screener-metric{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;unicode-bidi:isolate;direction:ltr;font-variant-numeric:tabular-nums}
.screener-compact .screener-setup-label{display:inline-block;max-width:100%;line-height:17px;background:#22344e;color:#d1e3ff;border-radius:5px;padding:3px 6px;font-size:12px}
.screener-compact .screener-cell-label{font-size:12px;white-space:normal;line-height:17px}
.screener-compact .screener-row-actions{display:flex;gap:8px;align-items:center}
.screener-compact .screener-row-actions button,.screener-compact .screener-row-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#83baff;font-size:12px}
.screener-compact .screener-row-actions button{padding:0 4px;text-decoration:underline;text-underline-offset:3px}
.screener-compact .screener-warning{color:#f5cf86}
.screener-compact .screener-basis-note{font-size:12px;line-height:1.7;color:var(--sc-muted);margin:10px 0}
.screener-compact .screener-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.screener-compact .screener-card{padding:16px;border:1px solid var(--sc-line);border-radius:10px;background:var(--sc-panel);min-width:0}
.screener-compact .screener-card .screener-company-compact{white-space:normal;overflow:visible}
.screener-compact .screener-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;margin:16px 0}
.screener-compact .screener-card dt{font-size:12px;color:var(--sc-muted)}
.screener-compact .screener-card dd{margin:4px 0 0;font-size:13px}
.screener-compact dialog{width:min(620px,calc(100vw - 32px));max-height:85vh;overflow:auto;background:#111b2a;color:#e2e8f0;border:1px solid #6686b2;border-radius:12px;padding:24px}
.screener-compact dialog::backdrop{background:#0009}
.screener-compact dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.screener-compact dialog dt{font-size:12px;color:var(--sc-muted)}
.screener-compact dialog dd{margin:3px 0 0;font-size:14px}
.screener-compact dialog a{text-decoration:underline}
.screener-compact :is(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #8ac0ff;outline-offset:2px}
.screener-compact .screener-skip{position:fixed;inset-inline-start:12px;top:-100px;z-index:100;background:#fff;color:#111;padding:12px}
.screener-compact .screener-skip:focus{top:10px}
html:not(.dark) .screener-compact{--sc-panel:#fff;--sc-text:#1e293b;--sc-muted:#475569}
html:not(.dark) .screener-compact .screener-results :is(th,.screener-identity-cell){background:#edf3fb;color:#1e293b}
html:not(.dark) .screener-compact .screener-results tbody tr:nth-child(even){background:#f8fafc}
html:not(.dark) .screener-compact .screener-results tbody tr:hover{background:#e8f0fb}
html:not(.dark) .screener-compact :is(.screener-ticker,.screener-row-actions a,.screener-row-actions button){color:#1d4ed8}
html:not(.dark) .screener-compact .screener-filter-chip{color:#1e40af;background:#eff6ff}
html:not(.dark) .screener-compact .screener-warning{color:#92400e}
html:not(.dark) .screener-compact dialog{background:#fff;color:#1e293b}
html:not(.dark) .screener-compact :is(a,button,input,select,summary,[tabindex]):focus-visible{outline-color:#1d4ed8}
@media(max-width:1240px){.screener-compact .screener-table-scroll{overflow-x:auto;overflow-y:visible}.screener-compact .screener-results th{top:0}}
@media(max-width:1023px){.screener-compact .screener-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.screener-compact main{padding-top:16px}.screener-compact .screener-card-grid{grid-template-columns:1fr}.screener-compact .screener-active-filters{gap:6px}.screener-compact .screener-controls{padding:12px}.screener-compact button,.screener-compact select,.screener-compact input{min-height:44px}.screener-compact .screener-sort{min-width:44px}}

.screener-compact .screener-filter-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.screener-compact .screener-strategy-picker>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;color:var(--sc-text)}
.screener-compact .screener-filter-group .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:767px){.screener-compact .screener-filter-groups{grid-template-columns:1fr;gap:0}}

html:not(.dark) .screener-compact .screener-results .text-emerald-400{color:#047857}
html:not(.dark) .screener-compact .screener-results .text-rose-300{color:#be123c}

.screener-compact .screener-identity-sort{display:flex;align-items:center;gap:6px}
.screener-compact .screener-identity-sort .screener-sort{width:auto;flex:1}
@media(max-width:767px){
 .screener-compact .screener-result-options{flex-wrap:wrap;width:100%;min-width:0}
 .screener-compact .screener-result-options>label{flex:1 1 155px;min-width:0}
 .screener-compact .screener-result-options select{max-width:100%}
 .screener-compact .screener-result-count{flex:1 1 90px;min-width:0}
 .screener-compact .screener-view-switch{flex-shrink:0}
}
