'.h($s['label']).' '.mode_badge($s).'
';
echo '
'.inst_status_badge($s['inst_status']).' · '.h($s['inst_name']).(function_exists('code_link')&&code_link('x')!==''?' · code: '.code_link('pages/'.$slug.'.php',null,'page').' · '.code_link('inc/streampage.php','render_stream_page','renderer').' · '.code_link('inc/helpers.php','series','series'):'').'
';
if($last) echo '
'.h(number_format((float)$last['value'],2)).''.h($s['unit']).'
latest · '.h($last['ts']).'
';
echo '
$s['unit'],'series'=>[['label'=>$s['label'],'slot'=>(int)$s['series_slot'],'data'=>array_map(fn($r)=>[substr($r['ts'],0,16),(float)$r['value']],$rows)]]])).'\'>
';
echo instrument_card($s);
echo '
';
}
if(isset($opts['note'])) echo '