:root{--ink:#19324b;--muted:#61758b;--teal:#078582;--line:#dbe5ed;--bg:#f4f7f9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Arial,sans-serif}main{max-width:1440px;margin:auto;padding:28px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}h1{font-size:25px;margin:12px 0 0;font-weight:600}h2{font-size:17px;margin:0;font-weight:600}.brand{font-size:15px;color:var(--teal);margin:0;font-weight:bold}.candidate{font-size:12px;font-weight:normal;margin-left:10px;color:#8b6126}nav{display:flex;gap:22px}a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}button,select,input{font:inherit;color:inherit}button,select{cursor:pointer}button,select,input:not([type=checkbox]){background:#fff;border:1px solid var(--line);border-radius:5px;padding:9px 11px}button:hover{background:#edf6f5}button:disabled{cursor:default;opacity:.45}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.controls{display:grid;grid-template-columns:.6fr 1fr .8fr 1fr 1.35fr;gap:16px;background:#fff;padding:18px 20px;border-radius:7px}.controls label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px}.controls select{width:100%;font-size:14px}.status{display:flex;align-items:center;gap:10px;margin:15px 0 23px;min-height:26px;color:var(--muted)}.help{font-size:12px;padding:0;width:21px;height:21px;border-radius:50%;flex-shrink:0}.panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.panel{background:white;border-radius:7px;padding:22px 24px;min-width:0}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.panelhead>button{font-size:12px;padding:5px 9px}.plot{width:100%;overflow:auto}.plot svg{width:100%;height:auto;display:block}.plot svg text{font-family:Arial,sans-serif;fill:var(--ink)}.note{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.5}.wide{margin-top:24px}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:12px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:18px 0}.metric b{display:block;font-size:23px;font-weight:500;margin-top:6px}.metric span{color:var(--muted);font-size:12px}.stability-modes{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:18px;border-top:1px solid var(--line)}.mode h3{font-size:13px;margin:0 0 9px}.mode div{line-height:1.8;color:var(--muted);font-size:12px}.mode b{color:var(--ink);font-weight:normal}.gate{font-size:12px;color:#8b6126;margin-top:15px}.sensitivity-list{display:grid;grid-template-columns:1fr 1fr;gap:16px 36px}.sens-name{display:flex;justify-content:space-between;gap:10px;font-size:13px}.track{height:6px;background:#edf1f5;margin:9px 0 5px;border-radius:3px;position:relative}.bar{height:6px;background:#489f9d;border-radius:3px}.sens small{font-size:11px;color:var(--muted)}.sens details{margin-top:5px;font-size:12px;color:var(--muted)}.sens summary{cursor:pointer}.filters{display:flex;gap:12px;margin-bottom:15px;align-items:center;flex-wrap:wrap}.filters input:not([type=checkbox]){flex:1;min-width:180px}.check{display:flex;align-items:center;gap:7px;font-size:12px}.tablewrap{max-height:520px;overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{position:sticky;top:0;background:white;font-size:12px;color:var(--muted);font-weight:600;z-index:1}th,td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}td:first-child{font-weight:500}td button{border:0;padding:0;color:var(--teal);text-decoration:underline;text-underline-offset:3px;background:transparent}.uncertain-tag{font-size:10px;color:#94652e;margin-top:4px;display:block}.pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:15px;font-size:12px}.pager>span{margin-right:auto;color:var(--muted)}.pager label{display:flex;align-items:center;gap:8px}.pager button,.pager select{padding:6px 8px;font-size:12px}footer{font-size:12px;color:var(--muted);margin-top:25px}#minwarning{color:#936429;margin-left:auto;font-size:12px}#error{padding:20px;color:#865129;background:#fff4e9;margin-bottom:20px}#tooltip{position:fixed;z-index:50;max-width:330px;background:#243e53;color:white;padding:12px 14px;line-height:1.5;border-radius:5px;font-size:12px;pointer-events:none;box-shadow:0 3px 14px #14273c30}dialog{width:min(1120px,95vw);border:0;border-radius:8px;padding:26px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#1c344b66}#detail-meta{font-size:13px;line-height:1.7;margin:14px 0 20px;color:var(--muted)}#detail-meta b{color:var(--ink);font-weight:500}.detail-definition{margin:8px 0}.ext-list{display:flex;gap:30px;flex-wrap:wrap}.ext-list b{font-size:18px;font-weight:500}.ext-list small{display:block;color:var(--muted);margin-top:5px}
.profile-example{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;margin:-5px 0 24px;padding:12px 16px;background:#edf5f4;border-radius:6px;font-size:13px}.profile-example[hidden]{display:none}.profile-example button{border:0;background:transparent;padding:0;color:var(--teal);text-decoration:underline;text-underline-offset:3px;font-weight:600}.profile-example span{color:var(--muted)}.composition-table{max-height:none}.composition-table th:first-child{min-width:150px}.composition-table tbody th{position:static;font-size:13px;font-weight:400;color:var(--ink)}.composition-table small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.composition-table td{white-space:nowrap}.representative-group+.representative-group{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.representative-group>summary{cursor:pointer;font-weight:600;font-size:13px;line-height:1.6;margin-bottom:9px}.representative-group>summary small{color:var(--muted);font-weight:400;margin-left:14px;font-size:12px}.representative-group table{font-size:12px;table-layout:fixed}.representative-group th,.representative-group td{padding:9px 6px}.representative-group th:first-child{width:46%}.representative-group th:nth-child(2){width:20%}.representative-group th:nth-child(3){width:21%}.representative-group th:last-child{width:13%}.representative-group td:first-child{overflow-wrap:anywhere}.coordinate-summary{font-size:12px;color:var(--muted);margin-top:12px}.coordinate-summary>summary{cursor:pointer}.coordinate-summary div{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px}.coordinate-summary b{flex-basis:100%;font-weight:500;color:var(--ink)}.coordinate-summary strong{font-weight:400;color:var(--ink);margin-left:4px}.scope{margin:0 0 18px}.gate{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.gate strong{font-weight:600}
@media(max-width:800px){main{padding:16px}header{align-items:flex-start;flex-direction:column;gap:14px}h1{font-size:21px}.controls{grid-template-columns:1fr 1fr;gap:14px;padding:16px}.controls label:last-child{grid-column:1/-1}.panels{grid-template-columns:1fr;gap:18px}.panel{padding:18px}.wide{margin-top:18px}.sensitivity-list{grid-template-columns:1fr}.status{flex-wrap:wrap;margin-bottom:17px}.plot{min-width:0}.filters select{max-width:100%}.pager{flex-wrap:wrap}.pager>span{flex-basis:100%}th,td{padding:10px 8px}#members td:first-child{min-width:175px}dialog{padding:18px}#detail-rows td:first-child{min-width:190px}.stability-modes{gap:14px}nav{font-size:13px}.heatmap-svg{min-width:580px}.profile-example{gap:7px;padding:12px}.representative-group>summary small{margin-left:7px}.representative-group th,.representative-group td{padding:9px 4px;font-size:11px}}

/* Compact association results; numeric fields remain readable. */
#detail{width:min(1160px,96vw);padding:24px;max-height:90vh}
#detail[open]{display:flex;flex-direction:column;overflow:hidden}
#detail .panelhead{margin-bottom:12px}
#detail .panelhead,#detail-meta,#detail .pager{flex-shrink:0}
#detail-meta{margin:0 0 18px;line-height:1.8}
#detail-meta>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#detail .tablewrap{max-height:none;min-height:0;flex:1 1 auto}
#detail table{font-size:13px}
#detail th,#detail td{padding:10px 9px}
#detail th:first-child{width:44%}
#detail td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}
#detail-head button{border:0;background:transparent;padding:0;font-size:12px;font-weight:600;white-space:nowrap;text-align:left;color:var(--muted);display:inline-flex;align-items:center;gap:7px}
#detail-head button span{font-weight:400;color:#8b9bab}
#detail-head th[aria-sort]:not([aria-sort="none"]) button,#detail-head th[aria-sort]:not([aria-sort="none"]) span{color:var(--teal)}
@media(max-width:800px){#detail{padding:16px}#detail-meta{font-size:12px}#detail table{min-width:720px}#detail .pager{gap:8px}}

/* Source-dictionary system tags are categorical; ratio colors carry FDR status. */
#detail .ratio-legend{flex-shrink:0;margin:-3px 0 10px}
#detail .endpoint-name{vertical-align:middle}
.endpoint-system-badge{display:inline-block;vertical-align:middle;margin:2px 0 2px 8px;padding:2px 7px;border-radius:4px;font-size:10px;font-weight:600;line-height:1.35;white-space:nowrap;color:#596b7d;background:#edf1f5}
.endpoint-system-badge.system-0{color:#88603c;background:#faf0e3}
.endpoint-system-badge.system-1{color:#855481;background:#f5eaf3}
.endpoint-system-badge.system-2{color:#925971;background:#faedf3}
.endpoint-system-badge.system-3{color:#277061;background:#e6f3ed}
.endpoint-system-badge.system-4{color:#48699a;background:#e9eff9}
.endpoint-system-badge.system-5{color:#615693;background:#eeeafa}
.endpoint-system-badge.system-6{color:#476f79;background:#e7f2f4}
.endpoint-system-badge.system-7{color:#65748b;background:#edf1f6}
.endpoint-system-badge.system-8{color:#985233;background:#faeee7}
.endpoint-system-badge.system-9{color:#31668d;background:#e8f1f8}
.endpoint-system-badge.system-10{color:#826d28;background:#f6f1de}
.endpoint-system-badge.system-11{color:#925971;background:#faedf3}
.endpoint-system-badge.system-12{color:#786343;background:#f5efdf}
.endpoint-system-badge.system-13{color:#615693;background:#eeeafa}
.endpoint-system-badge.system-14{color:#657446;background:#eff4e6}
.endpoint-system-badge.system-15{color:#476f79;background:#e7f2f4}

.adjustment-badge{display:inline-block;padding:2px 7px;border-radius:9px;font-size:11px;white-space:nowrap;background:#edf1f4;color:#526474}.adjustment-badge.source-reported{background:#e8eef5;color:#435d77}.adjustment-badge.metabdb-bh,.adjustment-badge.metabdb-derived{background:#e1f0ef;color:#216d6a}
