:root {
  --vm-color-canvas: #f4f5f1;
  --vm-color-surface: #ffffff;
  --vm-color-surface-muted: #ebeee8;
  --vm-color-surface-accent: #f8faf7;
  --vm-color-surface-raised: #fcfcf9;
  --vm-color-surface-support: #e5f4ec;
  --vm-color-surface-oppose: #f9e8e6;
  --vm-color-text: #172126;
  --vm-color-text-muted: #58656e;
  --vm-color-border: #d6ddd4;
  --vm-color-primary: #198a5a;
  --vm-color-primary-hover: #126c45;
  --vm-color-primary-soft: #e5f4ec;
  --vm-color-secondary: #245b73;
  --vm-color-success: #198a5a;
  --vm-color-warning: #a96b1f;
  --vm-color-danger: #c5463a;
  --vm-color-info: #2e6f95;
  --vm-color-support: #198a5a;
  --vm-color-support-hover: #126c45;
  --vm-color-oppose: #c5463a;
  --vm-color-oppose-hover: #9c342b;
  --vm-color-accent-soft: #e7eef3;

  --vm-radius-sm: 12px;
  --vm-radius-md: 18px;
  --vm-radius-lg: 28px;
  --vm-radius-pill: 999px;

  --vm-space-xs: 8px;
  --vm-space-sm: 16px;
  --vm-space-md: 24px;
  --vm-space-lg: 32px;
  --vm-space-xl: 40px;
  --vm-space-2xl: 48px;
  --vm-space-3xl: 64px;
  --vm-space-4xl: 80px;

  --vm-shadow-rest: 0 18px 45px rgba(23, 33, 38, 0.08);
  --vm-shadow-raised: 0 28px 70px rgba(23, 33, 38, 0.12);
  --vm-shadow-focus: 0 0 0 4px rgba(36, 91, 115, 0.18);

  --vm-font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --vm-font-display: "Fraunces", Georgia, serif;
  --vm-font-size-xs: 12px;
  --vm-font-size-sm: 14px;
  --vm-font-size-md: 16px;
  --vm-font-size-lg: 20px;
  --vm-font-size-xl: 24px;
  --vm-font-size-2xl: 32px;
  --vm-font-size-3xl: 40px;
  --vm-font-size-4xl: 52px;
  --vm-line-display: 1.02;
  --vm-line-tight: 1.15;
  --vm-line-snug: 1.25;
  --vm-line-base: 1.5;
  --vm-line-comfortable: 1.6;
  --vm-line-relaxed: 1.7;
  --vm-letter-display: -0.04em;
  --vm-letter-headline: -0.03em;
  --vm-letter-title: -0.02em;
  --vm-letter-body: -0.01em;
  --vm-letter-meta: 0em;
  --vm-letter-caps: 0.08em;
  --vm-weight-regular: 400;
  --vm-weight-medium: 500;
  --vm-weight-semibold: 600;
  --vm-weight-bold: 700;

  --vm-motion-fast: 120ms;
  --vm-motion-base: 180ms;
  --vm-motion-slow: 280ms;
  --vm-ease-standard: cubic-bezier(0.2, 0, 0, 1);

  --vm-content-max: 1120px;
  --vm-reading-max: 72ch;
  --vm-touch-target-min: 44px;
  --vm-gutter-mobile: 16px;
  --vm-gutter-desktop: 24px;
  --vm-button-height: 48px;
  --vm-button-padding-inline: 24px;
  --vm-card-padding: 24px;
  --vm-politician-card-padding: 16px;
  --vm-politician-card-radius: 12px;
  --vm-politician-card-shadow: 0 10px 24px rgba(23, 33, 38, 0.06);
  --vm-ornament-blob-size: 320px;
  --vm-ornament-ring-size: 240px;
  --vm-input-height: 56px;
  --vm-input-padding-inline: 16px;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(25, 138, 90, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(36, 91, 115, 0.1), transparent 24%),
    linear-gradient(180deg, #fafbf8 0%, var(--vm-color-canvas) 100%);
  color: var(--vm-color-text);
  font-family: var(--vm-font-sans);
  font-size: var(--vm-font-size-md);
  line-height: var(--vm-line-comfortable);
  letter-spacing: var(--vm-letter-body);
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

.vm-shell {
  position: relative;
  width: min(calc(100% - (var(--vm-gutter-mobile) * 2)), var(--vm-content-max));
  margin: 0 auto;
  padding: var(--vm-space-2xl) 0;
}

.vm-shell::before,
.vm-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.vm-shell::before {
  width: var(--vm-ornament-blob-size);
  height: var(--vm-ornament-blob-size);
  top: -24px;
  left: -96px;
  background: radial-gradient(circle at 30% 30%, rgba(25, 138, 90, 0.16), rgba(25, 138, 90, 0.03) 68%, transparent 72%);
  filter: blur(6px);
}

.vm-shell::after {
  width: var(--vm-ornament-ring-size);
  height: var(--vm-ornament-ring-size);
  right: -72px;
  bottom: 72px;
  border: 1px solid rgba(36, 91, 115, 0.12);
  box-shadow: inset 0 0 0 14px rgba(36, 91, 115, 0.03);
}

.vm-section {
  display: grid;
  gap: var(--vm-space-md);
}

.vm-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
}

.vm-header {
  display: grid;
  gap: var(--vm-space-md);
  align-items: start;
}

.vm-header-bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-direction: column;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
}

.vm-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--vm-space-sm);
  min-height: var(--vm-touch-target-min);
  color: var(--vm-color-text);
  text-decoration: none;
}

