/* `.vr` занят Bootstrap 5 под вертикальный разделитель шириной 1px. */
.si-vote-results {
  --vr-text: var(--vc-text, #f8fafc);
  --vr-text-soft: var(--vc-text-soft, #cbd5e1);
  --vr-muted: var(--vc-muted, #94a3b8);
  --vr-border: var(--vc-border, rgba(255, 255, 255, 0.09));
  --vr-surface-soft: var(--vc-surface-soft, rgba(255, 255, 255, 0.035));
  --vr-purple: var(--vc-purple, #7c3aed);
  --vr-blue: var(--vc-blue, #007aff);
  --vr-accent: var(--vc-accent, #00f2fe);
  display: block;
  align-self: auto;
  width: 100%;
  min-height: 0;
  background: transparent;
  opacity: 1;
  color: var(--vr-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] .si-vote-results {
  --vr-text: var(--vc-text, #0f172a);
  --vr-text-soft: var(--vc-text-soft, #334155);
  --vr-muted: var(--vc-muted, #52637a);
  --vr-border: var(--vc-border, rgba(15, 23, 42, 0.14));
  --vr-surface-soft: var(--vc-surface-soft, #f8fafc);
  --vr-purple: var(--vc-purple, #6d28d9);
  --vr-blue: var(--vc-blue, #0066d6);
  --vr-accent: var(--vc-accent, #007d8c);
}

.si-vote-results,
.si-vote-results *,
.si-vote-results *::before,
.si-vote-results *::after {
  box-sizing: border-box;
}

.vr-question + .vr-question {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--vr-border);
}

.vr-q {
  margin: 0 0 13px;
  color: var(--vr-text) !important;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.vr-answers {
  display: grid;
  gap: 14px;
}

.vr-row { min-width: 0; }

.vr-top {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.vr-label {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--vr-text-soft);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.vr-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vr-pct {
  color: var(--vr-accent);
  font-weight: 700;
}

.vr-count {
  min-width: 23px;
  padding: 4px 6px;
  border: 1px solid var(--vr-border);
  border-radius: 6px;
  background: var(--vr-surface-soft);
  color: var(--vr-muted);
  text-align: center;
}

.vr-barwrap {
  position: relative;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--vr-surface-soft);
  box-shadow: inset 0 0 0 1px var(--vr-border);
}

.vr-bar {
  position: relative;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vr-purple), var(--vr-blue) 54%, var(--vr-accent));
  box-shadow: 0 0 13px color-mix(in srgb, var(--vr-accent) 28%, transparent);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.vr-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  animation: vr-shimmer 1.4s ease-out 0.15s 1;
}

.vr-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--vr-border);
  color: var(--vr-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.vr-foot strong {
  color: var(--vr-text-soft);
  font-weight: 600;
}

.vr-empty {
  padding: 14px;
  border: 1px dashed var(--vr-border);
  border-radius: 11px;
  background: var(--vr-surface-soft);
  color: var(--vr-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@keyframes vr-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 575.98px) {
  .vr-top { align-items: center; }
  .vr-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vr-bar {
    transition-duration: 0.01ms;
  }

  .vr-bar::after { animation: none; }
}
