.demo-voices-page .demo-funnel-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.demo-voices-page .demo-funnel-header-inner .brand {
  justify-self: start;
}

.demo-voices-page .demo-showcase-nav {
  justify-self: center;
}

.demo-voices-page .nav-actions {
  justify-self: end;
}

.demo-showcase-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.demo-showcase-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.demo-showcase-nav-link:hover {
  color: var(--text);
}

.demo-showcase-nav-link.is-active {
  color: var(--text);
  background: var(--accent-muted);
}

.demo-voices-more {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-voices-more strong {
  color: var(--text);
  font-weight: 600;
}

.demo-voice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.demo-voice-toolbar .demo-voices-note {
  margin: 0;
  flex: 1 1 280px;
}

.demo-voice-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--mono);
  white-space: nowrap;
}

.demo-voice-filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.demo-voice-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.demo-voice-filter-label {
  min-width: 3.5rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo-voice-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.demo-voice-filter-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.demo-voice-filter-chip:hover {
  color: var(--text);
}

.demo-voice-filter-chip.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.demo-voices-note {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.demo-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.demo-voice-card {
  padding: 1rem 1.05rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-voice-card.is-playing {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.demo-voice-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.demo-voice-name {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.demo-voice-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.demo-voice-controls {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.demo-voice-meta {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo-voice-best-for {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-voice-best-for span {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .demo-voices-page .demo-funnel-header-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .demo-voices-page .demo-showcase-nav {
    justify-self: stretch;
    justify-content: center;
  }

  .demo-voices-page .nav-actions {
    justify-self: stretch;
  }

  .demo-voices-page .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .demo-voice-card-head {
    flex-direction: column;
  }

  .demo-voice-controls {
    width: 100%;
  }

  .demo-voice-controls .btn {
    flex: 1;
  }
}
