diff --git a/public/analytics.js b/public/analytics.js index e5e4f278..b1d44b24 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -787,9 +787,9 @@ const count = nodes.length; let bg, color; if (count === 0) { - bg = 'var(--bg-card, #1a1a2e)'; color = 'var(--text-muted)'; + bg = '#166534'; color = '#86efac'; // green — no nodes, available } else if (count === 1) { - bg = '#166534'; color = '#fff'; // green — free, single user + bg = '#1e3a5f'; color = '#93c5fd'; // blue — single user, no collision } else { // 2+ nodes: interpolate yellow→red based on count const t = Math.min((count - 2) / 4, 1); // 2=yellow, 6+=full red @@ -797,7 +797,7 @@ const g = Math.round(180 * (1 - t)); bg = `rgb(${r},${g},50)`; color = '#fff'; } - const status = count === 0 ? 'unused' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`; + const status = count === 0 ? 'available' : count === 1 ? `1 node: ${nodes[0].name || nodes[0].public_key.slice(0,12)}` : `${count} nodes — COLLISION`; html += `