body { font-family: sans-serif; margin:20px; background:#f8fafc; }
h1 { margin-bottom:20px; }
table { border-collapse:collapse; width:100%; }
th, td { border:1px solid #ccc; padding:4px 6px; }
.row { display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
iframe { width:100%; height:400px; border:1px solid #ccc; }

  .row-miRNA.selected { background: #f0f6ff; }
  svg#barChart { color: #2f6fed; } /* bar color via currentColor */
  table.table { border-collapse: collapse; width: 100%; }
  table.table th, table.table td { border-bottom: 1px solid #eee; padding: 6px 8px; font-size: 12px; }
  table.table th { position: sticky; top: 0; background: #fff; z-index: 1; }

tbody.addEventListener("click", (e) => {
  const tr = e.target.closest("tr.row-miRNA");
  if (!tr) return;
  const idx = Number(tr.getAttribute("data-idx"));
  if (!Number.isFinite(idx)) return;

  const wasShift = e.shiftKey;
  selectRow(idx, { openNewTab: wasShift }); // pass a flag
});
