/* ====================================================================
   WAHL-ERA – Custom Styles
   Tailwind CDN handles layout utilities (flex, grid, spacing, etc.)
   This file handles: CSS variables, dark mode, animations, components
   ==================================================================== */

/* ── CSS Custom Properties (Game Mode - Default) ────────────────── */
:root {
  --bg:           #080a0c;
  --surface:      rgba(15, 23, 36, 0.7);
  --surface-2:    rgba(22, 35, 55, 0.8);
  --surface-3:    rgba(30, 48, 75, 0.9);
  --border:       rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text:         #f8fafc;
  --text-muted:   #94a3b8;
  --text-light:   #64748b;
  --accent:       #3b82f6;
  --accent-2:     #60a5fa;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.1);
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --nav-bg:       rgba(8, 10, 12, 0.8);
  --shadow-sm:    0 2px 4px rgba(0,0,0,0.3);
  --shadow-md:    0 12px 32px rgba(0,0,0,0.4);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.5);
  --glass-blur:   blur(20px);
  --radius-lg:    1.25rem;
  --radius-md:    0.75rem;
}

/* Light Mode Overrides (if needed, but game look is dark) */
[data-theme="light"] {
  --bg:           #f3f4f6;
  --surface:      rgba(255, 255, 255, 0.85);
  --surface-2:    #e5e7eb;
  --surface-3:    #d1d5db;
  --border:       #d1d5db;
  --border-focus: #3b82f6;
  --text:         #111827;
  --text-muted:   #4b5563;
  --text-light:   #9ca3af;
  --accent:       #3b82f6;
  --accent-light: #eff6ff;
  --nav-bg:       rgba(243, 244, 246, 0.8);
}

/* ── Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  padding-top: 3.5rem;
}

/* ── Layout helpers ──────────────────────────────────────────────── */
.screen-inner {
  max-width: 110rem;
  width: 96%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.screen-inner-wide {
  max-width: 120rem;
  width: 98%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Navbar ──────────────────────────────────────────────────────── */
.wom-nav {
  background: var(--nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 2px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  z-index: 100;
  transition: all 0.3s ease;
}
.wom-nav-inner {
  max-width: 110rem;
  width: 96%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wom-nav-title {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
}
.wom-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Cards & Surfaces ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border-focus);
}
.surface-2 { background: var(--surface-2); backdrop-filter: var(--glass-blur); }
.surface-3 { background: var(--surface-3); backdrop-filter: var(--glass-blur); }

/* ── Typography helpers ──────────────────────────────────────────── */
.text-primary  { color: var(--text); }
.text-muted    { color: var(--text-muted); }
.text-light    { color: var(--text-light); }
.text-accent   { color: var(--accent); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }
.text-danger   { color: var(--danger); }
.border-muted  { border-color: var(--border); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  border-color: rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  opacity: 1;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-success { background: var(--success); color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
.btn-success:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.btn-danger:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border-color: var(--text-muted);
}
.btn-icon {
  padding: 0.65rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  transform: scale(1.1);
}

/* ── Vote buttons grid ───────────────────────────────────────────── */
.voting-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}
.voting-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.vote-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.vote-btn:hover {
  transform: scale(1.1);
  border-color: var(--text-muted);
}
.vote-btn.selected {
  transform: scale(1.1);
  border-width: 3px;
  color: #fff;
}
.vote-side-a.selected {
  background: var(--accent);
  border-color: var(--accent-2);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}
.vote-side-b.selected {
  background: var(--success);
  border-color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}
.vote-neutral.selected {
  background: var(--surface-3);
  border-color: var(--text-muted);
  box-shadow: 0 0 10px rgba(156, 163, 175, 0.4);
}

.voting-axis-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  opacity: 0.6;
}

@keyframes votePulse {
  0% { transform: scale(1.1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1.1); }
}
.vote-btn.pulse { animation: votePulse 0.3s ease; }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress-track {
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px var(--accent-light);
}

/* ── Screen transitions ──────────────────────────────────────────── */
.screen {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.screen.visible { opacity: 1; }

/* ── Slide animations ────────────────────────────────────────────── */
@keyframes slideInRight {
  from { transform: translateX(48px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-48px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideInUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.slide-in-right { animation: slideInRight 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.slide-in-left  { animation: slideInLeft  0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.slide-in-up    { animation: slideInUp    0.32s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Candidate reveal panel ──────────────────────────────────────── */
.reveal-panel.animate-in {
  animation: slideInUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.reveal-row:last-child { border-bottom: none; }
.reveal-row:hover { background: var(--surface-3); }
.reveal-mini-bar {
  flex: 1;
  height: 7px;
  background: var(--surface-3);
  border-radius: 9999px;
  overflow: hidden;
}
.reveal-mini-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Result bars ─────────────────────────────────────────────────── */
.result-bar-track {
  height: 0.825rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  width: 12rem;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .result-bar-track { width: 8rem; }
}
@media (max-width: 840px) {
  .result-bar-track { width: auto; flex: 1; min-width: 4rem; }
}
.result-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 4px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}
.result-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  transform: translateX(8px) scale(1.02);
}

/* Stagger animation for result rows */
.result-row.animate-in {
  animation: slideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Result Grid Responsiveness ──────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 840px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Hidden unless active in mobile tab mode */
  .results-col.mobile-hidden {
    display: none;
  }
}

/* ── Category table ──────────────────────────────────────────────── */
.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.cat-table th, .cat-table td {
  padding: 0.45rem 0.6rem;
  text-align: center;
  border: 1px solid var(--border);
}
.cat-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.cat-table td.cat-name {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.cat-high   { background: #d1fae5; color: #065f46; font-weight: 700; }
.cat-mid    { background: #fef9c3; color: #854d0e; font-weight: 700; }
.cat-low    { background: #fee2e2; color: #991b1b; font-weight: 700; }
.cat-null   { color: var(--text-light); font-size: 0.75rem; }
[data-theme="dark"] .cat-high { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .cat-mid  { background: #451a03; color: #fde68a; }
[data-theme="dark"] .cat-low  { background: #450a0a; color: #fca5a5; }

/* ── Overview table ──────────────────────────────────────────────── */
.overview-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}
.overview-table {
  border-collapse: collapse;
  min-width: 100%;
}
.overview-table th,
.overview-table td {
  padding: 0.55rem 0.75rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}
.overview-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
  position: sticky;
  top: 0;
}
.overview-table td.question-cell {
  text-align: left;
  white-space: normal;
  min-width: 200px;
  max-width: 300px;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 1;
}
.overview-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.answer-1 { background: #fecaca; color: #7f1d1d; font-weight: 700; }
.answer-2 { background: #fed7aa; color: #7c2d12; font-weight: 700; }
.answer-3 { background: var(--surface-2); color: var(--text-muted); font-weight: 600; }
.answer-4 { background: #bbf7d0; color: #14532d; font-weight: 700; }
.answer-5 { background: #6ee7b7; color: #064e3b; font-weight: 700; }

[data-theme="dark"] .answer-1 { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .answer-2 { background: #431407; color: #fdba74; }
[data-theme="dark"] .answer-3 { background: var(--surface-2); color: var(--text-muted); }
[data-theme="dark"] .answer-4 { background: #052e16; color: #86efac; }
[data-theme="dark"] .answer-5 { background: #022c22; color: #34d399; }

.overview-table tr.question-row { cursor: pointer; }
.overview-table tr.question-row:hover td { background: var(--accent-light); }
[data-theme="dark"] .overview-table tr.question-row:hover td { background: var(--surface-3); }

.statement-row { display: none; }
.statement-row.open { display: table-row; }
.statement-row td {
  background: var(--surface-2);
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem 0.75rem;
}

/* ── Compare view ────────────────────────────────────────────────── */
.compare-bar {
  height: 8px;
  border-radius: 9999px;
}

/* ── Badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}
.badge-success {
  background: #d1fae5;
  color: #065f46;
}
.badge-warning {
  background: #fef3c7;
  color: #92400e;
}
[data-theme="dark"] .badge-success { background: #052e16; color: #34d399; }
[data-theme="dark"] .badge-warning { background: #451a03; color: #fde68a; }

/* ── Candidate dot ───────────────────────────────────────────────── */
.candidate-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Hint collapsible ────────────────────────────────────────────── */
.hint-content {
  display: none;
  animation: slideInUp 0.2s ease;
}
.hint-content.open { display: block; }

/* ── Resume banner ───────────────────────────────────────────────── */
.resume-banner {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  animation: slideInUp 0.3s ease;
}
[data-theme="dark"] .resume-banner {
  background: var(--surface-2);
  border-color: var(--accent);
}

/* ── Toast ───────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--surface);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}
.toast.out {
  animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(8px);  opacity: 0; }
}

/* ── Hero (Start screen) ─────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg) 60%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
}
[data-theme="dark"] .hero-gradient {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 60%);
}
.hero-emoji {
  font-size: 4rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Weight toggle ───────────────────────────────────────────────── */
.weight-btn { transition: all 0.15s; }
.weight-btn.active {
  background: var(--accent-light) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Divider ─────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Pole cards (bipolare Fragen) ────────────────────────────────── */
.pole-card {
  border-radius: 1.25rem;
  border: 2px solid var(--border);
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
}
.pole-card.pole-a {
  border-left: 6px solid var(--accent);
}
.pole-card.pole-b {
  border-right: 6px solid var(--success);
}

.pole-card.highlighted {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}
.pole-card.pole-a.highlighted {
  border-color: var(--accent);
  box-shadow: -8px 0 20px rgba(59, 130, 246, 0.2);
}
.pole-card.pole-b.highlighted {
  border-color: var(--success);
  box-shadow: 8px 0 20px rgba(16, 185, 129, 0.2);
}

.pole-card.glow-strong {
  background: rgba(255, 255, 255, 0.12);
}

.pole-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}
.pole-label.pole-a { color: var(--accent-2); }
.pole-label.pole-b { color: #34d399; }

.pole-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

/* ── Bipolar layout grid ─────────────────────────────────────────── */
.bipolar-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 840px) {
  .bipolar-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Scale track between poles ───────────────────────────────────── */
.scale-track-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  padding: 0 0.25rem;
}

/* ── Party badge ─────────────────────────────────────────────────── */
.party-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid;
}

/* ── Tabs ────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Cohesion badge ──────────────────────────────────────────────── */
.cohesion-high { color: var(--success); }
.cohesion-mid  { color: var(--warning); }
.cohesion-low  { color: var(--danger); }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .scale-btn { padding: 0.6rem 0.1rem; }
  .scale-btn .scale-num  { font-size: 0.95rem; }
  .scale-btn .scale-label { font-size: 0.58rem; }
  .result-row { padding: 0.65rem 0.75rem; gap: 0.5rem; }
  .screen-inner, .screen-inner-wide { padding: 1.25rem 1rem; }
  
  /* Start screen button stacking */
  .hero-actions {
    flex-direction: column;
  }
}

/* ── Overview Figures ────────────────────────────────────────────── */
.fig-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.2s;
}
.fig-item:hover {
  transform: scale(1.15);
  z-index: 20;
}
.fig-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fig-icon-user {
  background: var(--accent) !important;
  border-color: #fff !important;
  z-index: 30;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 0 4px var(--bg);
}
.fig-name {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}
.fig-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
  z-index: 100;
  animation: bubblePop 0.25s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}
.fig-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
}
.fig-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: var(--surface) transparent transparent transparent;
  z-index: 1;
}

@keyframes bubblePop {
  from { transform: translateX(-50%) translateY(10px) scale(0.9); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* ── Bipolar three-column quiz layout ────────────────────────────── */
.bipolar-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .bipolar-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .voting-column { order: -1; }
}

/* ── Voting column (center) ──────────────────────────────────────── */
.voting-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 3.5rem;
}
.voting-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
}
.voting-axis-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Vote buttons ────────────────────────────────────────────────── */
.vote-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vote-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.vote-btn.vote-side-a { border-color: rgba(79,70,229,0.35); }
.vote-btn.vote-side-b { border-color: rgba(16,185,129,0.35); }
.vote-btn.vote-neutral { border-color: var(--border); }
.vote-btn.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(99,102,241,0.45);
  transform: scale(1.08);
}
.vote-btn.selected.vote-side-a {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 3px 10px rgba(79,70,229,0.45);
}
.vote-btn.selected.vote-side-b {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 3px 10px rgba(16,185,129,0.45);
}
.vote-btn.pulse { animation: scalePulse 0.3s ease; }

/* ── Pole card glow states ───────────────────────────────────────── */
.pole-card {
  transition: border-color 0.25s, background 0.25s,
              box-shadow 0.35s, transform 0.25s;
}
.pole-card.glow-strong { transform: scale(1.025); }
.pole-card.pole-a.glow-strong {
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-md);
  animation: glowPulseA 0.5s ease;
}
.pole-card.pole-b.glow-strong {
  box-shadow: 0 0 0 3px var(--success), var(--shadow-md);
  animation: glowPulseB 0.5s ease;
}
.pole-card.glow-mild { transform: scale(1.01); }
.pole-card.pole-a.glow-mild { box-shadow: 0 0 0 2px rgba(79,70,229,0.4); }
.pole-card.pole-b.glow-mild { box-shadow: 0 0 0 2px rgba(16,185,129,0.4); }

@keyframes glowPulseA {
  0%   { box-shadow: 0 0 0 0 rgba(79,70,229,0.6); }
  50%  { box-shadow: 0 0 0 10px rgba(79,70,229,0); }
  100% { box-shadow: 0 0 0 3px var(--accent); }
}
@keyframes glowPulseB {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  50%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 3px var(--success); }
}

/* ── Results side-by-side grid ───────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.results-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── CTA: Einzelantworten next step ─────────────────────────────── */
.cta-next-step {
  background: linear-gradient(135deg, var(--accent-light), var(--bg));
  border: 1.5px solid var(--accent);
  border-radius: 1rem;
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.cta-next-step-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
[data-theme="dark"] .cta-next-step {
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
}

/* ── Overview: Figuren-Layout ────────────────────────────────────── */
.ov-block {
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
}
.ov-block-header { margin-bottom: 0.75rem; }
.ov-three-col {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 768px) {
  .ov-three-col { grid-template-columns: 1fr; gap: 0.75rem; }
}
.ov-pole {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ov-scale-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ov-scale-track {
  position: relative;
  height: 6rem;
  border-bottom: 2px solid var(--border);
}
.ov-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 0.5rem;
  background: var(--border);
}
.ov-tick-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  padding: 0 0.1rem;
}
.ov-figures {
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  right: 0;
  height: 5.5rem;
}

/* ── Figure items ────────────────────────────────────────────────── */
.fig-item {
  position: absolute;
  bottom: 0;
  width: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 2;
}
.fig-item:hover { transform: translateY(-3px); }
.fig-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.fig-name {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  max-width: 2.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.fig-icon-user {
  background: var(--accent) !important;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.fig-item.fig-user .fig-name { color: var(--accent); font-weight: 700; }
.fig-item.fig-unanswered .fig-icon-user {
  background: var(--surface-3) !important;
  border-color: var(--border);
  color: var(--text-light);
}
.fig-item.fig-user:hover .fig-icon-user {
  box-shadow: 0 0 0 3px var(--accent-light), var(--shadow-md);
}

/* ── Speech bubble ───────────────────────────────────────────────── */
.fig-bubble {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: normal;
  width: 14rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
  animation: slideInUp 0.2s ease;
  line-height: 1.5;
}
.fig-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}
.fig-bubble.hidden { display: none; }

/* ── Inline answer editor (in overview) ─────────────────────────── */
.ov-inline-editor {
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  animation: slideInUp 0.2s ease;
}
.ov-editor-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ov-editor-buttons .vote-btn {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.9rem;
}

/* ── Scaling & Filtering Styles ──────────────────────────────────── */
.results-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  background: var(--surface-2);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.party-filter-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}
.party-filter-chip {
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.party-filter-chip:hover {
  background: var(--surface-3);
  border-color: var(--text-muted);
}
.party-filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-2);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.show-more-container {
  text-align: center;
  margin: 1.5rem 0;
}

/* Overview Party Grouping */
.fig-item-group {
  z-index: 5;
}
.group-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.group-popup {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: slideInUp 0.15s ease-out;
}
.group-popup-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.85rem;
}
.group-popup-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.group-member-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.1s;
}
.group-member-item:hover {
  transform: scale(1.02);
  background: var(--surface-2);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.3s ease; }

/* -- Profile Screen ---------------------------------------------- */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 4px solid var(--surface-2);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}
.profile-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 1rem 1rem 0;
}
.profile-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.profile-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}
/* Answer Grid */
.answers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.answer-mini-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mini-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}
.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.mini-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.mini-dot.active-side-a { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.mini-dot.active-side-b { background: var(--success); box-shadow: 0 0 8px var(--success); }
.mini-dot.active-neutral { background: var(--text-muted); box-shadow: 0 0 8px var(--text-muted); }

.profile-important-badge {
  background: var(--warning);
  color: #000;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 0.5rem;
}


/* ── Result Hero Cards (Top 3) ───────────────────────────────────── */
.results-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .results-hero { grid-template-columns: 1fr; gap: 1rem; }
}

.hero-match-card {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-width: 2px;
}
.hero-match-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--card-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--card-color-alpha);
}

.hero-rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero-avatar-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}
.hero-avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  border: 4px solid var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  background: var(--surface-2);
  box-shadow: 0 0 25px var(--card-color-alpha);
}