.vm-brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(25, 138, 90, 0.16), rgba(36, 91, 115, 0.12)),
    var(--vm-color-surface);
  border: 1px solid rgba(214, 221, 212, 0.95);
  box-shadow: 0 10px 20px rgba(23, 33, 38, 0.05);
  display: grid;
  place-items: center;
  font-family: var(--vm-font-display);
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: var(--vm-letter-display);
  font-weight: var(--vm-weight-semibold);
}

.vm-brand-copy {
  display: grid;
  gap: 2px;
}

.vm-brand-name {
  font-size: var(--vm-font-size-lg);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-title);
}

.vm-brand-tagline {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-sm);
  line-height: var(--vm-line-base);
}

.vm-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vm-space-sm);
  width: 100%;
  justify-content: flex-start;
}

.vm-header-actions .vm-button,
.vm-header-actions .vm-input {
  width: 100%;
}

.vm-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: var(--vm-space-xs);
  padding: var(--vm-space-xs);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.vm-toggle-group .vm-button {
  min-width: 112px;
}

.vm-toggle-group .vm-button-secondary {
  background: transparent;
  box-shadow: none;
}

.vm-toggle-group .vm-button-secondary:hover {
  background: rgba(36, 91, 115, 0.08);
}

.vm-toggle-group .vm-button-primary {
  box-shadow: 0 10px 24px rgba(25, 138, 90, 0.12);
}

.vm-header-search {
  display: grid;
  gap: 8px;
}

.vm-header-search .vm-input {
  background: rgba(255, 255, 255, 0.92);
}

.vm-header-hero {
  display: grid;
  gap: var(--vm-space-sm);
  max-width: 40rem;
}

.vm-home-fold {
  display: grid;
  gap: var(--vm-space-lg);
  align-items: start;
}

.vm-home-fold-copy {
  max-width: none;
}

.vm-home-fold-board {
  display: grid;
  gap: var(--vm-space-sm);
}

.vm-home-fold-board-header {
  display: grid;
  gap: var(--vm-space-xs);
}

.vm-profile-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vm-space-md);
  align-items: start;
}

.vm-profile-header-media {
  position: relative;
  margin: 0;
  max-width: min(100%, 320px);
}

.vm-profile-header-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--vm-radius-lg);
  border: 1px solid rgba(214, 221, 212, 0.95);
  box-shadow: 0 20px 40px rgba(23, 33, 38, 0.12);
  background: var(--vm-color-surface-muted);
}

.vm-profile-header-content {
  display: grid;
  gap: var(--vm-space-sm);
  min-width: 0;
}

.vm-profile-header-name {
  margin: 0;
  max-width: 10ch;
}

.vm-profile-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vm-space-sm);
}

.vm-profile-share {
  display: grid;
  gap: var(--vm-space-sm);
  padding: var(--vm-space-md);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 221, 212, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: 100%;
}

.vm-profile-share-label {
  color: var(--vm-color-text-muted);
}

.vm-profile-share-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: var(--vm-space-xs);
}

.vm-profile-share-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: var(--vm-space-sm);
  white-space: nowrap;
}

.vm-profile-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vm-space-sm);
  min-width: 0;
}

.vm-profile-stat {
  display: grid;
  gap: var(--vm-space-xs);
  padding: var(--vm-space-sm);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(214, 221, 212, 0.95);
  box-shadow: 0 10px 24px rgba(23, 33, 38, 0.05);
}

.vm-profile-stat-label {
  color: var(--vm-color-text-muted);
}

.vm-profile-stat-value {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--vm-weight-semibold);
  line-height: 0.95;
  letter-spacing: var(--vm-letter-display);
}

.vm-profile-stat-value-positive {
  color: var(--vm-color-support);
}

.vm-profile-stat-caption {
  color: var(--vm-color-text-muted);
}

.vm-profile-stats-section {
  display: grid;
  gap: var(--vm-space-md);
}

.vm-profile-header-score {
  display: grid;
  gap: var(--vm-space-xs);
  justify-items: start;
  min-width: 144px;
  text-align: left;
}

.vm-profile-header-score-label {
  color: var(--vm-color-text-muted);
}

.vm-profile-header-score-value {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: clamp(3.25rem, 8vw, 5rem);
  font-weight: var(--vm-weight-semibold);
  line-height: 0.92;
  letter-spacing: var(--vm-letter-display);
}

.vm-profile-header-score-caption {
  color: var(--vm-color-text-muted);
}

.vm-card {
  position: relative;
  overflow: clip;
  background: var(--vm-color-surface);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow-rest);
  padding: var(--vm-card-padding);
}

.vm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 30%);
  pointer-events: none;
}

.vm-politician-card {
  position: relative;
  overflow: clip;
  display: grid;
  gap: var(--vm-space-sm);
  background: var(--vm-color-surface);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-politician-card-radius);
  box-shadow: var(--vm-politician-card-shadow);
  padding: var(--vm-politician-card-padding);
}

.vm-politician-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 38%);
  pointer-events: none;
}

.vm-politician-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--vm-space-sm);
  align-items: center;
}

.vm-politician-card-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.vm-politician-card-score {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.vm-politician-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vm-space-sm);
}

.vm-politician-card-actions .vm-button {
  flex: 1 1 160px;
}

.vm-trending-card {
  position: relative;
  overflow: clip;
  display: grid;
  gap: var(--vm-space-sm);
  background: var(--vm-color-surface);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-politician-card-radius);
  box-shadow: var(--vm-politician-card-shadow);
  padding: var(--vm-politician-card-padding);
}

