.ts-selection-lab{padding:12px 18px;min-width:0;width:100%;box-sizing:border-box}
.ts-selection-lab .ts-selection-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:8px 0}
.ts-selection-lab label{display:flex;flex-direction:column;gap:4px}.ts-selection-lab select{max-width:min(100%,520px)}
.ts-selection-lab button{min-height:36px}.ts-selection-lab input[type=checkbox]{min-width:20px;min-height:20px}
.ts-selection-table-wrap{max-width:100%;max-height:65vh;overflow:auto;border:1px solid #d0d5dd;border-radius:8px}
.ts-selection-table{border-collapse:separate;border-spacing:0;white-space:nowrap;width:100%;font-size:14px}
.ts-selection-table th{position:sticky;top:0;z-index:2;background:#f2f4f7}.ts-selection-table td,.ts-selection-table th{padding:4px 5px;border-bottom:1px solid #eaecf0;text-align:right}
.ts-selection-table td:nth-child(-n+2),.ts-selection-table th:nth-child(-n+2){text-align:left}.ts-selection-table .is-selected{background:#e8f2fa}
.ts-selection-table :focus-visible,.ts-selection-lab button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.ts-selection-save{padding:12px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:end}.ts-selection-save p{width:100%}
.ts-selection-lab details{margin-top:12px;min-width:0}.ts-selection-lab .ts-trophy-wrap{overflow-x:auto;overflow-y:hidden;max-height:none;height:auto}
@media(max-width:700px){.ts-selection-lab{padding:8px}.ts-selection-toolbar label,.ts-selection-save label{width:100%}.ts-selection-table-wrap{max-height:60vh}.ts-selection-lab .ts-cross-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.ts-selection-lab *{scroll-behavior:auto}}
.ts-selection-lab td.is-stale { text-decoration: underline dotted; text-underline-offset: 3px; background: #fff8e6; }

/* Scope flat controls and compact sizing to the research Lab only. */
.tickerscope-connector.ts-selection-lab,
.tickerscope-connector.ts-selection-lab :is(button,input,select,textarea,.ts-dashboard-panel,.ts-cross-card,.ts-selection-table-wrap,.ts-trophy-wrap,.ts-trophy-map-cell){box-shadow:none!important;text-shadow:none!important}
.tickerscope-connector.ts-selection-lab :is(button,input,select,textarea){filter:none!important;transform:none!important}
.tickerscope-connector.ts-selection-lab button{padding:6px 10px}
.tickerscope-connector.ts-selection-lab .ts-selection-table th button{background:transparent!important;color:inherit!important;border:0!important;border-radius:0;min-width:0!important;min-height:32px;padding:3px 4px;line-height:1.25;font-size:13px;white-space:normal;width:100%;max-width:100%}
.tickerscope-connector.ts-selection-lab .ts-selection-table td button{min-height:30px;padding:3px 6px;font-size:14px}
.ts-selection-table th{max-width:96px;vertical-align:middle}
.ts-selection-table td{font-variant-numeric:tabular-nums}
.ts-selection-table th:nth-child(-n+2){width:1%;white-space:nowrap}
.ts-selection-screen{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:10px}
.ts-selection-filter-note{font-size:13px;color:#475467;margin:6px 0 10px}
.ts-selection-lab{--ts-trophy-label-width:112px}
.ts-selection-lab .ts-trophy-label{padding:0 5px}
@media(max-width:700px){.ts-selection-screen label{flex:1 1 150px;min-width:0}.ts-selection-screen select,.ts-selection-screen input{width:100%;min-width:0}.ts-selection-table th{max-width:90px}}

/* Heatmap cells retain their shared 22px height, not the toolbar touch minimum. */
.tickerscope-connector.ts-selection-lab .ts-trophy-map-cell{min-height:0!important;min-width:0!important;padding:0!important}

/* Match each centered header to its values; ticker stays left aligned. */
.ts-selection-lab .ts-selection-table :is(td,th){text-align:center;padding:4px}
.ts-selection-lab .ts-selection-table [data-selection-column="ticker"]{text-align:left}
.ts-selection-lab .ts-selection-table th button{text-align:inherit}
.ts-selection-lab .ts-selection-table :is(td,th):first-child{width:34px;min-width:34px;text-align:center}
.ts-selection-lab .ts-selection-table :is(td,th)[data-selection-column="ticker"]{width:68px;min-width:68px}
.ts-selection-lab .ts-selection-table th:not(:first-child){max-width:90px}
.ts-selection-lab .ts-selection-table input[type=checkbox]{display:block;margin:auto}

.ts-selection-lab [data-selection-save-status]:not(:empty){padding:8px 10px;border:1px solid #bccbd6;border-radius:6px;margin:8px 0;overflow-wrap:anywhere}
.ts-selection-lab [data-selection-save-status][role="alert"]{border-color:#b42318;color:#912018}
.ts-selection-lab [data-selection-save-status] a{display:inline-block;margin-left:6px;font-weight:600}

.ts-selection-lab .ts-selection-toolbar .ts-selection-replace-consent{display:flex;flex-direction:row;align-items:center;gap:6px;max-width:300px}
.ts-selection-lab [data-selection-name]{max-width:100%;box-sizing:border-box}
