.lab-builder,.lab-filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px;padding:22px;background:#191a20;border:1px solid #464650;border-radius:12px;margin:22px 0}.lab-builder label,.lab-filters label{display:grid;gap:8px;flex:1;min-width:200px;font-size:14px;font-weight:700}.lab-builder input,.lab-builder select,.lab-filters input,.lab-filters select{width:100%;min-height:46px;padding:10px;background:#fff;color:#15151b;border:1px solid #9b9ba5;border-radius:6px;font:inherit}.lab-builder button,.lab-filters button{min-height:46px;background:#d6283d;color:white;padding:10px 18px;border:0;border-radius:6px;font:inherit;cursor:pointer}.lab-builder button:disabled{opacity:.5;cursor:not-allowed}.lab-builder .lab-group-toggle{display:flex;align-items:center;min-height:46px}.lab-group-toggle input{width:20px;min-height:20px;accent-color:#d6283d}.lab-chips{display:flex;flex-wrap:wrap;gap:8px}.lab-chip{padding:10px 14px;min-height:44px;border:1px solid #777784;border-radius:24px;background:#24252d;color:white;font:inherit}.lab-chip:is(button){cursor:pointer}.lab-baseline{background:#f4f0e6;color:#20212a}.lab-status,.lab-context{color:#c6c7cf;font-size:14px;line-height:1.6}.lab-metric-section{margin:32px 0}.lab-metric-section h3{font-size:24px;letter-spacing:-.02em}.lab-table-wrap{overflow:auto;max-width:100%;border:1px solid #50515b;border-radius:10px}.lab-table-wrap table{border-collapse:separate;border-spacing:0;width:100%;font-size:15px}.lab-table-wrap th,.lab-table-wrap td{min-width:195px;max-width:280px;vertical-align:top;text-align:left;padding:18px;border-bottom:1px solid #43444d;background:#1e1f26;color:#f8f6f0}.lab-table-wrap thead th{background:#30313a}.lab-table-wrap th:first-child{position:sticky;left:0;z-index:1;min-width:175px;width:175px;background:#292a32;box-shadow:3px 0 5px #0003}.lab-table-wrap .lab-group-cell{background:#30292c}.lab-table-wrap small{display:block;color:#c7c8d0;font-size:12px;line-height:1.6;margin-top:7px}.lab-table-wrap details{font-size:12px;font-weight:400;max-width:240px;margin-top:12px}.lab-table-wrap summary{cursor:pointer;color:#e8b8c1}.lab-table-wrap details p{font-size:12px;line-height:1.5}.lab-table-wrap details a,.lab-records a{display:block;margin:10px 0;color:#f5c3cc}.lab-table-wrap:focus-visible,.lab-chip:focus-visible,.lab-builder :focus-visible,.lab-filters :focus-visible{outline:3px solid #f6bb52;outline-offset:3px}.lab-records{padding:18px;border:1px solid #555665;border-radius:8px}.lab-records summary{cursor:pointer}@media(max-width:600px){.lab-builder,.lab-filters{padding:14px;gap:12px}.lab-builder label,.lab-filters label{min-width:100%}.lab-builder button{width:100%}.lab-table-wrap th,.lab-table-wrap td{min-width:170px;padding:12px}.lab-table-wrap th:first-child{min-width:126px;width:126px;max-width:126px;font-size:13px}.lab-metric-section h3{font-size:21px}.lab-chip{font-size:13px}}

