.voices-visual { margin: 30px 0; padding: clamp(16px, 3vw, 32px); overflow: hidden; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); }
.vv-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 17px; border-bottom: 1px solid var(--rule); }
.vv-kicker { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.vv-replay { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: -7px 0 -7px auto; padding: 7px 0 7px 7px; border: 0; background: transparent; color: var(--ink); font-size: 12px; line-height: 1.4; text-align: left; }
.vv-replay svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vv-replay:hover { color: var(--red); }
.vv-replay:disabled { color: var(--muted); }
.vv-art { margin-top: 12px; }
.vv-art svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.vv-art .vv-mobile { display: none; }
.vv-art text { fill: var(--ink); }
.vv-stage { font-size: 11px; font-weight: 700; letter-spacing: .075em; }
.vv-node-label, .vv-action-label { font-size: 19px; font-weight: 500; }
.vv-source-card { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.vv-action-card { fill: var(--panel); stroke: var(--red); stroke-width: 1; }
.vv-label-backdrop { fill: var(--panel); }
.vv-icon { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vv-route { fill: none; stroke: var(--rule); stroke-width: 1.6; }
.vv-trace { fill: none; stroke: var(--red); stroke-width: 2.3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0; }
.vv-port { fill: var(--red); }
.vv-external { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vv-directory-card { fill: var(--ink); stroke: var(--ink); stroke-width: 1.4; }
.vv-art .vv-directory-title { fill: var(--paper); font-family: var(--font-display); font-size: 39px; font-weight: 400; letter-spacing: .015em; }
.vv-art .vv-directory-note { fill: var(--paper); font-size: 15px; }
.vv-art .vv-directory-footer { fill: var(--yellow); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; }
.vv-directory-rule { stroke: #646b5c; stroke-width: 1; }
.vv-map-mark { fill: var(--yellow); }
.vv-art .vv-footnote { fill: var(--muted); font-size: 12px; }
.vv-caption { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 1.1fr); gap: 10px 28px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
.vv-caption strong { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 31px); font-weight: 400; letter-spacing: .01em; line-height: 1.25; }
.vv-caption > span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.vv-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The full still drawing is the default. Only the short highlight sequence moves. */
.voices-visual.is-playing .vv-trace-in { animation: vv-trace-in 6.2s ease-in-out calc(var(--vv-order) * 100ms) 1 both; }
.voices-visual.is-playing .vv-trace-out { animation: vv-trace-out 6.2s ease-in-out calc(var(--vv-order) * 100ms) 1 both; }
.voices-visual.is-playing .vv-source-port { animation: vv-source-pulse 6.2s ease-in-out calc(var(--vv-order) * 100ms) 1 both; transform-box: fill-box; transform-origin: center; }
.voices-visual.is-playing .vv-map-mark { animation: vv-map-pulse 6.2s ease-in-out 1 both; }
@keyframes vv-trace-in { 0%, 4% { opacity: 0; stroke-dashoffset: 100; } 9% { opacity: 1; } 31%, 49% { opacity: 1; stroke-dashoffset: 0; } 76%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes vv-trace-out { 0%, 34% { opacity: 0; stroke-dashoffset: 100; } 40% { opacity: 1; } 68%, 78% { opacity: 1; stroke-dashoffset: 0; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes vv-source-pulse { 0%, 4%, 35%, 100% { transform: scale(1); } 16% { transform: scale(1.65); } }
@keyframes vv-map-pulse { 0%, 29%, 70%, 100% { opacity: 1; } 42% { opacity: .4; } 53% { opacity: 1; } }
html.motion-off .voices-visual *, html.motion-off .voices-visual *::before, html.motion-off .voices-visual *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .voices-visual *, .voices-visual *::before, .voices-visual *::after { animation: none !important; } }

@media (max-width: 850px) {
  .voices-visual { margin-block: 24px; padding: 16px; }
  .vv-heading { gap: 8px; padding-bottom: 12px; }
  .vv-kicker { flex: 1 1 120px; max-width: none; font-size: 10px; }
  .vv-replay { gap: 5px; max-width: 110px; font-size: 11px; }
  .vv-art { max-width: 390px; margin: 17px auto 0; }
  .vv-art .vv-desktop { display: none; }
  .vv-art .vv-mobile { display: block; }
  .vv-mobile .vv-node-label { font-size: 17px; }
  .vv-mobile .vv-action-label { font-size: 17px; }
  .vv-mobile .vv-mobile-action-detail { font-size: 15px; }
  .vv-mobile .vv-stage { font-size: 12px; letter-spacing: .055em; }
  .vv-mobile .vv-directory-title { font-size: 27px; }
  .vv-mobile .vv-directory-note { font-size: 14px; }
  .vv-mobile .vv-directory-footer { font-size: 11px; letter-spacing: .055em; }
  .vv-caption { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 0; padding-top: 16px; }
  .vv-caption strong { font-size: 25px; }
  .vv-caption > span { font-size: 13px; line-height: 1.7; }
}
