.browse-entities .catalog-tabs{display:flex}
.browse-entities .catalog-tabs button{font-size:14px}
.browse-entities [hidden]{display:none!important}
.browse-entity-layout{display:grid;grid-template-columns:258px minmax(0,1fr);gap:18px;align-items:start}
.browse-entity-filters{background:#fff;border:1px solid var(--line,#dbe7ee);border-radius:12px;position:sticky;top:16px;max-height:calc(100vh - 40px);overflow:auto}
.browse-entity-filters>details>summary{display:none}
.browse-entity-filters .browse-filter-body{padding:16px}
.browse-filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;color:var(--teal,#087f7b)}
.browse-filter-title button,.browse-open-details{border:1px solid #cfdee6;border-radius:6px;background:#f7fbfb;color:#287e79;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer}
.browse-filter-group{border-top:1px solid #e6edf1;padding:12px 0}
.browse-filter-group summary{color:#24465a;font-size:13px;font-weight:650;cursor:pointer;margin-bottom:8px}
.browse-filter-note,.browse-detail-note,.browse-count-definitions{color:#607590;font-size:12px;line-height:1.5}
.browse-facet-option{display:flex;align-items:center;gap:8px;font-size:12px;color:#314a60;margin:7px 0;cursor:pointer}
.browse-facet-option input{accent-color:#37827d;flex:0 0 auto;margin:0}
.browse-facet-option span{flex:1}
.browse-facet-option small,.browse-domain-button small,.browse-system-button small{font-size:11px;font-weight:500;color:#607590}
.browse-source-filters{border-top:1px solid #e6edf1;padding-top:12px;display:grid;gap:12px}
.browse-source-filters label{display:grid;gap:6px;font-size:12px;color:#314a60;font-weight:600}
.browse-source-filters select{width:100%;min-width:0;border:1px solid #d5e1e8;border-radius:6px;padding:7px;background:#fff;color:#314a60;font-size:12px}
.browse-domain-group{padding:8px 0;border-top:1px solid #e6edf1}
.browse-domain-button,.browse-system-button{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;gap:8px;text-align:left;color:#314a60;cursor:pointer;border-radius:6px;padding:8px;font-size:12px}
.browse-domain-button{font-weight:650}
.browse-system-button{padding-left:16px}
.browse-domain-button.active,.browse-system-button.active{background:#e8f5f2;color:#087f7b}
.browse-entity-results{min-width:0;background:white;border:1px solid #dbe7ee;border-radius:12px;padding:18px}
.browse-entity-results h2{font-size:18px;color:#087f7b;margin:0 0 6px}
.browse-entity-results>.browse-detail-note{margin:0 0 16px}
.browse-entity-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.browse-entity-toolbar input{flex:1;min-width:0;border:1px solid #d5e1e8;border-radius:7px;padding:9px 12px;font-size:13px}
.browse-entity-toolbar>span{white-space:nowrap;font-size:12px;color:#607590}
.browse-entities .metabdb-table-widget table{min-width:860px;width:100%}
.browse-entities .metabdb-table-widget th,.browse-entities .metabdb-table-widget td,.browse-entities .metabdb-table-widget th button{font-size:13px;line-height:1.45}
.browse-entities .metabdb-table-widget td{vertical-align:middle;padding:11px 10px}
.browse-entities .metabdb-table-widget th{padding:10px}
.browse-entities .metabdb-table-widget td.browse-name-cell{min-width:230px;max-width:340px}
.browse-name-cell strong{display:block;font-weight:600;max-width:310px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.browse-entities .metabdb-table-widget td:nth-child(2){min-width:128px}
.browse-type-badge,.browse-mapping-badge,.browse-definition-tag{display:inline-block;border-radius:5px;font-size:11px;line-height:1.35;padding:4px 7px;font-weight:600}
.browse-type-badge.compound{color:#267258;background:#e8f4ed}
.browse-type-badge.lipoprotein{color:#296aa4;background:#e8f0fb}
.browse-type-badge.lipid{color:#7851a5;background:#f0eafa}
.browse-type-badge.protein{color:#267d87;background:#e5f3f5}
.browse-type-badge.ratio{color:#aa671e;background:#fff0df}
.browse-type-badge.percentage{color:#8e7418;background:#faf4d9}
.browse-type-badge.derived{color:#536c8a;background:#edf1f6}
.browse-type-badge.unknown{color:#69717b;background:#f0f1f3}
.browse-source-panel{margin-top:20px;padding:16px;background:#f8fbfc;border:1px solid #dbe7ee;border-radius:10px}
.browse-source-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}
.browse-source-heading h2{font-size:16px;overflow-wrap:anywhere}
.browse-source-heading p{margin:6px 0}
.browse-source-heading>button{flex:none}
.browse-detail-links{display:flex;gap:18px;margin:10px 0 16px;font-size:12px;font-weight:600}
.browse-source-panel .metabdb-table-widget td{vertical-align:top;max-width:310px;overflow-wrap:anywhere}
.browse-source-panel .metabdb-table-widget table{min-width:1100px}
.browse-source-panel .table-secondary{display:block;font-size:11px;line-height:1.5;color:#607590;margin-top:5px;max-height:90px;overflow:auto}
.browse-definition-tag{color:#357671;background:#e8f3f1;font-weight:500}
.browse-mapping-badge.mapped{background:#e5f3e9;color:#327551}
.browse-mapping-badge.partial{background:#fff2df;color:#9a712a}
.browse-mapping-badge.source{background:#e9f0fa;color:#4c6e9b}
.browse-mapping-badge.review{background:#f1ecef;color:#8e6477}
.browse-count-definitions{margin:16px 0;padding:12px 16px;border:1px solid #dbe7ee;border-radius:8px;background:#f8fbfc}
.browse-count-definitions summary{cursor:pointer;color:#287e79;font-weight:600}
.browse-count-definitions p{margin:8px 0}
#browse-measures-table table,#browse-traits-table table{table-layout:fixed;min-width:800px}
#browse-measures-table td.browse-name-cell,#browse-traits-table td.browse-name-cell{min-width:0;max-width:none}
#browse-measures-table .browse-name-cell strong,#browse-traits-table .browse-name-cell strong{max-width:100%}
#browse-measures-table td:nth-child(2),#browse-traits-table td:nth-child(2){min-width:0}
#browse-measures-table th:nth-child(1){width:27%}#browse-measures-table th:nth-child(2){width:16%}#browse-measures-table th:nth-child(3){width:13%}#browse-measures-table th:nth-child(4){width:6%}#browse-measures-table th:nth-child(5){width:11%}#browse-measures-table th:nth-child(6){width:9%}#browse-measures-table th:nth-child(7){width:8%}#browse-measures-table th:nth-child(8){width:10%}

@media(max-width:900px){.browse-entity-layout{grid-template-columns:215px minmax(0,1fr)}.browse-entity-results{padding:12px}}
@media(max-width:680px){.browse-entity-layout{grid-template-columns:minmax(0,1fr);gap:12px}.browse-entity-filters{position:static;max-height:none}.browse-entity-filters>details>summary{display:block;padding:12px 16px;cursor:pointer;font-size:13px;color:#287e79;font-weight:650}.browse-entity-toolbar{flex-wrap:wrap;gap:8px}.browse-entity-toolbar input{flex-basis:100%}.browse-source-panel{padding:10px}.browse-entities .catalog-tabs button{flex:1}.browse-source-heading{gap:10px}}

.browse-name-cell a[data-entity-link]{color:inherit;text-decoration:none}
.browse-name-cell a[data-entity-link]:hover,.browse-name-cell a[data-entity-link]:focus-visible{color:#087f7b;text-decoration:underline}
.browse-entity-row{cursor:pointer}.browse-entity-row:hover td{background:#f1f8f7}
.browse-entity-row:focus-visible{outline:2px solid #287e79;outline-offset:-2px}
.browse-endpoint-label,.browse-label-basis{display:block;color:#607590;font-size:11px;line-height:1.5;margin-top:3px;font-weight:400}

#browse-traits-table table{table-layout:auto;min-width:950px}.browse-endpoint-badge{display:inline-block;background:#edf5f6;color:#356d77;border-radius:3px;padding:2px 5px;margin:2px;font-size:11px;white-space:nowrap}.browse-endpoint-summary{overflow:auto;margin:10px 0 16px}.browse-endpoint-summary table{width:100%;min-width:600px;border-collapse:collapse}.browse-endpoint-summary td,.browse-endpoint-summary th{padding:9px;text-align:left;border-bottom:1px solid #e3edf3;font-size:12px}.browse-source-panel>details>summary{cursor:pointer;color:#176a73;margin:12px 0}

/* Separate source collections and molecular roles without page overflow. */
.browse-entities .catalog-tabs{flex-wrap:wrap;gap:4px}.browse-entities .catalog-tabs button{white-space:nowrap}
#browse-measures-table th:nth-child(1){width:30%}#browse-measures-table th:nth-child(2){width:18%}#browse-measures-table th:nth-child(3){width:16%}#browse-measures-table th:nth-child(4){width:7%}#browse-measures-table th:nth-child(5){width:12%}#browse-measures-table th:nth-child(6){width:8%}#browse-measures-table th:nth-child(7){width:9%}
#browse-molecular-table table{min-width:850px}#browse-sets-table table{min-width:700px}#browse-molecular-table th:first-child{width:24%}#browse-sets-table th:first-child{width:50%}
#browse-sets-table .browse-name-cell strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:680px){.browse-entities .catalog-tabs button{flex:1 1 45%;font-size:13px}}

/* Task 2 presentation-only layout; current release classifications remain untouched. */
.entity-secondary{display:block;color:#607590;font-size:11px;line-height:1.35;margin-top:3px;overflow-wrap:anywhere}
#browse-molecular-table table{min-width:760px}
#browse-molecular-table .browse-name-cell strong{white-space:normal;max-width:none}
#browse-traits-table .browse-endpoint-badge{font-weight:600}
@media(max-width:680px){.browse-entities .catalog-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.browse-entities .catalog-tabs button{white-space:normal;min-height:52px;padding:8px 4px;font-size:12px}}
@media(max-width:680px){#browse-measures-table::before,#browse-traits-table::before,#browse-molecular-table::before{content:'Swipe table to view columns →';display:block;color:#607590;font-size:11px;margin:0 0 8px}}

/* Public registry eight-column measurement layout; local table scroll contains overflow. */
#browse-measures-table table{table-layout:fixed;min-width:800px}
#browse-measures-table th:nth-child(1){width:22%}#browse-measures-table th:nth-child(2){width:13%}#browse-measures-table th:nth-child(3){width:16%}#browse-measures-table th:nth-child(4){width:14%}#browse-measures-table th:nth-child(5){width:7%}#browse-measures-table th:nth-child(6){width:10%}#browse-measures-table th:nth-child(7){width:10%}#browse-measures-table th:nth-child(8){width:8%}
#browse-measures-table th button{display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#browse-measures-table th button::after{margin-left:4px}

.browse-evidence-badge{display:inline-block;border-radius:4px;padding:2px 6px;margin:2px 4px 2px 0;font-size:11px;font-weight:500;line-height:1.5;white-space:nowrap}.browse-evidence-badge.clinical{background:#edf3fc;color:#345c94}.browse-evidence-badge.genetic{background:#f3edf8;color:#77548d}.coloc-shared-subgroups{padding-left:12px}.coloc-shared-subgroups .browse-tree-button{font-size:12px}.browse-endpoint-summary h3{font-size:14px}


/* Browse layout: all cells and actions follow the same left edge. */
.browse-entities table th,.browse-entities table td,.browse-entities table th button,
.browse-entities table td a,.browse-entities table td button{text-align:left!important}
.browse-entities table th button{justify-content:flex-start!important;white-space:normal;overflow-wrap:normal}
.browse-entities table td{font-variant-numeric:tabular-nums}
.browse-evidence-filter{border-top:0;padding:0 0 14px}
/* Compact disease list: presence and endpoint dimensions belong in the sidebar. */
#browse-traits-table table{table-layout:fixed;min-width:0;width:100%}
#browse-traits-table th{width:auto!important}
#browse-traits-table th.browse-col-name{width:22%!important}
#browse-traits-table th.browse-col-resolutionStatus{width:10%!important}
#browse-traits-table th.browse-col-type{width:12%!important}
#browse-traits-table th.browse-col-system{width:17%!important}
#browse-traits-table th.browse-col-metabolicMeasures{width:9%!important}
#browse-traits-table th.browse-col-studies{width:7%!important}
#browse-traits-table th.browse-col-clinicalRecords,#browse-traits-table th.browse-col-geneticRecords{width:8%!important}
#browse-traits-table th.browse-col-id{width:7%!important}
#browse-traits-table td,#browse-traits-table th{padding:10px 6px;overflow-wrap:anywhere;min-width:0}
#browse-traits-table .browse-mapping-badge,#browse-traits-table .browse-type-badge{white-space:normal;overflow-wrap:anywhere;padding:3px 5px}
#browse-traits-table .browse-open-link{color:#087f7b;font-weight:600;text-decoration:underline}
#browse-traits-table th button{font-size:12px}
#browse-traits-table .browse-name-cell strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#browse-molecular-table table{table-layout:fixed;min-width:1050px}
#browse-molecular-table th.browse-col-name{width:200px}
#browse-molecular-table th.browse-col-resolutionStatus{width:160px}
#browse-molecular-table th.browse-col-hgncId{width:125px}
#browse-molecular-table th.browse-col-molecularRole{width:130px}
#browse-molecular-table th.browse-col-qtlType{width:145px}
#browse-molecular-table th.browse-col-metabolicMeasures{width:120px}
#browse-molecular-table th.browse-col-studies{width:70px}
#browse-molecular-table th.browse-col-id{width:85px}
#browse-molecular-table td.browse-name-cell,#browse-molecular-table td:nth-child(2){min-width:0;max-width:none}
.browse-presence{display:inline-block;font-size:16px;font-weight:650;line-height:1.35}
.browse-presence.present{color:#23745f}.browse-presence.absent{color:#7a8a98;font-weight:400}
.browse-colour-badge{display:inline-block;border-radius:5px;font-size:11px;font-weight:600;line-height:1.4;padding:4px 7px;margin:2px 2px 2px 0;white-space:normal;overflow-wrap:anywhere}
.colour-0{background:#e8f0fc;color:#315f9a}.colour-1{background:#fff0e2;color:#92521b}
.colour-2{background:#f1eafa;color:#735096}.colour-3{background:#e6f4ec;color:#286b4b}
.colour-4{background:#fae8ed;color:#914963}.colour-5{background:#faf0d9;color:#80631a}
.colour-6{background:#e5f2f5;color:#276b7b}.colour-7{background:#efece3;color:#706147}
.colour-8{background:#eaf2db;color:#587128}.colour-9{background:#fbe9e4;color:#984f38}
.colour-10{background:#ecebfa;color:#55538e}.colour-11{background:#f6e8f2;color:#8b4a78}
.colour-12{background:#e0f0ef;color:#286d68}.colour-13{background:#f5eee3;color:#826541}
.colour-14{background:#edf0f4;color:#5b6b7d}

/* Keep long labels inside their cell and keep controls on one line. */
.browse-entities .metabdb-table-controls label{white-space:nowrap}
@media(min-width:681px){.browse-entity-layout{grid-template-columns:220px minmax(0,1fr);gap:14px}}
@media(max-width:1100px) and (min-width:681px){.browse-entity-layout{grid-template-columns:190px minmax(0,1fr);gap:12px}#browse-traits-table td,#browse-traits-table th{font-size:12px;padding:9px 4px}}
@media(max-width:680px){
 #browse-traits-table::before{display:none}
 #browse-traits-table table,#browse-traits-table tbody{display:block;width:100%;min-width:0}
 #browse-traits-table thead{display:none}
 #browse-traits-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #dbe7ee;padding:10px 0;gap:6px 12px}
 #browse-traits-table tbody td{display:block;border:0;padding:2px 0;max-width:none;min-width:0}
 #browse-traits-table tbody td:first-child{grid-column:1/-1;font-size:14px}
 #browse-traits-table tbody td:not(:first-child)::before{content:attr(data-column-label);display:block;font-size:11px;font-weight:600;color:#607590;margin-bottom:3px}
 #browse-traits-table .metabdb-table-controls{flex-wrap:wrap;gap:8px}
}
/* Evidence headers share one compact hierarchy across all three Browse roles. */
#browse-measures-table table,#browse-traits-table table,#browse-molecular-table table{table-layout:fixed;min-width:860px}
.browse-entities .browse-evidence-groups th{padding:5px 8px;font-size:12px;border-bottom:1px solid #dbe7ee}
.browse-entities .browse-evidence-groups .browse-group-clinical{color:#345c94;background:#edf3fc}
.browse-entities .browse-evidence-groups .browse-group-genetic{color:#77548d;background:#f3edf8}
.browse-entities .browse-evidence-groups .browse-group-spacer{background:transparent;border:0}
#browse-measures-table th,#browse-molecular-table th{width:auto!important}
#browse-measures-table th.browse-col-name{width:22%!important}
#browse-measures-table th.browse-col-type{width:13%!important}
#browse-measures-table th.browse-col-biochemicalClass{width:13%!important}
#browse-measures-table th.browse-col-methods{width:6%!important}
#browse-measures-table th.browse-col-sourceMeasurements{width:8%!important}
#browse-measures-table td.browse-name-cell{min-width:0;max-width:none}
#browse-measures-table .browse-name-cell strong{max-width:none;white-space:normal;overflow-wrap:anywhere}
.browse-entities .metabdb-table-widget td:nth-child(2){min-width:0}
.browse-entities th.browse-col-clinicalHR,.browse-entities th.browse-col-clinicalOR,.browse-entities th.browse-col-clinicalRR,.browse-entities th.browse-col-geneticColoc,.browse-entities th.browse-col-geneticMR{width:6%!important}
#browse-traits-table th.browse-col-name{width:20%!important}
#browse-traits-table th.browse-col-resolutionStatus{width:8%!important}
#browse-traits-table th.browse-col-type{width:9%!important}
#browse-traits-table th.browse-col-system{width:12%!important}
#browse-traits-table th.browse-col-metabolicMeasures{width:8%!important}
#browse-traits-table th.browse-col-studies{width:6%!important}
#browse-molecular-table th.browse-col-name{width:19%!important}
#browse-molecular-table th.browse-col-hgncId{width:12%!important}
#browse-molecular-table th.browse-col-resolutionStatus{width:9%!important}
#browse-molecular-table th.browse-col-contextLabels{width:13%!important}
#browse-molecular-table th.browse-col-geneticColoc,#browse-molecular-table th.browse-col-geneticMR{width:8%!important}
@media(max-width:680px){#browse-traits-table table{min-width:0}.browse-entities #browse-traits-table tbody td[data-column-label="HR"]::before{content:'Clinical · HR'}.browse-entities #browse-traits-table tbody td[data-column-label="OR"]::before{content:'Clinical · OR'}.browse-entities #browse-traits-table tbody td[data-column-label="RR"]::before{content:'Clinical · RR'}.browse-entities #browse-traits-table tbody td[data-column-label="Coloc"]::before{content:'Genetic · Coloc'}.browse-entities #browse-traits-table tbody td[data-column-label="MR"]::before{content:'Genetic · MR'}}

/* Assay badges share the Colocalisation colour convention. */
.browse-assay-badge{display:inline-block;padding:3px 7px;margin:2px 2px 2px 0;border:1px solid transparent;border-radius:5px;font-weight:600;font-size:12px;white-space:nowrap}
.browse-assay-badge.assay-ms{color:#2459a6;background:#e7efff;border-color:#aac4ef}
.browse-assay-badge.assay-nmr{color:#955014;background:#fff0de;border-color:#ebc592}