.vm-trending-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 38%);
  pointer-events: none;
}

.vm-trending-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--vm-space-sm);
  align-items: center;
}

.vm-trending-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(214, 221, 212, 0.95);
  background: var(--vm-color-surface-muted);
  box-shadow: 0 8px 18px rgba(23, 33, 38, 0.08);
}

.vm-trending-card-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.vm-trending-card-name {
  margin: 0;
  font-size: var(--vm-font-size-lg);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-title);
}

.vm-trending-card-context {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-sm);
  line-height: var(--vm-line-base);
}

.vm-trending-card-score {
  display: grid;
  gap: 2px;
  grid-column: 1 / -1;
  justify-items: start;
  text-align: left;
}

.vm-trending-card-score-value {
  font-size: var(--vm-font-size-2xl);
  font-weight: var(--vm-weight-bold);
  line-height: var(--vm-line-tight);
  letter-spacing: var(--vm-letter-headline);
}

.vm-trending-card-score-label {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-xs);
  font-weight: var(--vm-weight-medium);
  letter-spacing: var(--vm-letter-meta);
  text-transform: uppercase;
}

.vm-trending-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--vm-radius-pill);
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-semibold);
  border: 1px solid transparent;
}

.vm-trending-card-trend-positive {
  background: var(--vm-color-surface-support);
  color: var(--vm-color-support);
  border-color: rgba(25, 138, 90, 0.14);
}

.vm-trending-card-trend-negative {
  background: var(--vm-color-surface-oppose);
  color: var(--vm-color-oppose);
  border-color: rgba(197, 70, 58, 0.14);
}


.vm-leaderboard-card {
  position: relative;
  overflow: clip;
  display: grid;
  gap: var(--vm-space-md);
  background: var(--vm-color-surface);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-politician-card-radius);
  box-shadow: var(--vm-politician-card-shadow);
  padding: var(--vm-space-sm);
}

.vm-leaderboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 38%);
  pointer-events: none;
}

.vm-leaderboard-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--vm-space-md);
  flex-wrap: wrap;
}

.vm-leaderboard-filters {
  display: flex;
  justify-content: flex-start;
}

.vm-leaderboard-card-actions {
  display: flex;
  align-items: center;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.vm-discovery-controls {
  display: grid;
  gap: var(--vm-space-sm);
}

.vm-discovery-field {
  display: grid;
  gap: 8px;
}

.vm-discovery-input,
.vm-discovery-select {
  background: rgba(255, 255, 255, 0.94);
}

.vm-discovery-select {
  appearance: none;
}

.vm-toggle-group {
  display: inline-flex;
  align-items: center;
  width: 100%;
  gap: var(--vm-space-xs);
  padding: var(--vm-space-xs);
  border-radius: var(--vm-radius-pill);
  background: rgba(36, 91, 115, 0.08);
  border: 1px solid rgba(36, 91, 115, 0.08);
}

.vm-toggle-option {
  appearance: none;
  display: inline-flex;
  align-items: center;
  flex: 1 1 0;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--vm-color-text-muted);
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--vm-radius-pill);
  font: inherit;
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-semibold);
  line-height: 1;
  letter-spacing: var(--vm-letter-body);
  cursor: pointer;
  transition:
    background-color var(--vm-motion-fast) var(--vm-ease-standard),
    color var(--vm-motion-fast) var(--vm-ease-standard),
    box-shadow var(--vm-motion-fast) var(--vm-ease-standard);
}

.vm-toggle-option[aria-selected="true"] {
  background: var(--vm-color-surface);
  color: var(--vm-color-text);
  box-shadow: 0 8px 18px rgba(23, 33, 38, 0.08);
}

.vm-toggle-option:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus);
}

.vm-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--vm-space-sm);
}

.vm-leaderboard-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--vm-space-sm);
  align-items: center;
  padding: var(--vm-space-sm);
  background: var(--vm-color-surface-raised);
  border: 1px solid rgba(214, 221, 212, 0.85);
  border-radius: 18px;
}

.vm-leaderboard-rank {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--vm-color-accent-soft);
  color: var(--vm-color-secondary);
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-bold);
}

.vm-leaderboard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(214, 221, 212, 0.95);
  background: var(--vm-color-surface-muted);
}

.vm-leaderboard-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vm-leaderboard-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.vm-leaderboard-link:hover .vm-leaderboard-name,
.vm-leaderboard-link:focus-visible .vm-leaderboard-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.vm-leaderboard-link:focus-visible {
  outline: none;
}

.vm-leaderboard-name {
  margin: 0;
  font-size: var(--vm-font-size-md);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-title);
}

.vm-leaderboard-context {
  margin: 0;
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-sm);
  line-height: var(--vm-line-base);
}

.vm-leaderboard-score {
  display: grid;
  gap: 2px;
  grid-column: 2 / -1;
  justify-items: start;
  text-align: left;
}

.vm-leaderboard-score-label {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-xs);
  font-weight: var(--vm-weight-medium);
  letter-spacing: var(--vm-letter-meta);
  text-transform: uppercase;
}

.vm-leaderboard-score-value {
  font-size: var(--vm-font-size-xl);
  font-weight: var(--vm-weight-bold);
  line-height: var(--vm-line-tight);
  letter-spacing: var(--vm-letter-headline);
}

.vm-leaderboard-votes {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-xs);
  line-height: var(--vm-line-base);
}

.vm-leaderboard-trend {
  display: inline-flex;
  align-items: center;
  grid-column: 2 / -1;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--vm-radius-pill);
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-semibold);
  border: 1px solid transparent;
}

