.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--card-background);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.demo-btn:hover {
  background: var(--surface-hover);
}

.demo-btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.demo-btn--primary:hover {
  background: var(--primary-hover);
}

.demo-btn--ghost {
  border-color: var(--border-color);
  background: var(--card-background);
}

.demo-btn--ghost:hover {
  background: var(--surface-secondary);
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-active);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.demo-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-control);
  background: var(--card-background);
  color: var(--text-secondary);
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-drawer {
  position: fixed;
  top: 132px;
  right: 20px;
  width: 320px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-section);
  background: var(--card-background);
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 45;
}

.demo-drawer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-drawer__header {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.demo-drawer__body p {
  margin: 0;
  color: var(--text-secondary);
}

.demo-drawer__body p + p {
  margin-top: 8px;
}
