.scale-source-panels { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:16px; }
.scale-source-card { padding:16px; border:1px solid #d7e5ef; border-radius:8px; min-width:0; background:#fff; }
.scale-source-card h4 { margin:0 0 12px; }
.scale-source-card label,.scale-source-card small,.association-detail-table td small { display:block; }
.scale-source-card select { display:block; width:100%; max-width:100%; margin:8px 0; padding:8px; color:#183d60; border:1px solid #ccdfea; border-radius:6px; }
.scale-source-card p { margin:8px 0; overflow-wrap:anywhere; }
.scale-source-chart .source-effect-plot { overflow-x:auto; }
.scale-source-chart svg { width:100%; min-width:300px; height:auto; }
.scale-source-overview { display:grid; grid-template-columns:minmax(180px,.8fr) minmax(0,2fr); gap:18px; }
.scale-composition { max-width:300px; margin:auto; width:100%; }
.scale-composition .v2-disease-pie-svg { width:100%; max-width:220px; display:block; margin:auto; }
.scale-source-status { font-size:12px; line-height:1.6; }
.association-detail-table th,.association-detail-table td { text-align:left!important; vertical-align:top; }
.association-detail-section[hidden] { display:none!important; }
@media(max-width:760px){ .scale-source-overview { grid-template-columns:1fr; } .scale-source-panels { grid-template-columns:1fr; } }
.search-v2-metabolite-view { grid-template-columns: minmax(0, 1fr); }
.search-v2-metabolite-view > * { min-width: 0; max-width: 100%; }
.v2-evidence-stack { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.v2-evidence-stack > *, .v2-chain-panel > * { min-width: 0; max-width: 100%; }

/* All retained disease entries; one original source estimate per plotted disease. */
.category-effect-panel > h3,.category-effect-panel > p { display:none; }
.category-effect-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.category-effect-header h4 { margin:0; font-size:16px; }
.category-effect-overview { display:grid; grid-template-columns:minmax(0,42fr) minmax(0,58fr); gap:12px; align-items:stretch; }
.category-summary { min-width:0; font-size:12px; }
.category-summary summary { color:#255575; cursor:pointer; font-weight:600; }
.category-summary summary small { display:block; margin:4px 0; color:#687f93; font-weight:400; }
.category-summary-total { margin:10px 0; color:#58718a; }
.category-summary-total strong { color:#18385f; }
.category-summary-list { display:grid; gap:0; }
.category-summary-list > div { display:grid; grid-template-columns:7px minmax(0,1.45fr) minmax(40px,1fr) 50px; align-items:center; gap:8px; padding:7px 0; line-height:1.35; }
.category-summary-list i { width:7px; height:7px; border-radius:50%; }
.category-summary-list strong { font-size:11px; font-variant-numeric:tabular-nums; color:#58718a; white-space:nowrap; }
.category-effect-controls { display:flex; gap:10px; align-items:center; flex:0 0 auto; }
.category-effect-controls label { display:flex; gap:9px; align-items:center; font-size:13px; }
.category-effect-controls select { padding:6px 8px; border:1px solid #ccdfea; border-radius:5px; color:#183d60; background:white; }
.category-export { padding:6px 9px; border:1px solid #b9dbe1; border-radius:5px; background:white; color:#176a73; font-size:12px; font-weight:600; cursor:pointer; }
.category-effect-status { margin:5px 0 0; font-size:12px; color:#58718a; line-height:1.5; }
.category-chart-scroll { max-width:100%; }
.category-chart-scroll svg { display:block; width:100%; height:auto; }
.category-label { fill:#18385f; font-size:var(--category-label-size,12px); font-weight:500; }
.category-axis { fill:#687f93; font-size:var(--category-tick-size,10px); }
.category-count,.category-axis-title,.category-empty { fill:#58718a; font-size:var(--category-label-size,12px); font-weight:500; }

.category-disease-point { cursor:pointer; opacity:.85; outline:none; }
.category-disease-point:hover,.category-disease-point:focus { stroke:#173451; stroke-width:2; opacity:1; }
.category-reference { margin:5px 0; color:#687f93; font-size:11px; }
.category-box-key { margin:5px 0; color:#58718a; line-height:1.4; }
.category-missing, .category-plot-method { font-size:12px; margin:12px 0; }
.category-missing summary,.category-plot-method summary { cursor:pointer; color:#255575; }
.category-missing div { max-height:220px; overflow:auto; }
.category-missing ul { columns:1; margin:6px 0; padding-left:20px; }
.category-source-inspector { border-top:1px solid #d7e5ef; padding-top:12px; font-size:12px; overflow-wrap:anywhere; }
.category-source-inspector h4 { margin:0 0 8px; }
.category-record-scroll { overflow:auto; max-width:100%; max-height:330px; }
.category-record-scroll table { border-collapse:collapse; min-width:620px; width:100%; font-size:12px; }
.category-record-scroll th,.category-record-scroll td { padding:8px; border-bottom:1px solid #e3edf3; text-align:left; vertical-align:top; }
.category-record-scroll th { background:#f2f7fa; }
.category-record-scroll small { display:block; }
.category-selected-source { background:#f1faf8; }
@media(max-width:760px) {
    .category-effect-panel { max-width:none; margin-inline:-14px; padding:10px!important; }
    .category-effect-header { flex-direction:column; gap:8px; }
    .category-effect-controls { width:100%; justify-content:space-between; }
    .category-effect-overview { grid-template-columns:minmax(0,1fr); gap:10px; }
    .category-summary { padding:8px; }
    .category-effect-chart { padding:8px; }
    .category-summary summary small { display:inline; margin-left:6px; }
    .category-effect-chart { min-width:0; }
    .category-missing ul { columns:1; }
}

/* Header help is outside the scroll container and outside the sorting button. */
.v2-column-heading { display:inline-flex; align-items:center; gap:4px; }
.v2-pair-table th button.v2-help { display:inline-flex; flex:0 0 18px; width:18px; height:18px; align-items:center; justify-content:center; padding:0; margin:0; border:1px solid #69849c; border-radius:50%; color:#58718a; font-size:12px; line-height:1; text-decoration:none; cursor:help; }
.v2-pair-table th button.v2-help:hover,.v2-pair-table th button.v2-help:focus-visible { color:#007c80; outline:2px solid #b5dfdf; outline-offset:2px; }
.v2-table-help-portal { position:fixed; z-index:10000; box-sizing:border-box; width:min(340px,calc(100vw - 16px)); max-height:calc(100vh - 16px); overflow:auto; padding:12px 14px; border-radius:7px; color:#fff; background:#17375e; box-shadow:0 6px 20px rgba(7,31,65,.24); font:normal 13px/1.5 Arial,sans-serif; text-align:left; white-space:normal; pointer-events:none; }
.v2-table-help-portal[hidden] { display:none; }
#search-v2-disease-table .v2-pair-table,#search-v2-simple-disease-table .v2-pair-table { min-width:980px; font-size:13px; }
#search-v2-disease-table .v2-pair-table th,#search-v2-simple-disease-table .v2-pair-table th { font-size:13px; padding:6px 8px; }
#search-v2-disease-table .v2-pair-table td,#search-v2-simple-disease-table .v2-pair-table td { padding:10px 8px; }
#search-v2-disease-table .v2-pair-table td:first-child,#search-v2-simple-disease-table .v2-pair-table td:first-child { min-width:220px; max-width:300px; }
.disease-effect-range { white-space:nowrap; font-variant-numeric:tabular-nums; }

.disease-scale-note { display:block; color:#687f93; font-size:11px; line-height:1.3; margin-top:3px; max-width:120px; }
.disease-direction { display:block; margin-top:5px; font-size:12px; line-height:1.35; cursor:help; }
.disease-direction.positive { color:#68788a; }
.disease-direction.negative { color:#68788a; }
.disease-direction.mixed { color:#68788a; }
.disease-direction.unavailable { color:#768493; }
.disease-direction:focus-visible { outline:2px solid #a8d9d7; outline-offset:2px; }
.association-comparability-note { font-size:13px; line-height:1.5; color:#526983; }
#association-detail-summary-download { margin:8px 0 14px; padding:8px 12px; border:1px solid #b9dbe1; border-radius:5px; background:white; color:#176a73; cursor:pointer; }

.category-effect-panel .category-effect-status { font-size:12px; line-height:1.4; margin:4px 0 0; }
.category-effect-panel .category-reference { font-size:11px; margin:4px 0; }
.category-effect-panel .category-box-key { font-size:12px; line-height:1.4; margin:4px 0 8px; }

/* Two quiet panels; category labels share one readable screen-size scale. */
.category-summary,.category-effect-chart { min-width:0; box-sizing:border-box; border:1px solid #dce7ee; border-radius:6px; background:#fff; padding:12px; }
.category-summary-list span,.category-summary-list strong,.category-summary summary,.category-summary-total { font-size:12px; font-weight:500; }
.category-summary-list strong { color:#58718a; }
.category-effect-panel .category-summary-total { font-size:12px; }
@media(max-width:760px) { .category-summary,.category-effect-chart { padding:8px; } }

.category-summary-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.category-summary-list strong { text-align:right; }
.category-bar-track { position:relative; display:block; height:10px; min-width:0; }
.category-total-bar,.category-plotted-bar { display:block; height:10px; border-radius:2px; }
.category-plotted-bar { border-radius:2px 0 0 2px; }
@media(max-width:760px) {
    .category-summary-list > div { grid-template-columns:7px minmax(0,1fr) 50px; row-gap:5px; padding:7px 0; }
    .category-summary-name { grid-column:2/4; }
    .category-bar-track { grid-column:2; }
    .category-summary-list strong { grid-column:3; }
    .category-summary summary small { display:block; margin:4px 0 0; }
}

/* Compact disease source inspector: audit metadata stays in expandable records. */
.category-method-line { margin:12px 0; color:#58718a; font-size:12px; line-height:1.5; }
.category-method-line a { white-space:nowrap; }
.category-source-inspector .category-selected-effect { margin:4px 0 8px; font-size:14px; font-weight:600; color:#18385f; }
.category-selected-meta { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:4px 16px; }
.category-source-inspector .category-selected-meta p { margin:0; font-size:12px; line-height:1.5; }
.category-source-count { margin:8px 0; color:#58718a; font-size:12px; }
.category-missing div { max-height:170px; }
.category-missing-search { display:flex; align-items:center; gap:8px; margin:8px 0; font-size:12px; }
.category-missing-search input { width:100%; max-width:230px; min-width:0; padding:5px 7px; border:1px solid #ccdfea; border-radius:4px; font:inherit; }
.category-missing li[hidden] { display:none; }
.category-full-source { margin-top:10px; }
.category-full-source > summary { cursor:pointer; color:#176a73; }
.category-source-download { margin:8px 0; padding:5px 8px; border:1px solid #b9dbe1; border-radius:4px; background:white; color:#176a73; font:inherit; cursor:pointer; }
@media(max-width:760px) { .category-selected-meta { grid-template-columns:minmax(0,1fr); } }

.category-effect-panel .category-method-line { margin:10px 0; font-size:12px; line-height:1.5; }
.category-effect-panel .category-method-line a { display:inline; font-size:inherit; }
.category-effect-panel .category-source-inspector h4 { font-size:13px; }

/* Disease overview: source plot, adjacent inspector and genetic coverage. */
.category-effect-overview{grid-template-columns:minmax(0,1.65fr) minmax(0,.85fr) minmax(0,1fr);gap:16px;align-items:stretch}
.category-effect-chart,.category-source-panel,.category-genetic-panel{min-width:0;border:1px solid #dce7ee;border-radius:7px;background:#fff;padding:14px;box-sizing:border-box;font-size:12px}
.category-effect-overview h4{font-size:14px;line-height:1.4;margin:0 0 12px;color:#18385f}
.category-chart-scroll{min-height:340px}.category-effect-chart .ratio-legend{gap:6px 12px;flex-wrap:wrap;font-size:11px}
.category-effect-chart .ratio-legend span{font-size:11px}.category-effect-chart .ratio-legend .rule{display:none}
.category-source-inspector{border:0;padding:0}.category-source-inspector h4{margin:0 0 10px;font-size:13px!important}
.category-selected-fields{margin:12px 0;display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.5}
.category-selected-fields dt{color:#58718a}.category-selected-fields dd{margin:0;overflow-wrap:anywhere}
.category-source-panel .category-selected-effect{font-size:14px;line-height:1.5}.category-inspector-empty{color:#687f93;line-height:1.7;margin:0}
.category-source-panel .result-details{max-width:100%}.category-source-panel table{font-size:11px;width:100%;table-layout:fixed;overflow-wrap:anywhere}
.category-disease-point.is-selected{stroke:#173451;stroke-width:2;opacity:1}
.category-genetic-unit{font-size:12px;color:#58718a;margin:0 0 8px}.category-genetic-key{display:flex;gap:14px;color:#58718a;margin-bottom:8px;font-size:11px}
.category-genetic-key span{display:flex;align-items:center;gap:5px}.category-genetic-key i{height:7px;width:12px;display:inline-block;border-radius:2px}
.category-genetic-panel .coloc{background:#007c80}.category-genetic-panel .mr{background:#8b72b4}
.category-genetic-row{display:grid;gap:3px;padding:8px 0;border-bottom:1px solid #edf2f5}.category-genetic-row:last-child{border:0}
.category-genetic-label{font-size:12px;line-height:1.4;color:#18385f}.category-genetic-barline{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:center;line-height:1.1}
.category-genetic-track{display:block;background:#f2f6f8;height:6px;border-radius:2px}.category-genetic-track i{display:block;height:6px;min-width:0;border-radius:2px}.category-genetic-barline b{font-size:11px;font-weight:500;text-align:right;color:#58718a;font-variant-numeric:tabular-nums}
@media(min-width:761px) and (max-width:1100px){.category-effect-overview{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.category-effect-chart{grid-column:1/-1}.category-chart-scroll{max-width:800px;margin:auto;min-height:0}}
@media(max-width:760px){.category-effect-overview{grid-template-columns:minmax(0,1fr);gap:12px}.category-effect-chart,.category-source-panel,.category-genetic-panel{padding:12px}.category-effect-controls{flex-wrap:wrap;justify-content:flex-start;gap:8px}.category-effect-controls label{font-size:12px;gap:5px}.category-effect-controls select{max-width:150px}.category-chart-scroll{min-height:0}.category-genetic-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}}

.category-genetic-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;padding:6px 0}.category-genetic-label{grid-column:1/-1}.category-genetic-barline{grid-template-columns:minmax(0,1fr) 30px;gap:5px}

/* Evidence-free genetic panels do not reserve an empty column. */
.category-effect-overview.direct-only{grid-template-columns:minmax(0,1fr)}
.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,1fr) 240px}
@media(max-width:760px){.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,1fr)}}

/* Two top-level panels; the selected estimate is part of Direct association. */
.entity-summary .entity-metrics{background:#f0f7f9}
.category-effect-header{align-items:center;background:#eef6f8;border-radius:7px;padding:12px 16px;margin-bottom:18px}
.category-effect-overview{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px}
.category-direct-content{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:20px;align-items:start}
.category-direct-content>div,.category-direct-content>aside{min-width:0}
.category-effect-chart{grid-column:auto;padding:16px}
.category-genetic-panel{padding:16px}
.category-chart-scroll{max-width:none;margin:0;min-height:0}
.category-source-inspector{padding:8px 0 0;border:0;min-height:220px}
.category-selected-fields{grid-template-columns:54px minmax(0,1fr);gap:10px 8px}
.category-source-inspector h4{font-size:14px!important}
.category-genetic-list{display:block}
.category-genetic-row{padding:10px 0;gap:5px 12px}
.category-genetic-key{margin-bottom:10px}
@media(max-width:1100px){.category-direct-content{grid-template-columns:minmax(0,1fr)}.category-source-inspector{min-height:0;padding-top:12px}.category-effect-overview{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}}
@media(max-width:760px){.category-effect-header{padding:12px}.category-effect-overview{grid-template-columns:minmax(0,1fr);gap:16px}.category-effect-chart,.category-genetic-panel{padding:12px}.category-direct-content{gap:12px}.category-genetic-list{display:block}}

/* Compact coverage rows; annotation is quiet but visually distinct. */
.category-effect-overview{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px}
.category-direct-content{grid-template-columns:minmax(0,1fr) 200px;gap:28px}
.category-source-inspector{background:#f0f6f8;border-radius:6px;padding:14px;min-height:220px;box-sizing:border-box}
.category-source-inspector:empty{min-height:220px}
.category-chart-notes{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin:0 0 14px}
.category-chart-notes .category-reference,.category-chart-notes .category-box-key{margin:0;font-size:11px;line-height:1.5}
.category-chart-notes .ratio-legend{margin:0;gap:6px 12px;flex-wrap:wrap;font-size:11px}
.category-chart-notes .ratio-legend span{font-size:11px}
.category-selected-fields{grid-template-columns:48px minmax(0,1fr);gap:8px}
.category-genetic-key{display:grid;grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr));gap:12px;margin:0 0 6px;padding:0}
.category-genetic-key span:first-child{grid-column:2}
.category-genetic-key span:last-child{grid-column:3}
.category-genetic-row{grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr));gap:12px;align-items:center;min-height:34px;padding:6px 0}
.category-genetic-label{grid-column:auto;font-size:12px;line-height:1.35}
.category-genetic-barline{position:relative;display:block;min-height:18px;padding-right:32px;box-sizing:border-box}
.category-genetic-track{margin-top:5px;height:8px}
.category-genetic-track i{height:8px}
.category-genetic-barline b{position:absolute;right:0;top:2px;width:29px;line-height:14px}
@media(min-width:761px) and (max-width:1100px){
 .category-effect-overview{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}
 .category-direct-content{grid-template-columns:minmax(0,1fr);gap:18px}
 .category-chart-scroll{max-width:430px;margin-inline:auto}
 .category-source-inspector{min-height:0}
 .category-source-inspector:empty{min-height:120px}
}
@media(max-width:760px){
 .category-effect-overview{grid-template-columns:minmax(0,1fr);gap:20px}
 .category-direct-content{grid-template-columns:minmax(0,1fr);gap:18px}
 .category-source-inspector{min-height:0;padding:12px}
 .category-source-inspector:empty{min-height:100px}
 .category-genetic-row{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:8px;min-height:34px}
 .category-genetic-label{font-size:11px;overflow-wrap:normal}
 .category-genetic-key{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr));gap:8px;margin-left:0;padding-left:0}
 .category-genetic-barline{padding-right:25px}
.category-genetic-barline b{width:23px;font-size:10px}
}

/* Shared header, caption and plot rows keep the two panels aligned. */
.category-effect-overview{grid-template-rows:auto auto auto;row-gap:12px}
.category-effect-chart,.category-genetic-panel{display:grid;grid-row:span 3;grid-template-rows:subgrid;align-content:start;row-gap:12px}
.category-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;min-width:0}
.category-effect-overview .category-panel-heading h4{margin:0;font-size:14px;line-height:1.4}
.category-panel-heading .category-effect-controls{gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.category-panel-heading .category-effect-controls label,.category-endpoint-control{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.5;color:#18385f}
.category-panel-heading .category-effect-controls select,.category-endpoint-control select{font:inherit;padding:5px 7px;border:1px solid #ccdfea;border-radius:4px;background:#fff;max-width:150px}
.category-panel-heading .category-export{font-size:12px;padding:5px 8px}
.category-effect-chart .category-chart-notes{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
.category-plot-caption{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;width:100%;min-width:0}
.category-plot-caption .ratio-legend{flex-basis:100%;margin:0}
.category-endpoint-control select{height:28px;box-sizing:border-box}
.category-genetic-panel .category-genetic-key{align-self:start;margin:0;padding:36px 0 0;min-height:0;align-items:start;box-sizing:border-box}
.category-direct-content{align-self:start}
.category-genetic-list{align-self:start}
.category-effect-overview.direct-only{grid-template-rows:none}
.category-effect-overview.direct-only .category-effect-chart{grid-row:auto;grid-template-rows:auto auto auto}
@media(max-width:760px){
 .category-effect-overview{grid-template-rows:none;row-gap:20px}
 .category-effect-chart,.category-genetic-panel{grid-row:auto;grid-template-rows:auto auto auto}
 .category-panel-heading{flex-wrap:wrap;gap:8px}
 .category-panel-heading .category-effect-controls{justify-content:flex-start}
 .category-genetic-panel .category-genetic-key{padding-top:0}
}
/* Sparse direct-only profiles: compact plotting area and a readable annotation. */
.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,7fr) minmax(220px,3fr);gap:24px;align-items:start}
.category-effect-overview.direct-only .category-source-inspector{min-height:0;padding:12px;font-size:12px}
.category-effect-overview.direct-only .category-source-inspector h4{font-size:14px}
.category-effect-overview.direct-only .category-source-inspector dl{grid-template-columns:58px minmax(0,1fr);gap:6px 10px}
#disease-direct-table td,#disease-direct-table th{padding:9px 8px}
#disease-direct-table .ratio-value-higher{color:#b83e3e}
#disease-direct-table .ratio-value-lower{color:#248050}
#disease-direct-table th{width:auto!important}
#disease-direct-table .disease-probability-range,#disease-direct-table .disease-fdr-origin{display:block;line-height:1.45;font-size:12px}
#disease-direct-table .disease-probability-range span{display:block;white-space:nowrap}
#disease-direct-table .disease-effect-range{white-space:nowrap}
#disease-direct-table .disease-direction{white-space:normal;font-size:11px}
.disease-evidence-panels.dense-direct{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}
@media(max-width:1450px){.disease-evidence-panels.dense-direct{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){#disease-direct-table table{min-width:660px}.disease-evidence-panels.direct-only #disease-direct-table table{min-width:540px}}
@media(max-width:680px){.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,1fr)}.category-effect-overview.direct-only .category-source-inspector{width:auto}}

/* Metabolic-measure headlines use measurement / association / disease genetics / gene / variant. */
.search-v2-metabolite-active .entity-metrics{grid-template-columns:repeat(var(--headline-columns,5),minmax(0,1fr))}
.search-v2-metabolite-active .entity-metrics > div[hidden]{display:none}
@media(max-width:760px){.search-v2-metabolite-active .entity-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Gene evidence: separate support flags from protein targets and maximum scores. */
#search-v2-gene-table .v2-pair-table{table-layout:fixed;min-width:980px;width:100%}
#search-v2-gene-table .v2-pair-table th,#search-v2-gene-table .v2-pair-table td{white-space:normal;overflow-wrap:anywhere;min-width:0}
#search-v2-gene-table .v2-pair-table th:first-child,#search-v2-gene-table .v2-pair-table td:first-child{width:21%;min-width:0;max-width:none}
#search-v2-gene-table .v2-pair-table th:nth-child(2){width:18%}
#search-v2-gene-table .v2-pair-table th:nth-child(3){width:9%}
#search-v2-gene-table .v2-pair-table th:nth-child(4){width:13%}
#search-v2-gene-table .v2-pair-table th:nth-child(5){width:13%}
#search-v2-gene-table .v2-pair-table th:nth-child(6){width:14%}
#search-v2-gene-table .v2-pair-table th:nth-child(7){width:6%}
#search-v2-gene-table .v2-pair-table th:nth-child(8){width:6%}
#search-v2-gene-table .v2-column-heading{align-items:center}
#search-v2-gene-table .v2-protein-target{display:block}
#search-v2-gene-table small.v2-pph4-value{color:#007c80;font-weight:700}

#search-v2-gene-table th:nth-child(7) button,#search-v2-gene-table th:nth-child(8) button{white-space:nowrap}

/* Selected-source annotation: inline statistics, wider details, left-shifted plot. */
.category-direct-content{grid-template-columns:minmax(0,1fr) 250px}
.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,6.6fr) minmax(240px,3.4fr)}
.category-source-inspector .category-selected-fields{grid-template-columns:54px minmax(0,1fr)}
.category-source-inspector .category-selected-fields .category-probability-value{grid-column:2;white-space:normal;overflow-wrap:normal}
.category-source-inspector .category-selected-fields dt:has(+ .category-probability-value){grid-column:1;margin-bottom:0}
.category-probability-value>span{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px}
.category-probability-value>span>br{display:none}
.category-probability-value .adjustment-badge{margin:0;flex:none}
@media(max-width:1100px){.category-direct-content{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.category-effect-overview.direct-only .category-direct-content{grid-template-columns:minmax(0,1fr)}}