.vm-leaderboard-trend-positive {
  background: var(--vm-color-surface-support);
  color: var(--vm-color-support);
  border-color: rgba(25, 138, 90, 0.14);
}

.vm-leaderboard-trend-negative {
  background: var(--vm-color-surface-oppose);
  color: var(--vm-color-oppose);
  border-color: rgba(197, 70, 58, 0.14);
}

.vm-leaderboard-empty {
  display: grid;
  gap: var(--vm-space-xs);
  padding: var(--vm-space-sm);
  border-radius: 18px;
  background: var(--vm-color-surface-accent);
  border: 1px dashed rgba(36, 91, 115, 0.18);
}

.vm-leaderboard-empty p {
  margin: 0;
}

.vm-heading-display {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: var(--vm-weight-semibold);
  letter-spacing: var(--vm-letter-display);
  line-height: var(--vm-line-display);
  max-width: 12ch;
  text-wrap: balance;
}

.vm-heading-section {
  margin: 0;
  font-size: var(--vm-font-size-xl);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-title);
  max-width: 18ch;
  text-wrap: balance;
}

.vm-heading-subsection {
  margin: 0;
  font-size: var(--vm-font-size-lg);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-title);
  max-width: 22ch;
  text-wrap: balance;
}

.vm-text-body {
  max-width: 72ch;
  font-size: var(--vm-font-size-md);
  font-weight: var(--vm-weight-regular);
  line-height: var(--vm-line-comfortable);
  letter-spacing: var(--vm-letter-body);
}

.vm-text-body-strong {
  max-width: 72ch;
  font-size: var(--vm-font-size-md);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-comfortable);
  letter-spacing: var(--vm-letter-body);
}

.vm-text-small {
  max-width: 64ch;
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-regular);
  line-height: var(--vm-line-base);
  letter-spacing: var(--vm-letter-meta);
}

.vm-text-caption {
  max-width: 56ch;
  font-size: var(--vm-font-size-xs);
  font-weight: var(--vm-weight-medium);
  line-height: var(--vm-line-base);
  letter-spacing: var(--vm-letter-meta);
}

.vm-text-eyebrow {
  max-width: 28ch;
  font-size: var(--vm-font-size-xs);
  font-weight: var(--vm-weight-bold);
  line-height: var(--vm-line-base);
  letter-spacing: var(--vm-letter-caps);
  text-transform: uppercase;
}

.vm-body-muted {
  color: var(--vm-color-text-muted);
  max-width: var(--vm-reading-max);
}

.vm-button {
  min-width: var(--vm-touch-target-min);
  min-height: var(--vm-button-height);
  padding: 0 var(--vm-button-padding-inline);
  border: 1px solid transparent;
  border-radius: var(--vm-radius-pill);
  font: inherit;
  font-weight: var(--vm-weight-semibold);
  transition:
    transform var(--vm-motion-base) var(--vm-ease-standard),
    background-color var(--vm-motion-base) var(--vm-ease-standard),
    border-color var(--vm-motion-base) var(--vm-ease-standard),
    box-shadow var(--vm-motion-base) var(--vm-ease-standard);
  cursor: pointer;
}

.vm-button:focus-visible,
.vm-input:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus);
}

.vm-button-primary {
  background: var(--vm-color-primary);
  color: #fff;
  box-shadow: 0 14px 24px rgba(25, 138, 90, 0.18);
}

.vm-button-primary:hover {
  background: var(--vm-color-primary-hover);
  transform: translateY(-1px);
}

.vm-button-secondary {
  background: var(--vm-color-surface);
  color: var(--vm-color-text);
  border: 1px solid var(--vm-color-border);
}

.vm-button-secondary:hover {
  background: var(--vm-color-surface-muted);
}