.hero-match-pct {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(180deg, #fff 30%, var(--card-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-match-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-info {
  width: 100%;
}
.hero-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.hero-party {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ── Result List (Compact) ────────────────────────────────────────── */
.result-row-compact {
  display: grid;
  grid-template-columns: 2.5rem 2rem 1fr 1.2fr 4rem 2.5rem;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}
.result-row-compact:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateX(4px);
}

/* ── New Overview (Einzelantworten) Layout ───────────────────────── */
.ov-block-modern {
  margin-bottom: 3rem;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
.ov-question-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.ov-question-text {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  max-width: 50rem;
}

.ov-scale-modern {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  display: flex;
  flex-direction: column;
}
.ov-axis-line {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--surface-3) 50%, var(--success) 100%);
  border-radius: 999px;
  position: relative;
}
.ov-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
}

.ov-pole-label-modern {
  position: absolute;
  top: 0;
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 15rem;
}
.ov-pole-a { left: 0; color: var(--accent); text-align: left; }
.ov-pole-b { right: 0; color: var(--success); text-align: right; }

.ov-figures-container {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  height: 6rem;
}

/* Improved Swarm Logic for Figures */
.fig-swarm-item {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.fig-swarm-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
}
.fig-swarm-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0 4px;
  min-width: 1.15rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  z-index: 10;
  pointer-events: none;
}
.user-indicator {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

/* Animations */
@keyframes scoreFill {
  from { width: 0; }
  to { width: var(--final-width); }
}
.animate-score { animation: scoreFill 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* ── Overview Navigator (step-by-step) ──────────────────────────── */
.ov-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ov-nav-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.ov-question-card .ov-poles-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.ov-candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1rem;
}
.ov-cand-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ov-cand-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ov-cand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.ov-du-badge { margin-left: auto; }
.ov-cand-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ov-cand-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: 9999px;
  overflow: hidden;
}
.ov-cand-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
  min-width: 2px;
}
.ov-cand-statement {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 0.65rem;
  line-height: 1.5;
  margin: 0;
}
.ov-cand-no-statement {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}
.ov-user-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.ov-user-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  transition: background 0.2s, box-shadow 0.2s;
}
.ov-user-dot-active {
  border-color: transparent;
  transform: scale(1.25);
}
@media (max-width: 600px) {
  .ov-candidates-grid { grid-template-columns: 1fr; }
  .ov-nav-bar { flex-direction: column; align-items: stretch; text-align: center; }
}
