.studio-run-topbar-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  margin-right: var(--spacing-md);
}

.studio-run-topbar-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.studio-run-topbar-label-text {
  white-space: nowrap;
}

.studio-run-topbar-select {
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  min-width: 140px;
  max-width: 200px;
}

.studio-run-topbar-btn {
  padding: 4px var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.studio-run-topbar-btn--primary {
  border: none;
  background: var(--color-accent);
  color: var(--color-text-inverse, #fff);
}

.studio-run-topbar-btn--primary:hover:not(:disabled) {
  opacity: 0.9;
}

.studio-run-topbar-btn--ghost {
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
}

.studio-run-topbar-btn--ghost:hover:not(:disabled) {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.studio-run-topbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.studio-run-topbar-character {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-light);
  max-width: 180px;
}

.studio-run-topbar-character-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.studio-run-topbar-character-name {
  font-size: 0.8rem;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