.vm-button-support {
  background: linear-gradient(135deg, var(--vm-color-support) 0%, var(--vm-color-support-hover) 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(25, 138, 90, 0.18);
}

.vm-button-support:hover {
  background: linear-gradient(135deg, var(--vm-color-support-hover) 0%, #0f5637 100%);
  transform: translateY(-1px);
}

.vm-button-oppose {
  background: linear-gradient(135deg, var(--vm-color-oppose) 0%, #aa3f34 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(197, 70, 58, 0.16);
}

.vm-button-oppose:hover {
  background: linear-gradient(135deg, var(--vm-color-oppose-hover) 0%, #7f261f 100%);
  transform: translateY(-1px);
}

.vm-input {
  width: 100%;
  min-height: var(--vm-input-height);
  border: 1px solid var(--vm-color-border);
  border-radius: var(--vm-radius-md);
  padding: 0 var(--vm-input-padding-inline);
  background: var(--vm-color-surface);
  color: var(--vm-color-text);
  font: inherit;
}

.vm-stat {
  display: grid;
  gap: var(--vm-space-xs);
}

.vm-score-positive {
  color: var(--vm-color-support);
}

.vm-score-negative {
  color: var(--vm-color-oppose);
}

.vm-stat-label {
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-sm);
  line-height: var(--vm-line-base);
  letter-spacing: var(--vm-letter-meta);
}

.vm-stat-value {
  font-size: var(--vm-font-size-2xl);
  font-weight: var(--vm-weight-bold);
  line-height: var(--vm-line-tight);
  letter-spacing: var(--vm-letter-headline);
}

@media (min-width: 961px) {
  .vm-shell {
    width: min(calc(100% - (var(--vm-gutter-desktop) * 2)), var(--vm-content-max));
    padding: var(--vm-space-3xl) 0;
  }

  .vm-section {
    gap: var(--vm-space-lg);
  }

  .vm-section-header {
    align-items: start;
    gap: var(--vm-space-md);
  }

  .vm-section-header > :first-child {
    display: grid;
    gap: var(--vm-space-xs);
    min-width: 0;
  }

  .vm-header-bar {
    flex-direction: row;
    align-items: start;
  }

  .vm-header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .vm-header-actions .vm-button,
  .vm-header-actions .vm-input {
    width: auto;
  }

  .vm-header-bar .vm-header-actions {
    flex: 0 1 28rem;
  }

  .vm-header-search {
    flex: 1 1 20rem;
  }

  .vm-header-hero {
    gap: var(--vm-space-md);
    max-width: 54rem;
  }

  .vm-home-fold {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: var(--vm-space-xl);
  }

  .vm-profile-header {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(160px, 208px);
    gap: var(--vm-space-xl);
  }

  .vm-profile-header-score {
    padding-top: var(--vm-space-xs);
  }

  .vm-profile-vote-bar-shell {
    width: 100%;
  }

  .vm-profile-vote-bar {
    width: min(100%, 56rem);
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    padding: var(--vm-space-sm) var(--vm-space-md);
  }

  .vm-profile-vote-bar-actions {
    width: auto;
  }

  .vm-leaderboard-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vm-discovery-controls {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(180px, 0.8fr));
    align-items: end;
  }

  .vm-home-fold-board .vm-discovery-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .vm-heading-display {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    max-width: 11ch;
  }

  .vm-profile-header-name {
    max-width: 12ch;
  }

  .vm-card {
    border-radius: var(--vm-radius-md);
    padding: var(--vm-space-sm);
  }

  .vm-leaderboard-card {
    padding: var(--vm-space-sm);
  }

  .vm-politician-card {
    border-radius: 10px;
    padding: var(--vm-space-sm);
  }

  .vm-politician-card-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vm-politician-card-score {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

.vm-hero-band {
  display: grid;
  gap: var(--vm-space-sm);
  border-radius: var(--vm-radius-lg);
  padding: var(--vm-space-lg);
  background: linear-gradient(145deg, var(--vm-color-surface) 0%, var(--vm-color-surface-muted) 100%);
  border: 1px solid rgba(214, 221, 212, 0.95);
  box-shadow: var(--vm-shadow-rest);
}

.vm-vote-panel {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(252, 252, 249, 0.95)),
    linear-gradient(135deg, rgba(36, 91, 115, 0.04), rgba(25, 138, 90, 0.04));
}

.vm-vote-panel::before {
  content: "";
  position: absolute;
  top: -72px;
  right: -40px;
  width: var(--vm-ornament-blob-size);
  height: var(--vm-ornament-blob-size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 91, 115, 0.14), transparent 62%);
  z-index: -2;
  pointer-events: none;
}

.vm-vote-panel::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: -56px;
  width: var(--vm-ornament-ring-size);
  height: var(--vm-ornament-ring-size);
  border: 1px solid rgba(36, 91, 115, 0.18);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.vm-vote-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--vm-radius-pill);
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-semibold);
  background: var(--vm-color-surface-raised);
}

.vm-vote-chip-support {
  background: var(--vm-color-surface-support);
  color: var(--vm-color-support);
  border-color: rgba(25, 138, 90, 0.14);
}

.vm-vote-chip-oppose {
  background: var(--vm-color-surface-oppose);
  color: var(--vm-color-oppose);
  border-color: rgba(197, 70, 58, 0.14);
}

.vm-profile-vote-bar-shell {
  display: flex;
  justify-content: flex-start;
}

.vm-profile-vote-bar {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--vm-space-md);
  padding: 16px;
  border: 1px solid rgba(214, 221, 212, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 32px rgba(23, 33, 38, 0.08);
  backdrop-filter: blur(10px);
}

.vm-profile-vote-bar-context {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vm-profile-vote-bar-label {
  color: var(--vm-color-text-muted);
}

.vm-profile-vote-bar-copy {
  margin: 0;
  color: var(--vm-color-text);
  font-size: var(--vm-font-size-md);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-snug);
  letter-spacing: var(--vm-letter-body);
}

.vm-profile-vote-bar-feedback {
  margin: 0;
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-sm);
  line-height: var(--vm-line-comfortable);
}

.vm-profile-vote-bar-stats {
  display: flex;
  align-items: center;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
}

.vm-profile-vote-bar-stat {
  background: rgba(255, 255, 255, 0.82);
}

.vm-profile-vote-bar-actions {
  display: flex;
  align-items: center;
  width: 100%;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.vm-profile-vote-bar-button {
  flex: 1 1 0;
  min-width: 0;
}

.vm-profile-vote-bar[data-vote-state="support"] {
  border-color: rgba(25, 138, 90, 0.28);
  box-shadow: 0 18px 36px rgba(25, 138, 90, 0.12);
}

.vm-profile-vote-bar[data-vote-state="oppose"] {
  border-color: rgba(197, 70, 58, 0.28);
  box-shadow: 0 18px 36px rgba(197, 70, 58, 0.12);
}

.vm-profile-vote-bar-button.is-selected {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65), 0 16px 28px rgba(23, 33, 38, 0.16);
  transform: translateY(-1px);
}

.vm-profile-vote-bar-button[aria-pressed="true"]::after {
  content: " Selected";
}

.vm-profile-share-card {
  display: grid;
  gap: var(--vm-space-md);
}

.vm-profile-share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
}