/* Match the main site's rich-black research workspace. */
.lab-builder,.lab-filters{background:#0b0d10;border-color:#454c58}
.lab-chip{background:#15191f;border-color:#69717e}
.lab-baseline{background:#f4f0e6;color:#20212a}
.lab-table-wrap{border-color:#454c58}
.lab-table-wrap th,.lab-table-wrap td{background:#090c10;border-bottom-color:#343a44}
.lab-table-wrap thead th{background:#171c23}
.lab-table-wrap th:first-child{background:#11161c;box-shadow:3px 0 7px #0007}
.lab-table-wrap .lab-group-cell{background:#211218}
.lab-records{background:#090c10;border-color:#454c58}

.lab-empty{border:1px dashed #687383;padding:18px;border-radius:8px;color:#f5f4f3}.lab-table-wrap td{padding-top:12px;padding-bottom:12px}.lab-table-wrap details{margin-top:7px}.lab-table-wrap details summary{min-height:32px;display:flex;align-items:center}.lab-table-wrap details summary::before{content:'▸';margin-right:6px}.lab-table-wrap details[open] summary::before{content:'▾'}
.lab-threshold-label{display:block;margin-top:9px;font-size:12px;line-height:1.45;font-weight:500;color:#f5d5d9}.lab-threshold-result{display:block;margin-top:9px;font-size:12px;line-height:1.45;font-weight:700;color:#f4f0e6}.lab-no-threshold{display:block;margin-top:7px;font-size:11px;font-weight:400;color:#b8b8c2}

/* Explicit text + symbols keep results readable without color perception. */
.criteria-legend{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 24px}
.criteria-badge,.threshold-status.criteria-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;padding:5px 9px;border:1px solid;border-radius:6px;font-size:11px;font-weight:800;line-height:1.4;letter-spacing:.025em;white-space:normal}
.criteria-badge.met{background:#103627;color:#9cf2c1;border-color:#3d956a}
.criteria-badge.below{background:#401d27;color:#ffb9c8;border-color:#a25c6d}
.criteria-badge.unknown{background:#3a2d12;color:#ffdc91;border-color:#a78b48}
.criteria-badge.pending{background:#162e43;color:#b5daf8;border-color:#547e9e}
.lab-verdict{margin-top:12px;padding:10px;border:1px solid #3c4652;border-left:3px solid;border-radius:7px;background:#0c1117}
.lab-verdict.met{border-left-color:#66d59a}.lab-verdict.below{border-left-color:#ee91a6}.lab-verdict.unknown{border-left-color:#e9c16a}.lab-verdict.pending{border-left-color:#85b9e3}
.lab-table-wrap .lab-verdict-title{margin:0 0 8px;color:#e7eaf0;font-weight:600;line-height:1.45;font-size:12px}
.lab-table-wrap .lab-threshold-reason{margin:8px 0 0;color:#cbd1da;font-size:12px;line-height:1.5}
.lab-table-wrap td{min-width:220px}.lab-table-wrap .lab-group-cell{background:#141b25}
@media(max-width:600px){.criteria-legend{gap:6px}.criteria-badge{font-size:10px}.lab-table-wrap td{min-width:220px}.lab-verdict{padding:9px}.lab-table-wrap th:first-child{position:static;min-width:150px;width:150px;max-width:150px;box-shadow:none}}
@media(forced-colors:active){.criteria-badge,.lab-verdict{border:1px solid CanvasText;background:Canvas;color:CanvasText}}

.lab-verdict.reference{border-color:#667a91;background:#101a25}.criteria-badge.reference{color:#b9d3ed;background:#192b3e;border-color:#516d88}

/* Compact comparison actions and a bounded table viewport retain names while scrolling. */
.lab-filters .lab-toggle{display:flex;align-items:center;gap:9px;min-width:180px;flex:0 1 240px;min-height:44px}.lab-toggle input{width:20px;min-height:20px;accent-color:#d6283d}.lab-sharebar{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.lab-sharebar button{border:1px solid #657084;border-radius:7px;background:#18212e;color:#fff;padding:11px 16px;min-height:44px;font:inherit;cursor:pointer}.lab-sharebar .lab-context{width:100%;margin:0;font-size:12px}.lab-sharebar input{width:100%;padding:10px}.lab-table-wrap{max-height:74vh}.lab-table-wrap thead th{position:sticky;top:0;z-index:3}.lab-table-wrap thead th:first-child{z-index:4}.lab-sharebar :focus-visible{outline:3px solid #f6bb52;outline-offset:3px}@media(max-width:600px){.lab-filters .lab-toggle{min-width:100%;font-size:13px}.lab-sharebar button{flex:1;font-size:13px}.lab-table-wrap thead th:first-child{position:sticky;top:0}.lab-table-wrap{max-height:70vh}}

.lab-range{margin:12px 0;padding:9px 10px;border:1px solid #3d4652;border-radius:6px;background:#101720}.lab-range-line{position:relative;height:4px;background:#647084;margin:16px 7px}.lab-range-median{position:absolute;top:-6px;width:3px;height:16px;background:#e8eef6;transform:translateX(-50%)}.lab-range-dot{position:absolute;top:-4px;width:12px;height:12px;border-radius:50%;background:#fa4b64;border:2px solid #fff;transform:translateX(-50%)}.lab-table-wrap .lab-range small{font-size:11px;line-height:1.35;margin:0}.lab-my-board{margin:14px 0}.lab-board-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.lab-board-notes label{display:grid;gap:7px;font-size:13px}.lab-board-notes textarea{font:inherit;padding:10px;color:#fff;background:#121923;border:1px solid #657084;border-radius:6px;width:100%;box-sizing:border-box;resize:vertical}

/* Compact comparison reading rhythm; all explanations and source controls retained. */
.lab-table-wrap th,.lab-table-wrap td{padding:10px 14px}
.lab-table-wrap small{line-height:1.4;margin-top:5px}
.lab-table-wrap details{margin-top:5px}
.lab-table-wrap details summary{min-height:30px}
.lab-verdict{margin-top:6px;padding:8px 9px;display:grid;grid-template-columns:1fr auto;gap:5px 8px;align-items:start}
.lab-verdict .lab-verdict-title{margin:0;line-height:1.35}
.lab-verdict .criteria-badge{padding:3px 7px;white-space:normal;text-align:center}
.lab-verdict .lab-threshold-reason{grid-column:1/-1;margin:0;line-height:1.4}
.lab-range{margin:6px 0;padding:7px 9px}
@media(min-width:761px){
 .lab-table-wrap thead th{padding:12px 14px;vertical-align:middle}
 .lab-table-wrap thead th .prospect-photo{float:right;margin:0 0 0 12px;width:60px}
 .lab-table-wrap thead th .prospect-photo img{width:60px;height:74px}
 .lab-table-wrap thead th .prospect-photo figcaption{margin-top:3px;line-height:1.2}
}
@media(max-width:760px){
 .lab-verdict{display:block}
 .lab-verdict .criteria-badge{display:inline-block;margin-top:5px}
 .lab-verdict .lab-threshold-reason{margin-top:5px}
 .lab-table-wrap details summary{min-height:40px}
}
.lab-table-wrap td>details{padding:0;border-radius:5px}
.lab-table-wrap td>details.lab-range{padding:0 8px}
.lab-table-wrap td>details[open]{padding:8px}
.lab-table-wrap td>details summary{padding:0;line-height:1.4}
@media(min-width:761px){
 .lab-table-wrap table{font-size:16px}
 .lab-table-wrap small,.lab-table-wrap details{font-size:13px}
 .lab-verdict .lab-verdict-title,.lab-verdict .lab-threshold-reason{font-size:13px}
 .lab-verdict .criteria-badge{font-size:12px}
}
