:root {
  color-scheme: light;
  --surface: #fcfcfb; --plane: #f9f9f7; --ink: #0b0b0b; --ink2: #52514e;
  --muted: #6b6a65; --rule: #e1e0d9; --accent: #2a78d6; --bad: #d03b3b;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark;
    --surface: #1a1a19; --plane: #0d0d0d; --ink: #fff; --ink2: #c3c2b7;
    --muted: #898781; --rule: #2c2c2a; --accent: #3987e5; --bad: #d03b3b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--plane); color: var(--ink);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px;
  border-bottom: 1px solid var(--rule); background: var(--surface); }
h1 { font-size: 16px; margin: 0; letter-spacing: -0.01em; }
header .sub { color: var(--muted); font-size: 13px; }
header .right { margin-left: auto; color: var(--ink2); font-size: 13px; }
main { max-width: 1500px; margin: 0 auto; padding: 24px; }
button { font: inherit; cursor: pointer; border-radius: 6px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); padding: 6px 12px; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 14px; }
.card h2 { font-size: 15px; margin: 0 0 2px; }
.members { margin-top: 8px; font-size: 13px; }
.members a { color: var(--accent); text-decoration: none; margin-right: 6px; }
.members .panel { color: var(--ink2); margin-right: 16px; }
#dl h3 { font-size: 13px; color: var(--ink2); margin: 10px 0 6px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px;
  margin: 8px 0 12px; font-size: 13px; }
.picks strong { display: block; color: var(--ink2); font-weight: 600; }
.picks label { display: inline-block; margin-right: 10px; white-space: nowrap; }
td.hit { font-weight: 600; }
.stats { color: var(--ink2); font-size: 13px; font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row .grow { flex: 1 1 auto; }
a.dl { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none;
  color: var(--accent); border: 1px solid var(--rule); border-radius: 6px;
  padding: 6px 10px; margin: 0 8px 8px 0; }
a.dl small { color: var(--muted); font-variant-numeric: tabular-nums; }
iframe { width: 100%; height: 78vh; border: 1px solid var(--rule); border-radius: 8px;
  background: #fff; }
code { background: var(--plane); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; word-break: break-all; }
.note { color: var(--muted); font-size: 13px; }
.err { color: var(--bad); }
.center { text-align: center; padding: 80px 20px; }
img.plot { max-width: 100%; border: 1px solid var(--rule); border-radius: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
button.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  padding: 8px 10px; color: var(--ink2); }
button.tab[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.controls { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
label.field { display: grid; gap: 3px; color: var(--ink2); font-size: 12px; }
select, input:not([type="checkbox"]) { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  border-radius: 6px; padding: 6px 8px; }
input[type="search"] { min-width: min(360px, 70vw); }
.check { display: flex; align-items: center; gap: 6px; color: var(--ink2); white-space: nowrap; }
.check input { accent-color: var(--accent); }
.canvas-wrap { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; }
canvas.volcano { display: block; width: 100%; height: auto; background: var(--surface); }
.tip { display: none; position: absolute; max-width: 250px; padding: 6px 8px; border-radius: 5px;
  background: var(--ink); color: var(--surface); font-size: 12px; white-space: pre-line; pointer-events: none; }
.table-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--rule); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--surface); color: var(--ink2); font-size: 12px; }
tr.pick { cursor: pointer; }
th[aria-sort] { cursor: pointer; user-select: none; }
tr.pick:hover { background: var(--plane); }
.gene-detail { margin-top: 12px; }
details.guide { margin: 4px 0 14px; font-size: 13px; color: var(--ink2); }
details.guide summary { cursor: pointer; color: var(--muted); }
details.guide ul { margin: 6px 0 0 18px; line-height: 1.5; }
span.nes { display: inline-block; position: relative; width: 90px; height: 10px; vertical-align: middle;
  background: linear-gradient(var(--rule), var(--rule)) center / 1px 100% no-repeat; }
span.nes i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
span.nes i.up { left: 50%; background: #d03b3b; }
span.nes i.down { right: 50%; background: #2a78d6; }
tr.pick.on { background: var(--plane); box-shadow: inset 3px 0 #e8a33d; }