.vm-profile-share-copy {
  display: grid;
  gap: var(--vm-space-xs);
  min-width: min(100%, 42rem);
}

.vm-profile-share-description {
  margin: 0;
  max-width: 60ch;
  color: var(--vm-color-text-muted);
  font-size: var(--vm-font-size-md);
  line-height: var(--vm-line-comfortable);
}

.vm-profile-share-chip {
  background: var(--vm-color-accent-soft);
  color: var(--vm-color-secondary);
  border-color: rgba(36, 91, 115, 0.14);
}

.vm-profile-share-template {
  display: grid;
  gap: 8px;
  padding: var(--vm-space-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--vm-radius-md);
  background: var(--vm-color-surface-raised);
}

.vm-profile-share-template-message {
  margin: 0;
  color: var(--vm-color-text);
  font-size: var(--vm-font-size-md);
  line-height: var(--vm-line-comfortable);
  white-space: pre-line;
}

.vm-profile-share-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--vm-space-sm);
}

.vm-profile-share-grid .vm-profile-share-button {
  width: 100%;
  padding-inline: 16px;
}

.vm-trust-nav {
  display: flex;
  align-items: center;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
}

.vm-trust-link {
  color: var(--vm-color-secondary);
  font-size: var(--vm-font-size-sm);
  font-weight: var(--vm-weight-semibold);
  line-height: var(--vm-line-base);
  text-decoration: none;
}

.vm-trust-link:hover,
.vm-trust-link:focus-visible {
  text-decoration: underline;
}

.vm-trust-grid {
  display: grid;
  gap: var(--vm-space-md);
}

.vm-trust-card {
  display: grid;
  gap: var(--vm-space-sm);
  padding: var(--vm-space-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(214, 221, 212, 0.95);
  border-radius: var(--vm-radius-lg);
  box-shadow: var(--vm-shadow-rest);
}

.vm-trust-card .vm-heading-subsection {
  max-width: 20ch;
}

.vm-trust-card .vm-text-body {
  margin: 0;
}

.vm-trust-list {
  display: grid;
  gap: var(--vm-space-xs);
  margin: 0;
  padding-left: 20px;
}

.vm-trust-list li {
  max-width: var(--vm-reading-max);
}

.vm-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--vm-space-sm);
  flex-wrap: wrap;
  margin-top: var(--vm-space-xl);
  padding: var(--vm-space-md) 0 var(--vm-space-sm);
  border-top: 1px solid rgba(214, 221, 212, 0.95);
}

.vm-footer-copy {
  display: grid;
  gap: 4px;
}

.vm-footer-copy .vm-text-small {
  margin: 0;
}

@media (min-width: 641px) {
  .vm-header-bar {
    align-items: start;
    flex-direction: row;
    justify-content: space-between;
  }

  .vm-header-actions {
    justify-content: flex-end;
  }

  .vm-header-actions .vm-button {
    width: auto;
  }

  .vm-header-search {
    flex: 1 1 20rem;
  }

  .vm-header-search .vm-input {
    width: 100%;
  }

  .vm-header-hero {
    max-width: 48rem;
  }

  .vm-home-fold-board .vm-leaderboard-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .vm-home-fold-board .vm-discovery-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-profile-share {
    width: min(100%, 32rem);
  }

  .vm-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: min(100%, 320px);
  }

  .vm-profile-vote-bar {
    padding: var(--vm-space-sm) var(--vm-space-md);
  }

  .vm-profile-vote-bar-actions {
    justify-content: flex-end;
  }

  .vm-profile-vote-bar-button {
    min-width: 156px;
    flex: 0 1 auto;
  }

  .vm-profile-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 961px) {
  .vm-profile-header {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(160px, 208px);
    gap: var(--vm-space-xl);
  }

  .vm-profile-header-media {
    max-width: none;
  }

  .vm-profile-header-score {
    justify-items: end;
    text-align: right;
  }

  .vm-trending-card-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .vm-trending-card-score {
    grid-column: auto;
    justify-items: end;
    text-align: right;
  }

  .vm-leaderboard-card {
    padding: var(--vm-card-padding);
  }

  .vm-leaderboard-card-actions {
    width: auto;
    justify-content: flex-end;
  }

  .vm-toggle-group {
    width: auto;
  }

  .vm-toggle-option {
    flex: 0 1 auto;
    justify-content: center;
  }

  .vm-discovery-controls {
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(160px, auto));
  }

  .vm-home-fold-board .vm-discovery-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-leaderboard-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  }

  .vm-leaderboard-score {
    grid-column: auto;
    justify-items: end;
    text-align: right;
  }

  .vm-leaderboard-trend {
    grid-column: auto;
  }

  .vm-profile-share-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .vm-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vm-page-has-sticky-vote-bar {
    padding-bottom: calc(var(--vm-space-3xl) + 108px + env(safe-area-inset-bottom, 0px));
  }

  .vm-profile-vote-bar-shell {
    position: fixed;
    left: 50%;
    bottom: calc(var(--vm-gutter-mobile) + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    width: min(calc(100% - (var(--vm-gutter-mobile) * 2)), var(--vm-content-max));
    transform: translateX(-50%);
    justify-content: stretch;
  }

  .vm-profile-vote-bar {
    border-radius: 20px;
  }

  .vm-profile-vote-bar-actions {
    align-items: stretch;
  }

  .vm-profile-vote-bar-status {
    text-align: center;
  }

  .vm-profile-vote-bar-button {
    width: 100%;
  }

  .vm-profile-vote-bar-stats {
    gap: var(--vm-space-xs);
  }

  .vm-profile-share-header {
    align-items: stretch;
  }

  .vm-profile-share-chip {
    width: 100%;
    justify-content: center;
  }

  .vm-profile-share-grid {
    grid-template-columns: 1fr;
  }

  .vm-footer {
    padding-bottom: 0;
  }

  .vm-trust-nav {
    width: 100%;
  }
}

