:root {
  --ink: #172033;
  --muted: #657086;
  --line: #dce2ea;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --navy: #172b4d;
  --blue: #1265cf;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.site-header { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 clamp(18px, 4vw, 56px); color: #fff; background: var(--navy); font-size: .92rem; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--navy); background: #fff; font-size: .65rem; font-weight: 900; }
.site-nav { display: flex; align-self: stretch; gap: 4px; margin-left: auto; }
.site-nav a { display: flex; align-items: center; padding: 0 14px; border-bottom: 3px solid transparent; color: #dbeafe; font-size: .78rem; text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { border-bottom-color: #7db8ff; color: #fff; }
main { width: min(1600px, 100%); margin: 0 auto; padding: 42px clamp(18px, 4vw, 56px) 64px; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.04em; }
.count { margin: 0; color: var(--muted); white-space: nowrap; }
.count strong { color: var(--ink); font-size: 1.35rem; }
.citation-panel { margin: 0 0 18px; border: 1px solid #cddbeb; border-radius: 12px; background: #f7fbff; }
.citation-content { padding: 14px 16px 16px; color: #334155; font-size: .8rem; line-height: 1.55; }
.citation-content p { margin: 0 0 8px; }
.citation-content p:last-child { margin-bottom: 0; }
.citation-content a { color: #075bbd; }
.citation-content .source-note { color: var(--muted); font-size: .74rem; }
.source-snapshot { margin-top: 11px; padding-top: 11px; border-top: 1px solid #dce7f3; }
.source-snapshot p { margin-bottom: 5px; }
.source-snapshot ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding-left: 18px; }
.source-snapshot li { color: #475569; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; align-items: end; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.filters label { display: grid; gap: 7px; }
.filters label span { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
select, input[type="search"], button { min-height: 40px; border: 1px solid #c8d1dd; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: .78rem; }
select, input[type="search"] { width: 100%; padding: 0 10px; }
button { padding: 0 18px; color: var(--navy); font-weight: 750; cursor: pointer; }
select:focus, input[type="search"]:focus, button:focus { border-color: var(--blue); outline: 3px solid rgba(18, 101, 207, .14); }
.range-field > span:first-child { display: flex; justify-content: space-between; gap: 10px; }
.range-field output { color: var(--ink); font-size: .7rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
input[type="range"] { width: 100%; height: 20px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.threshold-range { --threshold: 0%; border-radius: 999px; appearance: none; background: linear-gradient(to right, #cfd6df 0%, #cfd6df var(--threshold), var(--blue) var(--threshold), var(--blue) 100%) center / 100% 5px no-repeat; }
.threshold-range::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.threshold-range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(18, 101, 207, .35); appearance: none; }
.threshold-range::-moz-range-track { height: 5px; background: transparent; }
.threshold-range::-moz-range-progress { background: transparent; }
.threshold-range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(18, 101, 207, .35); }
.filters .range-limits { display: flex; justify-content: space-between; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.range-limits small { font-size: .65rem; }
.dual-range { --low: 0%; --high: 100%; position: relative; height: 24px; border-radius: 999px; background: linear-gradient(to right, #cfd6df 0%, #cfd6df var(--low), var(--blue) var(--low), var(--blue) var(--high), #cfd6df var(--high), #cfd6df 100%); }
.dual-range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; pointer-events: none; appearance: none; background: transparent; }
.dual-range input[type="range"]::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.dual-range input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(18, 101, 207, .35); appearance: none; pointer-events: auto; cursor: grab; }
.dual-range input[type="range"]::-moz-range-track { height: 5px; background: transparent; }
.dual-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(18, 101, 207, .35); pointer-events: auto; cursor: grab; }
.table-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 10px; }
.table-toolbar-label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
#export-csv { color: #fff; border-color: var(--blue); background: var(--blue); }
#export-csv:hover { background: #0b55b3; }
.table-sort-control { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.table-sort-control span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.table-sort-control select { width: auto; min-width: 150px; }
.column-picker { position: relative; }
.column-picker summary { display: flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #c8d1dd; border-radius: 8px; color: var(--navy); background: #fff; font-size: .78rem; font-weight: 750; cursor: pointer; list-style: none; }
.column-picker summary::-webkit-details-marker { display: none; }
.column-picker summary::after { margin-left: 10px; content: "▾"; color: var(--blue); }
.column-picker[open] summary::after { content: "▴"; }
.column-picker-panel { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; display: grid; grid-template-columns: 1fr; gap: 9px; width: min(290px, calc(100vw - 36px)); max-height: min(620px, 72vh); overflow-y: auto; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgba(23, 43, 77, .16); }
.column-picker-panel label { display: flex; align-items: center; gap: 8px; color: #334155; font-size: .75rem; }
.column-picker-panel input { accent-color: var(--blue); }
.column-picker-panel button { grid-column: 1 / -1; min-height: 34px; margin-top: 4px; }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(23, 43, 77, .07); }
table { width: 100%; min-width: 1430px; border-collapse: collapse; font-size: .82rem; }
th { position: sticky; top: 0; padding: 13px 14px; color: #fff; background: var(--navy); font-size: .66rem; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
th .sort-button { display: inline-flex; align-items: center; gap: 7px; min-height: 0; padding: 0; border: 0; border-radius: 3px; color: inherit; background: transparent; font-size: inherit; font-weight: 800; letter-spacing: inherit; line-height: 1.25; text-align: left; text-transform: inherit; }
th .sort-button:hover { color: #b9d7ff; }
th .sort-button:focus { border-color: transparent; outline: 2px solid #9bc7ff; outline-offset: 4px; }
th .sort-button span { min-width: 1em; color: #9bc7ff; font-size: .9rem; line-height: 1; }
td { padding: 13px 14px; border-bottom: 1px solid #e6eaf0; vertical-align: top; line-height: 1.45; }
tbody tr:nth-child(even) { background: #fafbfd; }
tbody tr:hover { background: #eef5ff; }
tbody tr:last-child td { border-bottom: 0; }
tr[hidden] { display: none; }
[data-column][hidden] { display: none; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-number { color: var(--muted); }
.analysis-code { min-width: 120px; font-weight: 750; white-space: nowrap; }
.analysis-code a { color: #075bbd; text-decoration: none; }
.analysis-code a:hover { text-decoration: underline; }
.title-cell { min-width: 420px; }
.mass-cell { min-width: 110px; color: #334155; font-weight: 750; }
.experiment-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #fff; background: #475569; font-size: .65rem; font-weight: 850; }
.experiment-cms { background: #155e75; }
.experiment-atlas { background: #9a3412; }
.sigma-cell { color: #6742bd; font-weight: 800; }
.global-sigma-cell { color: #245d91; font-weight: 750; }
.category-cell { min-width: 150px; }
.category-badge { display: inline-flex; margin: 0 4px 4px 0; padding: 3px 7px; border-radius: 999px; color: #315078; background: #e8f1fb; font-size: .64rem; font-weight: 750; white-space: nowrap; }
.counterpart-relation-cell { min-width: 160px; }
.relation-badge { display: inline-flex; margin: 0 4px 4px 0; padding: 3px 7px; border-radius: 999px; color: #315078; background: #e8f1fb; font-size: .64rem; font-weight: 800; white-space: nowrap; }
.relation-direct { color: #166534; background: #dcfce7; }
.relation-partial-equivalence { color: #854d0e; background: #fef3c7; }
.relation-complementary-channel { color: #6b21a8; background: #f3e8ff; }
.relation-no-counterpart-identified { color: #475569; background: #e2e8f0; }
.counterpart-cell { min-width: 170px; font-weight: 700; }
.counterpart-cell a { color: #075bbd; text-decoration: none; }
.counterpart-cell a:hover { text-decoration: underline; }
.counterpart-notes-cell { min-width: 360px; max-width: 520px; color: #475569; font-size: .74rem; }
.counterpart-notes-cell summary { color: #075bbd; font-weight: 750; cursor: pointer; }
.counterpart-notes-cell p { margin: 8px 0 0; }
.empty-value { color: #94a3b8; }
.group-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #fff; background: var(--blue); font-size: .65rem; font-weight: 800; }
.group-hig { background: #7650c9; }
.group-sus { background: #167a62; }
.group-b2g { background: #b55522; }
.group-nps { background: #8b5a00; }

.plots-page { width: min(1500px, 100%); }
.plots-title-row { align-items: center; }
.page-intro { max-width: 650px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.back-to-table { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #c8d1dd; border-radius: 8px; color: var(--navy); background: #fff; font-size: .78rem; font-weight: 750; text-decoration: none; }
.plot-filters { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 14px; align-items: end; margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.plot-filters label { display: grid; gap: 7px; }
.plot-filters label span { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.plot-filters .range-limits { display: flex; justify-content: space-between; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.plot-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.summary-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.summary-stat span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.summary-stat .sigma-symbol { display: inline; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.summary-stat strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.plot-legend { display: flex; justify-content: flex-end; gap: 18px; margin: 0 0 10px; color: var(--muted); font-size: .72rem; }
.plot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.experiment-cms-dot { background: #155e75; }
.experiment-atlas-dot { background: #c05621; }
.experiment-lhcb-dot { background: #7650c9; }
.plots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plot-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(23, 43, 77, .05); }
.plot-panel-wide { grid-column: 1 / -1; }
.plot-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; min-height: 52px; }
.plot-heading h2 { margin: 0 0 5px; font-size: 1rem; }
.plot-number { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; color: #fff; background: var(--blue); font-size: .68rem; font-weight: 850; vertical-align: 1px; }
.plot-heading p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.plot-count { flex: none; color: var(--blue); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.plot-heading-actions { display: flex; flex: none; align-items: center; gap: 12px; }
.plot-export-controls { display: inline-flex; overflow: hidden; border: 1px solid #c8d1dd; border-radius: 7px; background: #fff; }
.plot-export-button { min-height: 30px; padding: 0 9px; border: 0; border-right: 1px solid #dce2ea; border-radius: 0; color: #075bbd; background: #fff; font-size: .64rem; font-weight: 850; letter-spacing: .035em; }
.plot-export-button:last-child { border-right: 0; }
.plot-export-button:hover { color: #fff; background: var(--blue); }
.plot-export-button:disabled { color: var(--muted); background: #f1f5f9; cursor: wait; }
.plot-canvas { width: 100%; min-height: 315px; margin-top: 8px; }
.plot-canvas svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot-grid-line { stroke: #dbe3ec; stroke-width: 1; }
.plot-grid-line-vertical { opacity: .45; }
.plot-axis { stroke: #718096; stroke-width: 1.2; }
.plot-reference-line { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 5 5; }
.plot-tick { fill: #657086; font-size: 11px; font-family: inherit; }
.plot-tick-x { text-anchor: middle; }
.plot-tick-y { text-anchor: end; }
.plot-axis-label { fill: #334155; font-size: 11px; font-family: inherit; font-weight: 700; text-anchor: middle; }
.plot-point { stroke: #fff; stroke-width: 1.4; opacity: .82; cursor: pointer; }
.plot-point:hover, .plot-point:focus { stroke: var(--navy); stroke-width: 2.4; opacity: 1; outline: none; }
.plot-mass-range { opacity: .78; cursor: pointer; }
.plot-mass-range:hover, .plot-mass-range:focus { opacity: 1; stroke-width: 8; outline: none; }
.spectrum-legend, .spectrum-marker-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #42516a; font-size: .68rem; }
.spectrum-legend { margin-top: 8px; }
.spectrum-marker-legend { margin-top: 10px; }
.spectrum-legend span, .spectrum-marker-legend span { display: inline-flex; align-items: center; gap: 6px; }
.spectrum-category-swatch { width: 11px; height: 7px; border-radius: 2px; }
.marker-local, .marker-global { width: 9px; height: 9px; border-radius: 50%; }
.marker-local { border: 1px solid #172b4d; background: #172b4d; }
.marker-global { border: 1.5px solid #172b4d; background: #fff; }
.marker-upper-bound { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid #172b4d; }
.plot-spectrum-stem { opacity: .7; }
.plot-spectrum-marker { cursor: pointer; }
.plot-spectrum-marker:hover, .plot-spectrum-marker:focus { filter: brightness(.82); outline: none; }
.plot-bar { opacity: .88; }
.plot-bar:hover, .plot-bar:focus { opacity: 1; outline: none; }
.plot-tooltip { position: fixed; z-index: 100; max-width: 320px; padding: 9px 11px; border-radius: 7px; color: #fff; background: rgba(23, 43, 77, .96); box-shadow: 0 8px 24px rgba(15, 23, 42, .24); font-size: .72rem; line-height: 1.45; white-space: pre-line; pointer-events: none; }
@media (max-width: 1250px) { .filters { grid-template-columns: 1fr 1fr; } .filters button { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .plots-grid { grid-template-columns: 1fr; } .plot-filters { grid-template-columns: 1fr 1fr; } .plot-filters button { grid-column: 1 / -1; } }
@media (max-width: 700px) { main { padding-top: 30px; } .site-header > span:nth-child(2) { display: none; } .site-nav a { padding: 0 10px; } .title-row { align-items: start; flex-direction: column; } .filters { grid-template-columns: 1fr; } .filters button { grid-column: 1; } .table-toolbar { align-items: stretch; flex-wrap: wrap; } .table-sort-control { width: 100%; } .table-sort-control select { flex: 1; } .plot-filters { grid-template-columns: 1fr; } .plot-filters button { grid-column: 1; } .plot-summary { grid-template-columns: 1fr 1fr; } .plot-panel { padding: 14px 10px; } .plot-heading { padding: 0 4px; flex-direction: column; } .plot-heading-actions { width: 100%; justify-content: space-between; } .plot-canvas { min-height: 0; } }
