  :root {
    --midnight: #000531;
    --paper: #F4F5F7;
    --aurora-green: #20FE8F;
    --aurora-violet: #545DFF;
    --aurora-blue: #76BEFF;
    --coral: #FF8371;
    --border-soft: rgba(0, 5, 49, 0.1);
    --ink-soft: rgba(0, 5, 49, 0.65);
    --t1: #76BEFF; --t2: #5089D9; --t3: #545DFF; --t4: #2B3299;
    --t5: #FF8371; --t6: #C9684D; --t7: #20FE8F; --t8: #14B86B;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--paper); color: var(--midnight); line-height: 1.55;
    overflow: hidden;
  }
  header {
    background: var(--midnight); color: white;
    padding: 12px 20px;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .header-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .header-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
  .pill { padding: 3px 9px; border-radius: 9999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
  .pill-running { background: rgba(32,254,143,0.15); color: var(--aurora-green); }
  .pill-stopped { background: rgba(255,131,113,0.15); color: var(--coral); }
  .pill-loading { background: rgba(118,190,255,0.15); color: var(--aurora-blue); }
  /* Polling pulse animation on the live pill */
  .pill-running::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(32,254,143,0.15), transparent);
    animation: poll-sweep 2s linear infinite;
  }
  @keyframes poll-sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  .stat { display: flex; flex-direction: column; gap: 0; }
  .stat-num { font-size: 18px; font-weight: 700; line-height: 1.1; color: var(--aurora-green); font-variant-numeric: tabular-nums; transition: color 0.3s; }
  .stat-num.bumped { animation: num-bump 0.6s ease-out; }
  @keyframes num-bump {
    0% { color: white; transform: scale(1.15); }
    100% { color: var(--aurora-green); transform: scale(1); }
  }
  .stat-label { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; }
  select { padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: white; font: inherit; font-size: 13px; }

  .conn-dot { width: 7px; height: 7px; border-radius: 9999px; display: inline-block; background: var(--aurora-green); animation: pulse 1.5s ease-in-out infinite; margin-right: 4px; vertical-align: middle; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
  .conn-dot.error { background: var(--coral); animation: none; }

  .progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 9999px; overflow: hidden; flex: 1; min-width: 80px; max-width: 140px; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--aurora-violet), var(--aurora-green)); border-radius: 9999px; transition: width 0.5s ease; }

  /* Layout */
  .body-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.95fr;
    height: calc(100vh - 56px);
    gap: 0;
  }
  .col {
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border-soft);
    overflow: hidden;
  }
  .col:last-child { border-right: none; }
  .col-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(0,5,49,0.025);
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-soft);
    flex-shrink: 0;
    z-index: 6;
  }
  .col-body { flex: 1; overflow-y: auto; }

  /* === FEED COLUMN === */
  .filter-bar { padding: 8px 16px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); background: white; flex-shrink: 0; z-index: 5; }
  .filter-pill { cursor: pointer; padding: 3px 8px; border-radius: 9999px; font-size: 11px; font-weight: 500; user-select: none; background: white; border: 1px solid var(--border-soft); }
  .filter-pill.active { background: var(--midnight); color: white; border-color: var(--midnight); }

  .feed-list { padding: 12px 16px; }
  .empty-state { padding: 60px 24px; text-align: center; color: var(--ink-soft); font-size: 14px; }
  .post {
    background: white; border: 1px solid var(--border-soft); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 8px;
    transform-origin: left center;
  }
  .post.new {
    animation: post-arrive 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes post-arrive {
    0% { background: rgba(32,254,143,0.25); border-color: var(--aurora-green); transform: translateX(-12px) scale(0.97); opacity: 0.4; box-shadow: 0 0 0 4px rgba(32,254,143,0.2); }
    50% { background: rgba(32,254,143,0.15); border-color: var(--aurora-green); transform: translateX(0) scale(1.02); opacity: 1; box-shadow: 0 0 0 8px rgba(32,254,143,0.05); }
    100% { background: white; border-color: var(--border-soft); transform: translateX(0) scale(1); opacity: 1; box-shadow: none; }
  }
  .post-meta { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; font-size: 11px; }
  .post-round { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--aurora-violet); font-size: 10px; padding: 1px 5px; background: rgba(84,93,255,0.08); border-radius: 3px; }
  .post-agent { font-weight: 700; font-size: 13px; color: var(--midnight); }
  .post-platform { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--ink-soft); padding: 1px 5px; background: rgba(0,5,49,0.04); border-radius: 3px; text-transform: uppercase; }
  .post-action { font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 3px; text-transform: uppercase; }
  .post-action.create_post { background: rgba(32,254,143,0.12); color: #0e9050; }
  .post-action.create_comment { background: rgba(118,190,255,0.15); color: #1e6ba8; }
  .post-time { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--ink-soft); margin-left: auto; }
  .post-content { font-size: 13.5px; line-height: 1.55; color: var(--midnight); }
  .post-content.collapsed { max-height: 4.5em; overflow: hidden; position: relative; cursor: pointer; }
  .post-content.collapsed::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.6em; background: linear-gradient(transparent, white); }
  .badge-mod { background: rgba(84,93,255,0.12); color: var(--aurora-violet); padding: 1px 5px; border-radius: 3px; font-size: 9.5px; font-weight: 600; margin-left: 4px; }
  .badge-voice { background: rgba(32,254,143,0.13); color: #0e9050; padding: 1px 5px; border-radius: 3px; font-size: 9.5px; font-weight: 600; margin-left: 4px; }
  .badge-force { background: rgba(255,131,113,0.13); color: #c45040; padding: 1px 5px; border-radius: 3px; font-size: 9.5px; font-weight: 600; margin-left: 4px; }

  /* === GRAPH COLUMN === */
  .graph-wrap { padding: 0; height: 100%; display: flex; flex-direction: column; }
  /* Phase banner */
  .phase-banner {
    background: var(--midnight);
    color: white;
    padding: 12px 20px;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .phase-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--aurora-blue); letter-spacing: 0.06em; font-weight: 600; }
  .phase-name { font-size: 16px; font-weight: 700; flex: 1; }
  .phase-rounds { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.55); }
  .phase-bar { display: flex; gap: 3px; padding: 0 20px 12px; background: var(--midnight); flex-shrink: 0; }
  .phase-tick {
    flex: 1; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.1);
    transition: background 0.4s;
  }
  .phase-tick.done { background: rgba(32,254,143,0.4); }
  .phase-tick.current { background: var(--aurora-green); animation: tick-pulse 2s ease-in-out infinite; }
  @keyframes tick-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(32,254,143,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(32,254,143,0); }
  }

  .graph-svg-wrap {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 8px; position: relative; overflow: hidden;
    background:
      radial-gradient(ellipse at 50% 50%, #0a0e3d 0%, #000531 65%, #000a25 100%);
  }
  /* Animated nebula layer behind graph */
  .graph-svg-wrap::before {
    content: ''; position: absolute; inset: -10%;
    background:
      radial-gradient(circle at 30% 20%, rgba(84,93,255,0.18) 0%, transparent 35%),
      radial-gradient(circle at 75% 65%, rgba(32,254,143,0.14) 0%, transparent 40%),
      radial-gradient(circle at 50% 90%, rgba(255,131,113,0.12) 0%, transparent 35%);
    animation: nebula-drift 30s linear infinite;
    pointer-events: none;
    filter: blur(6px);
  }
  @keyframes nebula-drift {
    0%,100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
  }
  /* Star/grid field */
  .graph-svg-wrap::after {
    content: ''; position: absolute; inset: 0;
    background-image:
      radial-gradient(circle, rgba(255,255,255,0.18) 0.5px, transparent 0.5px),
      radial-gradient(circle, rgba(255,255,255,0.08) 0.5px, transparent 0.5px);
    background-size: 60px 60px, 28px 28px;
    background-position: 0 0, 14px 14px;
    pointer-events: none;
    animation: stars-drift 80s linear infinite;
  }
  @keyframes stars-drift {
    0% { background-position: 0 0, 14px 14px; }
    100% { background-position: 60px 60px, 74px 74px; }
  }
  svg.graph { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }

  .node-label { font-family: 'DM Sans', sans-serif; font-size: 10.5px; pointer-events: none; user-select: none; fill: rgba(255,255,255,0.85); }
  .node-label.tiny { font-size: 9px; opacity: 0.7; }
  .node-label.bright { fill: white; font-weight: 700; }

  .group-banner { font-size: 11.5px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.1em; fill: rgba(255,255,255,0.85) !important; }
  .group-sub { font-size: 9.5px !important; font-weight: 500 !important; fill: rgba(255,255,255,0.5) !important; }
  .track-label { font-size: 9.5px !important; font-weight: 600 !important; fill: rgba(255,255,255,0.75) !important; }

  /* Pill nodes */
  .node-pill {
    animation: breath 4s ease-in-out infinite;
    transform-origin: center; transform-box: fill-box;
    --speak-color: var(--aurora-green);
    --speak-glow: rgba(32,254,143,0.65);
    --speak-ring: rgba(32,254,143,0.16);
  }
  .node-pill.force {
    --speak-color: var(--coral);
    --speak-glow: rgba(255,131,113,0.65);
    --speak-ring: rgba(255,131,113,0.18);
  }
  @keyframes breath {
    0%,100% { filter: drop-shadow(0 0 3px currentColor) brightness(1); }
    50%     { filter: drop-shadow(0 0 7px currentColor) brightness(1.2); }
  }
  .node-pill rect {
    fill: rgba(0,5,49,0.85);
    stroke: currentColor;
    stroke-width: 1.2;
  }
  .node-pill text {
    fill: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    user-select: none;
  }
  .node-pill.moderator rect { fill: rgba(84,93,255,0.9); stroke: var(--aurora-violet); stroke-width: 2; }
  .node-pill.moderator text { font-weight: 700; font-size: 10px; }
  .node-pill.voice rect { fill: rgba(20,184,107,0.18); stroke: #14B86B; }
  .node-pill.force rect { fill: rgba(255,131,113,0.18); stroke: var(--coral); }
  .node-pill.panelist rect { fill: rgba(0,5,49,0.85); }

  /* Edges — static connection lines */
  .edge {
    fill: none;
    stroke: rgba(255,255,255,0.12);
    stroke-width: 1;
    pointer-events: none;
  }
  .edge.firing {
    stroke: var(--aurora-green);
    stroke-width: 1.8;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px var(--aurora-green));
    animation: edge-fade 2s ease-out forwards;
  }
  .edge.firing.force-fire {
    stroke: var(--coral);
    filter: drop-shadow(0 0 4px var(--coral));
  }
  @keyframes edge-fade {
    0% { opacity: 1; stroke-width: 2.5; }
    100% { opacity: 0.12; stroke-width: 1; }
  }

  /* Old node-circle class kept for backward compat where still referenced */
  .node-circle { display: none; }

  /* Moderator heartbeat — applied to the pill rect for visible scale */
  .node-pill.moderator rect {
    animation: heartbeat 2s ease-in-out infinite;
    transform-origin: center; transform-box: fill-box;
    filter: drop-shadow(0 0 14px var(--aurora-violet));
  }
  @keyframes heartbeat {
    0%,100% { transform: scale(1); filter: drop-shadow(0 0 12px var(--aurora-violet)) brightness(1); }
    20% { transform: scale(1.12); filter: drop-shadow(0 0 22px var(--aurora-violet)) brightness(1.3); }
    40% { transform: scale(1.03); }
    60% { transform: scale(1.16); filter: drop-shadow(0 0 26px var(--aurora-violet)) brightness(1.4); }
    80% { transform: scale(1.03); }
  }
  /* Concentric rings on moderator — sized to wrap the pill */
  .moderator-ring { fill: none; stroke: var(--aurora-violet); opacity: 0.4; }
  .moderator-ring.r1 { animation: ring-pulse 2.5s ease-out infinite; }
  .moderator-ring.r2 { animation: ring-pulse 2.5s ease-out infinite 0.6s; }
  .moderator-ring.r3 { animation: ring-pulse 2.5s ease-out infinite 1.2s; }
  @keyframes ring-pulse {
    0% { r: 75; opacity: 0.6; stroke-width: 2; }
    100% { r: 160; opacity: 0; stroke-width: 0.5; }
  }

  /* Speaking node — pill scales + glows green */
  .node-pill.speaking rect {
    animation: speak-pulse 1.6s cubic-bezier(.25,.1,.25,1) !important;
    transform-origin: center; transform-box: fill-box;
  }
  @keyframes speak-pulse {
    0%   { transform: scale(1); filter: drop-shadow(0 0 4px currentColor); }
    30%  { transform: scale(1.45); filter: drop-shadow(0 0 18px var(--aurora-green)) brightness(1.5); stroke: var(--aurora-green); }
    60%  { transform: scale(1.15); filter: drop-shadow(0 0 12px var(--aurora-green)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 4px currentColor); }
  }
  .node-pill.recently-spoke rect { stroke: var(--aurora-green) !important; stroke-width: 2 !important; }
  .ripple {
    fill: none; stroke: var(--aurora-green);
    stroke-width: 2; opacity: 0.6;
    animation: ripple-out 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 8px var(--aurora-green));
  }
  @keyframes ripple-out {
    0%   { r: 6; opacity: 0.9; stroke-width: 3; }
    100% { r: 80; opacity: 0; stroke-width: 0.5; }
  }
  .node-circle.recently-spoke { stroke: var(--aurora-green) !important; stroke-width: 2.5 !important; }

  /* Phase aura — rounded rect hugging the active voice pill */
  .phase-aura {
    fill: none; stroke: var(--aurora-green);
    stroke-width: 2; opacity: 0;
    animation: aura-pulse 3s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 10px var(--aurora-green));
  }
  @keyframes aura-pulse {
    0%,100% { opacity: 0.45; stroke-width: 1.5; }
    50%     { opacity: 0.9;  stroke-width: 2.5; }
  }
  /* BG cluster label */
  .bg-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    fill: rgba(255,255,255,0.95); pointer-events: none; user-select: none;
  }
  .bg-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px; font-weight: 500;
    fill: rgba(255,255,255,0.5); pointer-events: none; user-select: none;
  }
  .bg-frame {
    fill: rgba(255,255,255,0.025);
    stroke: rgba(255,255,255,0.12);
    stroke-width: 1;
    rx: 8; ry: 8;
  }
  .bg-frame.bg1 { stroke: rgba(118,190,255,0.4); }
  .bg-frame.bg2 { stroke: rgba(80,137,217,0.4); }
  .bg-frame.bg3 { stroke: rgba(32,254,143,0.4); }  /* growth target — green */
  .bg-frame.bg4 { stroke: rgba(255,255,255,0.15); stroke-dasharray: 4 4; }  /* empty/dashed */
  .bg-frame.bg5 { stroke: rgba(201,104,77,0.4); }

  /* Speaker beam — connects two nodes briefly */
  .beam {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0;
    filter: drop-shadow(0 0 6px currentColor);
    animation: beam-travel 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes beam-travel {
    0% { opacity: 0; stroke-dashoffset: var(--beam-len); }
    20% { opacity: 0.9; }
    100% { opacity: 0; stroke-dashoffset: calc(var(--beam-len) * -1); }
  }

  /* Particle — small dot drifting along path */
  .particle {
    fill: rgba(255,255,255,0.6);
    filter: drop-shadow(0 0 3px currentColor);
    pointer-events: none;
  }
  .group-banner {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    fill: var(--midnight); pointer-events: none; user-select: none;
  }
  .group-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 9.5px; font-weight: 500;
    fill: var(--ink-soft); pointer-events: none; user-select: none;
  }
  .track-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9.5px; font-weight: 600;
    fill: var(--ink-soft); pointer-events: none; user-select: none;
  }
  .legend { padding: 8px 12px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 10.5px; color: rgba(255,255,255,0.75); display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; background: var(--midnight); }
  .legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; vertical-align: middle; margin-right: 4px; }

  /* === FEATURED COLUMN — single rotating spotlight === */
  .feat-spotlight-wrap {
    flex: 1;
    display: flex; flex-direction: column;
    padding: 16px;
    overflow: hidden;
  }
  .feat-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--ink-soft); font-size: 13px;
    padding: 20px;
  }
  .feat-card-big {
    background: white;
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--midnight);
    border-radius: 12px;
    padding: 22px 22px 20px;
    flex: 1;
    display: flex; flex-direction: column;
    animation: feat-slide-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes feat-slide-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .feat-card-big.tag-authenticity { border-left-color: var(--aurora-violet); background: linear-gradient(135deg, white 70%, rgba(84,93,255,0.05)); }
  .feat-card-big.tag-inclusion    { border-left-color: var(--aurora-blue);   background: linear-gradient(135deg, white 70%, rgba(118,190,255,0.06)); }
  .feat-card-big.tag-defection    { border-left-color: var(--coral);         background: linear-gradient(135deg, white 70%, rgba(255,131,113,0.05)); }
  .feat-card-big.tag-bundle       { border-left-color: #14B86B;              background: linear-gradient(135deg, white 70%, rgba(20,184,107,0.05)); }
  .feat-card-big.tag-commit       { border-left-color: var(--midnight);      background: linear-gradient(135deg, white 70%, rgba(0,5,49,0.04)); }
  .feat-tag-big {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 9999px;
    margin-bottom: 16px; align-self: flex-start;
  }
  .feat-card-big.tag-authenticity .feat-tag-big { background: rgba(84,93,255,0.13); color: var(--aurora-violet); }
  .feat-card-big.tag-inclusion    .feat-tag-big { background: rgba(118,190,255,0.18); color: #1e6ba8; }
  .feat-card-big.tag-defection    .feat-tag-big { background: rgba(255,131,113,0.15); color: #c45040; }
  .feat-card-big.tag-bundle       .feat-tag-big { background: rgba(20,184,107,0.13); color: #0c8a4f; }
  .feat-card-big.tag-commit       .feat-tag-big { background: rgba(0,5,49,0.08); color: var(--midnight); }
  .feat-quote-big {
    font-size: 18px; font-weight: 500;
    line-height: 1.5; color: var(--midnight);
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    position: relative;
    padding-left: 22px;
  }
  .feat-quote-big::before {
    content: '\201C';
    font-family: Georgia, serif; font-size: 56px; font-weight: 700;
    line-height: 1; color: rgba(0,5,49,0.18);
    position: absolute; left: -4px; top: -8px;
  }
  .feat-cite-big {
    display: flex; gap: 10px; align-items: center;
    font-size: 12.5px; color: var(--ink-soft);
    border-top: 1px solid var(--border-soft);
    padding-top: 12px;
    flex-wrap: wrap;
  }
  .feat-cite-big .who { font-weight: 700; color: var(--midnight); font-size: 14px; }
  .feat-controls {
    display: flex; gap: 8px; align-items: center; justify-content: center;
    padding: 12px 0 4px;
    flex-shrink: 0;
  }
  .feat-arrow {
    width: 32px; height: 32px;
    border-radius: 9999px;
    background: white; border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
  }
  .feat-arrow:hover { background: var(--midnight); color: white; border-color: var(--midnight); }
  .feat-counter {
    font-size: 12px; color: var(--ink-soft);
    font-family: 'JetBrains Mono', monospace;
    min-width: 80px; text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .feat-progress { height: 2px; background: rgba(0,5,49,0.06); border-radius: 9999px; overflow: hidden; margin-top: 8px; }
  .feat-progress-fill { height: 100%; background: var(--aurora-green); border-radius: 9999px; width: 0%; transition: width 0.1s linear; }
  .feat-progress-fill.paused { background: var(--ink-soft); }

  /* === V2 ICON-BASED NODE RENDERING ============================
     Outer <g class="node-pill ROLE"> kept for highlightSpeaker compat.
     Inside, we render an icon (<use href="#ico-...">) plus a small
     label <text>. The original .node-pill rect rules still apply if
     a rect happens to exist; for v2 nodes, only icon-shape/node-text
     are present.
  */
  .node-pill .icon-shape {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.25s ease-out;
    color: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  }
  .node-pill .icon-shape use,
  .node-pill .icon-shape path,
  .node-pill .icon-shape circle,
  .node-pill .icon-shape rect,
  .node-pill .icon-shape line {
    color: currentColor;
  }
  .node-pill .node-text {
    fill: rgba(255,255,255,0.78);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: hanging;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.01em;
  }
  .node-pill .node-halo {
    fill: var(--aurora-green);
    opacity: 0;
    pointer-events: none;
  }
  .node-pill.moderator .node-text { font-weight: 700; fill: white; font-size: 11px; letter-spacing: 0.04em; }
  .node-pill.voice     .node-text { fill: rgba(220,255,235,0.92); font-weight: 600; font-size: 9.5px; }
  .node-pill.force     .node-text { fill: rgba(255,200,188,0.9);  font-weight: 600; font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; }
  .node-pill.panelist  .node-text { fill: rgba(255,255,255,0.7);  font-size: 8.5px; }

  /* Idle "alive" state — gentle breath on every icon */
  .node-pill .icon-shape {
    animation: icon-breath 4.5s ease-in-out infinite;
  }
  @keyframes icon-breath {
    0%,100% { opacity: 0.92; }
    50%     { opacity: 1.0; }
  }

  /* Voice bulbs are OFF by default — outline only, no fill, no idle glow.
     Lighting up is reserved for the active phase or the moment a voice
     speaks, so panelists stay the visual priority. */
  .bulb-fill { opacity: 0; transition: opacity 0.6s ease; }
  .bulb-glow { opacity: 0; transition: opacity 0.6s ease; }
  /* Filter (the soft halo) eases in/out so on→off doesn't snap. The
     keyframed pulse only animates filter intensity — never transform —
     to avoid fighting the iconScale set via the SVG transform attribute,
     which caused an abrupt size pop on state change. */
  .node-pill.voice .icon-shape {
    transition: filter 0.6s ease;
  }
  /* Active phase voice — fill in, glow on */
  .node-pill.voice.phase-active .bulb-fill { opacity: 0.92; }
  .node-pill.voice.phase-active .bulb-glow { opacity: 0.85; }
  .node-pill.voice.phase-active .icon-shape {
    animation: voice-active-pulse 2.4s ease-in-out infinite;
  }
  /* Speaking voice — same lit-up state, even if not the phase voice */
  .node-pill.voice.speaking .bulb-fill,
  .node-pill.voice.recently-spoke .bulb-fill { opacity: 0.92; }
  .node-pill.voice.speaking .bulb-glow,
  .node-pill.voice.recently-spoke .bulb-glow { opacity: 0.85; }
  @keyframes voice-active-pulse {
    0%,100% { filter: drop-shadow(0 0 8px var(--aurora-green)) drop-shadow(0 0 16px rgba(32,254,143,0.45)); }
    50%     { filter: drop-shadow(0 0 14px var(--aurora-green)) drop-shadow(0 0 26px rgba(32,254,143,0.75)); }
  }

  /* Force magnets — subtle coral aura */
  .node-pill.force .icon-shape {
    filter: drop-shadow(0 0 3px rgba(255,131,113,0.45));
  }

  /* Moderator centerpiece — bigger glow, no extra heartbeat (rings handle it).
     Keyframes intentionally do NOT touch `transform` so the JS-set inline
     scale(2) on iconG stays constant. Glow pulse only. */
  .node-pill.moderator .icon-shape {
    filter: drop-shadow(0 0 14px var(--aurora-violet));
    animation: mod-breath 2.6s ease-in-out infinite;
  }
  @keyframes mod-breath {
    0%,100% { filter: drop-shadow(0 0 12px var(--aurora-violet)); }
    50%     { filter: drop-shadow(0 0 22px var(--aurora-violet)); }
  }

  /* === SPEAKING STATE — icon-aware overrides ===
     The existing .node-pill.speaking rect rule won't apply because
     v2 nodes have no rect. We instead pulse the icon-shape and
     ignite the halo behind it. */
  .node-pill.speaking .icon-shape {
    animation: icon-speak-pulse 1.4s cubic-bezier(.25,.1,.25,1) !important;
    filter: drop-shadow(0 0 14px var(--speak-color)) drop-shadow(0 0 26px var(--speak-glow)) !important;
  }
  /* Moderator stays at its inline scale(2) when speaking — only the glow
     reacts. Otherwise the keyframe transform would collapse it back to 1. */
  .node-pill.moderator.speaking .icon-shape {
    animation: none !important;
    filter: drop-shadow(0 0 14px var(--speak-color)) drop-shadow(0 0 26px var(--speak-glow)) !important;
  }
  @keyframes icon-speak-pulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.55); }
    65%  { transform: scale(1.15); }
    100% { transform: scale(1); }
  }
  .node-pill.speaking .node-halo {
    animation: halo-burst 1.4s ease-out forwards;
  }
  @keyframes halo-burst {
    0%   { transform: scale(0.4); opacity: 0.55; }
    60%  { transform: scale(1.0); opacity: 0.18; }
    100% { transform: scale(1.7); opacity: 0; }
  }
  .node-pill.recently-spoke .node-halo {
    fill: var(--speak-color);
    opacity: 0.16;
  }
  .node-pill.recently-spoke .icon-shape {
    filter: drop-shadow(0 0 6px var(--speak-color));
  }

  /* Hide any leftover rect rendering (we replaced rect with icon) */
  .node-pill > rect.legacy-pill { display: none; }