/* Public topic homepage */

.vm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vm-home-public {
  background: #f7f7f3;
}

.vm-public-shell {
  width: min(calc(100% - 32px), 1344px);
  margin: 0 auto;
  padding-bottom: 32px;
}

.vm-public-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--vm-color-border);
}

.vm-public-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--vm-color-text);
  text-decoration: none;
  white-space: nowrap;
}

.vm-public-brand-name {
  font-family: var(--vm-font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.vm-public-brand-note {
  font-size: 12px;
  color: var(--vm-color-text-muted);
}

.vm-public-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--vm-color-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: var(--vm-color-text);
  font: inherit;
}

.vm-public-search input:focus {
  outline: none;
  box-shadow: var(--vm-shadow-focus);
  border-color: var(--vm-color-secondary);
}

.vm-public-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.vm-public-nav a,
.vm-public-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  color: var(--vm-color-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.vm-public-nav button:not(.vm-public-login-button) {
  color: var(--vm-color-primary);
}

.vm-public-nav .vm-public-login-button {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--vm-color-secondary);
  color: #fff;
}

.vm-public-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 48px 0 32px;
}

.vm-public-intro > div:first-child {
  display: grid;
  gap: 8px;
}

.vm-public-intro h1 {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.vm-public-intro p,
.vm-public-section-heading p,
.vm-public-add-strip p {
  margin: 0;
  max-width: 66ch;
  color: var(--vm-color-text-muted);
  font-size: 15px;
}

.vm-public-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  padding: 4px;
  border: 1px solid var(--vm-color-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.vm-public-periods button,
.vm-topic-chart-ranges button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vm-color-text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vm-public-periods button[aria-selected="true"] {
  background: #fff;
  color: var(--vm-color-text);
  box-shadow: 0 5px 12px rgba(23, 33, 38, 0.06);
  box-shadow: inset 0 -2px 0 var(--vm-color-primary), 0 5px 12px rgba(23, 33, 38, 0.05);
}

.vm-public-ranking-section {
  padding: 76px 0 0;
  scroll-margin-top: 24px;
}

.vm-public-ranking-section-primary {
  padding-top: 0;
}

.vm-public-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.vm-public-section-heading > div {
  display: grid;
  gap: 6px;
}

.vm-public-section-heading h2,
.vm-public-add-strip h2 {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.vm-topic-select-hint {
  color: var(--vm-color-text-muted);
  font-size: 12px;
}

.vm-public-ranking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 20px;
  align-items: start;
}

[data-topic-detail-anchor] {
  display: none;
}

.vm-topic-list-surface,
.vm-topic-detail {
  border: 1px solid var(--vm-color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.vm-topic-list-surface {
  overflow: hidden;
}

.vm-topic-list-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 76px 78px 68px;
  gap: 10px;
  padding: 14px 16px 10px;
  color: var(--vm-color-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--vm-color-border);
}

.vm-topic-list-head span:nth-child(n + 3) {
  text-align: right;
}

.vm-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vm-topic-list li + li {
  border-top: 1px solid rgba(214, 221, 212, 0.78);
}

.vm-topic-row {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr) 76px 78px 68px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--vm-color-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.vm-topic-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.vm-topic-row:hover {
  background: rgba(36, 91, 115, 0.035);
}

.vm-topic-row.is-selected {
  background: rgba(229, 244, 236, 0.62);
}

.vm-topic-row.is-selected::before {
  background: var(--vm-color-primary);
}

.vm-topic-row:focus-visible {
  outline: none;
  box-shadow: inset var(--vm-shadow-focus);
}

.vm-topic-rank {
  font-family: var(--vm-font-display);
  font-size: 20px;
  text-align: center;
}

.vm-topic-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--vm-color-surface-muted);
}

.vm-topic-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vm-topic-identity strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-topic-identity small,
.vm-topic-votes,
.vm-topic-score small {
  color: var(--vm-color-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.vm-topic-score {
  display: grid;
  justify-items: end;
}

.vm-topic-score strong {
  color: var(--vm-color-primary);
  font-size: 18px;
  line-height: 1.15;
}

.vm-topic-votes,
.vm-topic-change {
  text-align: right;
  font-size: 12px;
}

.vm-topic-change {
  color: var(--vm-color-primary);
  font-weight: 700;
}

.vm-topic-change.is-negative {
  color: var(--vm-color-oppose);
}

.vm-topic-list-empty {
  margin: 0;
  padding: 24px;
  color: var(--vm-color-text-muted);
  text-align: center;
}

.vm-topic-detail {
  position: sticky;
  top: 16px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.vm-topic-detail-heading {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.vm-topic-detail-heading > img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--vm-color-surface-muted);
}

.vm-topic-detail-heading h3 {
  margin: 4px 0 6px;
  font-family: var(--vm-font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.vm-topic-detail-heading p {
  margin: 0;
  color: var(--vm-color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.vm-topic-detail-score {
  display: grid;
  justify-items: end;
  min-width: 112px;
  text-align: right;
}

.vm-topic-detail-score > span {
  color: var(--vm-color-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.vm-topic-detail-score strong {
  color: var(--vm-color-primary);
  font-family: var(--vm-font-display);
  font-size: 54px;
  line-height: 1;
}

.vm-topic-detail-score small {
  color: var(--vm-color-text-muted);
  font-size: 11px;
}

.vm-topic-vote-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.vm-topic-vote-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vm-topic-support {
  background: var(--vm-color-support);
}

.vm-topic-oppose {
  background: var(--vm-color-oppose);
}

.vm-topic-vote-actions p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  color: var(--vm-color-text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.vm-topic-chart {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--vm-color-border);
}

.vm-topic-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.vm-topic-chart-header h4 {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.vm-topic-chart-ranges {
  display: flex;
  gap: 2px;
}

.vm-topic-chart-ranges button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 8px;
}

.vm-topic-chart-ranges button[aria-selected="true"] {
  background: var(--vm-color-surface-muted);
  color: var(--vm-color-text);
}

.vm-topic-chart-frame {
  width: 100%;
  height: 224px;
}

.vm-topic-chart-frame canvas {
  display: block;
}

.vm-topic-chart-meta {
  display: flex;
  justify-content: space-between;
  color: var(--vm-color-text-muted);
  font-size: 10px;
}

.vm-public-add-strip {
  margin-top: 80px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--vm-color-border);
  border-radius: 18px;
  background: rgba(229, 244, 236, 0.55);
}

.vm-public-add-strip > div {
  display: grid;
  gap: 7px;
}

.vm-public-add-strip > div:last-child {
  justify-items: end;
}

.vm-public-add-strip small {
  color: var(--vm-color-text-muted);
}

.vm-public-footer {
  margin-top: 48px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--vm-color-border);
  color: var(--vm-color-text-muted);
  font-size: 12px;
}

.vm-public-footer p {
  margin: 0;
}

.vm-public-dialog {
  width: min(calc(100% - 32px), 500px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.vm-public-dialog::backdrop {
  background: rgba(23, 33, 38, 0.52);
  backdrop-filter: blur(3px);
}

.vm-public-dialog-card {
  position: relative;
  padding: 28px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--vm-color-border);
  border-radius: 20px;
  background: var(--vm-color-surface);
  box-shadow: var(--vm-shadow-raised);
}

.vm-public-dialog-card h2 {
  margin: 0;
  font-family: var(--vm-font-display);
  font-size: 32px;
}

.vm-public-dialog-card p,
.vm-public-dialog-card small {
  margin: 0;
  color: var(--vm-color-text-muted);
}

.vm-public-dialog-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.vm-public-dialog-card input,
.vm-public-dialog-card select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--vm-color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--vm-color-text);
  font: inherit;
}

.vm-public-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--vm-color-text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .vm-public-header {
    grid-template-columns: auto minmax(260px, 1fr) auto;
  }

  .vm-public-brand-note,
  .vm-public-nav a:not(.vm-public-login-button) {
    display: none;
  }

  .vm-public-ranking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-topic-detail {
    position: static;
  }
}

@media (max-width: 760px) {
  .vm-public-shell {
    width: min(calc(100% - 24px), 1344px);
  }

  .vm-public-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px 0;
  }

  .vm-public-brand-name {
    font-size: 25px;
  }

  .vm-public-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .vm-public-nav {
    display: contents;
  }

  .vm-public-nav button:not(.vm-public-login-button) {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
  }

  .vm-public-nav .vm-public-login-button {
    grid-column: 3;
    grid-row: 1;
    padding: 0 12px;
    font-size: 12px;
  }

  .vm-public-intro {
    grid-template-columns: 1fr;
    padding: 34px 0 24px;
  }

  .vm-public-periods {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
  }

  .vm-public-periods button {
    min-width: 88px;
    padding: 0 8px;
    font-size: 11px;
  }

  .vm-public-ranking-section {
    padding-top: 56px;
  }

  .vm-public-ranking-section-primary {
    padding-top: 0;
  }

  .vm-public-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .vm-topic-select-hint,
  .vm-topic-list-head {
    display: none;
  }

  .vm-topic-row {
    grid-template-columns: 28px 44px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 10px 12px;
  }

  .vm-topic-score {
    grid-column: 4;
    grid-row: 1;
  }

  .vm-topic-votes {
    grid-column: 3;
    grid-row: 2;
    text-align: left;
  }

  .vm-topic-change {
    grid-column: 4;
    grid-row: 2;
  }

  .vm-topic-detail {
    padding: 16px;
  }

  .vm-topic-detail.is-inline {
    margin: 0 12px 12px;
    gap: 14px;
    border-radius: 14px;
    background: var(--vm-color-surface-accent);
    box-shadow: 0 12px 24px rgba(23, 33, 38, 0.06);
  }

  .vm-topic-detail.is-inline .vm-topic-chart {
    display: none;
  }

  .vm-topic-detail-heading {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .vm-topic-detail-heading > img {
    width: 64px;
    height: 64px;
  }

  .vm-topic-detail-score {
    grid-column: 1 / -1;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    justify-items: start;
    gap: 8px;
    text-align: left;
  }

  .vm-topic-detail-score strong {
    font-size: 42px;
  }

  .vm-topic-vote-actions {
    grid-template-columns: 1fr 1fr;
  }

  .vm-topic-vote-actions p {
    padding: 0;
  }

  .vm-topic-chart-header {
    align-items: start;
    flex-direction: column;
  }

  .vm-topic-chart-ranges {
    width: 100%;
    justify-content: space-between;
  }

  .vm-topic-chart-frame {
    height: 210px;
  }

  .vm-public-add-strip,
  .vm-public-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .vm-public-add-strip > div:last-child {
    justify-items: stretch;
  }
}
